.h3p-espace-adherent-login {
    width: 100%;
    max-width: var(--container, 1280px);
    margin-inline: auto;
    padding: 3rem 1rem;
}

.h3p-espace-adherent-login__inner {
    width: min(100%, 420px);
    margin-inline: auto;
    text-align: center;
}

.h3p-espace-adherent-login__title {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.h3p-espace-adherent-login__intro {
    margin: 0 0 2rem;
}

.h3p-espace-adherent-login__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.h3p-espace-adherent-login__label {
    display: block;
    width: 100%;
    font-weight: 700;
    text-align: center;
}

.h3p-espace-adherent-login__input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--h3p-text-color, #43515a);
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

.h3p-espace-adherent-login__button {
    align-self: center;
    margin-top: 0.5rem;
    padding: 0.85rem 1.75rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
}

.h3p-ea-error {
    margin: 0 0 1rem;
    font-weight: 700;
}

body.h3p-espace-adherent .breadcrumb {
    display: none;
}

body.h3p-espace-adherent .wp-block-list > li {
    padding-left: 0;
}

body.h3p-espace-adherent .wp-block-list > li::before {
    content: none;
}

body.h3p-espace-adherent .h3p-two-columns,
body.h3p-espace-adherent .h3p-section{
    padding:clamp(3.5rem,7vw,3rem) 1.5rem;
}



/* =========================================================
   H3P — Espaces adhérents : bannière Gutenberg
   ========================================================= */

/* 1. Supprimer l'espace au-dessus de la bannière */
body.single-h3p_espace .section--content {
    padding-top: 0;
}

body.single-h3p_espace .section--content > .container {
    padding-top: 0;
}

/* 2. Aligner le contenu de la bannière sur les sections H3P */
body.single-h3p_espace .wp-block-cover.alignfull > .wp-block-cover__inner-container {
    width: min(100% - 40px, var(--container, 1280px));
    max-width: none;
    margin-inline: auto;
}

/* 3. Améliorer la lisibilité du texte de bienvenue */
body.single-h3p_espace .wp-block-cover .wp-block-columns p {
    color: #163243;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.6;
}

/* Espaces adhérents — espacement du titre de la bannière */
body.single-h3p_espace .wp-block-cover.alignfull
.wp-block-cover__inner-container > .wp-block-heading:first-child {
    padding-top: 2rem;
}



/* ==========================================
   H3P — Documents adhérents
   Comptes rendus et fiches pratiques
   ========================================== */

body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) {
    --h3p-document-width: 820px;
}

/* Largeur du contenu */
body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-section__inner {
    width: min(100% - 40px, var(--h3p-document-width));
    max-width: var(--h3p-document-width);
    margin-inline: auto;
}

/* Sections plus compactes */
body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-section {
    padding-block: 24px;
}

/* Lecture */
body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-column p {
    line-height: 1.65;
    margin-bottom: 14px;
}

/* Titres */
body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-column h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* ==========================================
   H3P — Listes des documents adhérents
   ========================================== */

body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-column ul.wp-block-list {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem;
}

body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-column ol.wp-block-list {
    list-style-type: decimal;
    list-style-position: outside;
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem;
}

body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-column .wp-block-list > li {
    display: list-item;
    padding-left: 0.25rem;
    margin-bottom: 0.6rem;
}

body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-column ul.wp-block-list > li::marker {
    color: var(--h3p-navy, #0f3443);
}

/* ==========================================
   H3P — En-tête des documents adhérents
   ========================================== */

body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-document-header {
    max-width: 820px;
    margin: 0 auto 32px;
    padding: 32px 0 24px;
    border-bottom: 1px solid rgba(15, 52, 67, 0.15);
}

body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .h3p-document-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--h3p-navy, #0f3443);
    margin: 0;
}


/* Images des comptes rendus et fiches pratiques */
body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .post-content .wp-block-image {
    margin: 1.5rem 0 2rem;
}

body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .post-content .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Centrage des images */
body:is(
    .single-h3p_compte_rendu,
    .single-h3p_fiche_pratique
) .post-content .wp-block-image:not(.alignleft):not(.alignright) img {
    margin-inline: auto;
}