/* ============================================================
   QualiWay — site vitrine
   Charte : bleu nuit #0B1F33 · vert émeraude #10B981 · Poppins (titres) et Inter (texte)
   ============================================================ */
:root {
  --navy: #0B1F33;
  --navy-deep: #07121F;
  --navy-soft: #16324F;
  --emerald: #10B981;
  --emerald-ink: #047857;   /* vert lisible pour du texte sur fond clair */
  --mist: #F2F6F9;
  --line: #D9E2EA;
  --ink-soft: #3C5268;
  --white: #FFFFFF;
  --display: "Poppins", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --r-sm: 8px;
  --r-md: 14px;
}

/* ---------- Polices (hébergées sur le site, licence SIL Open Font License : fonts/OFL.txt) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16.5px/1.72 var(--body); letter-spacing: 0.005em; color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--emerald-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.18; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--emerald); color: var(--navy); font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

/* ---------- Logotype ---------- */
/* Logo : « QUALIWAY » et sa signature « Quality assured. Success delivered. » */
.brand-logo { display: block; width: 230px; height: auto; }
.header-mark { display: block; height: 48px; width: auto; }
.brand-logo-lg { width: 260px; }
.footer-mark { display: block; height: 52px; width: auto; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-sm);
  font: 600 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--emerald); color: var(--navy); }
.btn-primary:hover { background: #0FA372; }
.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="true"] { border-bottom-color: var(--emerald); }
.menu .menu-cta { background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: var(--r-sm); border: 0; }
.menu .menu-cta:hover { background: var(--navy-soft); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-toggle span[aria-hidden] { display: block; width: 24px; height: 2px; margin: 0 auto; background: var(--navy); box-shadow: 0 -7px 0 var(--navy), 0 7px 0 var(--navy); }

/* ---------- Accueil (héros) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #123456 0%, var(--navy) 45%, var(--navy-deep) 100%); color: var(--white); padding: 88px 0 120px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 500; line-height: 1.14; letter-spacing: -0.015em; max-width: 17ch; }
.hero h1 span { display: block; }
.hero-lead { margin-top: 26px; font-size: 18.5px; font-weight: 400; line-height: 1.7; color: #C9D6E3; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Fiche de test : l'élément marquant de la page */
.run { margin: 0; background: var(--white); color: var(--navy); border-radius: var(--r-md); padding: 26px 26px 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); border-top: 6px solid var(--emerald); }
.run-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.run-title { font: 600 18px var(--display); }
.run-state { font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.run-state.done { color: var(--emerald-ink); }
.run-steps { list-style: none; margin: 0; padding: 0; }
.run-steps li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.run-steps li:last-child { border-bottom: 0; }
.tick { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); transition: background .3s, border-color .3s; }
.tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 13px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.run-steps li.ok .tick { background: var(--emerald); border-color: var(--emerald); }
.run-steps li.ok .tick::after { transform: rotate(45deg) scale(1); }
.run-foot { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--emerald-ink); opacity: 0; transition: opacity .4s; }
.run.done .run-foot { opacity: 1; }

/* Bandeau de la charte */
.pillars { display: flex; justify-content: center; flex-wrap: wrap; background: var(--navy); color: var(--white); padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.pillars span { font: 500 14.5px var(--display); letter-spacing: .18em; text-transform: uppercase; padding: 0 28px; }
.pillars span + span { border-left: 2px solid var(--emerald); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-title { font-size: clamp(28px, 3.3vw, 40px); font-weight: 600; margin-bottom: 18px; }
.section-title::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 16px; background: var(--emerald); border-radius: 3px; }
.lead { font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }
.narrow { max-width: 58ch; }
.block-title { font-size: 24px; font-weight: 600; margin-bottom: 20px; }

/* Démonstrations en vidéo */
.demo { background: var(--mist); }
.demo-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 36px; margin-top: 36px; align-items: start; }
.demo-tabs { display: grid; gap: 10px; }
.demo-tabs button { display: grid; gap: 6px; text-align: left; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: var(--r-sm);
  background: var(--white); color: var(--navy); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.demo-tabs button strong { font: 600 17px var(--display); }
.demo-tabs button span { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.demo-tabs button:hover { border-color: #B9C8D6; }
.demo-tabs button[aria-selected="true"] { border-left-color: var(--emerald); border-color: var(--navy); background: var(--navy); color: var(--white); }
.demo-tabs button[aria-selected="true"] span { color: #C9D6E3; }
.demo-player { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--navy); box-shadow: 0 24px 60px rgba(11,31,51,.22); border: 6px solid var(--navy); }
.demo-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--navy); }
.demo-toggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(11,31,51,.85); cursor: pointer; }
.demo-toggle span { display: block; margin: auto; }
.demo-toggle[data-state="playing"] span { width: 14px; height: 16px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.demo-toggle:not([data-state="playing"]) span { width: 0; height: 0; margin-left: 17px; border-left: 14px solid var(--emerald); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* Engagements */
.gains-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gain { padding: 34px 26px 30px; }
.gain + .gain { border-left: 1px solid var(--line); }
.gain-icon { width: 48px; height: 48px; color: var(--navy); margin-bottom: 18px; }
.gain h3 { font-size: 18px; margin-bottom: 10px; }
.gain p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.outcomes { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; margin-top: 64px; align-items: start; }
.outcomes-title { font-size: 26px; font-weight: 600; }

/* Listes à coche : la coche du logo */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0 0 16px 38px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 9px; height: 17px; border: solid var(--emerald); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.checks strong { color: var(--navy); font-weight: 600; }

/* Qui sommes-nous */
.about { background: var(--mist); }
.about-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 64px; align-items: center; }
.about-grid p:not(.lead) { max-width: 64ch; }
.card-contact { background: var(--navy); color: var(--white); border-radius: var(--r-md); padding: 30px; border-left: 6px solid var(--emerald); }
.card-kicker { font: 600 24px var(--display); color: var(--emerald); margin-bottom: 6px; }
.card-role { color: #C9D6E3; font-size: 15px; }
.card-lines { list-style: none; margin: 18px 0 0; padding: 0; }
.card-lines li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.card-lines .ci { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--emerald); }
.card-lines a { color: var(--white); }

/* Comment ça marche */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 48px; }
.uses article { border-top: 3px solid var(--navy); padding-top: 18px; }
.uses h3 { font-size: 19px; margin-bottom: 10px; }
.uses p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.onboarding { margin-top: 80px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 64px 24px 0 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--emerald); font: 700 19px var(--display); }
.steps li::after { content: ""; position: absolute; left: 52px; right: 12px; top: 21px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h4 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.security { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; margin-top: 80px; padding: 48px; border-radius: var(--r-md); background: var(--navy); color: #D6E1EC; }
.security .block-title { color: var(--white); }
.checks-light strong { color: var(--white); }

/* Tarifs */
.pricing { background: var(--mist); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px 28px; }
.plan h3 { font-size: 26px; }
.plan-for { color: var(--ink-soft); font-size: 15.5px; margin: 8px 0 18px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.amount { font: 600 40px/1 var(--display); letter-spacing: -0.01em; }
.per { color: var(--ink-soft); font-size: 15px; }
.plan .checks { flex: 1; margin-bottom: 22px; }
.plan .checks li { font-size: 15.5px; padding-bottom: 12px; }
.plan-featured { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 24px 50px rgba(11,31,51,.25); transform: translateY(-10px); }
.plan-featured .plan-for, .plan-featured .per { color: #C9D6E3; }
.plan-featured .price { border-color: rgba(255,255,255,.15); }
/* Le bouton « Choisir Team » hérite de .btn-outline (texte et bordure en --navy) : sur le fond --navy
   de cette offre mise en avant, il se fondait dans la carte. Même bouton, mais en blanc, pour rester visible. */
.plan-featured .btn-outline { color: var(--white); border-color: var(--white); }
.plan-featured .btn-outline:hover { background: var(--white); color: var(--navy); }
.plan-badge { position: absolute; top: -14px; left: 28px; margin: 0; padding: 5px 12px; border-radius: 6px; background: var(--emerald); color: var(--navy); font-size: 13px; font-weight: 700; }
.plans-note { margin-top: 32px; text-align: center; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.contact-lines { list-style: none; padding: 0; margin: 24px 0 0; font-weight: 600; }
.contact-lines li { padding: 8px 0; }
.form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; box-shadow: 0 12px 40px rgba(11,31,51,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 400 16px var(--body); color: var(--navy); background: var(--white); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--emerald); outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.form [aria-invalid="true"] { border-color: #C0392B; }
.form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14.5px; color: var(--ink-soft); }
.form .consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--emerald); flex: none; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--emerald-ink); }
.form-status.error { color: #B03A2E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.footer { background: var(--navy-deep); color: #AFC0D0; padding: 48px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #D6E1EC; text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--emerald); }
.footer-copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .contact-grid, .outcomes, .security, .demo-grid { grid-template-columns: 1fr; }
  .demo-player { order: -1; }
  .hero-grid { gap: 44px; }
  .run { max-width: 520px; }
  .gains-grid { grid-template-columns: 1fr 1fr; }
  .gain:nth-child(3) { border-left: 0; }
  .gain:nth-child(n+3) { border-top: 1px solid var(--line); }
  .uses { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-featured { transform: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand-logo { width: 170px; }
  .header-mark { height: 36px; }
  .brand-logo-lg { width: 200px; }
  .footer-mark { height: 40px; }
  .menu-toggle { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .menu.open { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .menu .menu-cta { margin-top: 12px; text-align: center; }
  .hero { padding: 56px 0 110px; }
  .pillars span { padding: 4px 14px; font-size: 13px; }
  .section { padding: 68px 0; }
  .gains-grid, .uses, .steps { grid-template-columns: 1fr; }
  .gain + .gain { border-left: 0; border-top: 1px solid var(--line); }
  .steps li::after { display: none; }
  .security { padding: 32px 24px; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Sélecteur de langue */
.menu .lang-link { font-weight: 700; font-size: 14px; letter-spacing: .06em; border: 1.5px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.menu .lang-link:hover { border-color: var(--emerald); }

/* ---------- Pages Blog, Article et Forum ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: var(--white); padding: 64px 0 48px; }
.page-hero h1 { font: 700 clamp(30px, 4vw, 44px)/1.15 var(--display); margin: 0 0 10px; }
.page-hero p { margin: 0; color: #C9D6E3; font-size: 18px; max-width: 60ch; }
.menu a[aria-current="page"] { color: var(--emerald-ink); }
.content-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.content-tools input[type=search] { flex: 1 1 260px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 400 16px var(--body); }
.content-tools input[type=search]:focus { border-color: var(--emerald); outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.content-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.content-cats .cat { border: 1.5px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 7px 14px; font: 600 14px var(--body); cursor: pointer; }
.content-cats .cat.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.content-empty { color: var(--ink-soft); padding: 24px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--emerald); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card h2 { font: 700 21px/1.3 var(--display); margin: 0; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--emerald-ink); }
.post-card p { margin: 0; color: var(--ink-soft); }
.post-more { margin-top: auto; font-weight: 700; color: var(--emerald-ink); text-decoration: none; }
.post-meta { font-size: 14px; color: var(--ink-soft); }
.post-cat { display: inline-block; background: #E7F8F1; color: var(--emerald-ink); font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 3px 10px; margin-right: 8px; }
.article-wrap { max-width: 760px; }
.article-section h1 { font: 700 clamp(28px, 4vw, 40px)/1.2 var(--display); color: var(--navy); margin: 8px 0 14px; }
.post-back { font-weight: 700; color: var(--emerald-ink); text-decoration: none; }
.post-lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; }
.post-body { font-size: 17px; line-height: 1.75; }
.post-body h2 { font: 700 23px var(--display); color: var(--navy); margin: 32px 0 10px; }
.post-body ul { padding-left: 22px; } .post-body li { margin: 6px 0; }
.post-cta { margin-top: 40px; padding: 24px; border-radius: var(--r-md); background: var(--mist); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.post-cta p { margin: 0; font-weight: 700; color: var(--navy); }
.forum-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq-item summary { cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--navy); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-size: 22px; line-height: 1; color: var(--emerald-ink); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 20px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); line-height: 1.7; }
.faq-by { font-size: 13px; font-weight: 700; color: var(--emerald-ink); margin: 14px 0 6px; }
.ask-form { position: sticky; top: 96px; }
.ask-form h2 { font: 700 22px var(--display); color: var(--navy); margin: 0; }
.ask-sub { margin: -8px 0 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .forum-grid { grid-template-columns: 1fr; } .ask-form { position: static; } }

/* Menu : passage en mode mobile dès 1 100 px (Blog et Forum ajoutés au menu) */
.menu a { white-space: nowrap; }
@media (max-width: 1280px) { .menu { gap: 20px; } .menu a { font-size: 14.5px; } }
@media (max-width: 1300px) {
  .menu-toggle { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .menu.open { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .menu .menu-cta { margin-top: 12px; text-align: center; }
}

/* Tarifs : quatre offres */
.plans-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.amount-quote { font-size: 34px; }
@media (max-width: 1100px) { .plans-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans-4 { grid-template-columns: 1fr; } }

/* Tarifs : bascule mensuel / annuel */
.billing-toggle { display: flex; justify-content: center; gap: 4px; margin: 0 auto 28px; padding: 4px; width: max-content; max-width: 100%; border: 1px solid var(--line, #DCE3EA); border-radius: 999px; background: #fff; }
.billing-toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font: 600 15px inherit; font-family: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button[aria-pressed="true"] { background: #0B1F33; color: #fff; }
.billing-toggle .save { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #D1FAE5; color: #065F46; }
/* la note annuelle est collée au prix ; c'est elle qui porte la ligne de séparation */
.price:has(+ .price-note) { margin-bottom: 6px; padding-bottom: 0; border-bottom: 0; }
.price-note { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: #5C6B7A; min-height: 2.6em; }
.plan-featured .price-note { border-bottom-color: rgba(255,255,255,.15); }
.price-note.is-annual { color: #0E7A55; font-weight: 600; }
.plan-featured .price-note { color: #C9D6E3; } .plan-featured .price-note.is-annual { color: #6EE7B7; }

/* Tarifs de lancement */
.launch-badge { display: block; width: max-content; max-width: 100%; margin: 0 auto 16px; padding: 8px 18px; border-radius: 999px; background: #FFF6E5; border: 1px solid #F3D9A4; color: #6B4A06; font-size: 14px; text-align: center; }

/* ---------- Réservation d'une démonstration (calendrier intégré) ---------- */
.booking-dialog { width: min(1000px, 96vw); height: min(780px, 92vh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(7,18,31,.45); }
.booking-dialog[open] { display: flex; flex-direction: column; }
.booking-dialog::backdrop { background: rgba(7,18,31,.62); backdrop-filter: blur(3px); }
.booking-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px; background: #0B1F33; color: #fff; border-bottom: 4px solid #10B981; }
.booking-head h2 { margin: 0; font-size: 22px; } .booking-head p { margin: 4px 0 0; color: #C9D6E3; font-size: 14px; }
.booking-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.booking-close:hover, .booking-close:focus-visible { background: rgba(255,255,255,.12); outline: 2px solid #10B981; }
.booking-frame { position: relative; flex: 1; background: #fff; }
.booking-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s; }
.booking-dialog.is-loaded iframe { opacity: 1; } .booking-dialog.is-loaded .booking-loading { display: none; }
.booking-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #5C6B7A; }
.booking-foot { margin: 0; padding: 10px 22px; border-top: 1px solid #E4EAF0; background: #F6F8FA; font-size: 13px; text-align: right; } .booking-foot a { color: #0E7A55; font-weight: 600; }
.menu a.menu-link-contact { font-weight: 600; }
@media (max-width: 640px) { .booking-dialog { width: 100vw; height: 100dvh; border-radius: 0; } .booking-head h2 { font-size: 18px; } }

/* ---------- « Demander une démo » : toujours visible en haut à droite, hors du menu ---------- */
.topbar-inner { gap: 16px; }
.brand { order: 1; flex: none; }
.menu { order: 2; margin-left: auto; }
.header-cta { order: 3; flex: none; display: inline-flex; align-items: center; white-space: nowrap; background: var(--emerald); color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 18px; border-radius: var(--r-sm); box-shadow: 0 4px 14px rgba(16,185,129,.25); transition: background .15s, transform .15s; }
.header-cta:hover { background: #0FA372; transform: translateY(-1px); }
.header-cta:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.header-cta .cta-short { display: none; }
.menu-toggle { order: 4; flex: none; }
@media (max-width: 1280px) { .header-cta { font-size: 14.5px; padding: 9px 14px; } }
@media (max-width: 1300px) { .header-cta { margin-left: auto; } }
@media (max-width: 480px) {
  .topbar-inner { gap: 8px; }
  .header-cta { padding: 9px 12px; }
  .header-cta .cta-long { display: none; } .header-cta .cta-short { display: inline; }
}

/* En-tête sur toute la largeur de l'écran : le menu et le bouton tiennent sur une ligne dès 1 240 px */
.topbar .topbar-inner { width: 100%; max-width: none; padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }
@media (max-width: 1440px) { .brand-logo { width: 180px; height: auto; } .menu { gap: 18px; } .menu a { font-size: 14.5px; } }
@media (max-width: 480px) { .brand-logo { width: 120px; } .header-mark { height: 32px; width: auto; } }
@media (max-width: 359px) { .brand-logo { display: none; } }
.plan-replaces { font-size: 14px; font-weight: 600; color: var(--brand-dark, #0F7852); margin: -8px 0 16px; }
.plan-featured .plan-replaces { color: #7FE0B8; }

/* Tarif fondateur : prix catalogue barré au-dessus du prix */
.price-ref { margin: 0 0 6px; font-size: 14px; color: #5C6B7A; }
.price-ref s { font-weight: 600; text-decoration-thickness: 2px; }
.plan-featured .price-ref { color: #C9D6E3; }

