/* L'audit SEO par Kap : la page /audit-seo et le bandeau de l'accueil. Même vocabulaire que c.css (planches,
   panneaux encre, étiquettes mono). L'orange n'apparaît que sur la marque de Kap, qui appartient à Propul AI :
   ces éléments portent data-branche="ai", comme le prévoit la charte. */

/* ---------- La marque de Kap ---------- */
.au-kap, .ka-kap { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9375rem; color: var(--texte-2-sombre); }
.au-kap b, .ka-kap b { color: #fff; font-weight: 600; }
.au-kap a, .ka-kap a { color: #fff; text-decoration: underline; text-decoration-color: var(--orange-vif); text-underline-offset: 0.3em; }
.au-kap-k { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 4px; background: var(--orange-texte); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.ph-cart .au-cart-kap { color: color-mix(in srgb, var(--orange-vif) 70%, white); }

/* ---------- La scène de la page ---------- */
.au-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.2vw, 4rem); align-items: start; }
.au-texte { display: grid; gap: clamp(0.9rem, 1.4vw, 1.35rem); justify-items: start; padding-top: clamp(0.5rem, 2vw, 2.5rem); }
.au h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 1.15rem + 2.2vw, 3.6rem); line-height: 1.06; letter-spacing: -0.012em; text-wrap: balance; }
.au h1 em { display: block; }
.au-chapo { max-width: 34em; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); color: var(--texte-2-sombre); }
.au-temps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin-top: clamp(0.5rem, 1.5vw, 1.5rem); border-top: 1px solid var(--trait-nuit); }
.au-temps li { padding: 0.7rem 0.6rem 0 0; border-top: 2px solid transparent; margin-top: -1px; font-size: 0.875rem; line-height: 1.35; color: var(--texte-2-sombre); }
.au-temps li span { display: block; margin-bottom: 0.2rem; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.14em; color: var(--vc); }
.au-temps li[data-actif] { border-top-color: var(--vc); color: #fff; font-weight: 600; }
.au-temps li[data-fait] { border-top-color: var(--vm); }

/* La feuille : le formulaire, puis l'aperçu, puis les coordonnées, puis la confirmation. */
.au-feuille { color: var(--encre); background: var(--fond); border-radius: var(--r-carte); padding: clamp(1.1rem, 2vw, 2rem); box-shadow: var(--shadow-flottant); min-height: 24rem; }
.au-feuille :focus-visible { outline-color: var(--violet); }
.au-feuille em { color: var(--violet); }
.au-feuille-t { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.8rem; margin-bottom: 1.1rem; border-bottom: 2px solid var(--encre); font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.au-feuille-t b { font-weight: 500; color: var(--violet); }
.au-feuille-t span b { color: var(--encre); letter-spacing: 0.04em; text-transform: none; }
.au-form { display: grid; gap: 0.9rem; }
.au-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.au-champ { display: grid; gap: 0.35rem; align-content: start; }
.au-champ label { font-weight: 600; font-size: 0.9063rem; }
.au-champ label small, .au-case small { font-weight: 400; font-size: 0.8125rem; color: var(--texte-2); }
.au-champ input { width: 100%; min-height: 2.9rem; padding: 0.6rem 0.8rem; border: 1px solid color-mix(in srgb, var(--encre) 34%, white); border-radius: var(--r-champ); background: var(--fond); color: var(--encre); font: inherit; }
.au-champ input::placeholder { color: var(--texte-2); opacity: 1; }
.au-champ input:hover { border-color: var(--encre); }
.au-champ input:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.au-champ input[aria-invalid="true"] { border-color: var(--erreur); }
.au-err { font-size: 0.8438rem; font-weight: 500; color: var(--erreur); }
.au-err:empty { display: none; }
.au-err-g { padding: 0.7rem 0.8rem; border: 1px solid color-mix(in srgb, var(--erreur) 30%, white); border-radius: var(--r-champ); background: color-mix(in srgb, var(--erreur) 6%, white); }
.au-envoi { width: 100%; min-height: 3.2rem; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
.au-feuille .btn-plein { background: var(--violet); color: #fff; }
.au-feuille .btn-plein:hover { background: var(--accent-hover); }
.au-envoi[disabled] { opacity: 0.6; cursor: progress; }
.au-note, .au-nojs { font-size: 0.8438rem; color: var(--texte-2); }
.au-note a, .au-nojs a { color: var(--violet); font-weight: 600; }
.au-piege { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.au-case { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.65rem; align-items: start; font-size: 0.9063rem; line-height: 1.45; cursor: pointer; }
.au-case input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--violet); }
.au-retour { justify-self: start; padding: 0.3rem 0; border: 0; background: none; color: var(--texte-2); font: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; cursor: pointer; }
.au-retour:hover { color: var(--violet); }

/* L'attente : une mosaïque qui se remplit pendant que Kap lit le site. */
.au-attente { display: grid; gap: 0.9rem; }
.au-scan { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-block: 0.5rem; }
.au-scan i { aspect-ratio: 1; background: var(--violet-fond); border-radius: 1px; }
.au-scan i:nth-child(5n + 2) { background: var(--violet); }
.au-scan i:nth-child(7n + 3) { background: var(--encre); }
.au-attente-t { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; }
@media (prefers-reduced-motion: no-preference) {
  .au-scan i { animation: au-scan 1500ms var(--d) ease-in-out infinite alternate; }
  @keyframes au-scan { from { opacity: 0.2; transform: scale(0.7); } to { opacity: 1; transform: none; } }
  .au-jauge i { animation: au-pose 320ms var(--d) var(--ease-out) both; }
  @keyframes au-pose { from { opacity: 0; transform: scale(0.3); } }
}

/* L'aperçu. */
.au-apercu, .au-envoye { display: grid; gap: 1rem; }
.au-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.au-score { padding: 0.9rem 1rem 1rem; border: 1px solid var(--filet); border-radius: var(--r-carte); }
.au-score-t { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); }
.au-score-n { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.3rem; }
.au-score-n b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 3vw, 3rem); line-height: 1; color: var(--violet); }
.au-score-n b.au-non-mesure { font-size: 1.5rem; color: var(--encre); }
.au-score-n span { font-size: 0.9375rem; font-weight: 600; color: var(--texte-2); }
.au-jauge { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; margin-top: 0.7rem; }
.au-jauge i { aspect-ratio: 1; background: var(--filet); border-radius: 1px; }
.au-jauge i.on { background: var(--violet); }
.au-verdict { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.3; }
.au-constat { color: var(--texte-2); }
.au-verdict:empty, .au-constat:empty, .au-mention:empty { display: none; }
.au-sur { margin-bottom: 0.5rem; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); }
.au-plan ol { display: grid; gap: 0.4rem; counter-reset: au; }
.au-plan li { counter-increment: au; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.5rem; padding: 0.55rem 0.7rem; border: 1px solid var(--violet-filet); border-radius: 6px; background: var(--violet-fond); font-size: 0.9375rem; line-height: 1.45; }
.au-plan li::before { content: counter(au, decimal-leading-zero); font: 500 0.75rem/1.9 var(--font-mono); color: var(--violet); }
.au-verrou { padding: 0.9rem 1rem; border: 1px dashed color-mix(in srgb, var(--encre) 40%, white); border-radius: var(--r-carte); }
.au-verrou ul { display: grid; gap: 0.35rem; }
.au-verrou li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 0.65rem; align-items: baseline; font-size: 0.9375rem; }
.au-verrou li i { width: 10px; height: 10px; border: 1.5px solid var(--violet); transform: translateY(1px); }
.au-mention { font-size: 0.8125rem; line-height: 1.5; color: var(--texte-2); }
.au-envoye h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1.15; }
.au-envoye h2:focus { outline: none; }
.au-envoye p { max-width: 34em; }
.au-envoye .actions { margin-top: 0.4rem; }

@media (max-width: 1040px) {
  .au-g { grid-template-columns: minmax(0, 1fr); }
  .au-texte { padding-top: 0; }
}
@media (max-width: 560px) {
  .au-deux, .au-scores { grid-template-columns: minmax(0, 1fr); }
  .au-temps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.6rem; }
  .au-temps li:not([data-actif]) { font-size: 0.8125rem; }
}

/* ---------- Ce que l'audit mesure ---------- */
.am-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 3rem); align-items: start; }
.am-bloc { grid-column: span 4; display: grid; gap: 0.7rem; padding-top: 1rem; border-top: 2px solid var(--encre); }
.am-bloc h3 { font-size: clamp(1.4rem, 1.9vw, 1.9rem); }
.am-bloc p:not(.et) { max-width: 44ch; color: var(--texte-2); }
.am-regle { grid-column: span 4; padding: clamp(1rem, 1.8vw, 1.75rem); border: 1px solid var(--violet-filet); border-radius: var(--r-carte); background: var(--violet-fond); }
.am-regle-t { margin-bottom: 0.5rem; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
@media (max-width: 1040px) { .am-bloc { grid-column: span 6; } .am-regle { grid-column: span 12; } }
@media (max-width: 680px) { .am-bloc { grid-column: span 12; } }

/* ---------- Ce que vous recevez ---------- */
.ar-g { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 4rem); align-items: stretch; }
.ar-texte > p { margin-top: 0.9rem; max-width: 52ch; color: var(--texte-2); font-size: 1.0625rem; }
.ar-liste { margin-top: clamp(1.25rem, 2vw, 2rem); border-top: 2px solid var(--encre); }
.ar-liste li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.3rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--filet); background: var(--fond); }
.ar-liste b { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.ar-liste span { color: var(--texte-2); }
.ar-limite { display: grid; gap: 0.8rem; align-content: start; }
.ar-limite h3 { font-size: clamp(1.5rem, 2.1vw, 2.1rem); }
.ar-limite p:not(.et) { color: var(--texte-2-sombre); }
.ar-limite .ar-ia { padding-top: 0.8rem; border-top: 1px solid var(--trait-nuit); font-size: 0.875rem; }
.ar-limite .lien { justify-self: start; }
@media (max-width: 900px) { .ar-g { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ar-liste li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Le bandeau de l'accueil : lancer l'audit depuis la planche du référencement ---------- */
.ka { margin-top: clamp(1rem, 1.5vw, 1.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 4rem); align-items: center; }
.ka-texte { display: grid; gap: 0.8rem; justify-items: start; }
.pl .ka h3 { font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.5rem); line-height: 1.12; text-wrap: balance; }
.ka-texte > p:not(.et):not(.ka-kap) { max-width: 46ch; color: var(--texte-2-sombre); }
.ka-form { display: grid; gap: 0.6rem; padding: clamp(1rem, 1.8vw, 1.75rem); background: var(--fond); color: var(--encre); border-radius: var(--r-carte); }
.ka-form label { font-weight: 600; font-size: 0.9063rem; }
.ka-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; }
.ka-ligne input { min-width: 0; min-height: 3.1rem; padding: 0.6rem 0.8rem; border: 1px solid color-mix(in srgb, var(--encre) 34%, white); border-radius: var(--r-champ); background: var(--fond); color: var(--encre); font: inherit; }
.ka-ligne input::placeholder { color: var(--texte-2); opacity: 1; }
.ka-ligne input:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.ka-form .btn { min-height: 3.1rem; border: 0; cursor: pointer; font-family: inherit; background: var(--violet); color: #fff; }
.ka-form .btn:hover { background: var(--accent-hover); }
.ka-form p { font-size: 0.8438rem; color: var(--texte-2); }
@media (max-width: 900px) { .ka { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .ka-ligne { grid-template-columns: minmax(0, 1fr); } }
.au-feuille-t > b { flex: none; white-space: nowrap; }
.au-envoi { hyphens: none; }
.au-envoi, .btn { word-break: keep-all; }

/* ---------- Le journal de Kap : l'audit commenté étape par étape ---------- */
.au-journal { display: grid; gap: 1rem; }
.au-kap-dit { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.8rem 0.9rem; border-radius: var(--r-carte); background: color-mix(in srgb, var(--orange-vif) 6%, white); border: 1px solid color-mix(in srgb, var(--orange-vif) 22%, white); font-size: 0.9688rem; line-height: 1.5; }
.au-kap-dit > span:last-child { padding-top: 0.2rem; }
.au-etapes { display: grid; gap: 0; counter-reset: none; }
.au-etape { position: relative; padding: 0.85rem 0 0.9rem 1.6rem; border-top: 1px solid var(--filet); }
.au-etape::before { content: ""; position: absolute; left: 0.3rem; top: 1.25rem; bottom: -0.2rem; width: 2px; background: var(--filet); }
.au-etape:last-child::before { display: none; }
.au-etape-t { display: flex; align-items: baseline; gap: 0.6rem; }
.au-etape-n { position: absolute; left: 0; top: 1rem; width: 0.8rem; height: 0.8rem; border-radius: 1px; background: var(--filet); font-size: 0; }
.au-etape[data-etat="en-cours"] .au-etape-n { background: var(--violet); }
.au-etape[data-etat="fait"] .au-etape-n { background: var(--encre); }
.au-etape-t b { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.au-etape-etat { margin-left: auto; font: 500 0.75rem/1.4 var(--font-mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); white-space: nowrap; }
.au-etape[data-etat="en-cours"] .au-etape-etat::before { content: "En cours"; }
.au-etape[data-etat="fait"] .au-etape-etat::before { content: "Fait"; color: var(--texte-2); }
.au-etape[data-etat="saute"] .au-etape-etat::before { content: "Non faite"; color: var(--texte-2); }
.au-etape-x { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.5; color: var(--texte-2); }
.au-constats { display: grid; gap: 0.35rem; margin-top: 0.55rem; }
.au-constats:empty { display: none; }
.au-constats li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; font-size: 0.9063rem; line-height: 1.45; }
.au-marque { justify-self: start; padding: 0.05rem 0.4rem; border-radius: 3px; font: 500 0.75rem/1.5 var(--font-mono); letter-spacing: 0.04em; white-space: nowrap; }
.au-constats li[data-ok="oui"] .au-marque { background: var(--ok-fond); color: var(--ok); }
.au-constats li[data-ok="non"] .au-marque { background: color-mix(in srgb, var(--erreur) 8%, white); color: var(--erreur); }
.au-constats li[data-ok="info"] .au-marque { background: var(--violet-fond); color: var(--violet); }
.au-journal-fin { display: grid; gap: 0.9rem; }
.au-journal-fin[hidden] { display: none; }
.au-liens { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .au-etape { animation: au-entre 420ms var(--ease-out) both; }
  .au-constats li { animation: au-entre 320ms var(--ease-out) both; }
  @keyframes au-entre { from { opacity: 0; transform: translateY(6px); } }
  .au-etape[data-etat="en-cours"] .au-etape-n { animation: au-pouls 1100ms ease-in-out infinite alternate; }
  @keyframes au-pouls { from { opacity: 0.35; } }
}
@media (max-width: 560px) { .au-constats li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }

/* Ce que Kap fait ensuite, sur la confirmation. */
.au-ensuite { display: grid; gap: 0.7rem; }
.au-ensuite ol { display: grid; gap: 0.5rem; counter-reset: en; }
.au-ensuite li { counter-increment: en; display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0.4rem; font-size: 0.9375rem; line-height: 1.5; }
.au-ensuite li::before { content: counter(en, decimal-leading-zero); font: 500 0.75rem/1.9 var(--font-mono); color: var(--violet); }
.au-ensuite b { font-weight: 600; }

/* =====================================================================================================
   L'atelier plein écran (demande d'Étienne, 14/11/2026) : de l'aperçu jusqu'aux coordonnées, la page ne défile
   plus. La feuille couvre l'écran ; chaque étape tient dans la hauteur ; le bouton d'action reste en bas.
   Si un écran est vraiment trop court, seule la zone centrale défile, jamais la page.
   ===================================================================================================== */
.au-barre { display: none; }
html.au-plein, html.au-plein body { overflow: hidden; overscroll-behavior: none; }
html.au-plein .au-feuille {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  min-height: 0; height: 100dvh; padding: 0; border-radius: 0; box-shadow: none;
  background-color: var(--fond);
  background-image: linear-gradient(var(--grille) 1px, transparent 1px), linear-gradient(90deg, var(--grille) 1px, transparent 1px);
  background-size: 48px 48px;
}
html.au-plein .au-barre {
  display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem); flex: none;
  padding: 0.7rem clamp(16px, 3.6vw, 72px); background: var(--encre); color: #fff;
}
.au-barre-m { display: flex; align-items: baseline; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.au-barre-m span { color: var(--vc); }
.au-barre-m small { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--orange-vif) 70%, white); }
.au-barre-t { display: flex; gap: 0.35rem; margin-inline: auto; }
.au-barre-t li { padding: 0.35rem 0.7rem; border-radius: 4px; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-2-sombre); white-space: nowrap; }
.au-barre-t li[data-fait] { color: #fff; }
.au-barre-t li[data-fait]::before { content: "✓ "; color: var(--vc); }
.au-barre-t li[data-actif] { background: var(--vc); color: var(--encre); }
.au-barre-q { flex: none; padding: 0.45rem 0.8rem; border: 1px solid var(--trait-nuit); border-radius: var(--r-bouton); background: none; color: #fff; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.au-barre-q:hover { border-color: #fff; }
html.au-plein .au-feuille .au-barre-q:focus-visible { outline-color: #fff; }

/* La zone de travail : une colonne centrée qui prend toute la hauteur restante. */
html.au-plein [data-au-zone] { flex: 1; min-height: 0; display: flex; width: min(100% - 2 * clamp(16px, 3.6vw, 72px), 1120px); margin-inline: auto; padding-block: clamp(0.75rem, 2.2vh, 1.75rem); }
html.au-plein [data-au-zone] > * {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: clamp(0.6rem, 1.6vh, 1rem);
  padding: clamp(1rem, 2.4vh, 1.75rem) clamp(1rem, 2.2vw, 2rem) 0;
  background: var(--fond); border: 1px solid var(--filet); border-radius: var(--r-carte); box-shadow: var(--shadow-flottant);
}
html.au-plein .au-feuille-t { margin-bottom: 0; }
/* Le bouton d'action reste collé en bas de la carte, toujours visible. */
html.au-plein [data-au-zone] .au-envoi,
html.au-plein .au-journal-fin,
html.au-plein .au-envoye .actions {
  position: sticky; bottom: 0; z-index: 1; margin-top: auto; flex: none;
  box-shadow: 0 -14px 0 var(--fond), 0 12px 0 var(--fond);
}
html.au-plein [data-au-zone] > * > :last-child { margin-bottom: clamp(1rem, 2.4vh, 1.75rem); }

/* Le journal : seule la liste des étapes défile, d'elle-même, vers la dernière ligne écrite. */
html.au-plein .au-journal { overflow: hidden; }
html.au-plein .au-etapes { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
html.au-plein .au-journal-fin { background: var(--fond); padding-top: 0.5rem; display: grid; gap: 0.7rem; }
html.au-plein .au-journal-fin[hidden] { display: none; }
/* Une étape terminée se replie en une ligne ; un clic la rouvre. */
.au-etape[data-etat="fait"]:not([data-ouvert]) .au-etape-x,
.au-etape[data-etat="fait"]:not([data-ouvert]) .au-constats { display: none; }
.au-etape[data-etat="fait"] .au-etape-t { cursor: pointer; }
.au-etape[data-etat="fait"] .au-etape-t:hover b { color: var(--violet); }
.au-etape[data-etat="fait"] .au-etape-etat::before { content: none; }
.au-etape[data-etat="fait"] .au-etape-etat { color: var(--texte-2); letter-spacing: 0.04em; text-transform: none; font-size: 0.8125rem; }
.au-etape[data-etat="fait"] .au-etape-etat::after { content: " ▾"; color: var(--violet); }
.au-etape[data-etat="fait"][data-ouvert] .au-etape-etat::after { content: " ▴"; }
html.au-plein .au-etape { padding-block: 0.6rem; }

/* L'aperçu : deux colonnes sur ordinateur (les scores et le constat, puis ce que contient le détail). */
@media (min-width: 900px) {
  html.au-plein .au-apercu { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-auto-rows: min-content; column-gap: clamp(1.25rem, 3vw, 3rem); align-content: start; }
  html.au-plein .au-apercu > .au-feuille-t { grid-column: 1 / -1; }
  html.au-plein .au-apercu > .au-scores, html.au-plein .au-apercu > .au-verdict, html.au-plein .au-apercu > .au-constat, html.au-plein .au-apercu > .au-plan { grid-column: 1; }
  html.au-plein .au-apercu > .au-verrou, html.au-plein .au-apercu > .au-envoi, html.au-plein .au-apercu > .au-mention, html.au-plein .au-apercu > .au-liens { grid-column: 2; }
  html.au-plein .au-apercu > .au-verrou { grid-row: 2 / span 2; align-self: start; }
  html.au-plein .au-apercu > .au-envoi { grid-row: 4; position: static; box-shadow: none; align-self: end; }
  html.au-plein .au-apercu > .au-mention { grid-row: 5; }
  html.au-plein .au-apercu > .au-liens { grid-row: 6; }
}
html.au-plein .au-verdict { font-size: clamp(1.05rem, 1.3vw, 1.3rem); }
html.au-plein .au-score { padding: 0.7rem 0.9rem 0.8rem; }
html.au-plein .au-score-n b { font-size: clamp(1.9rem, 4.5vh, 2.6rem); }

/* Les coordonnées et la confirmation : une colonne, plus étroite, centrée. */
html.au-plein [data-au-form-lead], html.au-plein .au-envoye { max-width: 46rem; margin-inline: auto; width: 100%; }
html.au-plein [data-au-form-lead] { gap: clamp(0.5rem, 1.3vh, 0.85rem); }
html.au-plein .au-champ input { min-height: clamp(2.5rem, 5.4vh, 2.9rem); }
html.au-plein .au-envoye .actions { background: var(--fond); padding-top: 0.6rem; }

/* Écrans courts ou étroits : on resserre. */
@media (max-width: 760px) {
  .au-barre-t { display: none; }
  html.au-plein .au-barre { justify-content: space-between; }
  html.au-plein [data-au-zone] { width: 100%; padding: 0; }
  html.au-plein [data-au-zone] > * { border: 0; border-radius: 0; box-shadow: none; padding-inline: 16px; }
  html.au-plein .au-constat, html.au-plein .au-etape-x { display: none; }
  html.au-plein .au-etape[data-ouvert] .au-etape-x { display: block; }
  html.au-plein .au-verrou li:nth-child(n + 3) { display: none; }
  html.au-plein .au-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  html.au-plein .au-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
}
@media (max-height: 760px) {
  html.au-plein .au-constat { display: none; }
  html.au-plein .au-mention { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Retouches de l'atelier (mesures du 14/11/2026) : la carte prend la hauteur de son contenu, centrée ; l'aperçu
   a deux vraies colonnes ; sur téléphone, ce qui fait doublon avec l'e-mail est retiré de l'aperçu. */
html.au-plein [data-au-zone] { align-items: center; }
html.au-plein [data-au-zone] > * { flex: 0 1 auto; max-height: 100%; width: 100%; }
html.au-plein .au-journal { height: 100%; }
.au-ap-g, .au-ap-d { display: grid; gap: clamp(0.6rem, 1.6vh, 1rem); align-content: start; }
@media (min-width: 900px) {
  html.au-plein .au-apercu { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(1.25rem, 3vw, 3rem); row-gap: 1rem; }
  html.au-plein .au-apercu > .au-feuille-t { grid-column: 1 / -1; grid-row: 1; }
  html.au-plein .au-apercu > .au-ap-g { grid-column: 1; grid-row: 2; }
  html.au-plein .au-apercu > .au-ap-d { grid-column: 2; grid-row: 2; }
  html.au-plein .au-ap-d .au-envoi { position: static; box-shadow: none; margin-top: 0.4rem; }
}
@media (max-width: 760px) {
  html.au-plein .au-ap-d .au-verrou, html.au-plein .au-ap-d .au-mention { display: none; }
  html.au-plein .au-ap-d { position: sticky; bottom: 0; margin-top: auto; background: var(--fond); padding-top: 0.5rem; }
  html.au-plein .au-ap-d .au-envoi { position: static; box-shadow: none; }
  html.au-plein .au-plan li { padding-block: 0.4rem; font-size: 0.875rem; }
  html.au-plein .au-envoye > p:nth-of-type(2) { display: none; }
  html.au-plein .au-ensuite li { font-size: 0.875rem; line-height: 1.4; }
}
@media (max-height: 700px) {
  html.au-plein .au-plan li:nth-child(3) { display: none; }
  html.au-plein .au-ensuite li > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.au-plein .au-score-t { font-size: 0.75rem; letter-spacing: 0.08em; }
}
@media (max-height: 700px) {
  html.au-plein .au-verdict { font-size: 0.9688rem; line-height: 1.35; }
  html.au-plein .au-score-n b { font-size: 1.7rem; }
  html.au-plein .au-jauge { margin-top: 0.4rem; }
  html.au-plein [data-au-zone] > * { gap: 0.5rem; padding-top: 0.75rem; }
  html.au-plein [data-au-form-lead] { gap: 0.4rem; }
  html.au-plein .au-case { font-size: 0.8438rem; line-height: 1.35; }
  html.au-plein [data-au-form-lead] .au-note { display: none; }
  html.au-plein .au-barre { padding-block: 0.5rem; }
}
@media (max-height: 700px) { html.au-plein .au-plan .au-sur { margin-bottom: 0.25rem; } html.au-plein .au-plan ol { gap: 0.3rem; } }
/* Corrections après lecture des captures : la liste des étapes ne s'étire plus, et la carte a sa propre marge basse. */
html.au-plein .au-etapes { align-content: start; grid-auto-rows: min-content; }
html.au-plein [data-au-zone] > * { padding-bottom: clamp(1rem, 2.4vh, 1.75rem); }
html.au-plein [data-au-zone] > * > :last-child { margin-bottom: 0; }
html.au-plein .au-journal { height: auto; }
/* La carte reste ancrée en haut : elle ne saute plus quand le journal s'allonge. Sur téléphone, elle occupe tout l'écran. */
html.au-plein [data-au-zone] { align-items: flex-start; padding-top: clamp(0.75rem, 4vh, 2.5rem); }
@media (max-width: 760px) {
  html.au-plein [data-au-zone] { align-items: stretch; padding-top: 0; }
  html.au-plein [data-au-zone] > * { max-height: none; height: 100%; }
}
@media (max-width: 560px) {
  .au-etape-t { flex-wrap: wrap; row-gap: 0.1rem; }
  .au-etape-etat { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 420px) {
  .au-barre-m small { display: none; }
  html.au-plein .au-barre { gap: 0.5rem; padding-inline: 16px; }
}
@media (max-height: 760px) { html.au-plein .au-journal:has(.au-journal-fin:not([hidden])) > .au-kap-dit:first-of-type { display: none; } }
@media (max-height: 760px) { html.au-plein .au-journal:has(.au-journal-fin:not([hidden])) .au-kap-dit:has([data-au-intro]) { display: none; } }
