/* ═══ Page "Diagnostic IA" (page de conversion) ═══════════════ */

/* En-tête allégé : logo, téléphone, un seul bouton */
.lean-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); padding: 8px 4px; }
.lean-tel svg { width: 18px; height: 18px; flex: none; }
.lean-tel:hover { color: var(--ink); }
.lean-cta { min-height: 42px; padding: 8px 18px; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
@media (max-width: 560px) { .lean-tel span { display: none; } .nav-in { gap: 12px; } }
/* Petits téléphones : logo, téléphone et bouton doivent tenir sans se chevaucher ni dépasser (testé de 280 à 560 px) */
@media (max-width: 380px) {
  .page-diag .brand { gap: 8px; font-size: .98rem; }
  .page-diag .brand img { width: 30px; height: 30px; }
  .lean-cta { padding-inline: 12px; font-size: .84rem; }
}
@media (max-width: 345px) { .page-diag .brand span { display: none; } }

/* Hero : accroche à gauche, diagnostic à droite */
.dhero { position: relative; padding: clamp(28px, 4vw, 64px) 0 clamp(64px, 8vw, 112px); overflow: clip; }
.dhero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px; -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 40%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 80% 90% at 75% 40%, #000 15%, transparent 72%); }
.dgrid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: "left card"; column-gap: clamp(32px, 5vw, 88px); align-items: start; }
.dleft { grid-area: left; position: sticky; top: 96px; }
.dcard { grid-area: card; }
.dextra { margin-top: 28px; }
.dhero h1 { font-size: clamp(2.1rem, 4.1vw, 3.7rem); line-height: 1.02; max-width: 17ch; }
.dhero .hero-lead { margin-top: 24px; }
.dticks { display: grid; gap: 12px; margin-bottom: 28px; max-width: 34em; }
.dticks li { position: relative; padding-left: 30px; font-size: 1.04rem; line-height: 1.4; }
.dticks li::before { content: ''; position: absolute; left: 3px; top: .38em; width: 12px; height: 7px; border-left: 2.5px solid var(--lime-deep); border-bottom: 2.5px solid var(--lime-deep); transform: rotate(-45deg); }
.dchips-label { font-family: var(--f-brand); font-stretch: 125%; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.dextra .chips .chip { color: var(--ink-2); background: var(--card); }

/* Carte de diagnostic */
.dcard { position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; box-shadow: 12px 12px 0 var(--lime), 12px 12px 0 1.5px var(--ink); scroll-margin-top: 92px; }
.dtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1.5px solid var(--ink); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .03em; }
.dtop b { font-weight: 500; }
.dprog { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 16px 20px 0; }
.dprog span { height: 5px; border-radius: 3px; background: var(--line-2); transition: background .3s; }
.dprog span.on { background: var(--ink); }
.dprog span.cur { background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dbody { padding: 18px 20px 14px; min-height: 440px; }
.dq { font-family: var(--f-display); font-weight: 700; font-stretch: 104%; font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.14; letter-spacing: -0.02em; margin: 6px 0 20px; }
.dq:focus, .res-h:focus { outline: none; }
.dopts { display: grid; gap: 10px; }
.dopts.c2 { grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; align-items: center; width: 100%; min-height: 54px; padding: 12px 40px 12px 16px; text-align: left; background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .15s; }
.opt::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); opacity: .35; transition: transform .2s var(--ease), opacity .2s; }
.opt:hover, .opt:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); background: var(--lime); }
.opt:hover::after, .opt:focus-visible::after { opacity: 1; transform: translate(3px, -50%) rotate(45deg); }
.opt:active { transform: translate(1px, 1px); box-shadow: none; }
.opt.sel { background: var(--lime); }
.c2 .opt { min-height: 66px; justify-content: center; text-align: center; padding: 12px 14px; }
.c2 .opt::after { display: none; }
.dfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 20px; border-top: 1.5px solid var(--ink); background: var(--paper-2); border-radius: 0 0 6px 6px; font-size: .88rem; min-height: 50px; }
.dfoot a, .dfoot button { padding-block: 11px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; color: var(--ink-2); }
.dfoot a:hover, .dfoot button:hover { color: var(--ink); text-decoration-color: var(--lime); }
.dfoot a { margin-left: auto; }

/* Résultat */
.res-k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 10px; max-width: none; }
.res-h { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; font-stretch: 100%; }
.res-sub { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }
.res-lbl { margin-top: 20px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); max-width: none; }
.mini { margin-top: 8px; padding: 4px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.mini li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: .92rem; line-height: 1.35; }
.mini .sys { min-width: 66px; margin-top: 1px; }
.res-how { margin-top: 14px; font-size: .92rem; color: var(--ink-2); }
.lead-form { margin-top: 20px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.lead-form h3 { font-size: 1.2rem; margin-bottom: 14px; }
.lead-form .field { margin-bottom: 12px; }
.lead-form .field input { background: var(--paper); }
.lead-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.lead-form .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.fine { margin-top: 10px; font-size: .78rem; line-height: 1.45; color: var(--ink-3); max-width: none; }
.form-err { margin-top: 12px; padding: 12px 14px; border: 1.5px solid oklch(0.5 0.2 27); background: oklch(0.96 0.03 27); color: oklch(0.38 0.15 27); border-radius: 4px; font-size: .9rem; }
.form-err a { text-decoration: underline; font-weight: 600; }
.ok { text-align: center; padding: 28px 0 8px; }
.ok svg { width: 56px; height: 56px; margin: 0 auto 14px; }
.ok .res-sub, .ok .res-how { margin-inline: auto; }

/* Sections sous le hero */
.blocks .link-arrow { margin-top: 14px; font-weight: 700; color: var(--ink); }
.steps.s3 { grid-template-columns: repeat(3, 1fr); }
.sec-dark .btn-lime { box-shadow: 4px 4px 0 var(--paper); }
.sec-dark .btn-lime:hover { box-shadow: 6px 6px 0 var(--paper); }
.dark-cta { margin-top: clamp(40px, 5vw, 64px); }

/* Barre collante mobile */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 18px; background: var(--lime); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; font-weight: 800; box-shadow: 4px 4px 0 var(--ink); }
.sticky-cta[hidden] { display: none !important; }
.sticky-cta svg { width: 18px; height: 18px; }

@media (max-width: 920px) {
  .dgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "card" "extra"; row-gap: 28px; }
  .dleft { display: contents; }
  .dcopy { grid-area: copy; } .dextra { grid-area: extra; margin-top: 0; }
  .dhero h1 { max-width: 20ch; }
  .dcard { max-width: 600px; }
  .steps.s3 { grid-template-columns: 1fr; row-gap: 36px; }
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  body.page-diag footer { padding-bottom: 96px; }
  .dcard { box-shadow: 8px 8px 0 var(--lime), 8px 8px 0 1.5px var(--ink); }
  .dbody { min-height: 0; }
}
@media (max-width: 440px) {
  .dopts.c2 { grid-template-columns: 1fr; }
  .c2 .opt { min-height: 54px; }
}

html:not(.js) .dopts { display: none; }
