/* Le formulaire d'adhésion en étapes ([hc_formulaire_adhesion]). Tout est rangé sous .hce-adh : Divi habille les boutons, listes et champs du site, on repart de zéro ici. */

.hce-adh {
    --hce-rouge: var(--huma-rouge, #8b2d2d);
    --hce-rouge-fonce: var(--huma-rouge-fonce, #6e2222);
    --hce-rose: var(--huma-rouge-pale, #f7eded);
    --hce-trait: var(--huma-trait, #e4dede);
    --hce-texte: var(--huma-encre, #302b2b);
    --hce-gris: var(--huma-encre-2, #5f5757);
    --hce-vert: var(--huma-ok, #1e6b35);
    --hce-ambre: var(--huma-attente, #8a5b00);
    color: var(--hce-texte);
    font-size: 15px;
    line-height: 1.5;
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
}
.hce-adh *, .hce-adh *::before, .hce-adh *::after { box-sizing: border-box; }
/* Les encadrés en <p> sont préfixés par .hce-adh : sinon `.hce-adh p { padding: 0 }`, plus haut placé, leur retire leur marge intérieure. */
.hce-adh .hce-adh-message { margin: 0; padding: 16px 18px; background: var(--hce-rose); border-radius: 12px; }
/* Divi annule le padding-bottom du dernier <p> d'un bloc (p:not(.has-background):last-of-type) : rétabli ici. */
.hce-adh p.hce-adh-message:not(.has-background):last-of-type { padding-bottom: 16px; }

/* Le chargement (formulaire, dossier) : une carte blanche, centrée, avec la roue du recadrage. */
.hce-adh .hce-adh-chargement { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; margin: 0; padding: 32px 24px; border-radius: 16px; background: var(--huma-blanc, #fff); box-shadow: var(--huma-ombre-haute, 0 12px 32px -12px rgba(48, 30, 30, .30)); color: var(--hce-texte); text-align: center; }
.hce-adh-chargement .hce-adh-roue { margin-bottom: 8px; }
.hce-adh-chargement strong { font-size: 16px; }
.hce-adh-chargement > span:not(.hce-adh-roue) { font-size: 13.5px; color: var(--hce-gris); }
.hce-adh-message .hce-adh-bouton { margin-top: 10px; }

.hce-adh-cadre { background: var(--huma-blanc, #fff); border-radius: 16px; box-shadow: var(--huma-ombre-haute, 0 12px 32px -12px rgba(48, 30, 30, .30)); padding: 22px 26px 18px; }
.hce-adh-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; margin: -4px 0 14px; font-size: 13px; color: var(--hce-gris); }
.hce-adh .hce-adh-avis { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
/* Divi annule le padding-bottom du dernier <p> d'un bloc (p:not(.has-background):last-of-type) : rétabli ici. */
.hce-adh p.hce-adh-avis:not(.has-background):last-of-type { padding-bottom: 12px; }
.hce-adh-avis--ok { background: var(--huma-ok-fond, #e7f3ea); color: var(--hce-vert); }
.hce-adh-avis--alerte { background: var(--huma-attente-fond, #fbf1d9); color: var(--hce-ambre); }

/* Les étapes */
.hce-adh ol.hce-adh-etapes { display: flex; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; }
.hce-adh ol.hce-adh-etapes > li { flex: 1 1 0; min-width: 0; display: flex; margin: 0; padding: 0; list-style: none; }
.hce-adh ol.hce-adh-etapes > li::before, .hce-adh ol.hce-adh-etapes > li::marker { content: none; }
.hce-adh .hce-adh-etapes button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; height: 100%; margin: 0; padding: 8px 4px; border: 0; border-bottom: 3px solid var(--hce-trait); border-radius: 0; background: none; color: var(--hce-gris); font: inherit; font-size: 12.5px; line-height: 1.25; text-align: center; cursor: pointer; box-shadow: none; }
.hce-adh .hce-adh-etapes button:disabled { cursor: not-allowed; opacity: .55; }
.hce-adh-etape-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hce-trait); color: var(--huma-encre-2, #5f5757); font-weight: 700; font-size: 13px; }
.hce-adh-etape--faite button { border-bottom-color: var(--huma-rouge-trait, #ecd6d6) !important; color: var(--hce-texte) !important; }
.hce-adh-etape--faite .hce-adh-etape-n { background: var(--huma-rouge-pale, #f7eded); color: var(--hce-rouge); box-shadow: inset 0 0 0 1px var(--huma-rouge-trait, #ecd6d6); }
.hce-adh-etape--active button { border-bottom-color: var(--hce-rouge) !important; color: var(--hce-rouge) !important; font-weight: 700 !important; }
.hce-adh-etape--active .hce-adh-etape-n { background: var(--hce-rouge); color: var(--huma-blanc, #fff); }

.hce-adh-corps h2 { margin: 6px 0 2px; padding: 0; font-size: 22px; line-height: 1.3; color: var(--hce-rouge); }
.hce-adh-sous-titre { margin: 0 0 18px; padding: 0; color: var(--hce-gris); }
.hce-adh p { padding: 0; }

/* Les champs : deux colonnes quand la place le permet, les textes longs sur toute la largeur. */
.hce-adh-corps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.hce-adh-corps > h2, .hce-adh-corps > .hce-adh-sous-titre, .hce-adh-corps > :not(.hce-adh-champ), .hce-adh-champ--large { grid-column: 1 / -1; }
.hce-adh-champ { margin: 0 0 18px; min-width: 0; }
.hce-adh-libelle { display: block; margin: 0 0 6px; font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.hce-adh-requis { color: var(--hce-rouge); }
.hce-adh-aide { margin: 6px 0 0; font-size: 13px; color: var(--hce-gris); }
.hce-adh-erreur { margin: 6px 0 0; font-size: 13px; color: var(--huma-alerte, #a12424); }
.hce-adh-erreur--douce { color: var(--hce-ambre); }
.hce-adh-erreur[hidden], .hce-adh [hidden] { display: none !important; }
.hce-adh-compteur { margin: 4px 0 0; font-size: 12px; color: var(--hce-gris); text-align: right; }

.hce-adh input[type="text"], .hce-adh input[type="email"], .hce-adh input[type="tel"], .hce-adh input[type="url"], .hce-adh input[type="date"], .hce-adh select, .hce-adh textarea {
    display: block; width: 100%; max-width: none; height: auto; margin: 0; padding: 9px 12px; border: 1px solid var(--huma-trait-fort, #968c8c); border-radius: 8px; background: var(--huma-blanc, #fff); color: var(--hce-texte); font: inherit; font-size: 15px; line-height: 1.4; box-shadow: none;
}
.hce-adh textarea { resize: vertical; min-height: 110px; }
.hce-adh input:focus, .hce-adh select:focus, .hce-adh textarea:focus { outline: 2px solid rgba(139, 45, 45, .25); outline-offset: 1px; border-color: var(--hce-rouge); }

.hce-adh-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.hce-adh-pastille { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 16px; border: 1px solid var(--hce-trait); border-radius: 999px; cursor: pointer; font-weight: 600; }
.hce-adh-pastille:has(input:checked) { border-color: var(--hce-rouge); background: var(--hce-rose); color: var(--hce-rouge); }
.hce-adh-pastille input { margin: 0; accent-color: var(--hce-rouge); }

/* Les boutons */
.hce-adh .hce-adh-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 10px 20px; border: 1px solid var(--hce-rouge); border-radius: 999px; background: var(--hce-rouge); color: var(--huma-blanc, #fff); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: none; }
.hce-adh .hce-adh-bouton:hover { background: var(--hce-rouge-fonce); border-color: var(--hce-rouge-fonce); color: var(--huma-blanc, #fff); }
.hce-adh .hce-adh-bouton:disabled { opacity: .55; cursor: not-allowed; }
.hce-adh .hce-adh-bouton::after { content: none !important; }
.hce-adh .hce-adh-bouton--clair { background: var(--huma-blanc, #fff); color: var(--hce-rouge); border-color: var(--hce-trait); }
.hce-adh .hce-adh-bouton--clair:hover { background: var(--hce-rose); color: var(--hce-rouge); border-color: var(--hce-trait); }
.hce-adh .hce-adh-lien { margin: 0; padding: 0; border: 0; background: none; color: var(--hce-rouge); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; box-shadow: none; text-align: left; }
.hce-adh .hce-adh-bouton:focus-visible, .hce-adh .hce-adh-lien:focus-visible, .hce-adh-etapes button:focus-visible { outline: 2px solid var(--hce-rouge); outline-offset: 2px; }

.hce-adh-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px -26px -18px; padding: 14px 26px; border-top: 1px solid var(--hce-trait); background: var(--huma-blanc, #fff); border-radius: 0 0 16px 16px; }
.hce-adh-statut { flex: 1; text-align: center; font-size: 13px; color: var(--hce-gris); }
.hce-adh-statut--ok { color: var(--hce-vert); }
.hce-adh-statut--erreur { color: var(--huma-alerte, #a12424); }

/* Sous les coordonnées, avant que le dossier existe : une phrase, le bouton (tout est dit sur l'accueil). */
.hce-adh-commencer { margin: 4px 0 6px; padding: 16px 18px; border-radius: 12px; background: var(--hce-rose); }
.hce-adh .hce-adh-commencer > p { margin: 0 0 12px; font-size: 14px; }
.hce-adh-commencer-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hce-adh-commencer .hce-adh-erreur { margin-top: 10px; }

/* L'accueil, avant tout champ. */
.hce-adh-accueil { padding: 30px 32px 24px; }
.hce-adh-accueil-tete { max-width: 680px; }
.hce-adh .hce-adh-accueil-sur { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hce-rouge); }
.hce-adh-accueil-tete h2 { margin: 0 0 10px; padding: 0; font-size: 26px; line-height: 1.25; color: var(--hce-texte); }
.hce-adh .hce-adh-accueil-tete p:last-child { margin: 0; font-size: 15.5px; color: var(--hce-gris); }
.hce-adh ol.hce-adh-accueil-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.hce-adh ol.hce-adh-accueil-etapes > li { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 16px; border-radius: 16px; background: var(--hce-rose); list-style: none; font-size: 13.5px; line-height: 1.45; color: var(--hce-gris); }
.hce-adh ol.hce-adh-accueil-etapes > li::before, .hce-adh ol.hce-adh-accueil-etapes > li::marker { content: none; }
.hce-adh-accueil-etapes strong { font-size: 15px; color: var(--hce-texte); }
.hce-adh-accueil-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 6px; border-radius: 50%; background: var(--hce-rouge); color: var(--huma-blanc, #fff); font-size: 14px; font-weight: 700; }
.hce-adh-accueil-pieces { padding: 18px 20px; border: 1px solid var(--hce-trait); border-radius: 16px; }
.hce-adh-accueil-pieces h3 { margin: 0 0 2px; padding: 0; font-size: 16px; color: var(--hce-texte); }
.hce-adh-accueil-pieces .hce-adh-aide { margin: 0 0 12px; }
.hce-adh .hce-adh-accueil-pieces ul { columns: 2; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.hce-adh .hce-adh-accueil-pieces li { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; break-inside: avoid; font-size: 14px; line-height: 1.4; }
.hce-adh .hce-adh-accueil-pieces li::before { content: none; }
.hce-adh-accueil-icone { flex: none; display: inline-flex; margin-top: 1px; color: var(--hce-rouge); }
.hce-adh-accueil-icone svg { width: 17px; height: 17px; }
.hce-adh-accueil-action { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 26px 0 6px; }
.hce-adh .hce-adh-bouton--grand { padding: 14px 30px; font-size: 16px; }
.hce-adh .hce-adh-accueil-rgpd { max-width: 640px; margin: 18px auto 0; font-size: 12.5px; line-height: 1.5; color: var(--hce-gris); text-align: center; }
.hce-adh-accueil-rgpd a { color: var(--hce-rouge); }

/* L'engagement sur l'honneur : une case en évidence, sur fond doux. */
.hce-adh .hce-adh-case--engagement { padding: 12px 14px; border: 1px solid var(--hce-trait); border-radius: 12px; background: var(--huma-doux, #f5f3f3); font-weight: 400; line-height: 1.45; }

/* Sans particuliers, l'attestation de médiation reste là, en retrait. */
.hce-adh-piece--attenuee { opacity: .55; transition: opacity .15s; }
.hce-adh-piece--attenuee:hover, .hce-adh-piece--attenuee:focus-within, .hce-adh-piece--attenuee.hce-adh-piece--survol { opacity: 1; }
.hce-adh-piece--attenuee .hce-adh-requis { display: none; }
.hce-adh-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hce-adh-renvoi { margin-top: 10px; }
.hce-adh-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
.hce-adh-ligne input { flex: 1 1 240px; width: auto !important; }

/* Les pièces */
/* Le bilan, en fin de liste : un compteur (« 5 / 7 ») ou une coche, et ce qu'il reste à faire. */
.hce-adh .hce-adh-bilan { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 14px 18px; border: 1px solid var(--huma-attente-trait, #ecd59e); border-radius: 16px; background: var(--huma-attente-fond, #fbf1d9); color: var(--hce-ambre); font-size: 14px; line-height: 1.45; }
.hce-adh .hce-adh-bilan--ok { border-color: var(--huma-ok-trait, #c3dfcb); background: var(--huma-ok-fond, #e7f3ea); color: var(--hce-vert); }
.hce-adh-bilan > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hce-adh-bilan strong { font-size: 15px; }
.hce-adh-bilan-compte { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--huma-blanc, #fff); box-shadow: inset 0 0 0 1px currentColor; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hce-adh-bilan-icone { flex: none; display: inline-flex; }
.hce-adh-bilan-icone svg { width: 30px; height: 30px; }
.hce-adh-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hce-adh-piece { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--hce-trait); border-radius: 16px; background: var(--huma-blanc, #fff); transition: border-color .15s, background-color .15s; }
.hce-adh-piece .hce-adh-libelle { margin: 0; }
.hce-adh-piece .hce-adh-aide { margin: 0; }
.hce-adh-piece--ok { border-color: var(--huma-ok-trait, #c3dfcb); background: var(--huma-blanc, #fff); }

/* La zone de dépose, comme celle des factures : le champ reste un vrai <input type="file">, caché derrière. */
.hce-adh-depot { position: relative; margin-top: auto; }
.hce-adh-depot-input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; overflow: hidden; }
.hce-adh label.hce-adh-depot-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 124px; margin: 0; padding: 16px; border: 2px dashed var(--huma-rouge-trait, #ecd6d6); border-radius: 12px; background: var(--huma-doux, #f5f3f3); color: var(--hce-gris); text-align: center; font-weight: 400; line-height: 1.35; cursor: pointer; transition: border-color .15s, background-color .15s; }
.hce-adh-depot-icone { display: inline-flex; color: var(--hce-rouge); }
.hce-adh-depot-icone svg { width: 32px; height: 32px; }
.hce-adh-depot-zone strong { font-size: 14.5px; color: var(--hce-texte); }
.hce-adh-depot-zone > span:not(.hce-adh-depot-icone) { font-size: 12.5px; }
.hce-adh label.hce-adh-depot-zone:hover, .hce-adh-piece--survol label.hce-adh-depot-zone { border-color: var(--hce-rouge); background: var(--hce-rose); }
.hce-adh-depot-input:focus-visible + label.hce-adh-depot-zone { outline: 2px solid var(--hce-rouge); outline-offset: 2px; }
.hce-adh-piece--envoi label.hce-adh-depot-zone { opacity: .55; pointer-events: none; }

/* Déposée : la carte passe au vert, la zone se fait discrète et ne sert plus qu'à remplacer. */
.hce-adh-depose { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hce-vert); }
.hce-adh-depose-icone { display: inline-flex; flex: none; }
.hce-adh-depose-icone svg { width: 20px; height: 20px; }
.hce-adh-depose-nom { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hce-adh-depose .hce-adh-lien { flex: none; font-size: 13px; }
.hce-adh-piece--ok label.hce-adh-depot-zone { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; min-height: 0; padding: 9px 14px; border-width: 1px; border-color: var(--huma-ok-trait, #c3dfcb); background: var(--huma-blanc, #fff); }
.hce-adh-piece--ok .hce-adh-depot-icone svg { width: 18px; height: 18px; }
.hce-adh-piece--ok .hce-adh-depot-zone strong { font-size: 13px; color: var(--hce-rouge); }
.hce-adh-piece--ok.hce-adh-piece--survol label.hce-adh-depot-zone, .hce-adh-piece--ok label.hce-adh-depot-zone:hover { border-style: dashed; border-color: var(--hce-rouge); background: var(--hce-rose); }
.hce-adh-barre { height: 6px; margin: 8px 0 0; border-radius: 999px; background: var(--hce-trait); overflow: hidden; }
.hce-adh-barre span { display: block; height: 100%; width: 0; background: var(--hce-rouge); transition: width .2s; }

/* La relecture */
.hce-adh-manque { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--huma-attente-fond, #fbf1d9); color: var(--hce-ambre); }
.hce-adh-manque p { margin: 0 0 6px; font-weight: 700; }
.hce-adh-manque ul { margin: 0; padding: 0 0 0 18px; }
.hce-adh-manque li { margin: 0 0 4px; }
.hce-adh-recap { margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--hce-trait); border-radius: 12px; }
.hce-adh-recap-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.hce-adh-recap h3 { margin: 0; padding: 0; font-size: 16px; color: var(--hce-rouge); }
.hce-adh-recap dl { display: grid; grid-template-columns: minmax(160px, 38%) 1fr; gap: 6px 16px; margin: 0; }
.hce-adh-recap dt { margin: 0; font-size: 13px; color: var(--hce-gris); }
.hce-adh-recap dd { margin: 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.hce-adh-recap .hce-adh-vide { color: var(--huma-encre-3, #6e6666); }
.hce-adh ul.hce-adh-recap-pieces { margin: 0; padding: 0; list-style: none; }
.hce-adh-recap-pieces li { margin: 0 0 4px; padding: 0; font-size: 14px; list-style: none; }
.hce-adh-recap-pieces li::before { content: none; }
.hce-adh-oui { color: var(--hce-vert); }
.hce-adh-non { color: var(--hce-gris); }
.hce-adh-confirmer { margin: 18px 0 4px; padding: 16px 18px; border-radius: 12px; background: var(--hce-rose); }
.hce-adh-case { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-weight: 600; cursor: pointer; }
.hce-adh-case input { margin: 3px 0 0; accent-color: var(--hce-rouge); }
.hce-adh-fin h2 { margin: 0 0 8px; color: var(--hce-vert); font-size: 22px; }
.hce-adh-fin p { margin: 0; }
.hce-adh-fin--supprime h2 { color: var(--hce-texte); }
.hce-adh-fin .hce-adh-bouton { margin-top: 16px; }

/* Renoncer : un lien discret sous le formulaire, une confirmation sur place qui dit ce qui va disparaître. */
.hce-adh-supprimer { margin: 14px 0 0; font-size: 13.5px; color: var(--hce-gris); text-align: center; }
.hce-adh .hce-adh-supprimer-ligne { margin: 0; }
.hce-adh .hce-adh-supprimer-ligne .hce-adh-lien { color: var(--hce-gris); }
.hce-adh-supprimer-boite { max-width: 560px; margin: 10px auto 0; padding: 16px 18px; border: 1px solid var(--huma-alerte-trait, #efc6c6); border-radius: 16px; background: var(--huma-rouge-pale, #f7eded); color: var(--hce-texte); font-size: 14px; text-align: left; }
.hce-adh-supprimer-boite p { margin: 0 0 8px; }
.hce-adh-supprimer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.hce-adh .hce-adh-bouton--danger { background: var(--huma-alerte, #a12424); border-color: var(--huma-alerte, #a12424); color: var(--huma-blanc, #fff); }
.hce-adh .hce-adh-bouton--danger:hover { background: var(--huma-rouge, #8b2d2d); border-color: var(--huma-rouge, #8b2d2d); color: var(--huma-blanc, #fff); }

/* Le recadrage de la photo : la fenêtre est posée sur <body>, hors de .hce-adh, d'où ses propres couleurs. */
.hce-adh-modale { --hce-gris: var(--huma-encre-2, #5f5757); --hce-texte: var(--huma-encre, #302b2b); color: var(--huma-encre, #302b2b); font-size: 15px; line-height: 1.5; }
.hce-adh-modale *, .hce-adh-modale *::before, .hce-adh-modale *::after { box-sizing: border-box; }
.hce-adh-modale { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .6); }
.hce-adh-modale-boite { width: 100%; max-width: 520px; padding: 22px; border-radius: 16px; background: var(--huma-blanc, #fff); box-shadow: var(--huma-ombre-haute, 0 12px 32px -12px rgba(48, 30, 30, .30)); }
.hce-adh-modale-boite h3 { margin: 0 0 6px; padding: 0; font-size: 18px; color: var(--hce-texte); }
/* Hauteur fixe : le cadre de Cropper.js prend la taille de son conteneur, qui ne doit pas changer quand l'indicateur s'en va. */
.hce-adh-modale-image { position: relative; height: min(52vh, 420px); overflow: hidden; border-radius: 8px; background: var(--huma-neutre-fond, #f1eeee); }
.hce-adh-modale-image img { display: block; max-width: 100%; }
.hce-adh-modale-image img.hce-adh-modale-source { display: none; }
.hce-adh-modale-attente { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: var(--hce-gris); font-size: 14px; text-align: center; }
.hce-adh-roue { width: 32px; height: 32px; border: 3px solid var(--huma-trait, #e4dede); border-top-color: var(--huma-rouge, #8b2d2d); border-radius: 50%; animation: hce-adh-tour .8s linear infinite; }
@keyframes hce-adh-tour { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hce-adh-roue { animation-duration: 2.4s; } }
.hce-adh-modale [hidden] { display: none !important; }
.hce-adh-modale .hce-adh-bouton:disabled { opacity: .6; cursor: default; }
.hce-adh-modale-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.hce-adh-modale .hce-adh-bouton { display: inline-flex; padding: 9px 18px; border: 1px solid var(--huma-rouge, #8b2d2d); border-radius: 999px; background: var(--huma-rouge, #8b2d2d); color: var(--huma-blanc, #fff); font: inherit; font-weight: 700; cursor: pointer; }
.hce-adh-modale .hce-adh-bouton--clair { background: var(--huma-blanc, #fff); color: var(--huma-rouge, #8b2d2d); border-color: var(--huma-trait, #e4dede); }

@media (max-width: 640px) {
    .hce-adh-cadre { padding: 16px 16px 14px; border-radius: 12px; }
    .hce-adh-corps { grid-template-columns: 1fr; }
    .hce-adh-pieces { grid-template-columns: 1fr; }
    .hce-adh-accueil { padding: 20px 18px 18px; }
    .hce-adh-accueil-tete h2 { font-size: 22px; }
    .hce-adh ol.hce-adh-accueil-etapes { grid-template-columns: 1fr; }
    .hce-adh .hce-adh-accueil-pieces ul { columns: 1; }
    .hce-adh-etape-t { display: none; }
    .hce-adh-etape--active .hce-adh-etape-t { display: block; }
    .hce-adh-pied { margin: 8px -16px -14px; padding: 12px 16px; }
    .hce-adh-statut { display: none; }
    .hce-adh-recap dl { grid-template-columns: 1fr; gap: 2px; }
    .hce-adh-recap dd { margin-bottom: 8px; }
}
