/* ==========================================================================
   EULATECH — Direction artistique « Le Renard »
   Palette tirée du logo : nuit (fond), renard (orange), crème (poitrail),
   écran (anthracite). Motifs : oreilles ▲▲, yeux plissés ◠◠, queue (courbe),
   écran + pied (cartes).
   ========================================================================== */

:root {
  /* Couleurs du logo */
  --night: #170001;
  --night-2: #1f0507;
  --night-3: #2b0c0e;
  --night-4: #3a1517;
  --fox: #f98933;
  --fox-light: #ffa75c;
  --fox-deep: #d9622b;
  --ember: #a8401c;
  --cream: #fcf1de;
  --sand: #ecdcc0;
  --screen: #3c3835;
  --screen-dark: #24211f;
  --ink: #0d0000;

  /* Usages */
  --bg: var(--night);
  --text: #f6e8d3;
  --text-muted: #c9b29a;
  --text-dim: #8f7a68;
  --line: rgba(252, 241, 222, 0.1);
  --line-strong: rgba(252, 241, 222, 0.2);

  --grad-fox: linear-gradient(135deg, var(--fox-light) 0%, var(--fox) 45%, var(--fox-deep) 100%);
  --glow: 0 0 0 1px rgba(249, 137, 51, 0.35), 0 20px 60px -20px rgba(249, 137, 51, 0.45);

  /* Typo */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Rythme */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--fox); color: var(--night); }
:focus-visible { outline: 2px solid var(--fox); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; scroll-margin-top: 60px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--fox); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* Texte accent : dégradé renard */
.fox-text {
  background: var(--grad-fox);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.u-swoosh { position: relative; white-space: nowrap; }
.u-swoosh svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: .45em; overflow: visible; }
.u-swoosh path { stroke: var(--fox); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Eyebrow avec oreilles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fox);
  margin-bottom: 1.4rem;
}
.eyebrow .ears { width: 26px; height: 14px; flex: none; }
.eyebrow .ears path { stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.eyebrow .num { color: var(--text-dim); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { color: var(--text-muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

/* ---------- Boutons ---------- */
.btn {
  --b-bg: var(--grad-fox);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.5em;
  border-radius: 999px;
  border: 0;
  background: var(--b-bg);
  color: var(--night);
  font-weight: 650; font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  box-shadow: 0 10px 30px -10px rgba(249, 137, 51, .6);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(249, 137, 51, .8); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fox); color: var(--fox); }
.btn--dark { background: var(--night); color: var(--cream); box-shadow: 0 10px 30px -12px rgba(23, 0, 1, .6); }
.btn--sm { padding: .75em 1.2em; font-size: .92rem; }
.btn--lg { padding: 1.1em 1.8em; font-size: 1.08rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--fox); font-weight: 600; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 18px;
  transition: padding .4s var(--ease), background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(23, 0, 1, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand img { width: 44px; height: 44px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand .tech { color: var(--fox); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(252, 241, 222, .06); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  position: relative; z-index: 110;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 8px;
    background: var(--night);
    background-image: radial-gradient(circle at 80% 10%, rgba(249, 137, 51, .18), transparent 50%);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a:not(.btn) { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--cream); }
  .nav .btn { margin: 24px 0 0; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter crée un bloc conteneur : on le coupe pour que le menu couvre l'écran */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 130px; padding-bottom: 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 72% 50%, rgba(249, 137, 51, .22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(168, 64, 28, .25), transparent 70%);
}
/* grille façon pixels d'écran */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(252, 241, 222, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 241, 222, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 45%, #000 20%, transparent 75%);
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; margin-bottom: 28px;
  border-radius: 999px; background: rgba(252, 241, 222, .05); border: 1px solid var(--line);
  font-size: .88rem; color: var(--text-muted);
}
.hero-badge .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-fox); display: grid; place-items: center; }
.hero-badge .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--night); animation: pulse 2s infinite; }
@keyframes pulse { 50% { transform: scale(.5); opacity: .5; } }

.hero h1 { margin-bottom: 28px; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

/* Petit fil d'actualité du renard : ce qu'il a déjà fait aujourd'hui */
.ticker {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(252, 241, 222, .05); border: 1px solid var(--line);
  font-size: .95rem; color: var(--text-muted); max-width: 100%;
}
.ticker img { width: 34px; height: 34px; border-radius: 50%; background: var(--night-3); padding: 3px; flex: none; }
.ticker .txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .typed { color: var(--cream); font-weight: 600; }
.ticker .caret { display: inline-block; vertical-align: -2px; width: 2px; height: 1.1em; margin-left: 2px; background: var(--fox); animation: blink 1s steps(1) infinite; }
.ticker .ok { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #8fd18a; color: var(--night); font-size: .75rem; font-weight: 700; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s var(--ease); }
.ticker .ok.show { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: 0; } }

/* Visuel : le renard et ses tâches qui s'envolent de l'écran */
.hero-visual { position: relative; aspect-ratio: 1 / 1.08; max-width: 520px; margin-inline: auto; width: 100%; }
.hero-visual .halo {
  position: absolute; inset: 6% 4% 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 137, 51, .35), rgba(249, 137, 51, 0) 65%);
  filter: blur(10px);
  animation: breathe 6s ease-in-out infinite;
}
.hero-visual .orbit {
  position: absolute; inset: 2%; border-radius: 50%;
  border: 1px dashed rgba(249, 137, 51, .25);
  animation: spin 60s linear infinite;
}
.hero-visual .orbit::before { content: ""; position: absolute; top: 12%; left: 12%; width: 10px; height: 10px; border-radius: 50%; background: var(--fox); box-shadow: 0 0 20px var(--fox); }
.hero-visual .orbit.o2 { inset: 14%; animation-duration: 40s; animation-direction: reverse; border-color: rgba(252, 241, 222, .1); }
.hero-visual .orbit.o2::before { top: auto; bottom: 8%; left: auto; right: 18%; width: 7px; height: 7px; background: var(--cream); box-shadow: 0 0 14px var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }

.hero-fox {
  position: absolute; left: 50%; bottom: 4%; width: 78%;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-50%, -12px); } }

.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(36, 33, 31, .88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(252, 241, 222, .1);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8);
  font-size: .85rem; line-height: 1.3; white-space: nowrap;
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.chip.is-in { opacity: 1; transform: none; }
.chip .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(249, 137, 51, .16); color: var(--fox); flex: none; }
.chip .ico svg { width: 17px; height: 17px; }
.chip strong { display: block; font-weight: 600; color: var(--cream); }
.chip small { color: var(--text-dim); font-size: .76rem; }
.chip.c1 { top: 8%; left: -6%; }
.chip.c2 { top: 30%; right: -8%; }
.chip.c3 { bottom: 32%; left: -10%; }
.chip.c4 { bottom: 10%; right: -4%; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--fox), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.hero .container > * { min-width: 0; }
@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 120px; }
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 420px; }
  .chip.c1 { left: 0; } .chip.c3 { left: 0; } .chip.c2, .chip.c4 { right: 0; }
  .scroll-hint { display: none; }
}
@media (max-width: 520px) {
  .hero-visual { max-width: 340px; }
  .chip { font-size: .74rem; padding: 6px 10px 6px 6px; gap: 8px; border-radius: 11px; }
  .chip .ico { width: 24px; height: 24px; border-radius: 7px; }
  .chip .ico svg { width: 14px; height: 14px; }
  .chip small { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; white-space: normal; }
  .ticker { font-size: .85rem; width: 100%; }
}

/* ==========================================================================
   Bandeau défilant (irritants du quotidien)
   ========================================================================== */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--night-2);
  padding-block: 22px;
}
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 22px; padding-inline: 22px;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-muted); white-space: nowrap;
}
.marquee-item s { text-decoration-color: var(--fox); text-decoration-thickness: 3px; }
.marquee-item .sep { width: 28px; height: 14px; color: var(--fox); }
.marquee-item .sep path { stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Services — cartes « écran »
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.screen-card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(249, 137, 51, .1), transparent 40%),
    linear-gradient(180deg, var(--night-3), var(--night-2));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
/* pied de l'écran */
.screen-card::after {
  content: ""; position: absolute; left: 50%; bottom: -11px; width: 64px; height: 11px;
  transform: translateX(-50%);
  background: var(--night-4); border-radius: 0 0 8px 8px;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  transition: background .4s;
}
.screen-card:hover { transform: translateY(-6px); border-color: rgba(249, 137, 51, .45); box-shadow: 0 30px 60px -30px rgba(249, 137, 51, .35); }
.screen-card:hover::after { background: var(--fox-deep); }
.screen-card .card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.screen-card .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(249, 137, 51, .12); color: var(--fox);
  border: 1px solid rgba(249, 137, 51, .25);
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.screen-card:hover .icon { background: var(--fox); color: var(--night); transform: rotate(-6deg); }
.screen-card .icon svg { width: 26px; height: 26px; }
.screen-card .idx { font-family: var(--font-mono); font-size: .8rem; color: var(--text-dim); }
.screen-card h3 { margin-bottom: 12px; }
.screen-card p { color: var(--text-muted); font-size: .98rem; }
.screen-card ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; gap: 8px; }
.screen-card li { font-family: var(--font-mono); font-size: .74rem; padding: 5px 10px; border-radius: 999px; background: rgba(252, 241, 222, .05); color: var(--sand); }
.screen-card.is-featured { background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 40%), var(--grad-fox); border-color: transparent; color: var(--night); }
.screen-card.is-featured p, .screen-card.is-featured .idx { color: rgba(23, 0, 1, .75); }
.screen-card.is-featured .icon { background: var(--night); color: var(--fox); border-color: transparent; }
.screen-card.is-featured li { background: rgba(23, 0, 1, .12); color: var(--night); }
.screen-card.is-featured ul { border-color: rgba(23, 0, 1, .25); }
.screen-card.is-featured::after { background: var(--fox-deep); }

@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================================
   Focus IA
   ========================================================================== */
.ia { background: var(--night-2); overflow: hidden; }
.ia::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 137, 51, .12), transparent 60%);
  pointer-events: none;
}
.ia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.usecases { list-style: none; margin: 32px 0 36px; padding: 0; display: grid; gap: 4px; }
.usecases li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.usecases li:last-child { border-bottom: 0; }
.usecases .n { font-family: var(--font-mono); font-size: .8rem; color: var(--fox); padding-top: 3px; }
.usecases strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; margin-bottom: 2px; color: var(--cream); }
.usecases span { color: var(--text-muted); font-size: .96rem; }

/* Fenêtre type « chat » */
.chat-window {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--screen-dark);
  border: 10px solid var(--screen);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), var(--glow);
  overflow: hidden;
}
.chat-stand { width: 26%; height: 42px; margin: 0 auto; background: linear-gradient(var(--screen), var(--screen-dark)); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.chat-base { width: 50%; height: 10px; margin: 0 auto; background: var(--screen); border-radius: 6px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(252, 241, 222, .07); background: rgba(0, 0, 0, .2); }
.chat-head img { width: 34px; height: 34px; border-radius: 50%; background: var(--night); padding: 3px; }
.chat-head strong { font-size: .95rem; display: block; line-height: 1.2; }
.chat-head small { font-family: var(--font-mono); font-size: .72rem; color: #8fd18a; }
.chat-head .dots { margin-left: auto; display: flex; gap: 6px; }
.chat-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-4); }
.chat-body { padding: 22px 18px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 380px; }
.msg {
  max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: .93rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.msg.is-in { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: var(--fox); color: var(--night); border-bottom-right-radius: 4px; font-weight: 500; }
.msg.bot { align-self: flex-start; background: rgba(252, 241, 222, .07); color: var(--text); border-bottom-left-radius: 4px; }
.msg.bot .steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-family: var(--font-mono); font-size: .78rem; color: var(--sand); }
.msg.bot .steps li::before { content: "✓ "; color: #8fd18a; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: bounce 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); background: var(--fox); } }
.chat-note { text-align: center; margin-top: 18px; font-size: .8rem; color: var(--text-dim); font-family: var(--font-mono); }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; color: var(--text-muted); }
.trust-pill svg { width: 16px; height: 16px; color: var(--fox); }

@media (max-width: 960px) { .ia-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Méthode du renard (section crème)
   ========================================================================== */
.methode { background: var(--cream); color: var(--night); overflow: hidden; }
.methode .eyebrow { color: var(--fox-deep); }
.methode .eyebrow .num { color: rgba(23, 0, 1, .45); }
.methode .section-head .lead { color: rgba(23, 0, 1, .7); }
.methode .tail-deco {
  position: absolute; right: -8%; top: 6%; width: min(560px, 55vw); opacity: .9; pointer-events: none;
}
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps-grid::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 46px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--fox) 0 10px, transparent 10px 20px);
  opacity: .5;
}
.step { position: relative; padding: 0 6px; }
.step .badge {
  position: relative; width: 92px; height: 92px; margin-bottom: 26px;
  display: grid; place-items: center;
  background: var(--night); color: var(--fox); border-radius: 28px;
  transform: rotate(-4deg);
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.step:nth-child(even) .badge { transform: rotate(4deg); }
.step:hover .badge { transform: rotate(0) scale(1.06); background: var(--fox); color: var(--night); }
.step .badge svg { width: 40px; height: 40px; }
.step .badge::after {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -10px; right: -10px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fox); color: var(--night);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700;
  border: 3px solid var(--cream);
}
.step:hover .badge::after { background: var(--night); color: var(--fox); }
.step h3 { font-size: 1.7rem; margin-bottom: 6px; }
.step .verb { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fox-deep); margin-bottom: 12px; display: block; }
.step p { color: rgba(23, 0, 1, .72); font-size: .97rem; }

@media (max-width: 960px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps-grid::before { display: none; }
}
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Calculateur de temps gagné
   ========================================================================== */
.calc {
  display: grid; grid-template-columns: 1.1fr .9fr;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night-2);
}
.calc-inputs { padding: clamp(28px, 4vw, 52px); display: grid; gap: 30px; }
.field-range label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-weight: 500; }
.field-range output { font-family: var(--font-mono); font-size: 1rem; color: var(--fox); white-space: nowrap; }
.field-range small { display: block; color: var(--text-dim); font-size: .84rem; margin-top: 8px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--fox) var(--fill, 50%), rgba(252, 241, 222, .12) var(--fill, 50%));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream); border: 5px solid var(--fox); box-shadow: 0 4px 14px rgba(249, 137, 51, .5);
  transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 5px solid var(--fox); }
input[type="range"]:focus-visible { outline: 2px solid var(--fox); outline-offset: 6px; }

.calc-result {
  position: relative; padding: clamp(28px, 4vw, 52px);
  background: var(--grad-fox); color: var(--night);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.calc-result .eyes { position: absolute; right: 24px; top: 24px; width: 70px; opacity: .35; }
.calc-result .eyes path { stroke: var(--night); stroke-width: 5; fill: none; stroke-linecap: round; }
.calc-result .label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.calc-result .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.04em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.calc-result .unit { font-size: 1.1rem; font-weight: 600; margin-bottom: 28px; }
.calc-result .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(23, 0, 1, .2); margin-bottom: 28px; }
.calc-result .sub strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.calc-result .sub span { font-size: .85rem; opacity: .75; }
.calc-result .disclaimer { font-size: .78rem; opacity: .7; margin: 16px 0 0; }

/* Liste de tâches à cocher */
.calc-inputs.tasks { border: 0; margin: 0; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.task {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; align-items: start;
  padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.task:hover { border-color: rgba(249, 137, 51, .6); }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.task .box { grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: all .2s; }
.task .box::after { content: ""; width: 10px; height: 6px; border: solid var(--night); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.task .t { font-weight: 600; color: var(--cream); line-height: 1.35; }
.task .h { font-size: .82rem; color: var(--text-dim); }
.task:has(input:checked) { border-color: var(--fox); background: rgba(249, 137, 51, .08); }
.task input:checked + .box { background: var(--fox); border-color: var(--fox); }
.task input:checked + .box::after { opacity: 1; }
.task input:focus-visible + .box { outline: 2px solid var(--fox); outline-offset: 3px; }
@media (max-width: 560px) { .calc-inputs.tasks { grid-template-columns: 1fr; } }

@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pourquoi Eulatech
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.why-card {
  grid-column: span 4;
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(252, 241, 222, .03), transparent);
  transition: border-color .4s;
}
.why-card:hover { border-color: rgba(249, 137, 51, .4); }
.why-card.wide { grid-column: span 8; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.why-card .ic { width: 44px; height: 44px; color: var(--fox); margin-bottom: 20px; }
.why-card h3 { font-size: 1.35rem; }
.why-card p { color: var(--text-muted); margin: 0; font-size: .97rem; }
.why-card.wide img { width: 150px; }
.why-card.accent { background: var(--fox); color: var(--night); border-color: transparent; }
.why-card.accent p { color: rgba(23, 0, 1, .75); }
.why-card.accent .ic { color: var(--night); }

.tools { margin-top: 70px; text-align: center; }
.tools p { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 22px; }
.tools-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tools-list li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; color: var(--text-muted); font-size: .92rem; transition: color .3s, border-color .3s; }
.tools-list li:hover { color: var(--fox); border-color: var(--fox); }

@media (max-width: 960px) {
  .why-card, .why-card.wide { grid-column: span 6; }
  .why-card.wide { grid-template-columns: 1fr; }
  .why-card.wide img { display: none; }
}
@media (max-width: 640px) { .why-card, .why-card.wide { grid-column: span 12; } }

/* ==========================================================================
   Réalisations
   ========================================================================== */
.projects-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.projects-head .section-head { margin-bottom: 0; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 16px 16px 22px; border-radius: var(--radius);
  background: var(--night-2); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s;
}
.project:hover { transform: translateY(-5px); border-color: rgba(249, 137, 51, .4); }
.project-screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: var(--screen-dark); border: 6px solid var(--screen);
  display: grid; place-items: center;
}
.project-screen img { width: 100%; height: 100%; object-fit: cover; }
.project-screen .mono {
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--fox);
  transition: transform .6s var(--ease), color .4s;
}
.project:hover .mono { transform: scale(1.12); color: var(--fox); }
.project-screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(252, 241, 222, .025) 0 2px, transparent 2px 4px); pointer-events: none; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-inline: 6px; }
.project h3 { font-size: 1.15rem; margin: 0; }
.tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(249, 137, 51, .12); color: var(--fox); white-space: nowrap; }
.project.is-hidden { display: none; }

/* Carte projet cliquable */
a.project { color: inherit; cursor: pointer; }
a.project:focus-visible { outline: 2px solid var(--fox); outline-offset: 4px; }
.project-screen .pico { width: 64px; height: 64px; color: var(--fox); transition: transform .6s var(--ease); }
.project:hover .pico { transform: scale(1.12) rotate(-4deg); }
.project-screen .cat { position: absolute; left: 12px; top: 10px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.project-screen .case { position: absolute; right: 10px; top: 8px; font-size: .68rem; padding: 3px 8px; border-radius: 999px; background: rgba(252, 241, 222, .08); color: var(--sand); }
.project-body { padding-inline: 6px; display: grid; gap: 6px; }
.project-body .who { font-size: .9rem; color: var(--text-muted); }
.project-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding: 14px 6px 0; border-top: 1px dashed var(--line-strong); }
.project-foot .price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--cream); }
.project-foot .price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .76rem; color: var(--text-dim); }
.project-foot .more { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--fox); }
.project-foot .more svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.project:hover .more svg { transform: translateX(4px); }

/* Clients web (liste simple) */
.clients-strip { margin-top: 70px; text-align: center; }
.clients-strip p { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; }
.clients-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.clients-strip li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-muted); font-size: .92rem; }

/* Fenêtre de détail d'un projet */
.modal {
  width: min(860px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--night-2); color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(249, 137, 51, .25);
  overflow: hidden;
}
.modal::backdrop { background: rgba(10, 0, 0, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-inner { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--night-4) transparent; }
.modal-head { position: relative; padding: 34px clamp(22px, 4vw, 44px) 28px; background: var(--grad-fox); color: var(--night); }
.modal-head .cat { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.modal-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 8px 0 6px; padding-right: 40px; }
.modal-head .who { font-weight: 500; opacity: .8; margin: 0; }
.modal-close {
  position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--night); color: var(--cream); cursor: pointer; display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: clamp(22px, 4vw, 44px); display: grid; gap: 30px; }
.modal-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 10px; color: var(--cream); }
.modal-body h3 .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(249, 137, 51, .15); color: var(--fox); font-family: var(--font-mono); font-size: .75rem; flex: none; }
.modal-body p { color: var(--text-muted); margin: 0; }
.options { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.options li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--text-muted); font-size: .95rem; }
.options li b { font-family: var(--font-display); color: var(--cream); white-space: nowrap; }
.options li.chosen { border-color: var(--fox); background: rgba(249, 137, 51, .08); color: var(--text); }
.options li.chosen::before { content: "Choisie"; order: 3; flex: none; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--fox); color: var(--night); }
.options li span { flex: 1; }
.cost-box { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--radius); background: var(--night); border: 1px dashed rgba(249, 137, 51, .5); }
.cost-box .label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.cost-box .amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--fox); line-height: 1.1; }
.cost-box .extra { font-size: .88rem; color: var(--text-muted); }
.modal-note { font-size: .8rem; color: var(--text-dim); }
@media (max-width: 560px) {
  .options li { display: grid; grid-template-columns: 1fr auto; }
  .options li.chosen::before { grid-column: 1 / -1; justify-self: start; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text-muted); cursor: pointer; font-weight: 500; font-size: .92rem; transition: all .25s;
}
.filter:hover { color: var(--text); border-color: var(--fox); }
.filter[aria-pressed="true"] { background: var(--fox); color: var(--night); border-color: var(--fox); }

@media (max-width: 960px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 120px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); border: 1px solid var(--line); background: var(--night-2); transition: border-color .3s; }
.faq-item[open] { border-color: rgba(249, 137, 51, .4); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { position: relative; width: 30px; height: 30px; border-radius: 50%; flex: none; background: rgba(249, 137, 51, .12); }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--fox); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-item summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item .answer { padding: 0 24px 22px; color: var(--text-muted); }
.faq-item .answer p:last-child { margin: 0; }

@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final { padding-bottom: calc(var(--section) * .8); }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(24px, 4vw, 44px);
  padding: clamp(40px, 7vw, 90px);
  background: var(--grad-fox); color: var(--night);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
}
.cta-box h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 18px; }
.cta-box p { font-size: 1.15rem; color: rgba(23, 0, 1, .78); max-width: 520px; margin-bottom: 32px; }
.cta-box .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-box .btn--ghost { color: var(--night); box-shadow: inset 0 0 0 1.5px rgba(23, 0, 1, .35); }
.cta-box .btn--ghost:hover { color: var(--night); box-shadow: inset 0 0 0 1.5px var(--night); }
.cta-box .cta-fox { width: 100%; max-width: 300px; justify-self: center; filter: drop-shadow(0 30px 30px rgba(23, 0, 1, .35)); }
.cta-box .tail {
  position: absolute; z-index: -1; right: -10%; bottom: -40%; width: 70%; opacity: .25;
}
.cta-box .tail path { fill: var(--cream); }
@media (max-width: 860px) {
  .cta-box { grid-template-columns: 1fr; }
  .cta-box .cta-fox { max-width: 180px; order: -1; justify-self: start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 70px 36px; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-muted); transition: color .2s; }
.footer-grid a:hover { color: var(--fox); }
.footer-brand p { color: var(--text-muted); max-width: 320px; margin-top: 18px; font-size: .95rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--text-dim);
}
.footer-bottom .eyes-sign { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .eyes-sign svg { width: 34px; color: var(--fox); }
.footer-bottom .eyes-sign path { stroke: currentColor; stroke-width: 4; fill: none; stroke-linecap: round; }
.footer-bottom a:hover { color: var(--fox); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.page-hero { position: relative; padding-top: clamp(150px, 18vw, 210px); padding-bottom: clamp(50px, 7vw, 90px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50% 70% at 85% 0%, rgba(249, 137, 51, .2), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 900px; }
.page-hero .lead { color: var(--text-muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 640px; }
.page-hero .peek { position: absolute; right: var(--gutter); bottom: -6px; width: clamp(110px, 16vw, 190px); }
@media (max-width: 700px) { .page-hero .peek { display: none; } }

.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { color: var(--fox); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  background: var(--night-2); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
}
a.contact-card:hover { border-color: var(--fox); transform: translateX(4px); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(249, 137, 51, .12); color: var(--fox); }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 2px; }
.contact-card span { color: var(--text-muted); font-size: .95rem; }
.contact-card.highlight { background: var(--grad-fox); color: var(--night); border-color: transparent; }
.contact-card.highlight span { color: rgba(23, 0, 1, .75); }
.contact-card.highlight .ic { background: var(--night); color: var(--fox); }

.form {
  padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--night-2); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 8px; color: var(--sand); }
.form label .opt { color: var(--text-dim); font-weight: 400; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--night); border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f98933' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--fox); box-shadow: 0 0 0 4px rgba(249, 137, 51, .15); }
.form ::placeholder { color: var(--text-dim); }
.chips-choice { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips-choice legend { font-size: .9rem; font-weight: 500; margin-bottom: 10px; color: var(--sand); padding: 0; }
.chips-choice label { margin: 0; }
.chips-choice input { position: absolute; opacity: 0; pointer-events: none; }
.chips-choice span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; color: var(--text-muted); cursor: pointer; transition: all .2s; }
.chips-choice input:checked + span { background: var(--fox); border-color: var(--fox); color: var(--night); font-weight: 600; }
.chips-choice input:focus-visible + span { outline: 2px solid var(--fox); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--text-muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--fox); flex: none; }
.consent a { color: var(--fox); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; padding: 14px 18px; border-radius: 12px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: rgba(143, 209, 138, .12); color: #b7e7b3; border: 1px solid rgba(143, 209, 138, .3); }
.form-status.err { display: block; background: rgba(249, 80, 51, .12); color: #ffb39a; border: 1px solid rgba(249, 80, 51, .3); }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.notfound img { width: 220px; margin: 0 auto 20px; animation: tilt 4s ease-in-out infinite; }
.notfound .code { font-family: var(--font-mono); color: var(--fox); letter-spacing: .2em; }
@keyframes tilt { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .chip, .msg { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .u-swoosh path { stroke-dashoffset: 0; }
}

/* ---------- Ajouts : réassurance sous le bouton, bandeau « Fini… », étiquettes plus longues ---------- */
.cta-note { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -26px 0 36px; font-size: .9rem; color: var(--text-muted); }
.cta-note span { white-space: nowrap; }
.marquee-item .phrase { color: var(--cream); white-space: nowrap; }
.chip { white-space: normal; max-width: 260px; }
.chip strong { line-height: 1.25; }
@media (min-width: 521px) { .chip small { display: block; margin-top: 2px; line-height: 1.3; } }
/* étiquettes écartées du visage du renard (grand écran) */
@media (min-width: 961px) {
  .hero-fox { width: 72%; }
  .chip { max-width: 230px; }
  .chip.c1 { top: 6%; left: -20%; }
  .chip.c2 { top: 40%; right: -18%; }
  .chip.c3 { top: auto; bottom: 22%; left: -22%; }
  .chip.c4 { bottom: 0; right: -10%; }
}

/* ==========================================================================
   To-do list rayée (remplace le bandeau défilant)
   ========================================================================== */
.todo-section { background: var(--night-2); border-block: 1px solid var(--line); }
.todo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.todo-grid .lead { color: var(--text-muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 32px; }

.todo {
  position: relative;
  background: var(--cream); color: var(--night);
  border-radius: 6px 6px 18px 18px;
  padding: 26px clamp(20px, 3vw, 34px) 30px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(249, 137, 51, .2);
  transform: rotate(1.2deg);
}
/* reliure à spirale */
.todo::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: -10px; height: 20px;
  background: radial-gradient(circle at 10px 10px, var(--night-2) 5px, transparent 6px) 0 0 / 34px 20px repeat-x;
}
.todo-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 2px solid var(--fox); }
.todo-head img { width: 40px; height: 40px; }
.todo-head strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.todo-head small { font-size: .85rem; color: rgba(23, 0, 1, .6); }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li {
  display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; align-items: center;
  min-height: 52px; padding: 8px 0;
  border-bottom: 1px solid rgba(217, 98, 43, .2); /* ligne de cahier */
}
.todo-list li:last-child { border-bottom: 0; }
.todo-list .box {
  width: 24px; height: 24px; border-radius: 6px; border: 2.5px solid rgba(23, 0, 1, .45);
  display: grid; place-items: center; transition: background .3s, border-color .3s;
}
.todo-list .box::after {
  content: ""; width: 10px; height: 6px; border: solid var(--cream); border-width: 0 0 3px 3px;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s var(--ease);
}
.todo-list .t {
  position: relative; justify-self: start;
  font-family: "Caveat", "Segoe Print", cursive; font-size: 1.6rem; font-weight: 700; line-height: 1.1;
  color: var(--night); transition: color .4s;
}
/* trait de rature dessiné à la main */
.todo-list .t::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px;
  background: var(--fox-deep); border-radius: 3px; transform: scaleX(0) rotate(-1.5deg); transform-origin: left center;
  transition: transform .5s var(--ease);
}
.todo-list .done {
  grid-column: 2; font-size: .82rem; font-weight: 600; color: var(--fox-deep);
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .4s;
}
.todo-list li.is-done .box { background: var(--fox-deep); border-color: var(--fox-deep); }
.todo-list li.is-done .box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.todo-list li.is-done .t { color: rgba(23, 0, 1, .45); }
.todo-list li.is-done .t::after { transform: scaleX(1) rotate(-1.5deg); }
.todo-list li.is-done .done { max-height: 24px; opacity: 1; }
/* sans JavaScript : liste déjà rayée */
.no-js .todo-list li .box { background: var(--fox-deep); border-color: var(--fox-deep); }
.no-js .todo-list li .t::after { transform: scaleX(1) rotate(-1.5deg); }
.no-js .todo-list li .done { max-height: 24px; opacity: 1; }

@media (max-width: 900px) {
  .todo-grid { grid-template-columns: 1fr; }
  .todo { transform: none; }
  .todo-list .t { font-size: 1.4rem; }
}

/* Liste IA : puce orange au lieu d'un numéro */
.usecases li { grid-template-columns: 14px 1fr; }
.usecases .n { width: 10px; height: 10px; margin-top: 9px; padding: 0; border-radius: 50%; background: var(--fox); box-shadow: 0 0 0 4px rgba(249, 137, 51, .15); }
/* Fenêtre projet : titres sans numéro, avec un trait orange */
.modal-body h3::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--fox); flex: none; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; z-index: 1000;
  width: min(760px, calc(100% - 32px)); transform: translateX(-50%);
  padding: 22px 26px;
  background: var(--night-2); color: var(--text);
  border: 1px solid rgba(249, 137, 51, .3); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85);
  font-size: .95rem; line-height: 1.55;
  animation: cookieIn .5s var(--ease);
}
@keyframes cookieIn { from { opacity: 0; transform: translate(-50%, 24px); } }
.cookie-banner[hidden] { display: none; }
.cookie-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cookie-head img { width: 36px; height: 36px; flex: none; }
.cookie-head strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--cream); }
.cookie-skip {
  margin-left: auto; border: 0; background: none; padding: 4px 0; cursor: pointer;
  font-size: .82rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.cookie-skip:hover { color: var(--text); }
.cookie-banner p { margin: 0 0 18px; color: var(--text-muted); }
.cookie-banner p a { color: var(--fox-light); text-decoration: underline; text-underline-offset: 3px; }

.cookie-prefs { display: grid; gap: 8px; margin: -4px 0 18px; }
.cookie-prefs[hidden] { display: none; }
.cookie-pref {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: 12px; background: rgba(252, 241, 222, .04); border: 1px solid var(--line);
}
label.cookie-pref { cursor: pointer; }
.cookie-pref strong { display: block; color: var(--cream); font-size: .92rem; }
.cookie-pref span { font-size: .84rem; color: var(--text-dim); }
.cookie-pref .cookie-always { font-size: .8rem; color: var(--fox); font-weight: 600; white-space: nowrap; }
/* interrupteur */
.cookie-switch {
  appearance: none; -webkit-appearance: none; flex: none; cursor: pointer; margin: 0;
  width: 44px; height: 26px; border-radius: 999px; background: var(--night-4); position: relative; transition: background .25s;
}
.cookie-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); transition: transform .25s var(--ease);
}
.cookie-switch:checked { background: var(--fox); }
.cookie-switch:checked::after { transform: translateX(18px); }
.cookie-switch:focus-visible { outline: 2px solid var(--fox-light); outline-offset: 2px; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.cookie-btn {
  font: inherit; font-weight: 600; font-size: .92rem;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--cream); background: transparent; color: var(--cream);
  transition: background .2s, color .2s, border-color .2s;
}
.cookie-btn:hover { background: var(--cream); color: var(--night); }
.cookie-btn--ok { background: var(--grad-fox); border-color: transparent; color: var(--night); }
.cookie-btn--ok:hover { background: var(--fox-light); color: var(--night); }
.cookie-btn--link { margin-right: auto; border-color: transparent; padding-inline: 4px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn--link:hover { background: none; color: var(--text); }
.cookie-btn:focus-visible { outline: 2px solid var(--fox-light); outline-offset: 2px; }

@media (max-width: 600px) {
  .cookie-banner { bottom: 0; width: 100%; border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
  .cookie-head { flex-wrap: wrap; }
  .cookie-skip { flex-basis: 100%; text-align: right; order: -1; margin: -6px 0 2px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-btn--link { grid-column: 1 / -1; order: 3; margin: 0; }
}

/* ==========================================================================
   Appels à l'action intermédiaires
   ========================================================================== */
.cta-inline {
  margin-top: clamp(48px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(249, 137, 51, .16), rgba(249, 137, 51, .04));
  border: 1px solid rgba(249, 137, 51, .35);
}
.cta-inline-text { flex: 1 1 380px; }
.cta-inline-text strong { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; color: var(--cream); margin-bottom: 6px; }
.cta-inline-text span { color: var(--text-muted); }
.cta-inline-action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-inline-action small, .ia-cta small { font-size: .82rem; color: var(--text-dim); }
.cta-inline.on-cream { background: var(--night); border-color: transparent; }
.ia-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.faq-cta { margin-top: 24px; }
@media (max-width: 640px) {
  .cta-inline-action { width: 100%; }
  .cta-inline-action .btn, .faq-cta .btn, .ia-cta .btn { width: 100%; white-space: normal; }
}

/* Barre fixe en bas de l'écran sur mobile */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(23, 0, 1, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta.is-shown { transform: none; }
  body.has-sticky .site-footer { padding-bottom: 100px; }
}
/* Place laissée à droite pour la bulle du chat Tidio */
@media (max-width: 760px) {
  .sticky-cta { padding-right: 88px; }
  .sticky-cta .btn { padding-inline: 1em; font-size: .95rem; }
}

/* Tableau des cookies (mentions légales) */
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-muted); }
.legal-table th { color: var(--cream); font-weight: 600; background: rgba(252, 241, 222, .04); }
.legal-table tr:last-child td { border-bottom: 0; }
.prose code { font-family: var(--font-mono); font-size: .85em; color: var(--sand); }
