/* ==========================================================================
   nolia.css — design system du site nolia.ai
   Charte k6 studio (mai 2026) : bleu nuit structurant, vert d'eau en accent,
   corail strictement réservé à l'alerte. Voir docs/plan-refonte-design.md.
   Partagé par toutes les pages de site/. Pas de build : ce fichier est servi tel quel.
   ========================================================================== */

/* ---------- Police : Encode Sans, fonte variable auto-hébergée ---------- */
@font-face {
  font-family: "Encode Sans";
  src: url("/assets/fonts/encode-sans-latin-wght.woff2") format("woff2-variations"),
       url("/assets/fonts/encode-sans-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Couleurs de marque */
  --navy:  #04437F;
  --teal:  #00D6BA;
  --coral: #F75868;

  /* Neutres */
  --white:     #FFFFFF;
  --text:      #04437F;
  --text-2:    #5A6B7B;
  --teal-pale: #E5FAF6;

  /* Dérivés (hors charte, validés dans le plan) */
  --navy-ink:   #032F5A;
  --line:       rgba(4, 67, 127, 0.10);
  --line-strong: rgba(4, 67, 127, 0.22);
  --navy-tint:  rgba(4, 67, 127, 0.04);
  --coral-pale: #FFEDEF;

  /* Sur fond navy */
  --on-navy:        #FFFFFF;
  --on-navy-2:      rgba(255, 255, 255, 0.72);
  --on-navy-3:      rgba(255, 255, 255, 0.50);
  --on-navy-card:   rgba(255, 255, 255, 0.06);
  --on-navy-line:   rgba(255, 255, 255, 0.12);

  /* Typographie */
  --font: "Encode Sans", system-ui, sans-serif;
  --fs-body: 17px;
  --lh-body: 1.6;

  /* Forme */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Ombres teintées navy */
  --shadow-soft: 0 1px 2px rgba(4, 67, 127, 0.06), 0 8px 24px rgba(4, 67, 127, 0.08);
  --shadow-lift: 0 2px 4px rgba(4, 67, 127, 0.06), 0 20px 48px rgba(4, 67, 127, 0.14);

  /* Grille */
  --container: 1180px;
  --gutter: 24px;
  --section-y: 104px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0; color: var(--navy); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; box-shadow: 0 0 0 4px var(--white); border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.muted { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Le mot « nolia » dans le texte : pastille turquoise devant le mot */
.nolia-word { white-space: nowrap; font-weight: 600; }
.nolia-word::before {
  content: ""; display: inline-block; width: 0.38em; height: 0.38em; border-radius: 50%;
  background: var(--teal); margin-right: 0.12em; vertical-align: 0.22em;
}

/* ---------- Eyebrow : label turquoise en capitales ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--teal); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 20px;
}
.on-navy .eyebrow { color: var(--teal); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-md);
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary { background: var(--navy); color: var(--on-navy); box-shadow: 0 6px 18px rgba(4, 67, 127, 0.20); }
.btn-primary:hover { background: var(--navy-ink); box-shadow: 0 10px 26px rgba(4, 67, 127, 0.26); }

.btn-secondary { background: var(--teal); color: var(--navy); }
.btn-secondary:hover { background: var(--teal); filter: brightness(1.06); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--navy-tint); border-color: var(--navy); }
.on-navy .btn-ghost { color: var(--on-navy); border-color: var(--on-navy-line); }
.on-navy .btn-ghost:hover { background: var(--on-navy-card); border-color: var(--on-navy); }

.btn-alert { background: var(--coral); color: var(--white); }
.btn-alert:hover { background: var(--coral); filter: brightness(0.94); }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; border-radius: 10px; }

/* ---------- Tags / statuts ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--teal-pale); color: var(--navy);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  line-height: 1.4;
}
.tag-muted { background: var(--navy-tint); color: var(--text-2); }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.on-navy .tag { background: var(--on-navy-card); color: var(--teal); }

/* ---------- Cartes ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--teal-pale); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
.card-icon-sm { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; }
.card-icon-sm svg { width: 20px; height: 20px; }

/* ---------- Tuile chiffre (charte : chiffre turquoise sur navy) ---------- */
.stat {
  background: var(--navy); color: var(--on-navy);
  border-radius: var(--radius-md); padding: 22px 22px 18px;
}
.stat-value { color: var(--teal); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; }
.stat-label { color: var(--on-navy-2); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 10px; }
.on-navy .stat { background: var(--on-navy-card); border: 1px solid var(--on-navy-line); }

/* ---------- Alerte : le seul usage du corail ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--coral-pale); border-left: 3px solid var(--coral);
  border-radius: var(--radius-sm); padding: 14px 16px;
  color: var(--navy); font-size: 0.95rem;
}
.alert::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-top: 8px; }

/* ---------- Sections ---------- */
section { padding: var(--section-y) 0; position: relative; }
@media (max-width: 760px) { :root { --section-y: 72px; } }
.section-tint { background: var(--navy-tint); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--on-navy); }
.on-navy p { color: var(--on-navy-2); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: 1.08rem; }
.on-navy .section-head p { color: var(--on-navy-2); }

/* Grilles utilitaires */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--navy); transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--teal); color: var(--navy); }
.nav-links .btn { margin-left: 8px; }
.nav-links a.btn-primary { color: var(--on-navy); }
.nav-links a.btn-primary:hover { color: var(--on-navy); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy);
  border-radius: 10px; cursor: pointer; place-items: center; padding: 0;
}
.nav-toggle svg { width: 24px; height: 24px; stroke-width: 2; }
.nav-toggle .icon-close { display: none; }
.nav[data-open="true"] .nav-toggle .icon-menu { display: none; }
.nav[data-open="true"] .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow-soft);
  }
  .nav[data-open="true"] .nav-links { display: flex; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a.active { text-decoration: none; color: var(--teal); }
  .nav-links .btn { margin: 12px 0 0; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 36px; }
.hero-brand img { height: 60px; width: auto; }
.hero-baseline { color: var(--navy); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub { margin-top: 24px; font-size: 1.15rem; color: var(--text-2); max-width: 540px; }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
@media (max-width: 480px) { .hero-stats { grid-template-columns: 1fr; } }
.hero-stats .stat { padding: 18px 18px 14px; }
.hero-stats .stat-value { font-size: 1.6rem; }

/* Visuel produit du hero : un appel pris par Nolia, dans un panneau navy */
.hero-visual { position: relative; }
.device {
  background: var(--navy); border-radius: 28px; padding: 28px;
  box-shadow: var(--shadow-lift); color: var(--on-navy);
  display: grid; gap: 14px;
}
.device-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-top img { height: 22px; width: auto; }
.device-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.device-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 214, 186, 0.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(0, 214, 186, 0.25); } 50% { box-shadow: 0 0 0 7px rgba(0, 214, 186, 0.10); } }
.chat { background: var(--white); border-radius: 16px; padding: 18px; display: grid; gap: 10px; color: var(--navy); }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.45; }
.bubble-in { background: var(--navy-tint); border-bottom-left-radius: 4px; justify-self: start; }
.bubble-out { background: var(--teal-pale); border-bottom-right-radius: 4px; justify-self: end; }
.bubble-out .who, .bubble-in .who { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 3px; }
.device-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.device-row .stat { background: var(--on-navy-card); border: 1px solid var(--on-navy-line); padding: 14px 14px 12px; }
.device-row .stat-value { font-size: 1.25rem; }
.device-row .stat-label { font-size: 0.62rem; margin-top: 6px; }
@media (max-width: 480px) { .device { padding: 18px; border-radius: 20px; } .device-row { grid-template-columns: 1fr 1fr; } }
/* Emplacement réservé à l'illustration de la calopsitte (livraison k6) */
.hero-mascot { position: absolute; right: -24px; bottom: -32px; width: 160px; pointer-events: none; }
@media (max-width: 960px) { .hero-mascot { display: none; } }

/* ---------- Produits ---------- */
.product { display: flex; flex-direction: column; padding: 36px 32px; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.product-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.product h3 { font-size: 1.45rem; margin-bottom: 10px; }
.product-desc { color: var(--text-2); flex: 1; }
.product-features { margin-top: 22px; }
.product-features li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.product-features li:first-child { border-top: 0; }
.product-features li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 9px; }

/* ---------- Pipeline : la courbe continue ---------- */
.pipe-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; }
.pipe-grid::before { content: ""; position: absolute; left: 7%; right: 7%; top: 30px; height: 2px; background: var(--line-strong); }
@media (max-width: 960px) { .pipe-grid { grid-template-columns: repeat(4, 1fr); } .pipe-grid::before { display: none; } }
@media (max-width: 640px) { .pipe-grid { grid-template-columns: repeat(2, 1fr); } }
.pipe-step { position: relative; text-align: center; padding: 8px 10px 0; }
.pipe-num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--teal);
  color: var(--navy); font-weight: 700; font-size: 0.85rem; position: relative;
}
.pipe-step h4 { font-size: 0.98rem; margin-bottom: 4px; }
.pipe-step p { color: var(--text-2); font-size: 0.82rem; line-height: 1.45; }

/* ---------- Vision ---------- */
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .vision-grid { grid-template-columns: 1fr; gap: 40px; } }
.vision-text p { margin-top: 20px; font-size: 1.06rem; }
.pillars { display: grid; gap: 12px; }
.pillar { background: var(--on-navy-card); border: 1px solid var(--on-navy-line); border-radius: var(--radius-md); padding: 20px 22px; display: flex; gap: 18px; align-items: flex-start; }
.pillar-num { color: var(--teal); font-weight: 700; font-size: 1.1rem; flex: none; line-height: 1.5; }
.pillar strong { display: block; color: var(--on-navy); font-weight: 600; font-size: 1.02rem; }
.pillar span { display: block; color: var(--on-navy-2); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Intégrations ---------- */
.integ { display: flex; gap: 20px; align-items: flex-start; }
.integ-logo {
  width: 56px; height: 56px; border-radius: var(--radius-md); flex: none;
  background: var(--navy); color: var(--on-navy); display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em;
}
.integ h4 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.2rem; margin-bottom: 6px; }
.integ p { color: var(--text-2); font-size: 0.94rem; }

/* ---------- Conformité ---------- */
.comp h4 { margin-bottom: 8px; }
.comp p { color: var(--text-2); font-size: 0.94rem; }
.comp .tag { margin-bottom: 14px; }

/* ---------- Roadmap ---------- */
.phase { position: relative; padding-top: 30px; }
.phase::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 3px; background: var(--line); }
.phase.live::before { background: var(--teal); }
.phase.next::before { background: var(--navy); }
.phase-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.phase.live .phase-label { color: var(--teal); }
.phase h4 { margin-bottom: 14px; font-size: 1.1rem; }
.phase ul { display: grid; gap: 8px; }
.phase li { color: var(--text-2); font-size: 0.92rem; padding-left: 16px; position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.phase.live li::before { background: var(--teal); }

/* ---------- Bandeau CTA ---------- */
.cta-band { text-align: center; padding: 88px 0; }
.cta-band h2 { max-width: 780px; margin: 0 auto; }
.cta-band p { margin: 20px auto 32px; max-width: 580px; }
.cta-band img { height: 44px; width: auto; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: var(--on-navy-2); padding: 64px 0 0; font-size: 0.94rem; }
footer.footer-slim { padding: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 320px; color: var(--on-navy-2); font-size: 0.92rem; }
.footer-baseline { display: block; margin-top: 12px; color: var(--teal); font-weight: 600; font-size: 0.95rem; }
footer h5 { color: var(--on-navy); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; }
footer ul { display: grid; gap: 10px; }
footer a { transition: color 0.2s var(--ease); }
footer a:hover { color: var(--teal); }
.footer-bottom {
  background: var(--navy-ink); padding: 22px 0;
  color: var(--on-navy-3); font-size: 0.82rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page secondaire (contact, 404) ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page-hero h1 em { font-style: normal; color: var(--teal); }
.page-hero .lead { margin-top: 20px; font-size: 1.15rem; color: var(--text-2); max-width: 600px; }

.contact-section { padding: 32px 0 var(--section-y); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 44px 40px; }
.contact-card .eyebrow { margin-bottom: 10px; }
.contact-card h2 { font-size: 1.8rem; margin-bottom: 24px; }
.info-list { display: grid; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.info-item:first-child { border-top: 0; padding-top: 0; }
.info-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-pale); color: var(--navy); display: grid; place-items: center; flex: none; }
.info-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.info-title { color: var(--text-2); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.info-value { font-weight: 600; font-size: 1.05rem; color: var(--navy); line-height: 1.4; }
a.info-value:hover { color: var(--teal); }
.side-panel { border-radius: var(--radius-lg); padding: 44px 40px; display: flex; flex-direction: column; gap: 20px; }
.side-panel h2 { font-size: 1.7rem; }
.side-panel ul { display: grid; gap: 10px; }
.side-panel li { padding-left: 20px; position: relative; color: var(--on-navy-2); font-size: 0.96rem; }
.side-panel li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.side-panel .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 640px) { .contact-card, .side-panel { padding: 28px 22px; } }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound img { height: 140px; width: auto; margin: 0 auto 28px; }
.notfound p { color: var(--text-2); margin: 16px auto 28px; max-width: 460px; }

/* ---------- Pages légales (chrome commun ; le corps est rendu par build-legal.sh) ---------- */
main.legal { padding: 64px 0 96px; }
.legal-body { max-width: 800px; }
.legal-body h1 { margin-bottom: 32px; font-size: clamp(2rem, 4.4vw, 3rem); }
.legal-body h2 { margin: 48px 0 16px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.legal-body h3 { margin: 32px 0 12px; font-size: 1.2rem; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 1.3em; list-style: revert; }
.legal-body li { margin: 0 0 8px; }
.legal-body strong { font-weight: 600; color: var(--navy); }
.legal-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.legal-body a:hover { color: var(--teal); }
.legal-body code { font-size: 0.88em; background: var(--teal-pale); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.legal-body blockquote { margin: 0 0 32px; padding: 16px 20px; background: var(--teal-pale); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); }
.legal-body blockquote p:last-child { margin-bottom: 0; }
.legal-table { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-body th { font-weight: 600; color: var(--navy); }
@media (max-width: 640px) { main.legal { padding: 40px 0 64px; } .legal-body { font-size: 16px; } }

/* ---------- Mouvement ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .device-status::before { animation: none; }
  .btn, .card { transition: none; }
}

/* ==========================================================================
   Ajouts du plan de contenu B2B (30/09/2026) : navigation à sous-menu,
   sélecteur de langue, pages de contenu, formulaire de démo, FAQ.
   ========================================================================== */

/* ---------- Sous-menu « Produit » ---------- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item > a svg { width: 14px; height: 14px; stroke-width: 2.2; transition: transform 0.2s var(--ease); }
.nav-sub {
  display: none; position: absolute; top: calc(100% + 14px); left: -16px; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift); padding: 8px; z-index: 60;
}
.nav-sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-sub a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.nav-sub a:hover { background: var(--navy-tint); color: var(--navy); }
.nav-sub a small { display: block; color: var(--text-2); font-weight: 400; font-size: 0.82rem; margin-top: 2px; }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub, .nav-item[data-open="true"] .nav-sub { display: block; }
.nav-item:hover > a svg, .nav-item[data-open="true"] > a svg { transform: rotate(180deg); }
.nav-lang { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-2); padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.nav-lang:hover { color: var(--navy); border-color: var(--line-strong); }
@media (max-width: 1060px) { .nav-links { gap: 20px; } .nav-links a { font-size: 0.9rem; } }
@media (max-width: 860px) {
  .nav-item > a svg { display: none; }
  .nav-sub { display: block; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 4px 16px; border-radius: 0; }
  .nav-sub a { border-bottom: 0 !important; padding: 8px; font-size: 0.98rem; }
  .nav-lang { align-self: flex-start; margin-top: 12px; border-bottom: 1px solid var(--line) !important; }
}

/* ---------- Pages de contenu ---------- */
.page-hero-wide { padding: 72px 0 48px; }
.page-hero-wide .lead { max-width: 720px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--text); }
.prose p.muted, .prose .muted { color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; list-style: revert; }
.prose li { margin: 0 0 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--teal); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; margin: 0 0 24px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--navy); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.aside-card { position: sticky; top: 96px; }
.aside-card h3 { margin-bottom: 10px; }
.aside-card p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 18px; }

/* Étapes numérotées (parcours d'un appel) */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--teal); display: grid; place-items: center; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.step h4 { margin-bottom: 4px; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* Bloc « ce que Nolia ne fait pas » */
.dont { border-left: 3px solid var(--navy); background: var(--navy-tint); border-radius: var(--radius-sm); padding: 18px 22px; }
.dont h4 { margin-bottom: 8px; }
.dont ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dont li { padding-left: 22px; position: relative; color: var(--text); font-size: 0.95rem; }
.dont li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--navy); font-weight: 700; font-size: 0.8rem; line-height: 1.7; }

/* Preuves (hero) */
.proofs { margin-top: 44px; display: grid; gap: 10px; max-width: 560px; }
.proof { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--navy); }
.proof::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-pale); margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304437F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; }

/* Constat : chiffres d'observation */
.observation { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .observation { grid-template-columns: 1fr; } }
.observation .stat-value { font-size: 2.6rem; }
.observation .stat-label { text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 400; line-height: 1.5; }
.observation .stat-source { display: block; margin-top: 12px; color: var(--on-navy-3); font-size: 0.78rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-pale); display: grid; place-items: center; font-weight: 700; color: var(--navy); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); padding: 0 0 18px; margin: 0; }

/* Formulaire */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field small { color: var(--text-2); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; color: var(--navy); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field textarea { min-height: 96px; resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-2); }
.form-consent input { margin-top: 4px; }
.hidden { display: none !important; }

/* Bandeau propriétaires / passerelle */
.strip { background: var(--teal-pale); padding: 22px 0; }
.strip .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.strip p { color: var(--navy); }

/* Extrait d'appel (transcription simulée) */
.transcript { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 28px; }
.transcript .chat { margin-top: 14px; }
.transcript .note { margin-top: 14px; color: var(--on-navy-3); font-size: 0.82rem; }

/* Cartes produit compactes (page d'accueil) */
.product-mini h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.product-mini p { color: var(--text-2); font-size: 0.95rem; }
.product-mini .more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--navy); }
.product-mini .more:hover { color: var(--teal); }
