/* ==========================================================
   FATABAR DIGITAL — style.css
   Styles de base, écrits MOBILE FIRST.
   Les adaptations tablette / desktop sont dans responsive.css.

   Sommaire
   01. Variables         08. Services        15. Tarifs
   02. Base              09. Digitalisation  16. Témoignages
   03. Utilitaires       10. Secteurs        17. CTA final
   04. Boutons           11. Chiffres        18. Contact
   05. Préchargeur       12. Processus       19. Footer
   06. Header / menu     13. Réalisations    20. WhatsApp / curseur
   07. Hero / marquee    14. Pourquoi        21. Mouvement réduit
   ========================================================== */

/* ---------- 01. Variables ---------- */
:root {
  /* Palette issue du logo */
  --c-primary: #072A30;
  --c-accent: #16C4A0;
  --c-light: #F5FAF9;
  --c-dark: #000000;

  /* ----- Thème SOMBRE (par défaut) -----
     Les couleurs ci-dessous changent selon le thème ; les 4 couleurs
     du logo ci-dessus restent fixes. */
  --bg: #072A30;                        /* fond principal */
  --bg-deep: #041B1F;                   /* fond des bandes plus profondes */
  --bg-soft: #0C3A42;
  --text: #F5FAF9;                      /* texte principal */
  --text-rgb: 245, 250, 249;            /* même couleur, pour les transparences */
  --deep-rgb: 4, 27, 31;
  --accent-text: #16C4A0;               /* turquoise utilisé comme couleur de texte */
  --footer-end: #000000;
  --logo-mark: url("../assets/logo/fatabar-mark.svg");
  /* Section Digitalisation : suit le thème, avec un fond légèrement plus profond */
  --inv-bg: #041B1F;
  --inv-text: #F5FAF9;
  --inv-rgb: 245, 250, 249;
  --inv-accent: #16C4A0;

  --c-muted: rgba(var(--text-rgb), .7);
  --c-line: rgba(var(--text-rgb), .12);
  --c-surface: rgba(var(--text-rgb), .04);

  --font-title: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-text: "Manrope", "Segoe UI", system-ui, sans-serif;

  --gutter: 1.25rem;
  --container: 1320px;
  --section-space: clamp(4.5rem, 12vw, 10rem);
  --radius: 18px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ----- Thème CLAIR (bouton soleil / lune du header) ----- */
:root[data-theme="light"] {
  --bg: #F5FAF9;
  --bg-deep: #E8F1EF;
  --bg-soft: #DCE9E6;
  --text: #072A30;
  --text-rgb: 7, 42, 48;
  --deep-rgb: 255, 255, 255;
  --accent-text: #0B7F68;               /* turquoise assombri : lisible sur fond clair */
  --footer-end: #DCE9E6;
  --logo-mark: url("../assets/logo/fatabar-mark-dark.svg");
  --inv-bg: #E8F1EF;
  --inv-text: #072A30;
  --inv-rgb: 7, 42, 48;
  --inv-accent: #0B7F68;

  --c-muted: rgba(var(--text-rgb), .74);
  --c-line: rgba(var(--text-rgb), .14);
  --c-surface: rgba(255, 255, 255, .75);
}
/* Logo : le « F » blanc devient foncé sur fond clair */
:root[data-theme="light"] .logo img,
:root[data-theme="light"] .preloader__logo { content: var(--logo-mark); }
/* Fondu doux au moment du changement de thème */
.theme-transition, .theme-transition *, .theme-transition *::before, .theme-transition *::after {
  transition: background-color .45s, color .45s, border-color .45s, fill .45s !important;
}

/* ---------- 02. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  /* Empêche toute dérive horizontale de la page (indispensable sur iPhone,
     où overflow-x: hidden sur body ne suffit pas). « clip » ne casse pas position: sticky. */
  overflow-x: hidden;
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 4px;
  border-radius: 4px;
}
::selection { background: var(--c-accent); color: var(--c-primary); }

/* ---------- 03. Utilitaires ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 2000;
  padding: .75rem 1rem; border-radius: 8px;
  background: var(--c-accent); color: var(--c-primary); font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.section { padding-block: var(--section-space); position: relative; }

.section__head { margin-bottom: clamp(2.5rem, 7vw, 5rem); max-width: 62rem; }
.section__title { font-size: clamp(2.1rem, 8.4vw, 5.25rem); text-wrap: balance; }
.section__lead {
  margin-top: 1.5rem; max-width: 36rem;
  color: var(--c-muted); font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.eyebrow {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-title); font-size: .8rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
}
.pixel {
  width: 8px; height: 8px; border-radius: 2px; flex: none;
  background: var(--c-accent);
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.tags li {
  padding: .25rem .7rem; border: 1px solid var(--c-line); border-radius: 99px;
  font-size: .78rem; color: var(--c-muted);
}

/* ---------- 04. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  border: 1px solid transparent; border-radius: 99px;
  font-family: var(--font-title); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-align: center; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--c-accent); color: var(--c-primary); }
.btn--primary:hover { background: var(--text); color: var(--bg); box-shadow: 0 10px 40px -10px rgba(22, 196, 160, .6); }

.btn--ghost { border-color: rgba(var(--text-rgb), .3); color: var(--text); }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--accent-text); }

.btn--dark { background: var(--c-primary); color: var(--c-light); }
.btn--dark:hover { background: var(--c-dark); }

.btn--small { min-height: 44px; padding: .55rem 1.2rem; font-size: .9rem; }
.btn--large { min-height: 60px; padding: 1rem 2rem; font-size: 1.1rem; }

/* ---------- 05. Préchargeur ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg-deep);
  transition: transform .8s var(--ease), visibility 0s .8s;
  /* Sécurité : si le JavaScript ne se charge pas, l'écran disparaît seul */
  animation: preloader-failsafe 0s 6s forwards;
}
.preloader.is-done { transform: translateY(-100%); visibility: hidden; }
@keyframes preloader-failsafe { to { visibility: hidden; } }

.preloader__inner { width: min(260px, 70vw); text-align: center; }
.preloader__logo { width: 96px; margin: 0 auto 2rem; animation: logo-pulse 1.4s ease-in-out infinite; }
@keyframes logo-pulse { 50% { transform: translateY(-6px); } }
.preloader__count {
  font-family: var(--font-title); font-size: 3rem; font-weight: 600;
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.preloader__count span:last-child { color: var(--accent-text); font-size: 1.25rem; margin-left: .15rem; }
.preloader__bar { height: 2px; margin-top: 1.25rem; background: var(--c-line); overflow: hidden; }
.preloader__bar span {
  display: block; height: 100%; background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- 06. Header / menu ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: transform .4s var(--ease);
}
/* Le fond est sur un pseudo-élément pour ne pas enfermer le menu plein écran */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--deep-rgb), .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
  opacity: 0; transition: opacity .35s;
}
.header.is-scrolled::before { opacity: 1; }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.header__cta { display: none; }

.logo { display: inline-flex; align-items: center; gap: .65rem; position: relative; z-index: 2; }
.logo img { width: 40px; height: auto; }
.logo__text { display: grid; line-height: 1; font-family: var(--font-title); }
.logo__text strong { font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; }
.logo__text em {
  margin-top: .25rem; font-style: normal; font-size: .6rem; font-weight: 500;
  letter-spacing: .42em; color: var(--accent-text);
}

.burger {
  position: relative; z-index: 2;
  width: 48px; height: 48px; margin-right: -.5rem;
  display: grid; place-content: center; gap: 7px;
}
.burger span {
  display: block; width: 26px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .4s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Menu plein écran (mobile) */
.nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--bg-deep);
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 2.5rem) 2.1rem);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.nav.is-open {
  clip-path: circle(150% at calc(100% - 2.5rem) 2.1rem);
  visibility: visible;
  transition: clip-path .7s var(--ease), visibility 0s;
}
.nav__list { display: grid; gap: .25rem; counter-reset: nav; }
.nav__link {
  display: flex; align-items: baseline; gap: 1rem; padding: .45rem 0;
  font-family: var(--font-title); font-size: clamp(1.7rem, 8vw, 2.6rem); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.15;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s, transform .5s var(--ease), color .3s;
}
.nav__link::before {
  counter-increment: nav; content: "0" counter(nav);
  font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--accent-text);
}
.nav.is-open .nav__link { opacity: 1; transform: none; }
.nav.is-open li:nth-child(1) .nav__link { transition-delay: .15s; }
.nav.is-open li:nth-child(2) .nav__link { transition-delay: .2s; }
.nav.is-open li:nth-child(3) .nav__link { transition-delay: .25s; }
.nav.is-open li:nth-child(4) .nav__link { transition-delay: .3s; }
.nav.is-open li:nth-child(5) .nav__link { transition-delay: .35s; }
.nav.is-open li:nth-child(6) .nav__link { transition-delay: .4s; }
.nav.is-open li:nth-child(7) .nav__link { transition-delay: .45s; }
.nav__link:hover, .nav__link.is-active { color: var(--accent-text); }
.nav__cta { align-self: flex-start; }
.nav__foot { font-size: .85rem; color: var(--c-muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 07. Hero / marquee ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 5.5rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute; right: -35%; top: -10%;
  width: 110vw; aspect-ratio: 1; max-width: 1100px;
  background: radial-gradient(circle, rgba(22, 196, 160, .38), rgba(22, 196, 160, .08) 45%, transparent 68%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 75% 30%, #000, transparent 75%);
  opacity: .6;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shape {
  position: absolute; right: -18%; top: 9%;
  width: 78vw; max-width: 620px; opacity: .55;
}

.hero__eyebrow { margin-bottom: 1.5rem; }
.hero__title { font-size: clamp(1.9rem, 9.4vw, 7.5rem); line-height: 1; letter-spacing: -.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: normal; color: var(--accent-text); }

.hero__bottom { margin-top: 2rem; display: grid; gap: 2rem; }
.hero__lead { max-width: 34rem; color: var(--c-muted); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted);
}
.hero__scroll-line { position: relative; width: 40px; height: 1px; background: var(--c-line); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--c-accent);
  animation: scroll-hint 2.2s var(--ease) infinite;
}
@keyframes scroll-hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.marquee {
  overflow: hidden; padding-block: 1.1rem;
  border-block: 1px solid var(--c-line); background: var(--bg-deep);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
.marquee__group li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-title); font-size: clamp(1.1rem, 3.4vw, 2rem); font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
}
.marquee__group li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(var(--text-rgb), .55); }
.marquee__group li::after {
  content: ""; width: .45em; height: .45em; margin-inline: 1.4em;
  background: var(--c-accent); transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 08. Services ---------- */
.services__grid { display: grid; gap: 1rem; }
.service-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
  transition: border-color .4s, translate .5s var(--ease), scale .2s;
}
/* Halo qui suit la souris (variables --mx / --my posées par main.js) */
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(22, 196, 160, .18), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.service-card:hover { border-color: rgba(22, 196, 160, .5); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-card__num {
  margin-bottom: 2.5rem;
  font-family: var(--font-title); font-size: .85rem; font-weight: 500;
  letter-spacing: .12em; color: var(--accent-text);
}
.service-card__title { margin-bottom: .75rem; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.02em; }
.service-card p { color: var(--c-muted); font-size: .95rem; }
.service-card .tags { margin-top: auto; padding-top: 1.25rem; }
.service-card--cta { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary); }
.service-card--cta p, .service-card--cta .service-card__num { color: var(--c-primary); }
.service-card--cta::before { display: none; }
.service-card__link { margin-top: auto; padding-top: 1.5rem; font-family: var(--font-title); font-weight: 600; }

/* ---------- 09. Digitalisation (section claire) ---------- */
.section--light { background: var(--inv-bg); color: var(--inv-text); }
.section--light .eyebrow, .section--light .pixel { color: var(--inv-accent); }
.section--light .pixel { background: var(--inv-accent); }
.section--light .section__lead { color: rgba(var(--inv-rgb), .78); }

.digital__list { border-top: 1px solid rgba(var(--inv-rgb), .15); }
.digital__row {
  display: grid; gap: .6rem; padding-block: 1.5rem;
  border-bottom: 1px solid rgba(var(--inv-rgb), .15);
  font-family: var(--font-title); text-transform: uppercase; line-height: 1.1;
}
.digital__before {
  justify-self: start;
  font-size: .85rem; font-weight: 500; letter-spacing: .12em; line-height: 1.5; color: rgba(var(--inv-rgb), .62);
  /* Barré progressif : suit le texte même sur plusieurs lignes */
  text-decoration: line-through 1.5px transparent;
  transition: text-decoration-color .6s .2s;
}
.digital__arrow {
  position: relative; width: 56px; height: 12px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease) .5s;
}
.digital__arrow::before { content: ""; position: absolute; left: 0; right: 2px; top: 5px; height: 2px; background: var(--inv-accent); }
.digital__arrow::after {
  content: ""; position: absolute; right: 0; top: 1px; width: 9px; height: 9px;
  border-top: 2px solid var(--inv-accent); border-right: 2px solid var(--inv-accent);
  transform: rotate(45deg);
}
.digital__after {
  font-size: clamp(1.5rem, 7vw, 3.25rem); font-weight: 700; letter-spacing: -.03em;
  opacity: .25; transition: opacity .7s .7s;
}
.digital__row.is-in .digital__before { text-decoration-color: currentColor; }
.digital__row.is-in .digital__arrow { transform: scaleX(1); }
.digital__row.is-in .digital__after { opacity: 1; }
/* Sans JavaScript : tout reste lisible */
html:not(.js) .digital__after { opacity: 1; }
html:not(.js) .digital__arrow { transform: none; }

/* ---------- 10. Secteurs ---------- */
.sectors__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.sectors__list li {
  padding: .6rem 1.2rem; border: 1px solid var(--c-line); border-radius: 99px;
  font-family: var(--font-title); font-size: clamp(1.15rem, 4.5vw, 2.4rem); font-weight: 500;
  letter-spacing: -.02em; line-height: 1.2;
  transition: background-color .3s, color .3s, border-color .3s;
}
.sectors__list li:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary); }
.sectors__note { margin-top: 2rem; max-width: 34rem; color: var(--c-muted); }

/* ---------- 11. Chiffres ---------- */
.stats { padding-block: clamp(3rem, 8vw, 6rem); border-block: 1px solid var(--c-line); background: var(--bg-deep); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; }
.stat { display: flex; flex-direction: column-reverse; width: 100%; container-type: inline-size; }
.stat__value {
  /* Taille relative à la colonne : un grand nombre (ex. 12 000) reste sur une ligne */
  font-family: var(--font-title); font-size: clamp(2.25rem, 26cqi, 6.5rem); font-weight: 600; white-space: nowrap;
  line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--c-line);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
}

/* ---------- 12. Processus ---------- */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline__line { position: absolute; left: 5px; top: .5rem; bottom: .5rem; width: 2px; background: var(--c-line); }
.timeline__progress { width: 100%; height: 100%; background: var(--c-accent); transform-origin: top; }
.timeline__list { display: grid; gap: 3rem; }
.timeline__step { position: relative; }
.timeline__step::before {
  content: ""; position: absolute; left: -2.25rem; top: .45rem;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--bg); border: 2px solid var(--c-accent);
}
.timeline__num { font-family: var(--font-title); font-size: .85rem; letter-spacing: .12em; color: var(--accent-text); }
.timeline__title { margin: .4rem 0 .6rem; font-size: clamp(1.75rem, 6vw, 3rem); text-transform: uppercase; }
.timeline__step p { max-width: 28rem; color: var(--c-muted); }

/* ---------- 13. Réalisations ---------- */
.filters { display: flex; gap: .5rem; margin-bottom: 2rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 44px; padding: .5rem 1.1rem;
  border: 1px solid var(--c-line); border-radius: 99px;
  font-family: var(--font-title); font-size: .8rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted);
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--c-accent); color: var(--text); }
.filter.is-active { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary); }

/* Mobile : carrousel horizontal (repasse en grille à partir de 768px) */
.projects__grid {
  display: flex; gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.projects__grid::-webkit-scrollbar { display: none; }
.project { flex: 0 0 min(84%, 360px); scroll-snap-align: start; }
.project[hidden] { display: none; }
.project__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--bg-soft);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.project:hover .project__media img { scale: 1.06; }
.project__badge {
  position: absolute; z-index: 1; left: 1rem; top: 1rem;
  padding: .3rem .75rem; border-radius: 99px;
  background: rgba(var(--deep-rgb), .8); border: 1px solid var(--c-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.project__body { padding-top: 1.1rem; }
.project__cat { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.project__title { margin: .35rem 0 .5rem; font-size: 1.5rem; letter-spacing: -.02em; }
.project__desc { color: var(--c-muted); font-size: .95rem; }
.project__link {
  display: inline-flex; gap: .5rem; margin-top: .9rem; padding-block: .4rem;
  font-family: var(--font-title); font-weight: 600;
  border-bottom: 1px solid var(--c-line); transition: color .3s, border-color .3s;
}
.project__link:hover { color: var(--accent-text); border-color: var(--c-accent); }

/* ---------- 14. Pourquoi Fatabar Digital ---------- */
.why { background: var(--bg-deep); }
.why__head .btn { margin-top: 2rem; }
.why__list { border-top: 1px solid var(--c-line); }
.why__item {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem;
  padding-block: 1.4rem; border-bottom: 1px solid var(--c-line);
  transition: padding-left .4s var(--ease);
}
.why__num { padding-top: .3rem; font-family: var(--font-title); font-size: .8rem; letter-spacing: .1em; color: var(--accent-text); }
.why__item h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); letter-spacing: -.02em; }
.why__item p { margin-top: .4rem; color: var(--c-muted); font-size: .95rem; }

/* ---------- 15. Tarifs ---------- */
.pricing__grid { display: grid; gap: 1.25rem; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
}
.plan__name { font-size: 1rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.plan__for { margin-top: .6rem; color: var(--c-muted); font-size: .95rem; }
.plan__price {
  margin-block: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--c-line);
  font-family: var(--font-title); font-size: clamp(1.75rem, 6vw, 2.25rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
}
.plan__features { display: grid; gap: .8rem; margin-bottom: 2rem; }
.plan__features li { position: relative; padding-left: 1.4rem; font-size: .95rem; }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; background: var(--c-accent); transform: rotate(45deg);
}
.plan .btn { margin-top: auto; }
.plan--featured {
  border-color: var(--c-accent);
  background: linear-gradient(165deg, rgba(22, 196, 160, .2), rgba(22, 196, 160, .03) 60%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -40px rgba(22, 196, 160, .55);
}
.plan__tag {
  position: absolute; right: 1.25rem; top: -.8rem;
  padding: .25rem .8rem; border-radius: 99px;
  background: var(--c-accent); color: var(--c-primary);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- 16. Témoignages ---------- */
.carousel__controls { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.carousel__btn {
  width: 48px; height: 48px; border: 1px solid var(--c-line); border-radius: 50%;
  font-size: 1.1rem; transition: background-color .3s, color .3s, border-color .3s;
}
.carousel__btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary); }
.carousel__status { min-width: 3.5rem; text-align: center; font-family: var(--font-title); font-size: .9rem; color: var(--c-muted); }
.carousel {
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 100%; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  min-height: 300px; padding: 2rem 1.5rem;
  border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface);
}
.testimonial--placeholder { border-style: dashed; border-color: rgba(var(--text-rgb), .25); }
.testimonial blockquote {
  font-family: var(--font-title); font-size: clamp(1.4rem, 4.5vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em;
}
.testimonial blockquote::before { content: "“"; display: block; color: var(--accent-text); font-size: 3rem; line-height: .8; }
.testimonial--placeholder blockquote { color: var(--c-muted); }
.testimonial__author { display: grid; gap: .15rem; }
.testimonial__author span { color: var(--c-muted); font-size: .9rem; }

/* ---------- 17. CTA final ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(5rem, 16vw, 12rem);
  background: linear-gradient(135deg, var(--c-accent) 0%, #0FA688 100%);
  color: var(--c-primary);
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__shape { position: absolute; right: -25%; top: -10%; width: 90vw; max-width: 760px; }
.cta__title { font-size: clamp(2.6rem, 12vw, 8rem); letter-spacing: -.045em; line-height: .98; }
.cta__text { margin: 1.75rem 0 2.5rem; max-width: 32rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; }
.cta :focus-visible { outline-color: var(--c-primary); }

/* ---------- 18. Contact ---------- */
.contact__inner { display: grid; gap: 3rem; }
.contact__list { margin-top: 2.5rem; border-top: 1px solid var(--c-line); }
.contact__list li { display: grid; gap: .2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--c-line); }
.contact__label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.contact__value { font-family: var(--font-title); font-size: 1.2rem; overflow-wrap: anywhere; }
a.contact__value:hover { color: var(--accent-text); }

.form {
  display: grid; gap: 1.25rem; padding: 1.5rem;
  border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface);
}
.form__row { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field label span { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border: 1px solid rgba(var(--text-rgb), .22); border-radius: 12px;
  background: rgba(var(--deep-rgb), .6); font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-accent) 50%), linear-gradient(135deg, var(--c-accent) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { background: var(--bg); color: var(--text); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(22, 196, 160, .25);
}
.field .is-invalid { border-color: var(--text); box-shadow: 0 0 0 2px rgba(var(--text-rgb), .35); }
.field__error { font-size: .82rem; font-weight: 600; }
.field__error::before { content: "↑ "; color: var(--accent-text); }
.form__foot { display: grid; gap: 1rem; justify-items: start; }
.form__status { font-size: .92rem; color: var(--c-muted); }
.form__status.is-ok { color: var(--accent-text); }

/* ---------- 19. Footer ---------- */
.footer { padding-top: clamp(3.5rem, 8vw, 6rem); background: linear-gradient(var(--bg-deep), var(--footer-end)); border-top: 1px solid var(--c-line); }
.footer__top { display: grid; gap: 2.5rem; }
.footer__slogan { margin-top: 1.25rem; max-width: 18rem; font-family: var(--font-title); font-size: 1.35rem; line-height: 1.2; }
.footer__title { margin-bottom: 1rem; font-family: var(--font-title); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.footer__col ul { display: grid; gap: .15rem; color: var(--c-muted); }
.footer__col li a { display: inline-block; padding-block: .35rem; transition: color .3s; }
.footer__col a:hover { color: var(--accent-text); }
.footer__col .footer__social { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.footer__social a.is-placeholder { opacity: .55; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  margin-top: 3rem; padding-block: 1.5rem 5.5rem; border-top: 1px solid var(--c-line);
  font-size: .85rem; color: var(--c-muted);
}
.footer__bottom a:hover { color: var(--accent-text); }

/* ---------- 20. WhatsApp / curseur ---------- */
.whatsapp {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-accent); color: var(--c-primary);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease), background-color .3s;
}
.whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--c-accent); animation: wa-pulse 3s ease-out infinite;
}
.whatsapp:hover { background: var(--text); color: var(--bg); }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

.cursor { display: none; }

/* ---------- 21. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__group + .marquee__group { display: none; }
  .marquee__group { flex-wrap: wrap; row-gap: .5rem; padding-inline: var(--gutter); }
  .whatsapp::before, .hero__canvas { display: none; }
  .preloader { animation-delay: 6s !important; }
}

/* ==========================================================
   22. Bouton de thème, outils du header, barre de progression
   ========================================================== */
:root { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

.header__tools { position: relative; z-index: 2; display: flex; align-items: center; gap: .25rem; }
.header.is-hidden { transform: translateY(-100%); }   /* mobile : masqué en descendant, visible en remontant */

.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text);
  transition: background-color .3s, color .3s, scale .2s;
}
.theme-toggle:hover { background: rgba(var(--text-rgb), .08); color: var(--accent-text); }
.theme-toggle svg { grid-area: 1 / 1; transition: transform .6s var(--ease), opacity .3s; }
/* Sombre : on montre le soleil (passer au clair). Clair : on montre la lune. */
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: none; }

.progress { position: fixed; inset: 0 0 auto 0; z-index: 120; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left; }

/* Ajustements du thème clair */
:root[data-theme="light"] .service-card:not(.service-card--cta),
:root[data-theme="light"] .plan,
:root[data-theme="light"] .testimonial,
:root[data-theme="light"] .form { box-shadow: 0 24px 50px -38px rgba(7, 42, 48, .45); }
:root[data-theme="light"] .whatsapp { box-shadow: 0 12px 28px -10px rgba(7, 42, 48, .5); }
:root[data-theme="light"] .hero__glow { opacity: .8; }

/* ==========================================================
   23. Mobile : services en carrousel horizontal (glisser au doigt)
       Repasse en grille à partir de 768px (voir responsive.css)
   ========================================================== */
.services__grid {
  display: flex; gap: .75rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: .5rem var(--gutter) 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.services__grid::-webkit-scrollbar { display: none; }
.service-card { flex: 0 0 min(82%, 340px); min-height: 350px; scroll-snap-align: start; }
.service-card.is-current:not(.service-card--cta) { border-color: rgba(22, 196, 160, .65); }
.service-card.is-current::before { opacity: 1; }

.swipe-hint {
  display: flex; align-items: center; gap: 1rem; margin-top: .5rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted);
}
.swipe-hint__bar { flex: 1; height: 2px; background: var(--c-line); overflow: hidden; }
.swipe-hint__bar span {
  display: block; height: 100%; background: var(--c-accent);
  transform: scaleX(.1); transform-origin: left; transition: transform .2s linear;
}
.swipe-hint__text { flex: none; }
.swipe-hint__arrow { display: inline-block; color: var(--accent-text); animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ==========================================================
   24. Animations complémentaires (mobile et desktop)
   ========================================================== */
/* Titres révélés mot par mot (découpage fait par animations.js) */
.word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .12em .05em .16em 0; margin: -.12em -.05em -.16em 0;
}
.word > span { display: inline-block; }

/* Forme du hero : flottement lent (propriétés indépendantes de GSAP) */
.hero__shape { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -16px; rotate: 2.5deg; } }

/* Retour tactile : légère pression au toucher */
.btn { transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s, scale .2s; }
.btn:active { scale: .96; }
.filter, .carousel__btn { transition: background-color .3s, color .3s, border-color .3s, scale .2s; }
.filter:active, .carousel__btn:active, .theme-toggle:active { scale: .93; }
.service-card:active { scale: .985; }

/* Timeline : le repère s'allume quand l'étape est atteinte */
.timeline__step::before { transition: background-color .4s, box-shadow .4s, scale .5s var(--ease); }
.timeline__step.is-active::before {
  background: var(--c-accent); scale: 1.2;
  box-shadow: 0 0 0 6px rgba(22, 196, 160, .2);
}


/* Digitalisation : la solution glisse en place */
.digital__after { translate: -18px 0; transition: opacity .7s .6s, translate .8s var(--ease) .6s; }
.digital__row.is-in .digital__after { translate: 0 0; }
html:not(.js) .digital__after { translate: none; }

/* Bouton WhatsApp : apparition après le préchargeur */
html.js .whatsapp { scale: 0; }
html.js.is-ready .whatsapp { scale: 1; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) .9s, background-color .3s, color .3s; }
html.js.is-ready .whatsapp:hover { scale: 1.08; transition-delay: 0s; }
html.js.is-ready .whatsapp:active { scale: .94; transition-delay: 0s; }

/* ==========================================================
   25. Réalisations : liens vers les démos interactives (/demos)
   ========================================================== */
a.project__media { display: block; }
.project__links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: .9rem; }
.project__links .project__link { margin-top: 0; }
.project__link--main {
  padding: .55rem 1.1rem; border: 0; border-radius: 99px;
  background: var(--c-accent); color: var(--c-primary);
  transition: background-color .3s, color .3s, scale .2s;
}
.project__link--main:hover { background: var(--text); color: var(--bg); border: 0; }
.project__link--main:active { scale: .96; }

/* ==========================================================
   26. Témoignages : mention « Exemple » et avatar
   ========================================================== */
.testimonial { position: relative; }
.testimonial__tag {
  position: absolute; top: 1.25rem; right: 1.25rem;
  padding: .2rem .65rem; border-radius: 99px;
  border: 1px solid var(--c-line); background: rgba(var(--text-rgb), .06);
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted);
}
.testimonial__author { grid-template-columns: auto 1fr; align-items: center; column-gap: .9rem; }
.testimonial__author > span:last-child { display: grid; gap: .1rem; }
.testimonial__author > span:last-child span { color: var(--c-muted); font-size: .9rem; }
.testimonial__author .testimonial__avatar {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-primary);
  font-family: var(--font-title); font-weight: 700; font-size: 1.2rem;
}

/* ==========================================================
   27. Bouton « retour en haut » (au-dessus du bouton WhatsApp)
   ========================================================== */
.to-top {
  position: fixed; right: 1.25rem; bottom: calc(1rem + 56px + .75rem); z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg-deep); color: var(--text);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.8);
  transition: opacity .35s, transform .45s var(--ease), visibility 0s .45s, color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1), color .3s; }
.to-top:hover { color: var(--accent-text); }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }
.to-top:active { scale: .92; }
.to-top > svg { grid-area: 1 / 1; }
.to-top__arrow { transition: transform .3s var(--ease); }
/* Anneau de progression : rempli selon --p (0 à 100), mis à jour par main.js */
.to-top__ring { width: 48px; height: 48px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--c-line); stroke-width: 2.5; }
.to-top__ring .to-top__progress {
  stroke: var(--c-accent); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0));
}
:root[data-theme="light"] .to-top { background: #fff; box-shadow: 0 10px 26px -12px rgba(7, 42, 48, .45); }
body.menu-open .to-top { opacity: 0; visibility: hidden; }

@media (min-width: 768px) {
  .to-top { right: 1.5rem; bottom: calc(1.5rem + 60px + .75rem); width: 52px; height: 52px; margin-right: 4px; }
  .to-top__ring { width: 52px; height: 52px; }
}

/* ==========================================================
   28. À propos : fondatrice
   ========================================================== */
.founder-name { color: var(--text); font-weight: 700; }
.founder {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.75rem 0 0; padding: 1rem 1.25rem 1rem 1rem;
  max-width: 26rem;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
}
.founder__avatar {
  flex: none; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--c-accent), #0B7F68);
  color: var(--c-primary);
  font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 0 0 4px rgba(22, 196, 160, .15);
}
.founder figcaption { display: grid; gap: .1rem; }
.founder strong { font-family: var(--font-title); font-size: 1.2rem; line-height: 1.2; }
.founder span { color: var(--accent-text); font-size: .9rem; font-weight: 600; }
.founder small { color: var(--c-muted); font-size: .82rem; line-height: 1.4; }

/* ==========================================================
   29. Footer : icône d'accès à l'espace administrateur
   ========================================================== */
.footer__copy { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .6rem; }
.footer__admin {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-block: -8px;
  border-radius: 50%; color: var(--c-muted); opacity: .65;
  transition: opacity .3s, color .3s, background-color .3s;
}
.footer__admin:hover, .footer__admin:focus-visible { opacity: 1; color: var(--accent-text); background: rgba(var(--text-rgb), .08); }
/* Mobile : laisse la place aux boutons flottants (remonter + WhatsApp) à droite */
@media (max-width: 767px) { .footer__bottom { padding-right: 4.25rem; } }
/* Icône de personnage placée dans la phrase, entre « Fatabar » et « Digital » */
.footer__copy { display: block; }
.footer__admin { display: inline-grid; vertical-align: middle; width: 28px; height: 28px; margin: -6px 1px; }
