/* ==========================================================================
   Creatis — site public (design 2026, langage visuel du groupe 2Bgroups)
   Clair et aéré, grandes typographies Plus Jakarta Sans, rubans de lumière animés
   aux couleurs du logo (orange / bleu), barre de navigation en pilule, mouvements au défilement.
   ========================================================================== */

@import url('/assets/fonts/fonts-local.css');

:root {
  --bg: #fbfaf7;
  --bg-2: #f4f2ee;
  --surface: #ffffff;
  --surface-2: rgba(11, 13, 18, 0.028);
  --surface-3: rgba(11, 13, 18, 0.055);
  --line: rgba(11, 13, 18, 0.085);
  --line-2: rgba(11, 13, 18, 0.14);
  --ink: #0b0d12;
  --ink-2: #3a404c;
  --ink-3: #697080;
  --orange: #f2501f;
  --orange-2: #fd9431;
  --orange-3: #ffb15a;
  --blue: #0b6fd2;
  --blue-2: #1592f1;
  --blue-3: #58b4ff;
  --good: #0a8754;
  --bad: #d22c3a;
  --warn: #b26200;
  --grad: linear-gradient(100deg, #f2501f 0%, #fd9431 42%, #1592f1 100%);
  --grad-warm: linear-gradient(100deg, #ef4a1c 0%, #fd9431 100%);
  --grad-cool: linear-gradient(100deg, #0b6fd2 0%, #58b4ff 100%);
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.05), 0 4px 14px -8px rgba(11, 13, 18, 0.12);
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 22px 50px -26px rgba(11, 13, 18, 0.28);
  --shadow-lg: 0 40px 100px -40px rgba(11, 13, 18, 0.45), 0 10px 30px -18px rgba(11, 13, 18, 0.2);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
::selection { background: rgba(253, 148, 49, 0.28); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--ink-3); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: var(--ink-2); line-height: 1.6; max-width: 640px; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

/* Étiquette en pilule (remplace les anciens « eyebrows ») */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2);
  padding: 6px 13px 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-warm); box-shadow: 0 0 0 3px rgba(242, 80, 31, 0.14); }
.blueprint, .glow, .cube { display: none !important; }

/* ─── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.97rem; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff; background: var(--grad-warm);
  box-shadow: 0 10px 28px -10px rgba(242, 80, 31, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(242, 80, 31, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-dark { color: #fff; background: var(--ink); box-shadow: 0 12px 30px -14px rgba(11, 13, 18, 0.7); }
.btn-dark:hover { transform: translateY(-1px); background: #1a1d25; }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.82); border-color: var(--line-2); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-1px); border-color: rgba(11, 13, 18, 0.22); background: #fff; }
.btn.is-disabled, .btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-arrow::after { content: '→'; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ─── En-tête : barre pleine largeur, transparente puis voilée au défilement ─ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background 0.35s ease, box-shadow 0.35s ease; }
.site-header.is-scrolled { background: rgba(251, 250, 247, 0.84); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); }
.site-header .nav { display: flex; align-items: center; gap: 44px; width: min(calc(var(--wrap) + 140px), calc(100% - 40px)); height: 78px; margin: 0 auto; transition: height 0.35s var(--ease); }
.site-header.is-scrolled .nav { height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.24rem; letter-spacing: -0.035em; }
.brand img { width: 28px; height: auto; }
.brand-word::after { content: '.'; color: var(--orange-2); }
.nav-menu { flex: 1; display: flex; align-items: center; gap: 28px; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-links a { position: relative; display: block; padding: 6px 0; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 0.4s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current='page']::after { transform: scaleX(1); background: var(--grad-warm); }
.nav-actions { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.nav-login { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.nav-login:hover { color: var(--ink); }
/* Sélecteur de langue FR / EN : discret, en pilule */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); }
.lang-switch a { position: relative; padding: 4px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; line-height: 1.25; color: var(--ink-3); transition: color 0.2s, background 0.2s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span { top: 20px; }
.nav-toggle span::before { content: ''; left: 0; top: -6px; }
.nav-toggle span::after { content: ''; left: 0; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Vidéo de démonstration pleine largeur */
.media-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #0b0d12; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 13, 18, 0.1); }
.media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ─── Sections ────────────────────────────────────────────────────────────── */
main { display: block; }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }
.section-head.center .eyebrow { margin: 0 auto; }

/* Rubans animés (canvas inséré par motion.js) */
.silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.silk.is-live { opacity: 1; }
.silk-fallback { opacity: 1; background: radial-gradient(60% 80% at 85% 10%, rgba(253, 148, 49, 0.25), transparent 70%), radial-gradient(50% 70% at 10% 90%, rgba(21, 146, 241, 0.16), transparent 70%); }

/* ─── Héros d'accueil ─────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 90px; overflow: hidden; isolation: isolate; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
/* Voile doux derrière le texte : les rubans restent bien visibles autour sans gêner la lecture */
.hero .wrap::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(980px, 100%); height: 118%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(251, 250, 247, 0.9), rgba(251, 250, 247, 0.6) 55%, rgba(251, 250, 247, 0)); pointer-events: none; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(3.3rem, 9.4vw, 8.4rem); line-height: 0.95; letter-spacing: -0.055em; margin-top: 26px; }
.hero h1 .line { display: block; }
.hero .hero-sub { display: block; font-size: clamp(1.9rem, 4.6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.04em; margin-top: 10px; }
.hero .lead { margin: 28px auto 0; text-align: center; max-width: 660px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 0.86rem; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--good); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border-radius: 999px; border: 1.5px solid var(--line-2); }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink-3); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ─── Film : salle de projection ──────────────────────────────────────────── */
.cinema { position: relative; overflow: hidden; isolation: isolate; margin: 0 clamp(8px, 1.4vw, 20px); padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 100px); border-radius: clamp(26px, 3vw, 44px); background: #08090c; color: #fff; }
.cinema .silk { border-radius: inherit; }
.cinema > .wrap { position: relative; z-index: 2; }
.cinema-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 24px 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.cinema-head .eyebrow { color: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.cinema-head h2 { margin-top: 18px; color: #fff; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 0.98; letter-spacing: -0.055em; }
.cinema-head p { color: rgba(255, 255, 255, 0.64); font-size: 1.06rem; line-height: 1.6; }
.cinema-screen { position: relative; border-radius: clamp(16px, 2vw, 24px); overflow: hidden; background: #000; box-shadow: 0 70px 140px -50px rgba(242, 80, 31, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1); will-change: transform; }
.cinema-screen video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.cinema-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45)); transition: opacity 0.5s; }
.cinema-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 14px;
  height: 66px; padding: 0 28px 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 13, 18, 0.5); color: #fff; font: 600 1.04rem/1 var(--font); white-space: nowrap; cursor: pointer; transform: translate(-50%, -50%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform 0.35s var(--ease), background 0.3s, opacity 0.4s;
}
.cinema-play:hover { transform: translate(-50%, -50%) scale(1.05); background: rgba(11, 13, 18, 0.7); }
.cinema-play b { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-warm); }
.cinema-play b::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(253, 148, 49, 0.7); animation: ring 2.2s var(--ease) infinite; }
.cinema-play b svg { width: 15px; height: 15px; margin-left: 3px; }
@keyframes ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.cinema-screen.is-playing::after, .cinema-screen.is-playing .cinema-play { opacity: 0; pointer-events: none; }
.cinema .film-caption .chip { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.78); box-shadow: none; }
@media (max-width: 760px) {
  .cinema-head { grid-template-columns: 1fr; }
  .cinema-play { height: 54px; padding: 0 20px 0 8px; font-size: 0.94rem; gap: 10px; }
  .cinema-play b { width: 38px; height: 38px; }
}
.film-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.chip i.b { background: var(--blue-2); }
.chip i.g { background: #22b573; }
.chip i.v { background: #7c5cff; }


/* ─── Défilant des métiers ────────────────────────────────────────────────── */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.marquee-track span::after { content: ''; width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: var(--grad-warm); }
.marquee-track span:nth-child(3n)::after { background: var(--grad-cool); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Récit épinglé : de la parcelle au chantier ─────────────────────────── */
.story { position: relative; }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.story-steps { padding: 10vh 0 30vh; }
.story-step { padding: 26px 0 26px 26px; border-left: 2px solid var(--line); opacity: 0.38; transition: opacity 0.5s var(--ease), border-color 0.5s; }
.story-step + .story-step { margin-top: 34vh; }
.story-step.is-active { opacity: 1; border-left-color: var(--orange); }
.story-step .n { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--orange); }
.story-step h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.04em; margin-top: 10px; line-height: 1.08; }
.story-step p { margin-top: 14px; color: var(--ink-2); font-size: 1.04rem; max-width: 440px; }
.story-step ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.story-step li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: 0.95rem; }
.story-step li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-2); transform: translateY(-2px); }
.story-media { position: sticky; top: 14vh; height: 72vh; display: flex; align-items: center; }
.story-frame { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #0b0d12; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 13, 18, 0.1); }
.story-frame video, .story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.story-frame .is-on { opacity: 1; transform: none; }
.story-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.15); z-index: 2; }
.story-progress i { display: block; height: 100%; width: 0; background: var(--grad-warm); }
.story-label { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 7px 12px; border-radius: 999px; background: rgba(11, 13, 18, 0.6); color: #fff; font-size: 0.8rem; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ─── Grille « bento » ────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; grid-column: span 2; min-height: 300px; padding: 30px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(253, 148, 49, 0.14), transparent 60%); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile:hover::before { opacity: 1; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; }
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.035em; line-height: 1.12; }
.tile p { margin-top: 10px; color: var(--ink-2); font-size: 0.98rem; max-width: 460px; }
.tile .kicker { font-size: 0.78rem; font-weight: 600; color: var(--ink-3); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.tile .kicker svg { width: 16px; height: 16px; color: var(--orange); }
.tile-media { margin-top: auto; padding-top: 22px; }
.tile-media img, .tile-media video { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.tile-dark { background: #0b0d12; color: #fff; border-color: rgba(255, 255, 255, 0.06); }
.tile-dark h3 { color: #fff; }
.tile-dark p, .tile-dark .kicker { color: rgba(255, 255, 255, 0.66); }
.tile-dark::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(88, 180, 255, 0.18), transparent 60%); }
.tile-warm { background: linear-gradient(150deg, #ff6a2c 0%, #fd9431 55%, #ffc27a 100%); color: #fff; border: 0; }
.tile-warm h3, .tile-warm p, .tile-warm .kicker, .tile-warm .kicker svg { color: #fff; }
.tile-warm p { opacity: 0.9; }
.tile-cool { background: linear-gradient(150deg, #0a5fc0 0%, #1592f1 60%, #6cc0ff 100%); color: #fff; border: 0; }
.tile-cool h3, .tile-cool p, .tile-cool .kicker, .tile-cool .kicker svg { color: #fff; }
.tile-cool p { opacity: 0.9; }
.big-num { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5.6rem); letter-spacing: -0.06em; line-height: 1; margin-top: auto; }
.big-num small { font-size: 0.38em; letter-spacing: -0.02em; margin-left: 6px; opacity: 0.8; }

/* Saisie IA animée */
.typer { margin-top: auto; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.98rem; color: #fff; min-height: 58px; display: flex; align-items: center; gap: 10px; }
.typer svg { width: 18px; height: 18px; flex: none; color: var(--orange-2); }
.typer .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--orange-2); margin-left: 2px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typer-out { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.typer-out span { font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.typer-out span.on { opacity: 1; transform: none; }

/* Réseaux : tracés qui se dessinent */
.wires { margin-top: auto; width: 100%; height: auto; }
.wires path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Liste de formats */
.format-list { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.format-list span { font-family: var(--mono); font-size: 0.8rem; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }

/* ─── Mode Simple / Expert : grandes cartes à dégradé ─────────────────────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card { position: relative; overflow: hidden; border-radius: 34px; padding: clamp(32px, 4vw, 56px); min-height: 520px; display: flex; flex-direction: column; color: #fff; isolation: isolate; }
.duo-card h3 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.045em; margin-top: 14px; }
.duo-card p { color: rgba(255, 255, 255, 0.86); margin-top: 14px; font-size: 1.06rem; max-width: 440px; }
.duo-card .kicker { font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.duo-card .btn { margin-top: 26px; align-self: flex-start; }
.duo-card img { margin-top: auto; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55); transform: translateY(40px); }
.duo-simple { background: radial-gradient(120% 90% at 0% 0%, #ff7a3a 0%, #f2501f 45%, #c4380f 100%); }
.duo-expert { background: radial-gradient(120% 90% at 100% 0%, #3aa0ff 0%, #0b6fd2 50%, #083f80 100%); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.4); }
.btn-white:hover { transform: translateY(-1px); }
.duo-card :focus-visible { outline-color: #fff; } /* contour bleu invisible sur les cartes orange et bleue */

/* ─── Chiffres ────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 3.4rem); letter-spacing: -0.05em; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }

/* ─── Bandeau final sombre ────────────────────────────────────────────────── */
.final { position: relative; overflow: hidden; border-radius: 40px; margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(24px, 6vw, 80px); background: #08090c; color: #fff; text-align: center; isolation: isolate; }
.final .silk { border-radius: inherit; }
.final::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(70% 75% at 50% 52%, rgba(8, 9, 12, 0.82) 0%, rgba(8, 9, 12, 0.5) 55%, rgba(8, 9, 12, 0.05) 100%); }
.cta-band::before, .auth-side::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 9, 12, 0.78) 0%, rgba(8, 9, 12, 0.35) 60%, transparent 100%); }
.final > *:not(.silk) { position: relative; z-index: 2; }
.final h2 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.05em; }
.final p { color: rgba(255, 255, 255, 0.72); margin: 20px auto 0; max-width: 560px; font-size: 1.1rem; }
.final .hero-cta { margin-top: 34px; }
.final .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.final .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.mark-anim { width: 96px; height: 110px; margin: 0 auto 26px; overflow: visible; }
.mark-anim polygon { transform-box: view-box; transform-origin: 256px 256px; }

/* ─── Pages intérieures ───────────────────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; padding: 170px 0 70px; isolation: isolate; }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .inner { max-width: 820px; }
.page-hero.center .inner { margin: 0 auto; text-align: center; }
.page-hero.center .inner > img { margin: 0 auto; }
.page-hero h1 { margin-top: 20px; font-size: clamp(2.7rem, 6.4vw, 5.2rem); letter-spacing: -0.05em; line-height: 0.98; }
.page-hero .lead { margin-top: 22px; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.hero-cta.left, .page-hero:not(.center) .hero-cta { justify-content: flex-start; }

/* Outils */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s; }
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(242, 80, 31, 0.3); }
.tool svg { width: 20px; height: 20px; color: var(--orange); flex: none; }

/* Colonnes texte / illustration */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split h2 { margin-top: 18px; }
.split-list { display: grid; gap: 18px; margin-top: 30px; }
.split-item { display: flex; gap: 16px; }
.split-item .num { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--orange); font-weight: 700; font-size: 0.85rem; }
.split-item h3 { font-size: 1.06rem; }
.split-item p { color: var(--ink-2); font-size: 0.95rem; margin-top: 4px; }
.prompt-card { padding: 14px; border-radius: 26px; background: #0b0d12; box-shadow: var(--shadow-lg); }
.prompt-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; border-radius: 14px; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; transition: background 0.3s; }
.prompt-row code { font-family: var(--font); }
.prompt-row small { font-family: var(--mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 0.06em; }
.prompt-row.active { background: rgba(255, 255, 255, 0.07); color: #fff; box-shadow: inset 0 0 0 1px rgba(253, 148, 49, 0.4); }

/* Cartes génériques (fonctionnalités, feuille de route) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 80, 31, 0.08); color: var(--orange); margin-bottom: 18px; }
.feature-ico svg { width: 22px; height: 22px; stroke-width: 1.8; }
.feature p { color: var(--ink-2); margin-top: 8px; font-size: 0.97rem; }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rm { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.rm small { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); }
.rm small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.rm.done small { color: var(--good); }
.rm.done small::before { background: var(--good); box-shadow: 0 0 0 3px rgba(10, 135, 84, 0.15); }
.rm h3 { margin-top: 14px; }
.rm p { color: var(--ink-2); font-size: 0.93rem; margin-top: 8px; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.format { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; align-items: center; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.format code { grid-row: span 2; font-family: var(--mono); font-size: 0.86rem; font-weight: 500; padding: 9px 11px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.format span:not(.pill) { font-size: 0.92rem; color: var(--ink-2); }
.pill { justify-self: start; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.ok { color: var(--good); background: rgba(10, 135, 84, 0.1); }
.pill.soon { color: var(--warn); background: rgba(178, 98, 0, 0.1); }

/* Fiche technique */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spec { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.spec h3 { margin-bottom: 14px; }
.spec dl { margin: 0; }
.spec .row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

/* Tarifs */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.billing-toggle button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--ink-3); cursor: pointer; }
.billing-toggle button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.is-highlight { background: #0b0d12; color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.is-highlight .plan-name, .plan.is-highlight .plan-price strong { color: #fff; }
.plan.is-highlight .plan-tag, .plan.is-highlight .plan-price span, .plan.is-highlight li { color: rgba(255, 255, 255, 0.72); }
.plan.is-highlight .plan-credits { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.8); }
.plan-badge { position: absolute; top: 22px; right: 22px; font-size: 0.75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; color: #fff; background: var(--grad-warm); }
.plan-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.plan-tag { color: var(--ink-3); font-size: 0.93rem; margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price strong { font-family: var(--display); font-size: 3.1rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan-price span { color: var(--ink-3); font-size: 0.92rem; }
.plan-credits { font-size: 0.86rem; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); }
.plan-credits b { white-space: nowrap; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--orange); margin-top: 2px; }
.pricing-note { text-align: center; color: var(--ink-3); font-size: 0.88rem; margin-top: 18px; }
.compare-wrap { overflow-x: auto; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 22px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th[scope='row'], .compare thead th:first-child { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare thead th { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.compare .grp th { text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); padding: 11px 22px; }
.compare .yes { color: var(--orange); font-weight: 700; }
.compare .no { color: var(--ink-3); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow 0.3s, border-color 0.3s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 1.2rem; font-weight: 500; transition: transform 0.35s var(--ease), background 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(242, 80, 31, 0.12); color: var(--orange); }
.faq details p { padding: 0 26px 24px; color: var(--ink-2); }

/* Téléchargement */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl-card { padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 20px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dl-card.is-mine { border-color: rgba(242, 80, 31, 0.4); box-shadow: 0 0 0 4px rgba(242, 80, 31, 0.08), var(--shadow); }
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-os { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #0b0d12; }
.dl-os svg { width: 26px; height: 26px; }
.dl-head h3 { font-size: 1.5rem; }
.dl-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--ink-3); margin-top: 4px; }
.dl-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.dl-status.ready { color: var(--good); }
.dl-status.ready i { background: var(--good); box-shadow: 0 0 0 3px rgba(10, 135, 84, 0.15); }
.dl-req { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.dl-req li { padding-left: 16px; position: relative; }
.dl-req li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-2); }
.dl-file { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.install-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.install-steps li { counter-increment: s; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.install-steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--orange); margin-bottom: 18px; }
.install-steps p { color: var(--ink-2); font-size: 0.94rem; margin-top: 8px; }

/* Pages légales */
.legal-nav { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.legal-nav a { padding: 8px 15px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--ink-3); }
.legal-nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.prose { max-width: none; }
.prose > * { max-width: 780px; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.03em; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1rem; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* Formulaires */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  font: inherit; font-size: 0.98rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { height: auto; padding: 14px 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-2); box-shadow: 0 0 0 4px rgba(253, 148, 49, 0.18); }
.field input[aria-invalid='true'] { border-color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 0.86rem; color: var(--ink-3); text-align: center; }
.form-note a, .notice a { color: var(--blue); font-weight: 600; }
.notice { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); }
.notice.ok { background: rgba(10, 135, 84, 0.08); border-color: rgba(10, 135, 84, 0.2); color: #075c39; }
.notice.err { background: rgba(210, 44, 58, 0.07); border-color: rgba(210, 44, 58, 0.22); color: #9b1c27; }
.notice.warn { background: rgba(178, 98, 0, 0.08); border-color: rgba(178, 98, 0, 0.22); color: #7a4300; }
.tabs { display: flex; padding: 4px; border-radius: 999px; background: var(--surface-3); }
.tabs button { flex: 1; border: 0; background: none; height: 42px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink-3); cursor: pointer; transition: background 0.25s, color 0.25s; }
.tabs button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.sso { display: grid; gap: 10px; }
.sso-btn { height: 50px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.sso-btn:hover { transform: translateY(-1px); border-color: rgba(11, 13, 18, 0.24); }
.sso-btn[data-oauth='apple'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sso-or { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 0.82rem; margin: 6px 0; }
.sso-or::before, .sso-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Connexion */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 140px clamp(30px, 6vw, 90px) 80px; background: #08090c; color: #fff; isolation: isolate; }
.auth-side > *:not(.silk) { position: relative; z-index: 2; }
.auth-side h1 { color: #fff; font-size: clamp(2.6rem, 4.8vw, 4.2rem); letter-spacing: -0.05em; margin-top: 26px; }
.auth-side .lead { color: rgba(255, 255, 255, 0.72); margin-top: 20px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 130px 24px 70px; }
.auth-box { width: min(440px, 100%); display: grid; gap: 18px; }

/* Espace client */
.acct-cards { grid-template-columns: repeat(3, 1fr); }
/* Adresse e-mail longue : elle passe à la ligne au lieu d'élargir les cartes du compte */
.acct-cards > *, .acct-cols-2 > * { min-width: 0; }
[data-acct="email"] { overflow-wrap: anywhere; }
.acct-actions { display: grid; gap: 8px; margin-top: 18px; }
.acct-big strong { font-size: 2.8rem; }
.acct-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.acct-bar i { display: block; height: 100%; width: 0; background: var(--grad-warm); border-radius: inherit; transition: width 0.8s var(--ease); }
.acct-small { font-size: 0.84rem; color: var(--ink-3); margin-top: 8px; }
.acct-plans { display: grid; gap: 8px; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.acct-table th, .acct-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.acct-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); font-weight: 600; }
.acct-link { color: var(--blue); font-weight: 600; }
.acct-help { color: var(--ink-3); font-size: 0.9rem; }
.acct-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acct-bar-wrap { margin-top: 10px; }
/* Paiement à l'usage : case de consentement */
.acct-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.acct-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange-2); }
.acct-payg-note { margin-top: 14px; }

/* Bandeau d'appel générique (pages intérieures) */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: clamp(36px, 5vw, 60px); border-radius: 34px; background: #08090c; color: #fff; isolation: isolate; }
.cta-band > *:not(.silk) { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin-top: 10px; }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); }

/* ─── Pied de page ────────────────────────────────────────────────────────── */
.site-footer { padding: 80px 0 40px; margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: var(--ink-3); font-size: 0.94rem; margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-family: var(--font); font-size: 0.8rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 0.94rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.86rem; }
.footer-group { display: inline-flex; align-items: center; gap: 8px; }
.footer-group a { font-weight: 700; color: var(--ink); }

/* ─── Fenêtre modale ──────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(11, 13, 18, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; } /* idem : focus immédiat sur l’action */
.modal-box { width: min(480px, 100%); padding: 32px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(0.98); transition: transform 0.45s var(--ease); }
.modal.is-open .modal-box { transform: none; }
.modal-box h3 { font-size: 1.5rem; }
.modal-box p { color: var(--ink-2); margin-top: 10px; }
.modal-box .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }

/* ─── Apparition au défilement ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.has-gsap .reveal { transition: none; }
.no-js .reveal { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; vertical-align: top; }
.split-line > span { display: inline-block; will-change: transform; }

/* ─── Adaptations ─────────────────────────────────────────────────────────── */
@media (min-width: 901px) {
  .nav-links a, .nav-login { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  /* Barre de navigation avec le sélecteur FR / EN : espacements resserrés pour tenir sur une ligne */
  .site-header .nav { gap: 28px; }
  .nav-menu { gap: 18px; }
  .nav-links { gap: 22px; }
  .nav-actions { gap: 12px; }
}
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.w3, .tile.w4 { grid-column: span 1; }
  .tile.w6 { grid-column: span 2; }
  .roadmap, .install-steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header .nav { position: relative; gap: 16px; }
  body.nav-open .site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .nav-menu { position: absolute; top: 100%; left: -20px; right: -20px; flex-direction: column; align-items: stretch; gap: 18px; padding: 18px 20px 26px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(11, 13, 18, 0.25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s; }
  body.nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { padding: 12px 0; font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
  .nav-links a::after { bottom: 8px; right: auto; width: 28px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-left: 0; gap: 10px; }
  .nav-actions .btn, .nav-login { width: 100%; text-align: center; justify-content: center; }
  .nav-login { display: block; padding: 12px; border: 1px solid var(--line-2); border-radius: 999px; }
  .nav-actions .lang-switch { order: 1; align-self: center; margin-top: 4px; }
  .lang-switch a { padding: 6px 14px; font-size: 0.8rem; }
  .story-grid { grid-template-columns: 1fr; }
  /* Une colonne : l'écran passe au-dessus des étapes pour rester visible pendant le récit */
  .story-media { order: -1; position: sticky; top: 84px; height: auto; z-index: 2; padding: 10px 0; background: linear-gradient(var(--bg) 85%, transparent); }
  .story-steps { padding: 4vh 0 10vh; }
  .story-step + .story-step { margin-top: 18vh; }
  .split, .duo, .dl-grid, .spec-grid, .auth, .acct-cols-2, .cta-band { grid-template-columns: 1fr; }
  .pricing, .features, .acct-cards, .formats { grid-template-columns: 1fr; }
  .auth-side { padding-top: 120px; min-height: 52vh; }
  .auth-main { padding-top: 48px; }
  .duo-card { min-height: 440px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: span 1; min-height: 260px; }
  .roadmap, .install-steps, .stats, .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .spec .row { grid-template-columns: 1fr; gap: 2px; }
  /* Comparatif des formules : les quatre colonnes tiennent dans l'écran */
  .compare:not(.acct-table) { min-width: 0; font-size: 0.82rem; }
  .compare:not(.acct-table) th, .compare:not(.acct-table) td { padding: 12px 7px; }
  .compare:not(.acct-table) th[scope='row'], .compare:not(.acct-table) thead th:first-child, .compare:not(.acct-table) .grp th { padding-left: 14px; }
  .compare:not(.acct-table) thead th { font-size: 0.9rem; }
  .hero { padding-top: 120px; }
  .legal-nav { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* Logiciel : Simple / Expert au-dessus de la grille d'outils ; renvoi vers la page Terrain */
.duo + .tools-grid { margin-top: 28px; }
.story-more { margin-top: 18px; }
.teaser { display: grid; grid-template-columns: 240px 1fr auto; gap: 28px; align-items: center; padding: 16px 28px 16px 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.teaser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.teaser h3 { margin-top: 12px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.teaser p { margin-top: 8px; color: var(--ink-2); }
.teaser-go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-warm); color: #fff; font-size: 1.3rem; }
@media (max-width: 760px) {
  .teaser { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .teaser-go { display: none; }
}
.final .link-arrow { color: #fff; }

/* Relief de particules (particles.js) : fondu en bas du héros, plus discret derrière les bandes sombres */
.hero .silk.particles, .page-hero .silk.particles { -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.final .silk.particles.is-live, .cta-band .silk.particles.is-live, .auth-side .silk.particles.is-live { opacity: 0.7; }
/* Voile doux derrière les textes d'en-tête : les particules restent visibles autour */
.page-hero .inner { position: relative; isolation: isolate; }
.page-hero .inner::before { content: ''; position: absolute; z-index: -1; inset: -50px -80px -40px -80px; background: radial-gradient(closest-side, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.7) 62%, rgba(251, 250, 247, 0)); pointer-events: none; }

/* Bêta publique : pastille près du logo, bloc d'information, version dans l'espace client */
.beta-pill { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-family: var(--font); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0b6fd2; background: rgba(21, 146, 241, 0.1); border: 1px solid rgba(21, 146, 241, 0.28); vertical-align: middle; }
.beta-note { margin-top: 18px; max-width: 640px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.beta-note .beta-pill { margin: 0 6px 0 0; }
.acct-dl-cta { justify-content: flex-start; margin-top: 26px; }
.acct-version { margin-top: 12px; color: var(--ink-3); font-size: 0.9rem; }
