/* =========================================================
   Correcteur Intelligent — feuille de style
   Polices système (aucun appel à Google Fonts : meilleur pour le RGPD et la vitesse)
   ========================================================= */
:root {
  --navy: #0f1f3d;
  --navy-2: #1b2f57;
  --navy-soft: #e8edf6;
  --ink: #1d2433;
  --muted: #5d6779;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --orange: #e07b00;
  --orange-soft: #fff1dc;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,31,61,.04), 0 8px 24px rgba(15,31,61,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--lg { padding: 13px 22px; font-size: 16px; }
.btn--small { padding: 7px 14px; font-size: 14px; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--navy); border-color: #cfd6e2; }
.btn--green { background: var(--green); border-color: var(--green); }
.btn--green:hover { background: #12863d; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading svg { display: none; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 18px; }
.logo strong { font-weight: 800; }
.logo--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--navy-soft); }
.nav__cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav__name { max-width: none; }
  .nav__cta { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 400px at 50% -100px, #e9f0ff 0%, rgba(233,240,255,0) 70%); padding: 48px 0 8px; }
.hero__inner { text-align: center; max-width: 860px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 5px 12px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); margin: 0 0 16px; font-weight: 800; }
.hero h1 .hl { background: linear-gradient(transparent 62%, #bbf7d0 62%); }
.hero__lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 0 auto 24px; max-width: 700px; }

/* ---------- Publicité ---------- */
.ad { margin: 16px auto; text-align: center; min-height: 90px; position: relative; }
.ad__label { display: block; font-size: 11px; color: #98a1b2; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ad--banner { max-width: 970px; }
.ad--inline { min-height: 100px; }
.ad--sidebar { min-height: 600px; margin: 0; }
.ad--article { min-height: 250px; margin: 32px 0; }
.ad--placeholder { display: flex; align-items: center; justify-content: center; border: 1px dashed #cfd6e2; border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, #fafbfd, #fafbfd 10px, #f4f6fa 10px, #f4f6fa 20px); color: #98a1b2; font-size: 13px; }
.ad--banner.ad--placeholder { height: 90px; }
.ad--sidebar.ad--placeholder { height: 600px; }
.ad--inline.ad--placeholder { height: 100px; }
.ad--article.ad--placeholder { height: 250px; }
@media (max-width: 640px) {
  .ad--banner, .ad--banner.ad--placeholder { min-height: 60px; height: auto; }
  .ad--banner.ad--placeholder { height: 60px; }
}

/* ---------- Mise en page de l'outil ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-top: 12px; padding-bottom: 56px; align-items: start; scroll-margin-top: 80px; }
.tool { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sidebar__sticky { position: sticky; top: 84px; }
@media (max-width: 1100px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; scroll-margin-top: 80px; }
.card:focus { outline: none; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card__title { margin: 0; font-size: 20px; }
.step { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }

.editor {
  width: 100%; min-height: 280px; resize: vertical;
  font: inherit; font-size: 16px; line-height: 1.7; color: var(--ink);
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fcfdfe;
  transition: border-color .15s, box-shadow .15s;
}
.editor:focus { outline: none; border-color: #8fb0ef; box-shadow: 0 0 0 4px #e5edff; background: #fff; }
.editor.is-over { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.counter { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 10px 2px 0; }
.counter strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.counter .is-over { color: var(--red); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.quota { font-size: 14px; color: var(--muted); margin-left: auto; }
.alert { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--red-soft); color: #991b1b; font-size: 15px; }
.alert--info { background: var(--navy-soft); color: var(--navy); }

/* ---------- Jauges ---------- */
.results__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 760px) { .results__grid { grid-template-columns: 1fr; } }

.global { text-align: center; padding: 8px; }
.global__label { font-weight: 700; color: var(--navy); margin-top: 6px; }
.global__verdict { font-size: 14px; color: var(--muted); margin: 2px 0 0; }

.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .gauges { grid-template-columns: 1fr; } }
.gauge-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.gauge-card h3 { margin: 4px 0 4px; font-size: 16px; }
.gauge-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

.gauge { position: relative; flex: none; }
.gauge svg { display: block; transform: rotate(-90deg); }
.gauge__track { stroke: #e6eaf1; }
.gauge__bar { transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.gauge__value { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.gauge--sm .gauge__value { font-size: 18px; }
.gauge--lg .gauge__value { font-size: 44px; }
.gauge--lg .gauge__value small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; margin-top: -6px; }
.is-red .gauge__bar { stroke: var(--red); }
.is-orange .gauge__bar { stroke: var(--orange); }
.is-green .gauge__bar { stroke: var(--green); }

/* ---------- Options d'amélioration ---------- */
.options { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option__box { display: block; height: 100%; padding: 12px 14px 12px 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s; }
.option__box::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border: 2px solid #b9c2d1; border-radius: 6px; background: #fff; transition: all .15s; }
.option__box strong { display: block; font-size: 15px; color: var(--navy); }
.option__box small { color: var(--muted); font-size: 13px; }
.option:hover .option__box { border-color: #b9c6dd; }
.option input:checked + .option__box { border-color: var(--green); background: #f3fcf6; }
.option input:checked + .option__box::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--green); }
.option input:focus-visible + .option__box { outline: 3px solid #7aa7ff; outline-offset: 2px; }

.segmented { display: inline-flex; align-self: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; width: max-content; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.segmented label:last-child span { border-right: 0; }
.segmented input:checked + span { background: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid #7aa7ff; outline-offset: -3px; }
.segmented[aria-disabled="true"] { opacity: .45; }
.segmented[aria-disabled="true"] label { cursor: not-allowed; }

/* ---------- Résultat de l'amélioration ---------- */
.progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
@media (max-width: 760px) { .progress { grid-template-columns: repeat(2, minmax(0, 1fr)); } .progress__item--global { grid-column: 1 / -1; } }
.progress__item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg-soft); }
.progress__item--global { background: var(--navy); border-color: var(--navy); color: #fff; }
.progress__item--global .progress__label { color: #c6d2ea; }
.progress__label { font-size: 13px; color: var(--muted); }
.progress__value { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.progress__value .old { color: #98a1b2; font-weight: 600; }
.progress__item--global .progress__value .old { color: #9fb0d2; }
.delta { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.delta--up { background: var(--green-soft); color: #15803d; }
.delta--down { background: var(--red-soft); color: #b91c1c; }
.delta--same { background: #eef1f5; color: var(--muted); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }
.compare h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.textbox { white-space: pre-wrap; word-wrap: break-word; font-size: 15.5px; line-height: 1.75; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fcfdfe; max-height: 560px; overflow: auto; }
.textbox--new { background: #fbfefc; border-color: #cdebd7; }
.hl-ins { background: #c9f2d6; color: #0f3d22; border-radius: 3px; padding: 0 1px; text-decoration: none; }
.hl-del { background: #fde2e2; color: #8f1d1d; border-radius: 3px; padding: 0 1px; text-decoration: line-through; text-decoration-color: rgba(185,28,28,.55); }
.legend { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.legend span { padding: 2px 8px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__title { text-align: center; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; }
.section__lead { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 640px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature__icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: var(--navy-soft); margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }

.example { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.example__arrow { display: grid; place-items: center; font-size: 28px; color: var(--green); font-weight: 700; }
@media (max-width: 860px) { .example { grid-template-columns: 1fr; } .example__arrow { transform: rotate(90deg); } }
.example__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.example__col--after { border-color: #bfe6cc; box-shadow: 0 0 0 4px #effaf2; }
.example__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.example__text { margin: 0; line-height: 1.75; }
.example__text mark { background: #c9f2d6; border-radius: 3px; padding: 0 2px; }
.example__scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 20px; color: var(--muted); font-size: 15px; }
.example__scores strong { color: var(--green); }
.pill { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill--red { background: var(--red-soft); color: #b91c1c; }
.pill--green { background: var(--green-soft); color: #15803d; }

.faq { margin: 28px 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Pages de contenu ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.page-hero p { margin: 0; color: var(--muted); font-size: 17px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.prose { padding: 40px 0 64px; font-size: 17px; }
.prose h2 { font-size: 25px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: #2a3243; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--navy); }
.prose .tip { background: #f3fcf6; border: 1px solid #cdebd7; border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 14px 18px; margin: 20px 0; }
.prose .tip p { margin: 0; }
.prose .ko { color: #b91c1c; text-decoration: line-through; text-decoration-color: rgba(185,28,28,.5); }
.prose .ok { color: #15803d; font-weight: 600; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; background: var(--bg-soft); border-left: 4px solid var(--navy); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cta-box { margin: 40px 0 0; padding: 26px; border-radius: var(--radius); background: var(--navy); color: #fff; text-align: center; }
.cta-box h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.cta-box p { color: #c6d2ea; margin: 0 0 16px; }
.cta-box .btn { background: var(--green); border-color: var(--green); }
.meta { font-size: 14px; color: var(--muted); margin-top: 10px; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 40px 0 64px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,31,61,.1); color: inherit; }
.post-card__tag { font-size: 12.5px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.post-card h2 { font-size: 20px; margin: 8px 0 10px; }
.post-card p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.post-card__more { font-weight: 600; color: var(--navy-2); }

.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 600; color: var(--navy); font-size: 15px; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: #8fb0ef; box-shadow: 0 0 0 4px #e5edff; }
.form textarea { min-height: 170px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.form small { color: var(--muted); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.notice--ok { background: var(--green-soft); color: #14532d; }
.notice--ko { background: var(--red-soft); color: #7f1d1d; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #c6d2ea; padding: 48px 0 20px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__pitch { margin: 14px 0 0; max-width: 380px; }
.site-footer__title { color: #fff; font-size: 15px; margin: 4px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a, .site-footer .linklike { color: #c6d2ea; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: 13.5px; }
.site-footer__bottom p { margin: 0; }

/* ---------- Bandeau cookies ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 200; padding: 16px; display: flex; justify-content: center; pointer-events: none; }
.consent__box { pointer-events: auto; width: 100%; max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px rgba(15,31,61,.25); padding: 22px 24px; }
.consent__title { font-size: 18px; margin: 0 0 8px; }
.consent__box p { margin: 0; font-size: 14.5px; color: #3a4357; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.consent__actions .btn { min-width: 140px; }
@media (max-width: 560px) { .consent__actions .btn { flex: 1 1 100%; } }
.consent__details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; font-size: 14.5px; }
.switch-row small { color: var(--muted); }
.switch-row input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .25s; z-index: 300; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Offres payantes, comptes et paiement
   ========================================================= */
.tool-layout--full { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.hero--compact { padding-bottom: 24px; }
.small { font-size: 14px; color: var(--muted); }
.inline { display: inline; }
.btn--block { width: 100%; }
.btn--danger { background: #fff; color: #b91c1c; border-color: #f3c4c4; }
.btn--danger:hover { background: var(--red-soft); color: #991b1b; border-color: #eba9a9; }
.btn.btn--danger[type="submit"]:not(.btn--ghost) { background: var(--red); color: #fff; border-color: var(--red); }
.notice--info { background: var(--navy-soft); color: var(--navy); }
.notice { font-size: 15px; }

/* Menu */
.nav__premium { color: #a16207 !important; font-weight: 600 !important; }
.nav__premium:hover { background: #fef9c3 !important; }
.nav__account { display: inline-flex !important; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.nav__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: var(--muted); vertical-align: middle; line-height: 1.5; }
.badge--premium { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #5b3a00; }
.badge--pack { background: var(--green-soft); color: #15803d; }
.badge--lg { font-size: 14px; padding: 4px 12px; vertical-align: 6px; }

/* Bandeau de formule dans l'outil */
.card__head { flex-wrap: wrap; }
.plan-chip { margin-left: auto; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); text-decoration: none; }
a.plan-chip:hover { color: var(--navy); border-color: #cfd6e2; }
.plan-chip--premium { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #7c4a03; border-color: #f6d77a; }
.plan-chip--pack { background: var(--green-soft); color: #15803d; border-color: #bbe7c8; }

/* Connexion / inscription / paiement */
.auth { padding: 48px 16px 72px; background: var(--bg-soft); min-height: 60vh; }
.auth__card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 32px; }
.auth__card--wide { max-width: 600px; }
.auth__card h1 { font-size: 28px; margin: 0 0 8px; }
.auth__lead { color: var(--muted); margin: 0 0 20px; }
.auth__switch { text-align: center; margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.auth .form { max-width: none; }
.form__row { text-align: right; font-size: 14px; margin-top: -6px; }
.btn--google { width: 100%; padding: 12px; font-size: 15px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; font-size: 14.5px !important; line-height: 1.5; cursor: pointer; }
.check input { width: 18px !important; height: 18px; flex: none; margin-top: 2px; accent-color: var(--green); }
.recap { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; margin: 18px 0; background: var(--bg-soft); }
.recap__line { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; color: var(--navy); }
.recap__vat { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.secure { font-size: 13.5px; color: var(--muted); text-align: center; margin: 0; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; }

.checklist { list-style: none; padding: 0; margin: 14px 0 20px; }
.checklist li { position: relative; padding: 5px 0 5px 28px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.checklist li.no { color: var(--muted); }
.checklist li.no::before { background: #f1f3f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%2398a1b2' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.checklist--compact li { padding: 3px 0 3px 28px; font-size: 15px; }
.checklist--compact li::before { top: 6px; }

/* Page tarifs */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; padding: 12px 0 0; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan--featured { order: -1; } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 24px; box-shadow: var(--shadow); }
.plan .btn { margin-top: auto; }
.plan--featured { border: 2px solid var(--green); box-shadow: 0 18px 50px rgba(22,163,74,.16); transform: translateY(-8px); }
@media (max-width: 900px) { .plan--featured { transform: none; } }
.plan__ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan__name { font-size: 22px; margin: 0; }
.plan__tagline { color: var(--muted); margin: 4px 0 14px; font-size: 15px; }
.plan__price { margin: 0; color: var(--muted); }
.plan__price span { font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.plan__sub { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.plan__note { text-align: center; font-size: 14px; color: var(--green); margin: 10px 0 0; font-weight: 600; }
.plans__vat { text-align: center; font-size: 13.5px; color: var(--muted); margin: 22px 0 0; }
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare-table th, .compare-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table thead th { background: var(--bg-soft); color: var(--navy); font-size: 15px; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .is-featured { background: #f3fcf6; font-weight: 600; }
.compare-table thead .is-featured { background: var(--green); color: #fff; }
.compare-table .yes { color: var(--green); font-weight: 800; }
.compare-table .no { color: #b6bdc9; }

/* Fenêtre « limite atteinte » */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,31,61,.55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal__box { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 22px; padding: 32px 28px 24px; text-align: center; box-shadow: 0 30px 80px rgba(15,31,61,.35); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
.modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-soft); font-size: 22px; color: var(--muted); cursor: pointer; }
.modal__close:hover { background: var(--line); color: var(--navy); }
.modal__emoji { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.modal__box h2 { font-size: 24px; margin: 0 0 8px; }
.modal__box > p { color: var(--muted); margin: 0 auto 20px; max-width: 480px; }
.modal__offers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; text-align: left; }
@media (max-width: 560px) { .modal__offers { grid-template-columns: 1fr; } .modal__box { padding: 28px 18px 20px; } }
.modal__small { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.offer { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.offer:hover { transform: translateY(-2px); border-color: #b9c6dd; box-shadow: var(--shadow); color: var(--ink); }
.offer--featured { border: 2px solid var(--green); background: #f6fdf8; }
.offer__badge { position: absolute; top: -11px; left: 16px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.offer__name { font-size: 17px; color: var(--navy); }
.offer__price { font-size: 26px; font-weight: 800; color: var(--navy); }
.offer__price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.offer__desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.offer__cta { margin-top: 8px; font-weight: 700; color: var(--navy-2); }
.offer--featured .offer__cta { color: #15803d; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }

/* Mon compte */
.account { padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.account__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .account__grid { grid-template-columns: 1fr; } }
.card__head--split { justify-content: space-between; }
.card__title small { color: var(--muted); font-weight: 500; font-size: 15px; }
.plan-status { margin: 0 0 8px; font-weight: 600; color: var(--navy); }
.credits { display: flex; align-items: center; gap: 14px; margin: 8px 0 10px; color: var(--muted); line-height: 1.3; }
.credits__n { font-size: 48px; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.meter { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.upsell { display: grid; gap: 10px; margin: 14px 0; }
.upsell__item { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.upsell__item strong { color: var(--navy); }
.upsell__item span { font-size: 14px; color: var(--muted); }
.upsell__item:hover { border-color: #b9c6dd; color: var(--ink); }
.upsell__item--featured { border-color: var(--green); background: #f6fdf8; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.setting small { color: var(--muted); }
.form--inline { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; max-width: none; }
.form--inline > div { flex: 1; }
.confirm { position: relative; }
.confirm > summary { list-style: none; cursor: pointer; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm__box { margin-top: 12px; padding: 16px; border: 1px solid #f3c4c4; background: #fff8f8; border-radius: var(--radius-sm); }
.confirm__box p { margin: 0 0 12px; font-size: 15px; }
.confirm--right .confirm__box { position: absolute; right: 0; z-index: 5; width: 300px; box-shadow: var(--shadow); }
.danger-zone { border-top: 1px solid var(--line); padding-top: 14px; }
.danger-zone > summary { color: #b91c1c; font-weight: 600; font-size: 15px; }
.history { list-style: none; margin: 0; padding: 0; }
.history__item { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.history__item:first-child { border-top: 0; }
.history__link { flex: 1; display: grid; gap: 3px; padding: 14px 6px; text-decoration: none; color: var(--ink); min-width: 0; border-radius: 8px; }
.history__link:hover { background: var(--bg-soft); color: var(--ink); }
.history__date { font-size: 13px; color: var(--muted); }
.history__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.score { font-weight: 800; padding: 0 7px; border-radius: 6px; }
.score--green { background: var(--green-soft); color: #15803d; }
.score--orange { background: var(--orange-soft); color: #9a5700; }
.score--red { background: var(--red-soft); color: #b91c1c; }
.tag { background: var(--navy-soft); color: var(--navy); padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.tag--muted { background: #f1f3f6; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--red-soft); color: #b91c1c; }
.empty { text-align: center; padding: 22px 10px; color: var(--muted); }
.empty p { margin: 0 0 14px; }
