/* ============================================================
   Dentiq — thème clair SaaS médical
   Palette : blanc / gris perle / encre / framboise magenta
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --bg-2: #F7F7F8;        /* gris perle — sections & cartes */
  --bg-3: #EFEFF1;        /* gris un cran plus soutenu */
  --card: #FFFFFF;
  --ink: #120A10;         /* quasi-noir, légère teinte magenta */
  --ink-soft: #73696F;    /* texte secondaire */
  --line: #EAE7E9;        /* bordures neutres */
  --accent: #C7437A;      /* framboise magenta Dentiq */
  --accent-dark: #9C3361;
  --accent-soft: #FAEAF0;
  --accent-line: #F0C6D8;
  --ok: #2B7F5C;           /* garde le vert pour les états "réussi" (statuts, confirmations) */

  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;
  --shadow: 0 24px 60px -28px rgba(11,18,15,.18);
  --shadow-sm: 0 8px 24px -14px rgba(11,18,15,.16);
  --ease: cubic-bezier(.16,1,.3,1); /* expo-out — signature Framer */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* Titres en serif éditorial, corps de texte en sans-serif — le serif porte
   aussi l'emphase (italique) sur le texte mis en avant. */
h1, h2, h3 { font-family: var(--font-serif); letter-spacing: -.01em; font-weight: 500; }
strong { font-family: var(--font-serif); font-style: italic; font-weight: 600; }

/* ============ Icônes inline (remplacent les emojis) ============ */
.f-icon svg { width: 22px; height: 22px; color: var(--accent); }
.feature--hero .f-icon svg { color: #fff; }
.chip-icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; color: currentColor; display: inline-block; }
.check-icon { width: 13px; height: 13px; vertical-align: -1px; margin-right: 6px; color: var(--accent); display: inline-block; }
.fc-icon { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; color: var(--accent); display: inline-block; }
.link-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; color: var(--accent); display: inline-block; }

/* ============ Boutons — verre dépoli + reflet lumineux au survol ============ */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .2s, border-color .2s;
  white-space: nowrap;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
/* reflet diagonal qui balaie le bouton au survol */
.btn::before {
  content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg); pointer-events: none; z-index: 1;
}
.btn:hover::before { animation: btn-shine .85s ease; }
@keyframes btn-shine { from { left: -75%; } to { left: 135%; } }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: rgba(199,67,122,.88); color: #fff; border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 28px -14px rgba(199,67,122,.55);
}
.btn-primary:hover { background: rgba(156,51,97,.92); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 20px 36px -16px rgba(199,67,122,.6); }
.btn-soft {
  background: rgba(255,255,255,.55); color: var(--ink); border-color: rgba(255,255,255,.75);
  box-shadow: var(--shadow-sm);
}
.btn-soft:hover { border-color: var(--ink); background: rgba(255,255,255,.8); transform: translateY(-2px); }
.btn-dark { background: rgba(11,18,15,.85); color: #fff; border-color: rgba(255,255,255,.12); }
.btn-dark:hover { background: rgba(26,38,33,.92); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover::before { animation: none; }
}

/* ============ Nav ============ */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.7); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.is-scrolled { border-color: var(--line); background: rgba(255,255,255,.92); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 18px;
}
.nav-inner .nav-links { margin-left: auto; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 27px; height: 27px; color: var(--accent); }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.lang-switch {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px; transition: color .2s, border-color .2s;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }
.nav-burger { display: none; }

/* ============ Hero ============ */
.hero { padding: 96px 24px 90px; overflow: hidden; }
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero-copy { max-width: 560px; }
.chip {
  display: inline-block; font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--ink); border: 1px solid var(--ink);
  padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 500; line-height: 1.06; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-sub { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 480px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { margin-top: 28px; display: flex; gap: 20px; flex-wrap: wrap; }
.hero-proof li { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; }

/* Titres — révélation ligne par ligne (masque + montée), au chargement */
.line-mask { display: block; overflow: hidden; }
.line {
  display: block; opacity: 0; transform: translateY(110%) rotate(1deg);
  animation: line-rise 1s var(--ease) forwards;
  animation-delay: calc(.15s + var(--d, 0) * .14s);
}
.line.accent { color: var(--accent); font-style: italic; }
@keyframes line-rise { to { opacity: 1; transform: translateY(0) rotate(0); } }

/* Visuel du hero — illustration vectorielle de dent, halo flou animé et
   cartes "verre dépoli" flottantes, chacune à sa propre vitesse pour donner
   une impression de profondeur/parallaxe légère sans dépendre du scroll. */
.hero-visual { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }

.hero-blob {
  position: absolute; inset: 0; margin: auto; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,67,122,.5), rgba(199,67,122,.16) 60%, transparent 75%);
  filter: blur(46px); z-index: 0;
  animation: blob-float 9s ease-in-out infinite, blob-morph 15s ease-in-out infinite;
}
@keyframes blob-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-18px) scale(1.07); } }
@keyframes blob-morph { 0%, 100% { border-radius: 50%; } 50% { border-radius: 42% 58% 55% 45%; } }

.hero-tooth {
  position: relative; z-index: 1; width: 290px; height: auto; display: block;
  /* nacré / perle : désaturation complète + léger boost de contraste, pas de teinte */
  filter: drop-shadow(0 30px 40px rgba(15,23,20,.22)) grayscale(1) contrast(1.08) brightness(1.05);
  animation: float-tooth 6.5s ease-in-out infinite;
}
@keyframes float-tooth { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-1.5deg); } }

.glass-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.65); border-radius: var(--r-pill);
  box-shadow: 0 22px 44px -22px rgba(11,18,15,.3);
  font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 11px 18px;
  white-space: nowrap;
}
/* les 5 cartes chevauchent volontairement la dent (positions resserrées vers
   le centre), chacune à sa propre vitesse/amplitude de flottement. */
.gc-whatsapp { top: 6%; left: 4%; animation: float-a 7s ease-in-out infinite; }
.gc-patients { top: 6%; right: 2%; animation: float-d 7.8s ease-in-out infinite; animation-delay: .5s; }
.gc-ai { bottom: 14%; right: -2%; animation: float-b 8.5s ease-in-out infinite; animation-delay: .8s; }
.gc-secure { bottom: 10%; left: 8%; animation: float-e 9.5s ease-in-out infinite; animation-delay: 1.2s; }
.gc-chart {
  top: 38%; left: 8%; border-radius: var(--r-md); flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px 18px; animation: float-c 10s ease-in-out infinite; animation-delay: .3s;
}
@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes float-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5px, -9px); } }
@keyframes float-d { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, 10px); } }
@keyframes float-e { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(7px, -8px); } }

.gc-chart-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.gc-chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.gc-bar {
  width: 6px; height: var(--h, 40%); border-radius: 3px 3px 0 0; background: var(--accent);
  transform-origin: bottom; animation: bar-grow 2.2s ease-in-out infinite alternate;
}
.gc-bar:nth-child(2) { animation-delay: .12s; } .gc-bar:nth-child(3) { animation-delay: .24s; }
.gc-bar:nth-child(4) { animation-delay: .36s; } .gc-bar:nth-child(5) { animation-delay: .48s; }
.gc-bar:nth-child(6) { animation-delay: .6s; }
@keyframes bar-grow { from { transform: scaleY(.72); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero-blob, .hero-tooth, .glass-card, .gc-bar { animation: none; }
}

/* ============ Bandeau confiance ============ */
.trust { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 24px; }
.trust-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
.trust-item { text-align: center; position: relative; padding: 0 12px; }
.trust-item:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 30px; background: var(--line);
}
.trust-item strong { display: block; font-family: var(--font-display); font-size: 17px; color: var(--ink); font-weight: 700; }
.trust-item span { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* ============ Sections communes ============ */
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; padding: 0 24px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; line-height: 1.12; }
.section-sub { margin-top: 14px; font-size: 16.5px; color: var(--ink-soft); }

/* ============ Fonctionnalités — bento ============ */
@property --angle {
  syntax: '<angle>'; inherits: false; initial-value: 0deg;
}
@keyframes spin-border { to { --angle: 360deg; } }

.features { padding: 100px 0 96px; }
.feature-grid {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 230px 230px 160px;
  gap: 18px;
}
.feature-grid .feature:nth-child(1) { grid-column: 1; grid-row: 1; }
.feature-grid .feature:nth-child(2) { grid-column: 2; grid-row: 1; }
.feature-grid .feature:nth-child(3) { grid-column: 1; grid-row: 2; }
.feature-grid .feature:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
.feature-grid .feature:nth-child(5) { grid-column: 2; grid-row: 2; }
.feature-grid .feature:nth-child(6) { grid-column: 1 / span 3; grid-row: 3; }

.feature {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

/* bordure lumineuse animée — discrète : un léger reflet qui tourne, pas un
   contour saturé. Révélée au survol, permanente sur les tuiles mises en avant. */
.feature::after {
  content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 75%, rgba(199,67,122,.5) 87%, rgba(244,192,216,.7) 94%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; z-index: 3;
  animation: spin-border 5.5s linear infinite paused;
}
.feature:hover::after { opacity: 1; animation-play-state: running; }

.f-icon {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  font-size: 22px; background: var(--card); border: 1px solid var(--line); margin-bottom: 20px;
  transition: transform .4s var(--ease);
}
.feature:hover .f-icon { transform: scale(1.08) rotate(-4deg); }
.feature h3 { font-size: 18.5px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* Tuile hero — Assistant IA : grande carte verte, bordure lumineuse permanente */
.feature--hero {
  background: linear-gradient(165deg, var(--accent), var(--accent-dark) 70%);
  border-color: transparent; color: #fff;
  justify-content: space-between;
}
.feature--hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}
.feature--hero::after {
  opacity: 1; animation-play-state: running;
  background: conic-gradient(from var(--angle), transparent 0 70%, rgba(255,255,255,.55) 84%, transparent 96%);
}
.feature--hero:hover {
  background: linear-gradient(165deg, var(--accent-dark), var(--accent) 70%);
  transform: translateY(-6px);
}
.feature--hero h3, .feature--hero p { color: #fff; }
.feature--hero p { color: rgba(255,255,255,.92); }
.feature--hero .f-icon { margin-bottom: 0; }
.f-icon--accent { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
.f-tag {
  position: absolute; top: 30px; right: 28px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 5px 12px; border-radius: var(--r-pill);
}
.feature--hero h3 { margin-top: auto; font-size: 21px; }

/* Tuile large — Sécurité & conformité : bannière horizontale */
.feature--wide { flex-direction: row; align-items: center; gap: 24px; padding: 26px 32px; }
.feature--wide .f-icon { margin-bottom: 0; flex-shrink: 0; }
.feature--wide .feature-text { display: flex; flex-direction: column; gap: 4px; }
.feature--wide h3 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .feature::after, .feature--hero::after { animation: none; }
}

/* ============ Étapes — cartes empilées au scroll ============ */
.process { background: var(--ink); padding: 88px 0 24px; }
.section-head--dark h2 { color: #fff; }
.kicker--on-dark { color: rgba(255,255,255,.85); }

.stack { max-width: 1020px; margin: 0 auto; padding: 24px 24px 12vh; display: flex; flex-direction: column; gap: 9vh; }
.stack-card {
  position: sticky;
  background: var(--card); border-radius: var(--r-lg);
  padding: 40px; display: flex; align-items: center; gap: 40px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.55);
  transform-origin: top center;
  will-change: transform, filter;
}
.stack-card:nth-child(1) { top: 96px; z-index: 1; }
.stack-card:nth-child(2) { top: 116px; z-index: 2; }
.stack-card:nth-child(3) { top: 136px; z-index: 3; }

.stack-copy { flex: 1; min-width: 0; }
.stack-num {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--accent); background: var(--accent-soft); border-radius: var(--r-pill);
  padding: 5px 13px; margin-bottom: 16px; letter-spacing: .04em;
}
.stack-copy h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; margin-bottom: 10px; }
.stack-copy p { font-size: 15.5px; color: var(--ink-soft); max-width: 420px; }

.stack-media {
  flex-shrink: 0; width: 340px; height: 264px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}

/* Mini-illustrations — vraies interfaces miniatures (champs, libellés, lignes
   nommées), pas des blocs de squelette abstraits. Même langage que le mock
   d'origine du hero : petites cartes blanches, chiffres et statuts réels. */
.mini-ui {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 20px; font-family: var(--font-body);
}
.mini-ui-top { display: flex; gap: 5px; margin-bottom: 14px; }
.mini-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }

/* Étape 1 — formulaire de création de compte */
.mini-field { margin-bottom: 12px; }
.mini-label { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.mini-input {
  display: block; font-size: 13px; color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px;
}
.mini-cta {
  display: block; margin-top: 14px; text-align: center; font-size: 13.5px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: var(--r-pill); padding: 11px 0;
}

/* Étape 2 — équipe */
.mini-ui-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-ui-head span:first-child { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.mini-add { font-size: 12px; font-weight: 700; color: var(--accent); }
.mini-person { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.mini-person + .mini-person { border-top: 1px solid var(--line); }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); flex-shrink: 0; }
.mini-avatar.accent { background: var(--accent); }
.mini-person-name { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; }
.mini-role { font-size: 11px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-pill); }
.mini-role--sec { color: #8A6A1D; background: #FAF0DB; }
.mini-role--ass { color: var(--ink-soft); background: var(--bg-2); }

/* Étape 3 — tableau de bord */
.mini-ui--dash { padding: 18px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mini-stat {
  display: flex; flex-direction: column; gap: 3px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 10px;
}
.mini-stat--accent { background: var(--accent-soft); border-color: var(--accent-line); }
.mini-stat-num { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.mini-stat--accent .mini-stat-num { color: var(--accent); }
.mini-stat-label { font-size: 10px; color: var(--ink-soft); font-weight: 500; }
.mini-appt {
  display: flex; align-items: center; gap: 11px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; margin-top: 9px;
}
.mini-time { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.mini-appt-name { font-size: 12.5px; font-weight: 600; color: var(--ink); flex: 1; }
.mini-pill { font-size: 10.5px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-pill); }
.mini-pill--warn { color: #8A6A1D; background: #FAF0DB; }

/* ============ Tarifs ============ */
.pricing { padding: 100px 0 96px; }
.plans {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch;
}
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

/* Plan recommandé — même traitement que la tuile "Assistant IA" : carte
   verte, glow et bordure lumineuse discrète, légèrement plus grande que ses
   voisines pour marquer le choix par défaut. */
.plan--best {
  background: linear-gradient(165deg, var(--accent), var(--accent-dark) 70%);
  border-color: transparent; color: #fff;
  box-shadow: var(--shadow);
  transform: scale(1.045); z-index: 1;
}
/* décor confiné aux coins arrondis, séparé du badge pour qu'il ne soit jamais rogné */
.plan-decor { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 0; pointer-events: none; }
.plan-decor::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.16), transparent 60%);
}
.plan--best::after {
  content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 75%, rgba(255,255,255,.5) 87%, transparent 97%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 0; animation: spin-border 5.5s linear infinite;
}
.plan--best > *:not(.plan-decor):not(.plan-badge) { position: relative; z-index: 1; }
.plan--best:hover { transform: scale(1.045) translateY(-4px); }

.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  padding: 6px 18px; border-radius: var(--r-pill); white-space: nowrap;
  box-shadow: 0 10px 20px -8px rgba(11,18,15,.5);
}
.plan h3 { font-size: 22px; font-weight: 600; }
.plan-for { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.plan-price { margin: 24px 0 22px; display: flex; align-items: baseline; gap: 5px; }
.plan-price .num { font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1; }
.plan-price .cur { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink-soft); }
.plan-price .per { font-size: 14px; color: var(--ink-soft); }
.plan ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan li { font-size: 14.5px; color: var(--ink-soft); padding-left: 26px; position: relative; }
.plan li strong { color: var(--ink); }
.plan li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  background: var(--card); color: var(--accent);
}
.plan-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-soft); }
.pricing-fineprint {
  max-width: 1060px; margin: 32px auto 0; padding: 0 24px;
  text-align: center; font-size: 12px; line-height: 1.7; color: var(--ink-soft); opacity: .8;
}

/* Overrides du plan recommandé — placés APRÈS les règles génériques
   ci-dessus pour gagner le conflit de cascade (même spécificité, ordre de
   source). Les couleurs de texte du plan--best doivent venir en dernier. */
.plan--best h3, .plan--best .plan-price .num { color: #fff; }
.plan--best .plan-for, .plan--best .plan-price .cur, .plan--best .plan-price .per,
.plan--best .plan-note { color: rgba(255,255,255,.78); }
.plan--best li { color: rgba(255,255,255,.9); }
.plan--best li strong { color: #fff; }
.plan--best li::before { background: rgba(255,255,255,.18); color: #fff; }
.plan--best .btn-primary {
  background: #fff; color: var(--accent-dark);
  box-shadow: 0 14px 28px -14px rgba(0,0,0,.35);
}
.plan--best .btn-primary:hover { background: #EFF6F2; }

/* ============ FAQ ============ */
.faq { background: var(--bg-2); padding: 96px 24px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 24px; overflow: hidden;
  transition: border-color .28s, padding-bottom .32s cubic-bezier(.4,0,.2,1);
}
.faq details.is-open { border-color: var(--accent-line); padding-bottom: 20px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 20px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.faq-plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq details.is-open .faq-plus::after { transform: scaleY(0); }
/* Accordéon en grid-template-rows (0fr ↔ 1fr) : contrairement à "height",
   ceci n'est pas perturbé par le padding et ne saccade pas à la fermeture. */
.faq-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.4,0,.2,1);
}
.faq details.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > p {
  overflow: hidden; min-height: 0;
  padding: 0; color: var(--ink-soft); font-size: 15px; max-width: 620px;
}

/* ============ Contact ============ */
.contact { padding: 100px 24px; }
.contact-inner {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch;
}
.contact-copy--panel {
  background: linear-gradient(155deg, var(--accent), var(--accent-dark));
  border-radius: var(--r-lg); padding: 40px 36px; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-copy--panel h2 { color: #fff; }
.contact-copy--panel .section-sub { color: rgba(255,255,255,.82); }
.contact-copy .section-sub { max-width: 380px; }
.contact-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; }
.contact-copy .kicker { margin-bottom: 12px; }
.contact-links { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-links a { font-weight: 600; font-size: 15.5px; color: #fff; display: inline-flex; align-items: center; }
.contact-links a:hover { opacity: .85; }
.contact-links .link-icon { color: #fff; }

.contact-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 36px; display: flex; flex-direction: column; gap: 18px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; }
.contact-form label span { font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7370' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff;
}
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #C0392B; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 52px 24px 28px; background: var(--bg); }
.footer-inner {
  max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 32px;
}
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); max-width: 300px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { max-width: 1160px; margin: 0 auto; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 24px; }
.footer-bottom a:hover { color: var(--ink); }

/* ============ Animations ============ */
.reveal { opacity: 0; transform: translateY(16px) scale(.99); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .12s); }
@keyframes rise { to { opacity: 1; transform: translateY(0) scale(1); } }
.scroll-reveal {
  opacity: 0; transform: translateY(26px) scale(.98);
  transition: opacity .7s var(--ease) var(--sd, 0ms), transform .7s var(--ease) var(--sd, 0ms);
}
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
/* .plan--best doit rester agrandi même une fois révélé — règle plus
   spécifique pour gagner sur .scroll-reveal.is-visible ci-dessus. */
.plan--best.scroll-reveal.is-visible { transform: scale(1.045); }
.plan--best.scroll-reveal.is-visible:hover { transform: scale(1.045) translateY(-4px); }

/* Compteurs — tabular figures pour éviter le tremblement du texte pendant le décompte */
.count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .scroll-reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .feature::after, .feature--hero::after { animation: none; }
  .plan--best::after { animation: none; }
  .stack-card, .stack-card .stack-media { transform: none !important; filter: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; text-align: center; }
  .hero-copy { max-width: 560px; margin: 0 auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { height: 380px; }
  .hero-blob { width: 280px; height: 280px; }
  .hero-tooth { width: 200px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2)::after { display: none; }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: minmax(210px, auto);
  }
  .feature-grid .feature:nth-child(n) { grid-column: auto; grid-row: auto; }
  .feature-grid .feature:nth-child(4) { grid-column: 1 / -1; }
  .feature-grid .feature:nth-child(6) { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .plan--best { transform: none; }
  .plan--best:hover { transform: translateY(-4px); }
  .stack { gap: 16vh; }
  .stack-card { flex-direction: column; padding: 32px; gap: 28px; }
  .stack-media { width: 100%; aspect-ratio: 16/9; height: auto; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: 8px; }
  .nav-links a:hover { background: var(--bg-2); }
  .nav-cta { display: none; }
  .lang-switch { margin-left: auto; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; padding: 8px; cursor: pointer;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature--wide { flex-direction: column; align-items: flex-start; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero { padding-top: 56px; }
  .hero-visual { height: 300px; }
  .hero-tooth { width: 160px; }
  .hero-blob { width: 220px; height: 220px; }
  .glass-card { display: none; }
  .stack-card { padding: 24px; top: 16px !important; }
}
