/* Neopage — styles du site. Les jetons (couleurs, tailles, espacements) viennent de tokens.css.
   Règles de la charte : papier blanc dominant, encre pour la marque, vermillon rare,
   réglure Seyès pour les grandes zones seulement, coins nets pour les feuilles,
   ombres pleines décalées, Caveat pour l'écriture du client uniquement. */

/* Base */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-body)/var(--lh-body) var(--font-text); overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; margin-bottom: var(--sp-3); }
h3 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--sp-2); line-height: 1.2; }
p { margin: 0 0 var(--sp-3); max-width: 65ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 6px; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); font-size: var(--fs-small); }
.hand { font-family: var(--font-main); font-size: var(--fs-main); font-weight: 500; line-height: 1.15; color: var(--brand); }
.kicker { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-small); margin-bottom: var(--sp-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lien d'évitement */
.skip { position: absolute; left: 8px; top: -100px; z-index: 10; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 8px; color: var(--on-brand); }

/* Mise en page */
.wrap { max-width: var(--content); margin-inline: auto; }
.band { padding-block: clamp(48px, 7vw, 96px); padding-inline: max(5vw, 16px); }
.band + .band:not(.np-seyes):not(.band-brand):not(.band-surface) { border-top: 1px solid var(--line); }
.band-surface { background: var(--surface); }
.band-brand { background: var(--np-encre); color: #fff; }
.band-brand h2, .band-brand p { color: #fff; }
.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.section-head p:last-child { margin-bottom: 0; }
.cols { display: grid; gap: var(--sp-6); }
@media (min-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; } }
.grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Logo (SVG en ligne). Version « auto » : couleurs principales, version blanche en thème sombre. */
.logo { display: block; height: 36px; width: auto; aspect-ratio: 300 / 64; }
.logo-nom { font-family: var(--font-display); font-weight: 800; font-size: 42px; letter-spacing: -0.8px; }
.logo-coche { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo-tampon { fill: var(--np-tampon); }
.logo--auto .logo-page { fill: light-dark(#1d3fd8, #fff); }
.logo--auto .logo-coin { fill: light-dark(#8ea2ff, #c9d4ff); }
.logo--auto .logo-ligne { fill: light-dark(#fff, #1d3fd8); }
.logo--auto .logo-nom { fill: light-dark(#10142b, #fff); }
.logo--blanc .logo-page, .logo--blanc .logo-nom { fill: #fff; }
.logo--blanc .logo-coin { fill: #c9d4ff; }
.logo--blanc .logo-ligne { fill: #1d3fd8; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding-inline: max(5vw, 16px); }
.top-in { max-width: var(--content); margin-inline: auto; display: flex; align-items: center; gap: var(--sp-3) var(--sp-5); flex-wrap: wrap; padding-block: 12px; }
.top-logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.top nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.top nav li { margin: 0; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--brand); }
.top nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 719px) {
  .top { position: static; }
  .top .top-cta { display: none; }
  .top nav { order: 3; width: 100%; }
  .top nav ul { gap: 0 18px; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 700 1rem/1.2 var(--font-text); text-decoration: none; border: 2px solid var(--brand); cursor: pointer; text-align: center; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn-secondary { background: transparent; color: var(--brand); }
.btn-secondary:hover { background: var(--surface); }
.btn-white { background: #fff; color: var(--np-encre); border-color: #fff; }
.btn-white:hover { background: #e8ecff; border-color: #e8ecff; color: var(--np-encre-fonce); }
.btn-ghost-white { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: var(--sp-4); }
.band-brand :focus-visible { outline-color: #fff; }

/* Pastilles */
.badge { display: inline-block; border: 2px solid var(--accent); color: var(--accent-text); font-weight: 800; font-size: .8rem; padding: 2px 8px; border-radius: 4px; transform: rotate(-4deg); text-transform: uppercase; letter-spacing: .04em; }

/* Accueil : scène « e-mail → page publiée » */
.hero { display: grid; gap: var(--sp-6); }
.hero-head { display: grid; gap: var(--sp-4); align-items: end; }
.hero h1 { font-size: var(--fs-hero); max-width: 15ch; }
@media (min-width: 960px) { .hero-head { grid-template-columns: 1.25fr 1fr; } }
.scene { border: 1px solid var(--rule); border-radius: var(--radius-page); padding: clamp(24px, 4vw, 56px); display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 760px) { .scene { grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.2fr); } }
.phone { background: var(--np-nuit); border-radius: 28px; padding: 12px; max-width: 300px; width: 100%; justify-self: center; box-shadow: var(--shadow-page); }
.phone-in { background: #fff; color: #10142b; border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.mail-meta { font-size: var(--fs-small); color: #4a5170; border-bottom: 1px solid #dfe4f5; padding-bottom: 8px; }
.mail-meta b { color: #10142b; }
.phone .hand { color: #1d3fd8; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumb { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(160deg, #dfe7ff, #9fb2f5); }
.thumb:nth-child(2) { background: linear-gradient(160deg, #e9eefc, #c3cdf0); }
.thumb:nth-child(3) { background: linear-gradient(160deg, #f3d9cf, #e8a48f); }
.arrow { justify-self: center; text-align: center; color: var(--brand); }
.arrow svg { width: 72px; height: 40px; }
.arrow .hand { font-size: 1.5rem; }
@media (max-width: 759px) { .arrow svg { transform: rotate(90deg); } }
.sheet { position: relative; background: var(--np-papier); color: #10142b; border: 1px solid #c9d4ff; border-radius: var(--radius-page); box-shadow: var(--shadow-page); padding: 20px; display: grid; gap: 12px; }
.sheet .bar { display: flex; gap: 6px; }
.sheet .bar i { width: 9px; height: 9px; border-radius: 50%; background: #dfe4f5; }
.sheet-photo { aspect-ratio: 16 / 8; border-radius: 2px; background: linear-gradient(150deg, #e9eefc 0 40%, #b9c7f3 40% 70%, #8ea2ff 70%); }
.sheet h3 { font-size: 1.35rem; margin: 0; }
.sheet p { margin: 0; color: #4a5170; font-size: .95rem; }
.stamp { position: absolute; right: 16px; top: 44px; transform: rotate(-8deg); border: 3px solid var(--np-tampon); color: var(--np-tampon); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; padding: 4px 12px; border-radius: 6px; background: color-mix(in srgb, #fff 82%, transparent); animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) 1s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }

/* En-tête des pages intérieures : réglure + feuille blanche */
.page-head { padding-block: clamp(40px, 6vw, 80px); }
.page-head-sheet { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-page); box-shadow: var(--shadow-page); padding: clamp(24px, 4vw, 48px); max-width: 820px; }
.page-head-sheet h1 { margin-bottom: var(--sp-3); }
.page-head-sheet .lead { margin-bottom: 0; }

/* Étapes */
.steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-page); padding: var(--sp-4); margin: 0; }
.band-surface .step { background: var(--bg); }
.step-n { display: block; font-family: var(--font-main); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--brand); margin-bottom: 8px; }
.step p { margin: 0; }

/* Cartes « feuille » */
.card { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-page); box-shadow: var(--shadow-page); padding: var(--sp-4); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: var(--sp-3); }
.card-icon svg { width: 100%; height: 100%; }

/* Bloc « Bientôt » */
.soon { position: relative; border: 2px dashed var(--rule); border-radius: var(--radius-page); padding: clamp(24px, 4vw, 40px); display: grid; gap: var(--sp-4); }
@media (min-width: 820px) { .soon { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; } }
.soon .badge { margin-bottom: var(--sp-3); }
.soon-note { background: var(--surface); border-radius: var(--radius-page); padding: var(--sp-4); }
.soon-note .hand { margin: 0; }

/* Listes à coches */
.checks { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-page); box-shadow: var(--shadow-page); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: var(--sp-3) var(--sp-4) 0; font-weight: 700; }
th, td { text-align: left; vertical-align: top; padding: 14px var(--sp-4); border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); font-weight: 700; }
tbody th { font-weight: 700; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
td.neo { background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* Questions fréquentes (sans JavaScript) */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; }
.faq details { border: 1px solid var(--rule); border-radius: var(--radius-page); background: var(--bg); }
.faq summary { cursor: pointer; padding: 16px var(--sp-4); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 var(--sp-4) var(--sp-3); }

/* Contact */
.contact-card { display: grid; gap: var(--sp-3); }
.contact-line { display: flex; flex-direction: column; gap: 2px; }
.contact-line strong { font-size: 1.35rem; word-break: break-word; }
.mail-sample { border-left: 4px solid var(--brand); background: var(--surface); padding: var(--sp-3) var(--sp-4); border-radius: 0 var(--radius-page) var(--radius-page) 0; }
.mail-sample .hand { margin: 0; }

/* Texte long (pages légales) */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: var(--sp-3); }
.prose h2 { font-size: 1.5rem; margin-top: var(--sp-6); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--sp-4); }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
@media (max-width: 559px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 8px; } }

/* Pied de page */
.foot { background: var(--np-encre); color: #fff; padding: var(--sp-6) max(5vw, 16px) var(--sp-4); border-top: 1px solid rgba(255, 255, 255, .25); }
.foot a { color: #fff; }
.foot a:hover { color: #e8ecff; }
.foot :focus-visible { outline-color: #fff; }
.foot-in { display: grid; gap: var(--sp-5); }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand .logo { height: 34px; margin-bottom: var(--sp-3); }
.foot-brand p { color: #dfe4ff; max-width: 40ch; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0; }
.foot nav a, .foot-contact a { display: inline-flex; align-items: center; min-height: 36px; }
.foot-small { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: var(--sp-5); padding-top: var(--sp-3); font-size: var(--fs-small); color: #dfe4ff; }

/* Le thème sombre suit le réglage du visiteur (tokens.css) ; les aperçus de pages clients restent sur papier blanc. */
.steps-spaced { margin-top: var(--sp-6); }
