/* Cyber Greffe — feuille de style de base (sans étape de compilation). */

:root {
    --encre: #16213a;
    --encre-douce: #4a5570;
    --fond: #f6f5f1;
    --carte: #ffffff;
    --trait: #dedbd2;
    --accent: #1f5f4a;
    --accent-fonce: #164536;
    --accent-pale: #e3efe9;
    --alerte: #a3332a;
    --rayon: 10px;
    --ombre: 0 1px 2px rgba(22, 33, 58, .06);
    --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --police-titre: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--police);
    font-size: 16px;
    line-height: 1.55;
    color: var(--encre);
    background: var(--fond);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); }
a:hover { color: var(--accent-fonce); }
:focus-visible { outline: 3px solid #6aa892; outline-offset: 2px; }

.conteneur { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.etroit { max-width: 640px; }
.section { padding-block: 2.5rem 3.5rem; }
.discret { color: var(--encre-douce); font-size: .93rem; margin: 0; }
.titre-section { margin-top: 2rem; font-size: 1.1rem; font-family: var(--police); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-douce); }

/* En-tête */
.entete { background: var(--carte); border-bottom: 1px solid var(--trait); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.logo { text-decoration: none; font-family: var(--police-titre); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.logo__marque { color: var(--encre); }
.logo__greffe { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--encre); }
.nav a.actif { color: var(--accent); font-weight: 600; }
.nav form { margin: 0; }

/* Boutons */
.bouton {
    display: inline-block;
    padding: .7rem 1.2rem;
    border: 1.5px solid var(--accent);
    border-radius: var(--rayon);
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.bouton:hover { background: var(--accent-pale); color: var(--accent-fonce); }
.bouton--plein { background: var(--accent); color: #fff; }
.bouton--plein:hover { background: var(--accent-fonce); color: #fff; }
.bouton--petit { padding: .45rem .9rem; }
.nav .bouton--petit { color: var(--accent); }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--encre); cursor: pointer; }
.lien:hover { color: var(--accent); }

/* Cartes */
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.5rem; }
.bloc { margin-bottom: 1.5rem; }

/* Formulaires */
.champ { margin-bottom: 1.1rem; }
.champ label, .champ__titre { display: block; font-weight: 600; margin-bottom: .35rem; }
.champ input {
    width: 100%;
    padding: .65rem .8rem;
    border: 1.5px solid var(--trait);
    border-radius: 8px;
    font: inherit;
    color: var(--encre);
    background: #fff;
}
.champ input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-pale); }
.champ input[aria-invalid="true"] { border-color: var(--alerte); }
.champ__aide { font-size: .88rem; color: var(--encre-douce); margin: .3rem 0 0; }
.champ__erreur { font-size: .88rem; color: var(--alerte); margin: .3rem 0 0; }
.requis { color: var(--alerte); }
.case { display: inline-flex; align-items: center; gap: .5rem; font-weight: 400; cursor: pointer; }
.case--erreur { color: var(--alerte); }
.radios { display: flex; gap: 1.5rem; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
form .bouton--plein { width: 100%; margin-top: .75rem; }
.ligne-entre { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }

/* Pages d'authentification */
.auth { padding-block: 3rem; display: flex; justify-content: center; }
.auth__carte { width: min(460px, 100%); padding: 2rem; }
.auth__intro { color: var(--encre-douce); }
.auth__bas { margin: 1.25rem 0 0; text-align: center; }
.auth__note { margin: 1rem 0 0; font-size: .88rem; color: var(--encre-douce); background: var(--fond); border-radius: 8px; padding: .75rem; }

/* Alertes */
.alerte { border-radius: var(--rayon); padding: .8rem 1rem; margin-top: 1.25rem; }
.alerte--succes { background: var(--accent-pale); color: var(--accent-fonce); }

/* Accueil */
.hero { background: var(--carte); border-bottom: 1px solid var(--trait); padding-block: 3.5rem; }
.hero__grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.surtitre { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); }
.hero__texte { font-size: 1.1rem; color: var(--encre-douce); }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__actions .bouton--plein { width: auto; }
.etapes { list-style: none; counter-reset: etape; margin: 0; display: grid; gap: 1.1rem; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .75rem; }
.etapes li::before { content: counter(etape); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent-pale); color: var(--accent-fonce); font-weight: 700; display: grid; place-items: center; }
.etapes span { color: var(--encre-douce); font-size: .93rem; }
.grille-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.service h3 { margin-bottom: .25rem; }
.service__bientot { margin: 0; font-size: .85rem; color: var(--encre-douce); }

/* Espace client */
.dossier { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-decoration: none; color: inherit; margin-bottom: .75rem; padding: 1.1rem 1.4rem; }
.dossier:hover { border-color: var(--accent); }
.dossier__titre { font-weight: 600; margin: 0; }
.dossier__droite { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.vide { text-align: center; }
.pastille { display: inline-block; font-size: .8rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: #ecebe6; color: var(--encre-douce); }
.pastille--a_valider { background: #fbefd9; color: #7a4f0e; }
.pastille--paye, .pastille--transmis { background: var(--accent-pale); color: var(--accent-fonce); }
.pastille--termine { background: var(--accent); color: #fff; }
.pastille--annule { background: #f5e1df; color: var(--alerte); }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); background: var(--carte); font-size: .9rem; color: var(--encre-douce); }
.pied__ligne { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; }
.pied p { margin: 0; }
.pied__liens { display: flex; gap: 1.25rem; }
.pied a { color: var(--encre-douce); }

@media (max-width: 720px) {
    .hero__grille, .deux-colonnes { grid-template-columns: 1fr; }
    .dossier { flex-direction: column; align-items: flex-start; }
    .dossier__droite { align-items: flex-start; }
}

/* Questionnaire */
.questionnaire { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.questionnaire__etapes { position: sticky; top: 1.5rem; }
.etapier { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: etapier; }
.etapier__item { counter-increment: etapier; margin-bottom: .35rem; }
.etapier__item a { display: flex; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; text-decoration: none; color: var(--encre-douce); }
.etapier__item a::before { content: counter(etapier); flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--trait); display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--carte); }
.etapier__item.est-complete a::before { content: "✓"; background: var(--accent-pale); border-color: var(--accent); color: var(--accent-fonce); }
.etapier__item.est-courante a { background: var(--carte); color: var(--encre); font-weight: 600; box-shadow: var(--ombre); }
.etapier__item.est-courante a::before { border-color: var(--accent); color: var(--accent); }
.questionnaire__contenu .carte { padding: 1.75rem; }
.sous-titre { font-family: var(--police); font-size: 1rem; margin-top: 1.75rem; }
.champ select, .champ textarea { width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--trait); border-radius: 8px; font: inherit; color: var(--encre); background: #fff; }
.champ textarea { resize: vertical; }
.champ select:focus, .champ textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-pale); }
fieldset.champ { border: 0; padding: 0; }
.radios--colonne { flex-direction: column; gap: .5rem; }
.deux-colonnes--cp { grid-template-columns: 10rem 1fr; }
.bloc-associe { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.25rem; margin: 0 0 1.5rem; }
.bloc-associe legend { font-weight: 700; padding: 0 .4rem; }
/* Fiches associés repliables (une seule ouverte à la fois) */
.bloc-associe { padding: 0; }
.bloc-associe__entete { display: flex; align-items: center; gap: .6rem; width: 100%; background: none; border: 0; padding: 1rem 1.25rem; font: inherit; color: var(--encre); text-align: left; cursor: pointer; flex-wrap: wrap; }
.bloc-associe__entete:hover .bloc-associe__titre { color: var(--accent); }
.bloc-associe__titre { font-weight: 700; }
.bloc-associe__resume { color: var(--encre-douce); }
.bloc-associe__etat { margin-left: auto; font-size: .82rem; padding: .15rem .55rem; border-radius: 6px; background: #fbf0d9; color: #7a5208; }
.bloc-associe__etat.est-complet { background: var(--accent-pale); color: var(--accent-fonce); }
.bloc-associe__chevron::before { content: "▾"; display: inline-block; transition: transform .15s; }
.bloc-associe__corps { padding: 0 1.25rem 1.25rem; }
.bloc-associe__pied { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.bloc-associe__suivant { margin-left: auto; }
.accordeon-actif .bloc-associe:not(.est-ouverte) .bloc-associe__corps { display: none; }
.accordeon-actif .bloc-associe:not(.est-ouverte) .bloc-associe__chevron::before { transform: rotate(-90deg); }
.accordeon-actif .bloc-associe.est-ouverte { border-color: var(--accent); }
.accordeon-actif .bloc-associe.est-ouverte .bloc-associe__entete { border-bottom: 1px solid var(--trait); margin-bottom: 1rem; }
.ajout-associe { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.sous-bloc { background: var(--fond); border-radius: 8px; padding: 1rem 1rem .25rem; margin-bottom: 1rem; }
.sous-bloc__titre { font-weight: 600; font-size: .92rem; color: var(--encre-douce); margin-bottom: .6rem; }
.actions-etape { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.5rem; }
.actions-etape form { margin: 0; }
.bouton--auto, form .bouton--auto { width: auto; margin-top: 0; }
.alerte--erreur { background: #f8e6e4; color: var(--alerte); }
.alerte--attention { background: #fbf0d9; color: #7a5208; margin: 0 0 1rem; font-size: .93rem; }
.bandeau-admin { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bandeau-admin a { color: inherit; font-weight: 600; white-space: nowrap; }
.alerte--erreur ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.alerte--erreur p { margin-bottom: .25rem; }
.recap { display: grid; grid-template-columns: 10rem 1fr; gap: .6rem 1.25rem; }
.recap dt { font-weight: 600; color: var(--encre-douce); }
.recap dd { margin: 0; }
.recap ul { margin: 0; padding-left: 1.1rem; }
.service--choix { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.service--choix:hover { border-color: var(--accent); }
.service--inactif { opacity: .6; }
.service__dispo { margin: 0; font-size: .9rem; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 820px) {
    .questionnaire { grid-template-columns: 1fr; }
    .questionnaire__etapes { position: static; }
    .recap { grid-template-columns: 1fr; }
}

/* Paiement */
.tableau-prix { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.tableau-prix td { padding: .55rem 0; border-bottom: 1px solid var(--trait); }
.tableau-prix td:last-child { text-align: right; white-space: nowrap; }
.tableau-prix .remise td { color: var(--accent); }
.tableau-prix .total td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; }
.code-reduction { margin-bottom: 1.25rem; }
.code-reduction label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .93rem; }
.code-reduction__ligne { display: flex; gap: .5rem; }
.code-reduction__ligne input { flex: 1; padding: .55rem .8rem; border: 1.5px solid var(--trait); border-radius: 8px; font: inherit; text-transform: uppercase; }
.paiement-securise { margin-top: .75rem; text-align: center; }

/* Cases à cocher et boutons radio : la règle « .champ input » (largeur 100 %)
   et « .champ label » (bloc, gras) ne doivent pas s'appliquer aux choix. */
.champ .case { display: inline-flex; font-weight: 400; margin-bottom: 0; }
.champ .case input[type="radio"],
.champ .case input[type="checkbox"] {
    width: 1.1rem; height: 1.1rem; padding: 0; margin: 0; flex: none;
    accent-color: var(--accent); box-shadow: none; cursor: pointer;
}
fieldset.champ > legend { padding: 0; margin-bottom: .6rem; }

/* Choix présentés en cartes cliquables */
.radios .case {
    padding: .8rem 1rem;
    border: 1.5px solid var(--trait);
    border-radius: 8px;
    background: #fff;
    gap: .75rem;
    transition: border-color .15s, background-color .15s;
}
.radios--colonne .case { display: flex; }
.radios .case:hover { border-color: var(--accent); }
.radios .case:has(input:checked) { border-color: var(--accent); background: var(--accent-pale); font-weight: 600; }
.radios .case:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-pale); border-color: var(--accent); }
.radios:not(.radios--colonne) { flex-wrap: wrap; gap: .6rem; }

/* Choix de la forme de société : grille 2×2 de cartes */
.grille-formes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.champ .carte-forme {
    position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer;
    padding: .9rem 1rem; border: 1.5px solid var(--trait); border-radius: 8px; background: #fff;
    transition: border-color .15s, background-color .15s;
}
.champ .carte-forme input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.carte-forme__sigle { display: block; font-size: 1.15rem; font-weight: 700; color: var(--encre); }
.carte-forme__texte { display: block; font-size: .88rem; color: var(--encre-douce); margin-top: .2rem; }
.carte-forme:hover { border-color: var(--accent); }
.carte-forme:has(input:checked) { border-color: var(--accent); background: var(--accent-pale); }
.carte-forme:has(input:checked) .carte-forme__sigle { color: var(--accent); }
.carte-forme:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-pale); border-color: var(--accent); }
@media (max-width: 560px) { .grille-formes { grid-template-columns: 1fr; } }

/* Trois champs côte à côte (ex. ville / département / pays de naissance) */
.trois-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 720px) { .trois-colonnes { grid-template-columns: 1fr; } }

/* Suppression d'un dossier non payé */
.dossier { position: relative; }
.dossier:has(.dossier__lien:focus-visible) { outline: 3px solid #6aa892; outline-offset: 2px; }
.dossier__lien:focus-visible { outline: none; }
.dossier__lien { color: inherit; text-decoration: none; }
.dossier__lien::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.dossier__supprimer { position: relative; z-index: 1; margin: 0; }
.lien-danger { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--alerte); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lien-danger:hover { color: #7d211a; }
.bouton--danger { border-color: var(--alerte); color: var(--alerte); }
.bouton--danger:hover { background: #f8e6e4; color: #7d211a; }
.bouton--danger-plein { background: var(--alerte); border-color: var(--alerte); color: #fff; }
.bouton--danger-plein:hover { background: #7d211a; color: #fff; }
.zone-suppression { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--trait); margin-top: 2.5rem; padding-top: 1.25rem; }
.zone-suppression p { margin: 0; }
.confirmation { border: 0; border-radius: var(--rayon); padding: 1.75rem; width: min(440px, 100% - 2rem); box-shadow: 0 10px 40px rgba(22,33,58,.25); color: var(--encre); }
.confirmation::backdrop { background: rgba(22, 33, 58, .45); }
.confirmation h2 { font-size: 1.25rem; }
.confirmation .actions-etape { margin-top: 1.25rem; }

/* Aides à la saisie : suggestions de communes, total des apports, clauses */
.champ { position: relative; }
.liste-auto { position: absolute; z-index: 20; left: 0; right: 0; max-height: 18rem; overflow-y: auto; border: 1px solid var(--trait); border-radius: 8px; background: var(--carte); box-shadow: 0 8px 24px rgba(22, 33, 58, .12); margin-top: .25rem; padding: .25rem 0; }
.liste-auto div { padding: .45rem .8rem; cursor: pointer; font-size: .95rem; }
.liste-auto div.sel { background: var(--accent-pale); font-weight: 600; }
.liste-auto small { color: var(--encre-douce); font-weight: 400; }
.total { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; padding: .7rem 1rem; border-radius: 8px; margin: 0 0 1.25rem; font-weight: 600; background: var(--fond); }
.total--ko { background: #f8e6e4; color: var(--alerte); }
.total--ok { background: var(--accent-pale); color: var(--accent-fonce); }
.clause { border: 1px solid var(--trait); border-radius: 8px; padding: .75rem 1rem; margin-bottom: .75rem; }
.clause > .case { font-weight: 600; }
.clause__corps { margin-top: .75rem; }
.clause__texte { font-size: .88rem; color: var(--encre-douce); max-height: 11rem; overflow-y: auto; background: var(--fond); border-radius: 6px; padding: .6rem .8rem; margin-bottom: .75rem; white-space: pre-line; }
.clause__texte p { margin: 0 0 .5rem; }
.champ--court input { max-width: 12rem; }
.liste-documents { margin: 0 0 1rem; padding-left: 1.2rem; }
.liste-documents li { margin: .3rem 0; }

/* Pièces justificatives (retour n° 7 du 27/11) */
.pieces__jauge { background: var(--fond); border-radius: 6px; height: 8px; margin: .75rem 0 .3rem; overflow: hidden; }
.pieces__jauge span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.pieces__liste { list-style: none; margin: 1rem 0 0; padding: 0; }
.piece { border-top: 1px solid var(--trait); padding: .85rem 0; }
.piece__entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.piece__libelle { font-weight: 600; }
.piece__libelle .discret { font-weight: 400; }
.piece__motif { color: var(--alerte); font-size: .9rem; margin: .35rem 0 0; }
.piece__fichiers { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.piece__fichiers li { margin: .15rem 0; }
.piece__envoi { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .6rem; }
.piece__envoi input[type="file"] { font-size: .9rem; max-width: 100%; }
.en-ligne { display: inline; margin-left: .5rem; }
.pastille--piece-a_fournir { background: #fbf0d9; color: #7a5208; white-space: nowrap; }
.pastille--piece-recue { background: #e6eef8; color: #1f4f86; white-space: nowrap; }
.pastille--piece-validee { background: var(--accent-pale); color: var(--accent-fonce); white-space: nowrap; }
.pastille--piece-refusee { background: #f8e6e4; color: var(--alerte); white-space: nowrap; }

.pieces__groupe { font-size: 1.05rem; margin: 1.5rem 0 .3rem; }
.piece__signature { margin-top: .6rem; background: #fff; border: 1px dashed var(--trait); border-radius: 8px; padding: .6rem; text-align: center; }
.piece__signature img { max-height: 90px; max-width: 100%; }

/* Listes successives (nomenclature INPI) */
.cascade__liste { display: block; width: 100%; margin-bottom: .5rem; }
.cascade__liste[hidden] { display: none; }

/* Scanner de signature intégré */
.scanner { margin-top: .75rem; }
.scanner__depart .discret { margin-top: .4rem; }
.scanner__camera { position: relative; background: #222; border-radius: 10px; overflow: hidden; line-height: 0; }
.scanner__camera video { width: 100%; height: auto; display: block; }
.scanner__cadre { position: absolute; left: 8%; top: 25%; width: 84%; height: 50%; border: 3px solid #7cffb2; border-radius: 6px; box-shadow: 0 0 0 999px rgba(0,0,0,.4); }
.scanner__consigne { position: absolute; left: 0; right: 0; bottom: .6rem; margin: 0; text-align: center; color: #fff; font-size: .85rem; line-height: 1.3; }
.scanner__actions { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: .75rem; flex-wrap: wrap; }
.scanner__apercu { background: #fff; border: 1px dashed var(--trait); border-radius: 8px; padding: .75rem; text-align: center; }
.scanner__apercu canvas { max-width: 100%; max-height: 160px; }
.piece__autres { margin-top: .75rem; font-size: .92rem; }
.piece__autres summary { cursor: pointer; color: var(--encre-douce); text-decoration: underline; text-underline-offset: 2px; }
.piece__qr { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.piece__qr svg { width: 160px; height: 160px; flex: none; background: #fff; }
.piece__qr p { flex: 1; min-width: 200px; }

/* Retour n° 1 (27/11) : choix de la forme, par groupes avec une ligne d'explication. */
.groupe-formes { margin: .4rem 0 .5rem; font-weight: 600; color: #1f5f4a; font-size: .9rem; }
.radios + .groupe-formes { margin-top: 1rem; }
.case--detail strong { font-weight: 600; }
.case__detail { display: block; font-size: .82rem; color: #667085; font-weight: 400; margin-top: .15rem; }

/* Retour n° 2 (27/11) : limites du capital variable. */
.sous-bloc--capital { margin-bottom: 1.1rem; }

/* Bulles d'aide « ? » à côté du nom des cases (remplacent les textes d'aide sous les cases). */
.bulle {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin-left: 6px; padding: 0; border-radius: 50%;
    border: 1.5px solid var(--accent); background: #fff; color: var(--accent);
    font: 700 11px/1 inherit; cursor: help; vertical-align: 1px;
}
.bulle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bulle__texte {
    display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
    width: max-content; max-width: min(280px, 80vw); z-index: 20;
    background: #1d2939; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal;
    padding: 9px 12px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); cursor: default;
}
.bulle__texte::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1d2939; }
.bulle:hover .bulle__texte, .bulle:focus .bulle__texte, .bulle.ouverte .bulle__texte { display: block; }

/* Retour du 27/11 : propriétaire du logement, bloc blanc dans le bloc « Domicile du dirigeant ». */
.sous-bloc--blanc { background: #fff; margin-top: .8rem; }

/* Retour du 30/11 : prochaines étapes une fois le dossier complet. */
.suite { border: 2px solid var(--accent); }
.suite h2 { margin-top: 0; }
.suite__etapes { list-style: none; padding: 0; margin: 1rem 0 0; }
.suite__etape { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.suite__etape:last-child { border-bottom: 0; }
.suite__etape > div { flex: 1; }
.suite__etape .discret { margin: .3rem 0 .7rem; }
.suite__etape--attente { opacity: .55; }
.suite__numero { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--trait); color: #555; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.suite__numero--actif, .suite__numero--fait { background: var(--accent); color: #fff; }
.suite__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.suite__actions form { margin: 0; }

/* Documents en pastilles carrées */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 1rem; }
.tuile { aspect-ratio: 1 / 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #dcd9cf; text-decoration: none; color: var(--encre); overflow-wrap: break-word; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tuile:hover, .tuile:focus-visible { border-color: #1f5c4a; box-shadow: 0 4px 14px rgba(22, 33, 58, .08); transform: translateY(-2px); }
.tuile__icone { width: 38px; height: 38px; border-radius: 9px; background: #e6efe9; color: #1f5c4a; display: grid; place-items: center; }
.tuile__titre { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.tuile__action { font-size: .82rem; color: #1f5c4a; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.tuile--facture { background: var(--fond); border-style: dashed; }
.tuile--facture .tuile__icone { background: #fff; }
@media (max-width: 520px) {
    .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tuile { padding: 11px; hyphens: auto; }
    .tuile__titre { font-size: .86rem; }
}
