/* ==========================================================================
   Correct IA — Direction artistique (refonte 2026)
   Feuille de style unique des pages publiques (chargée par global/header.php).
   Sommaire : 1. Variables  2. Base  3. Boutons  4. Header  5. Panneaux et fenêtres
              6. Sections et composants  7. Pages (hero, tarifs, blog, correcteur, textes)
              8. Footer  9. Animations  10. Responsive
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
    /* Identité Correct IA */
    --brand: #0d92ba;
    --brand-600: #0b7da1;
    --brand-deep: #084c60;
    --brand-night: #062f3b;
    --brand-soft: #e7f4f8;
    --brand-line: #b6e1ee;
    /* Neutres */
    --page: #f5f7f7;
    --paper: #ffffff;
    --ink: #0f1d24;
    --grey: #5d6a71;
    --dim: #95a1a7;
    --line: #e2e8ea;
    --line-strong: #d2dadd;
    --mist: #e3eff2;
    --sand: #efebe2;
    --error: #d9452b;
    --error-bg: #fff4f1;
    --error-line: #f3c7bc;
    --ok: #0b8a6a;

    --radius: 12px;
    --wrap: 1200px;
    --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--sans);
    background: var(--page);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand-line); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: 17px; color: var(--grey); max-width: 600px; }
.muted { color: var(--grey); }
.mono { font-family: var(--mono); font-size: .92em; }
.accent { color: var(--brand); }
.eyebrow {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--grey);
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    margin-bottom: 16px;
}
.eyebrow::before { content: "›"; color: var(--brand); font-size: 15px; }
mark.hl { background: linear-gradient(transparent 62%, var(--brand-line) 62%); color: inherit; }
.text-link { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-line); }
.text-link:hover { text-decoration-color: var(--brand); }

/* 3. Boutons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font: 500 14.5px var(--sans);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--brand-night); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-night); }
.btn-light:hover { background: var(--brand-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.5;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--brand-night);
    color: #fff;
    white-space: nowrap;
}
.pill-soft { background: var(--brand-soft); color: var(--brand-deep); }
.free-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--grey); }

/* 4. Header --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 247, 247, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; margin-left: 18px; }
.nav-links a { font-size: 14px; text-decoration: none; padding: 9px 12px; border-radius: 9px; color: var(--ink); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(15, 29, 36, .05); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .login { font-size: 14px; text-decoration: none; padding: 9px 12px; }
.nav-cta .btn { height: 38px; font-size: 14px; }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform .2s, opacity .2s; }
.mobile-menu { display: none; }

/* 5. Panneaux à motif topographique et fenêtres d'aperçu ------------------ */
.panel { position: relative; border-radius: 16px; overflow: hidden; background: var(--mist) url("../content/topo-mist.svg") center / cover; }
.panel.sand { background: var(--sand) url("../content/topo-sand.svg") center / cover; }
.panel.night { background: var(--brand-night) url("../content/topo-night.svg") center / cover; }
.window {
    background: var(--paper);
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(15, 29, 36, .04), 0 24px 48px -24px rgba(8, 76, 96, .28);
    overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dfe5e7; display: block; flex: none; }
.win-bar b { font-weight: 500; color: var(--ink); margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bar .right { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
/* Panneau dont la fenêtre "sort" par le bas */
.panel.stage { padding: 34px 34px 0; display: flex; align-items: flex-end; min-height: 300px; }
.panel.stage .window { width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; min-height: 236px; }
.mini { padding: 16px; font-size: 14px; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; line-height: 1.7; }
.msg.done { border-color: var(--brand-line); background: var(--brand-soft); }
.bad { text-decoration: underline wavy var(--error); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--grey); font-size: 13.5px; }
.mini-row:last-child { border: 0; }
.sent { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 13.5px; margin-top: 12px; }
.stars { color: #e8a317; letter-spacing: 2px; font-size: 12px; }
.store { display: flex; gap: 14px; align-items: center; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.store img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 6px; }
.store .add { margin-left: auto; background: #0b57d0; color: #fff; padding: 7px 14px; border-radius: 18px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.lang { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; }
.tr-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.kv .v { font-family: var(--mono); font-size: 12px; color: var(--brand-deep); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.kv .v.no { color: var(--grey); background: #eef1f2; }
.slack { display: flex; gap: 10px; padding: 8px 0; }
.slack .av { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; background: var(--brand); }
.slack .who-name { font-weight: 600; font-size: 14px; }
.slack .who-name span { font-weight: 400; color: var(--dim); font-size: 12px; margin-left: 6px; }

/* Bouton et menu de l'extension (aperçus) */
.ci-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 4px 14px -4px rgba(13, 146, 186, .45); transition: transform .2s; }
.ci-btn img { width: 24px; height: 24px; }
.ci-btn.busy img { animation: ci-spin .8s linear infinite; }
.ci-btn.press { transform: scale(.88); }
@keyframes ci-spin { to { transform: rotate(360deg); } }
.ci-menu { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(15, 29, 36, .25); padding: 6px; font-size: 13.5px; min-width: 210px; }
.ci-menu div { padding: 8px 10px; border-radius: 7px; display: flex; justify-content: space-between; gap: 16px; }
.ci-menu div.sel { background: var(--brand-soft); color: var(--brand-deep); }
.ci-menu kbd { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.menu-demo .ci-menu { margin: 10px 0 0 auto; width: 240px; }

/* Démo animée de la home (fenêtre Gmail) */
.hero-panel { margin-top: 56px; padding: 56px 56px 0; }
.hero-panel .window { max-width: 980px; margin: 0 auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.mail { display: grid; grid-template-columns: 220px 1fr; }
.mail-side { border-right: 1px solid var(--line); padding: 18px 14px; font-size: 13.5px; }
.mail-side .compose { display: inline-flex; padding: 10px 16px; border-radius: 12px; background: var(--brand-soft); font-weight: 500; margin-bottom: 16px; }
.mail-side .item { padding: 7px 10px; border-radius: 8px; color: var(--grey); display: flex; justify-content: space-between; }
.mail-side .item.on { background: #eef2f3; color: var(--ink); font-weight: 500; }
.mail-main { padding: 20px 26px 26px; min-width: 0; }
.field { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.field span:first-child { color: var(--dim); width: 42px; flex: none; }
.editor { position: relative; margin-top: 16px; min-height: 160px; border: 1px solid var(--line); border-radius: 10px; padding: 18px 64px 18px 18px; font-size: 16px; line-height: 1.75; }
.editor p { transition: opacity .35s; }
.editor .fix { background: var(--brand-soft); color: var(--brand-deep); border-radius: 4px; padding: 0 2px; transition: background 1.2s, color 1.2s; }
.editor .fix.settled { background: transparent; color: inherit; }
.editor .ci-btn { position: absolute; right: 14px; bottom: 14px; }
.editor .ci-menu { position: absolute; right: 14px; bottom: 60px; opacity: 0; transform: translateY(6px); transition: .25s; pointer-events: none; }
.editor .ci-menu.open { opacity: 1; transform: none; }
.demo-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; min-height: 30px; font-size: 13px; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--grey); opacity: 0; transform: translateY(4px); transition: .3s; }
.chip.show { opacity: 1; transform: none; }
.chip.ok { border-color: var(--brand-line); color: var(--brand-deep); background: var(--brand-soft); }
.chip.err { border-color: var(--error-line); color: var(--error); background: var(--error-bg); }
.mail-actions { display: flex; gap: 10px; margin-top: 16px; }
.mail-actions .send { background: #0b57d0; color: #fff; padding: 8px 20px; border-radius: 18px; font-size: 14px; font-weight: 500; }
.cursor { position: absolute; width: 20px; height: 20px; pointer-events: none; z-index: 5; left: 55%; top: 20%; transition: left .9s cubic-bezier(.5,0,.2,1), top .9s cubic-bezier(.5,0,.2,1); }

/* 6. Sections et composants ---------------------------------------------- */
.section { padding: 120px 0 0; }
.section-sm { padding: 72px 0 0; }
.head { max-width: 660px; margin-bottom: 48px; }
.head p { margin-top: 16px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Bande "fonctionne dans" */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.works .label { color: var(--grey); font-size: 13.5px; margin-right: 6px; }
.works .app { display: flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.works a.app:hover { color: var(--brand-deep); }
.works .app svg { width: 18px; height: 18px; }
.works .right { margin-left: auto; color: var(--grey); font-size: 13.5px; }

/* Cartes */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .tag { font-family: var(--mono); font-size: 12px; color: var(--grey); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 15px; }
.card.dark { background: var(--brand-night); color: #fff; border-color: var(--brand-night); }
.card.dark .tag { color: #8fd3e8; }
.card.dark .tag img { width: 18px; height: 18px; }
.card.dark h3 { color: #fff; }
.card.dark p { color: #b5cfd8; }
a.card { text-decoration: none; display: block; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--brand-deep); }
.card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 20px; height: 20px; }
.checks { list-style: none; margin-top: 16px; display: grid; gap: 10px; font-size: 15px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.card.dark .checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062f3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); }
.steps-line { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.steps-line span { padding: 3px 7px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--grey); }

/* Étapes illustrées (grille 2 x 2) et visuels avec légende */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 32px; }
.step-num { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--grey); margin-bottom: 14px; }
.step-num b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-night); color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 12px; }
.shot h3 { margin-top: 22px; }
.shot p { color: var(--grey); margin-top: 8px; max-width: 480px; font-size: 15.5px; }

/* Ligne de fonctionnalité : texte + visuel, en alternance */
.feature-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feature-row + .feature-row { margin-top: 112px; }
.feature-row.flip .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(28px, 3vw, 36px); }
.feature-text p { color: var(--grey); margin-top: 16px; font-size: 16.5px; }
.feature-text .checks { margin-top: 22px; }

/* Intégrations */
.integr { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.integr > div { padding: 22px; border-right: 1px solid var(--line); }
.integr > div:nth-child(3n) { border-right: 0; }
.integr > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.integr h3 { font-size: 15px; margin-bottom: 14px; }
.integr ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.integr li { display: flex; align-items: center; gap: 9px; }
.integr li a { text-decoration: none; }
.integr li a:hover { color: var(--brand-deep); text-decoration: underline; }
.integr li svg { width: 18px; height: 18px; flex: none; }
.integr .all .shortcut { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.integr .all { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--grey); font-size: 14.5px; background: #fafcfc; }
kbd.key { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--ink); background: #fff; }

/* Tableaux comparatifs */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table thead th { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--grey); background: #fafcfc; }
.table td:first-child { color: var(--grey); }
.table .us { background: rgba(13, 146, 186, .05); font-weight: 500; }
.table thead .us { color: var(--brand-deep); }
.table .yes { color: var(--ok); font-weight: 600; }
.table .no { color: var(--dim); }
.table small { display: block; color: var(--grey); font-weight: 400; font-size: 13px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.feat { border-color: var(--brand-night); box-shadow: 0 0 0 1px var(--brand-night); }
.plan .name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 500; font-size: 17px; }
.plan .price { font-size: 40px; font-weight: 500; letter-spacing: -.03em; margin: 18px 0 2px; }
.plan .price small { font-size: 15px; color: var(--grey); font-weight: 400; letter-spacing: 0; }
.plan .sub { font-size: 13.5px; color: var(--grey); min-height: 20px; }
.plan .desc { font-size: 14.5px; color: var(--grey); margin-top: 14px; }
.plan ul { list-style: none; margin: 20px 0 26px; display: grid; gap: 9px; font-size: 14.5px; color: var(--grey); }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 600; }
.plan .btn { margin-top: auto; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-size: 13.5px; color: var(--grey); }
.reassure span::before { content: "— "; color: var(--brand); }

/* Témoignages */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { font-size: 16px; line-height: 1.6; }
.quote blockquote::before { content: "“"; display: block; font-size: 44px; line-height: .6; color: var(--brand); margin-bottom: 8px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; }
.quote .ini { width: 38px; height: 38px; border-radius: 50%; background: var(--mist); color: var(--brand-deep); display: grid; place-items: center; font-weight: 600; flex: none; overflow: hidden; }
.quote .ini img { width: 100%; height: 100%; object-fit: cover; }
.quote .who span { display: block; color: var(--grey); font-size: 13px; }

/* FAQ (balises <details>) */
.faq { display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); margin-top: 6px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.faq details > div, .faq details > p { color: var(--grey); padding: 0 40px 22px 0; max-width: 720px; }
.faq-more { margin-top: 28px; color: var(--grey); font-size: 15px; }

/* Encadré de réponse courte (pages SEO) */
.answer { border-left: 2px solid var(--brand); padding: 4px 0 4px 20px; font-size: 17px; color: var(--ink); max-width: 760px; }
.answer strong { font-weight: 600; }

/* Fil d'Ariane */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; color: var(--grey); }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: "/"; margin-right: 6px; color: var(--line-strong); }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.stat b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.stat span { color: var(--grey); font-size: 14px; }

/* Bandeau d'appel final */
.final { margin-top: 140px; background: var(--brand-night) url("../content/topo-night.svg") center / cover; color: #fff; padding: 96px 0; }
.final .eyebrow { color: #8fd3e8; }
.final h2 { color: #fff; max-width: 680px; }
.final p { color: #b5cfd8; margin: 16px 0 30px; max-width: 580px; }

/* 7. Pages ---------------------------------------------------------------- */
.page-hero { padding: 72px 0 0; }
.page-hero h1 { max-width: 880px; margin-bottom: 22px; }
.page-hero .lead { margin-bottom: 30px; }
.page-hero.compact h1 { font-size: clamp(34px, 4.4vw, 50px); }
.logos-plus { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.logos-plus span { width: 52px; height: 52px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; padding: 10px; }
.logos-plus span img, .logos-plus span svg { width: 100%; height: 100%; object-fit: contain; }
.logos-plus em { font-style: normal; color: var(--dim); font-size: 20px; }

/* Textes longs : pages légales, comparatifs, articles du blog */
.prose { font-size: 17px; line-height: 1.75; color: #2a3a42; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 2em; color: var(--ink); line-height: 1.2; }
.prose h3 { font-size: 20px; margin-top: 1.8em; color: var(--ink); }
.prose h4 { font-size: 17px; font-weight: 600; margin-top: 1.5em; color: var(--ink); }
.prose a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-line); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 2px solid var(--brand); padding-left: 20px; color: var(--grey); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: #fafcfc; font-weight: 500; }
.prose code { font-family: var(--mono); font-size: .88em; background: #eef2f3; padding: 2px 6px; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.legal-meta { font-family: var(--mono); font-size: 12.5px; color: var(--grey); margin-bottom: 8px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card time { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.post-card h2 { font-size: 19px; letter-spacing: -.015em; line-height: 1.3; margin: 12px 0 10px; }
.post-card p { color: var(--grey); font-size: 14.5px; }
.post-card .more { margin-top: auto; padding-top: 18px; font-size: 14px; color: var(--brand-deep); }
.post-card.featured { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 0; overflow: hidden; }
.post-card.featured .body { padding: 32px; display: flex; flex-direction: column; height: 100%; }
.post-card.featured h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; }
.post-card.featured .panel { height: 100%; min-height: 260px; border-radius: 0; display: grid; place-items: center; }
.post-card.featured .panel img { width: 64px; height: 64px; }
.article-head { padding: 64px 0 40px; }
.article-head h1 { font-size: clamp(32px, 4.2vw, 48px); max-width: 860px; }
.article-head .meta { font-family: var(--mono); font-size: 12.5px; color: var(--grey); margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags span { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border-radius: 6px; background: #eef2f3; color: var(--grey); }
.inline-cta { margin-top: 56px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.inline-cta strong { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.inline-cta span { color: var(--grey); font-size: 14.5px; }

/* Correcteur en ligne */
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -32px rgba(8, 76, 96, .35); overflow: hidden; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; }
.tool-pane { display: flex; flex-direction: column; min-height: 340px; }
.tool-pane + .tool-pane { border-left: 1px solid var(--line); background: #fbfcfc; }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 50px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.tool .char-counter { font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 400; }
.tool .char-counter.warning { color: #b7791f; }
.tool .char-counter.error { color: var(--error); }
.tool .text-input, .tool .text-output { font-family: var(--sans); border: 0; border-radius: 0; background: transparent; }
.tool .text-input { flex: 1; width: 100%; resize: none; padding: 18px; font-size: 16px; line-height: 1.7; outline: none; min-height: 290px; }
.tool .text-input::placeholder { color: var(--dim); }
.tool .text-output { flex: 1; padding: 18px; font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.tool .placeholder-text { color: var(--dim); font-style: normal; }
.tool .error-text { color: var(--error); }
.tool .copy-button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; cursor: pointer; }
.tool .copy-button:hover { border-color: var(--ink); }
.tool .copy-button svg { width: 14px; height: 14px; }
.tool .loading-spinner { display: flex; align-items: center; gap: 12px; color: var(--grey); }
.tool .spinner { width: 20px; height: 20px; border: 2px solid var(--brand-line); border-top-color: var(--brand); border-radius: 50%; animation: ci-spin .8s linear infinite; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.tool-actions .hint { margin-left: auto; font-size: 13px; color: var(--grey); }

/* Pages de statut (paiement, attente) */
.status-page { min-height: 62vh; display: grid; place-items: center; padding: 80px 0; text-align: center; }
.status-page .card { max-width: 620px; margin: 0 auto; padding: 44px 36px; }
.status-page .status-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); }
.status-page .status-icon svg { width: 26px; height: 26px; }
.status-page h1 { font-size: clamp(28px, 3.4vw, 38px); }
.status-page p { color: var(--grey); margin: 14px auto 28px; max-width: 480px; }
.status-page .cta-row { justify-content: center; }
.inline-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.inline-form input { flex: 1; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; background: var(--paper); }
.inline-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.notice-ok { color: var(--ok); margin-top: 14px; font-size: 14.5px; }

/* 8. Footer --------------------------------------------------------------- */
.site-footer { padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot p { color: var(--grey); font-size: 14px; margin-top: 14px; max-width: 300px; }
.foot h4 { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--grey); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.foot-bottom a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* 9. Animations ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 10. Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
    .nav-links, .nav-cta .login { display: none; }
    .grid-3, .plans, .blog-grid { grid-template-columns: 1fr; }
    .grid-4, .stats { grid-template-columns: 1fr 1fr; }
    .steps, .grid-2 { grid-template-columns: 1fr; }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.flip .feature-text { order: 0; }
    .feature-row + .feature-row { margin-top: 80px; }
    .integr { grid-template-columns: 1fr 1fr; }
    .integr > div:nth-child(3n) { border-right: 1px solid var(--line); }
    .integr > div:nth-child(2n) { border-right: 0; }
    .integr > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
    .faq { grid-template-columns: 1fr; gap: 12px; }
    .foot { grid-template-columns: 1fr 1fr; }
    .foot > div:first-child { grid-column: 1 / -1; }
    .mail { grid-template-columns: 1fr; }
    .mail-side { display: none; }
    .hero-panel { padding: 28px 18px 0; }
    .post-card.featured { grid-column: auto; grid-template-columns: 1fr; }
    .post-card.featured .panel { min-height: 160px; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-pane + .tool-pane { border-left: 0; border-top: 1px solid var(--line); }
    .tool-pane { min-height: 0; }
    .tool .text-input { min-height: 200px; }
    .tool .text-output { min-height: 140px; }
}
@media (max-width: 640px) {
    .wrap, .wrap-narrow { padding: 0 16px; }
    .nav-cta .btn { display: none; }
    .burger { display: block; }
    .mobile-menu.open {
        display: grid;
        gap: 4px;
        padding: 8px 16px 20px;
        border-bottom: 1px solid var(--line);
    }
    .mobile-menu a:not(.btn) { padding: 12px 4px; text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--line); }
    .mobile-menu .btn { margin-top: 12px; height: 48px; }
    .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .page-hero { padding-top: 44px; }
    .section { padding-top: 88px; }
    .final { margin-top: 100px; padding: 72px 0; }
    .works .right { margin-left: 0; }
    .panel.stage { padding: 20px 16px 0; min-height: 260px; }
    .tr-col { grid-template-columns: 1fr; }
    .integr { grid-template-columns: 1fr; }
    .integr > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .grid-4, .stats { grid-template-columns: 1fr; }
    .editor { padding-right: 58px; font-size: 15px; }
    .btn { white-space: normal; text-align: center; }
    .cta-row .btn { width: 100%; }
    .tool-actions .btn { flex: 1; }
    .tool-actions .hint { margin-left: 0; width: 100%; }
    .inline-form { flex-direction: column; }
}
