/* ============================================================
   CELERITAS LABS — style.css
   Palette inspirée du logo : #18181A · #60A5FA · #F1EFE8
   ============================================================

   1.  Variables
   2.  Reset & Base
   3.  Cursor
   4.  Loader
   5.  Buttons
   6.  Header & Nav
   7.  Mobile Menu
   8.  Hero
   9.  Marquee
   10. Section Commons
   11. Services
   12. Portfolio
   13. Process
   14. CTA Banner
   15. Contact & Form
   16. Footer
   17. Reveal Animations
   18. Responsive
   ============================================================ */

/* ── 1. Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #14141a;   /* fond de page — plus clair que l'ancien #0c0c0e */
  --surface:     #1e1e26;   /* navbar, footer, sections alternées */
  --surface-2:   #26262f;   /* inputs, cartes internes */

  /* Accent bleu — #60A5FA du logo */
  --blue:        #60a5fa;
  --blue-light:  #bfdbfe;
  --blue-dim:    rgba(96, 165, 250, 0.12);
  --blue-border: rgba(96, 165, 250, 0.35);
  --blue-glow:   rgba(96, 165, 250, 0.14);

  /* Texte — contraste renforcé */
  --text:        #f1efe8;   /* titres, texte principal */
  --text-dim:    #a8a7a0;   /* descriptions, labels — était #6b6b68 (trop sombre) */
  --text-muted:  #6a6a66;   /* détails très secondaires */

  /* Bordures — plus visibles */
  --border:      rgba(255, 255, 255, 0.11);
  --border-md:   rgba(255, 255, 255, 0.18);

  /* Typographie */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Layout */
  --container:  1200px;
  --section-py: clamp(5rem, 10vw, 9rem);
  --radius:     5px;
  --radius-lg:  10px;

  /* Easings */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

a       { color: inherit; text-decoration: none; }
ul      { list-style: none; }
img     { display: block; max-width: 100%; }
button  { cursor: none; background: none; border: none; font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

em {
  font-style: italic;
  color: var(--blue);
  font-family: var(--font-serif);
}

/* ── 3. Cursor ────────────────────────────────────────────── */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.cursor {
  width: 7px;
  height: 7px;
  background: var(--blue);
  transition: width 0.22s var(--ease-out), height 0.22s var(--ease-out), opacity 0.3s;
}

.cursor-follower {
  width: 34px;
  height: 34px;
  border: 1px solid var(--blue-border);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, opacity 0.3s;
}

body.cursor-hover .cursor         { width: 12px; height: 12px; }
body.cursor-hover .cursor-follower {
  width: 48px;
  height: 48px;
  border-color: var(--blue);
  opacity: 0.5;
}

/* ── 4. Loader ────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader__logo {
  width: clamp(200px, 40vw, 300px);
  height: auto;
}

.loader__bar {
  width: clamp(200px, 40vw, 300px);
  height: 1px;
  background: var(--border-md);
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.06s linear;
}

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
  cursor: none;
}

/* Bleu — CTA principal */
.btn--blue {
  background: var(--blue);
  color: #0c0c0e;
  font-weight: 500;
}

.btn--blue:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(96, 165, 250, 0.3);
}

/* Outline bleu */
.btn--outline {
  border: 1px solid var(--blue-border);
  color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue-dim);
  border-color: var(--blue);
}

/* Ghost discret */
.btn--ghost {
  border: 1px solid var(--border-md);
  color: var(--text-dim);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn--lg   { padding: 0.9rem 2.25rem; font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── 6. Header & Nav ──────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.4s;
}

.header.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.35s var(--ease-out);
}

.nav__links a:hover,
.nav__links a.active       { color: var(--text); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: none;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}

.nav__burger.open span:first-child { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* ── 7. Mobile Menu ───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.mobile-menu__links a {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 300;
  color: var(--text-dim);
  transition: color 0.3s;
}

.mobile-menu__links a:hover { color: var(--blue); }

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 7rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Grille technique subtile */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, black 10%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  top: -120px;
  right: -60px;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.06) 0%, transparent 65%);
  bottom: 0;
  left: 8%;
}

.hero__content {
  position: relative;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue);
  opacity: 0.6;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8.5vw, 8.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.hero__title-line         { display: block; }
.hero__title-line--accent {
  color: var(--blue);
  font-style: italic;
}

.hero__desc {
  max-width: 520px;
  font-size: clamp(0.9375rem, 1.4vw, 1.05rem);
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Indicateur scroll */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--blue);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.8; }
  50%       { transform: scaleX(0.3); opacity: 0.3; }
}

/* Stats */
.hero__stats {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  gap: 0;
}

.hero__stat {
  padding: 0 1.75rem;
  border-right: 1px solid var(--border);
}

.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child  { border-right: none; padding-right: 0; }

.hero__stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero__stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── 9. Marquee ───────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee__track span {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 2rem;
}

.marquee__sep {
  color: var(--blue) !important;
  font-size: 0.4rem !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 10. Section Commons ──────────────────────────────────── */
.section { padding: var(--section-py) 0; }

.section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section__eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
}

/* ── 11. Services ─────────────────────────────────────────── */
.services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  padding: 2.5rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s;
  position: relative;
  overflow: hidden;
}

/* Suppression bordures inutiles grille 3×2 */
.service-card:nth-child(3n)         { border-right: none; }
.service-card:nth-last-child(-n+3)  { border-bottom: none; }

/* Trait bleu en haut au hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover { background: var(--surface-2); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  font-size: 1.35rem;
  color: var(--blue);
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover .service-card__icon { transform: scale(1.15) rotate(-5deg); }

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ── 12. Portfolio ────────────────────────────────────────── */
.portfolio {
  background: var(--bg);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  max-width: calc(var(--container) + clamp(3rem, 10vw, 6rem));
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Carte unique — pleine largeur */
.portfolio__grid--single {
  grid-template-columns: 1fr;
  background: none;
  gap: 0;
  max-width: 640px;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.portfolio-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: none;
  background: var(--surface);
}

.portfolio-card:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 520px;
}

/* Carte unique — hauteur cinématique */
.portfolio__grid--single .portfolio-card {
  aspect-ratio: 4 / 3;
  min-height: unset;
  border-radius: var(--radius-lg);
  grid-row: auto;
}

.portfolio-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out);
}

.portfolio-card:hover .portfolio-card__bg { transform: scale(1.05); }

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 14, 0.97) 0%,
    rgba(10, 10, 14, 0.55) 50%,
    rgba(10, 10, 14, 0.25) 100%
  );
}

.portfolio-card__year {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.portfolio-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  transform: translateY(6px);
  transition: transform 0.45s var(--ease-out);
}

.portfolio-card:hover .portfolio-card__content { transform: translateY(0); }

.portfolio-card__category {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.portfolio-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
}

/* Ligne bleue bas gauche sur hover */
.portfolio-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.4s var(--ease-out);
}

.portfolio-card:hover::after { width: 100%; }

.portfolio-card__desc {
  font-size: 0.9rem;
  color: rgba(241, 239, 232, 0.65);
  line-height: 1.65;
  margin-top: 0.5rem;
  max-width: 560px;
}

.portfolio-card__link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.portfolio-card:hover .portfolio-card__link {
  opacity: 1;
  transform: translateY(0);
}

/* ── 13. Process ──────────────────────────────────────────── */
.process {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

/* Ligne de connexion */
.process__steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(12.5% + 0.5rem);
  right: calc(12.5% + 0.5rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--blue-border) 15%,
    var(--blue-border) 85%,
    transparent 100%
  );
  pointer-events: none;
}

.process-step {
  padding: 0 2rem 2rem;
  text-align: center;
}

.process-step__number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  display: inline-block;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Point sur la ligne */
.process-step__number::after {
  content: '';
  position: absolute;
  bottom: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--blue);
}

.process-step__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.process-step__desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ── 14. CTA Banner ───────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: var(--section-py) 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.cta-banner__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner .container { position: relative; }

.cta-banner__content {
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cta-banner__desc {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

/* ── 15. Contact & Form ───────────────────────────────────── */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact__intro {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__detail { display: flex; flex-direction: column; gap: 0.3rem; }

.contact__detail-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact__detail-value {
  font-size: 0.9375rem;
  color: var(--text-dim);
  transition: color 0.3s;
}

.contact__detail-value:hover { color: var(--text); }

/* Formulaire */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__group label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form__group input,
.form__group select,
.form__group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  width: 100%;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  cursor: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(168, 167, 160, 0.45);
}

.form__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6b68' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__group select option { background: var(--surface); color: var(--text); }

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--blue-border);
  background: rgba(96, 165, 250, 0.04);
}

.form__group textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

.form__success {
  font-size: 0.875rem;
  color: #4ade80;
  text-align: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s, max-height 0.4s;
}

.form__success.visible { opacity: 1; max-height: 2rem; }

/* ── 16. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.75rem;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.footer__logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.footer__nav ul {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer__nav a {
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer__nav a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copy,
.footer__credit {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer__legal {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer__legal:hover { color: var(--text-dim); }

/* ── 17. Reveal Animations ────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Décalages en cascade */
.section__header [data-reveal]:nth-child(2) { transition-delay: 0.1s; }

.services__grid [data-reveal]:nth-child(2) { transition-delay: 0.07s; }
.services__grid [data-reveal]:nth-child(3) { transition-delay: 0.14s; }
.services__grid [data-reveal]:nth-child(4) { transition-delay: 0.07s; }
.services__grid [data-reveal]:nth-child(5) { transition-delay: 0.14s; }
.services__grid [data-reveal]:nth-child(6) { transition-delay: 0.21s; }

.portfolio__grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.portfolio__grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.portfolio__grid [data-reveal]:nth-child(4) { transition-delay: 0.08s; }
.portfolio__grid [data-reveal]:nth-child(5) { transition-delay: 0.16s; }
.portfolio__grid [data-reveal]:nth-child(6) { transition-delay: 0.24s; }

.process__steps [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.process__steps [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.process__steps [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* ── 18. Curseur — désactivé sur écrans tactiles ──────────── */
@media (pointer: coarse) {
  body, a, button { cursor: auto !important; }
  .cursor,
  .cursor-follower { display: none !important; }
}

/* ── 18. Responsive — Tablette (≤ 1024px) ────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .service-card:nth-child(3n)        { border-right: 1px solid var(--border); }
  .service-card:nth-child(2n)        { border-right: none; }
  .service-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .service-card:nth-last-child(-n+2) { border-bottom: none; }

  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card:first-child { grid-row: auto; min-height: auto; aspect-ratio: 4 / 3; }

  .portfolio__grid--single { max-width: 100%; }
  .portfolio__grid--single .portfolio-card { aspect-ratio: 16 / 9; }

  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .process__steps::before { display: none; }
  .process-step { padding: 0 1.5rem 0; text-align: center; }

  .cta-banner__title { font-size: clamp(2rem, 4.5vw, 3.5rem); }

  .nav__logo-img { height: 34px; }
}

/* ── 18. Responsive — Mobile (≤ 768px) ───────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav__links,
  .nav__cta    { display: none; }
  .nav__burger { display: flex; }
  .nav         { height: 56px; }
  .nav__logo-img { height: 30px; }

  /* Loader */
  .loader__logo { width: clamp(160px, 55vw, 240px); }
  .loader__bar  { width: clamp(160px, 55vw, 240px); }

  /* Hero — stats sortis du flow absolu */
  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .hero__scroll  { display: none; }

  .hero__stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2.5rem;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .hero__stat {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-top: none;
    border-left: none;
  }

  .hero__stat:first-child { padding-left: 1.25rem; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }
  .service-card   { border-right: none !important; }
  .service-card   { padding: 2rem; }
  .service-card:last-child { border-bottom: none !important; }

  /* Portfolio */
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__grid--single { max-width: 100%; padding: 0 1.25rem; }
  .portfolio__grid--single .portfolio-card { aspect-ratio: 4 / 3; }

  /* Process */
  .process__steps { grid-template-columns: 1fr; gap: 0; }

  .process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.25rem;
    align-items: start;
    text-align: left;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .process-step:last-child { border-bottom: none; }

  .process-step__number {
    grid-row: span 2;
    font-size: 2.25rem;
    margin-bottom: 0;
    text-align: center;
  }

  .process-step__number::after { display: none; }

  /* CTA */
  .cta-banner__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .cta-banner__desc  { font-size: 0.875rem; }

  /* Contact */
  .contact__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form__row       { grid-template-columns: 1fr; }

  /* Fix iOS — empêche le zoom sur focus des inputs */
  .form__group input,
  .form__group select,
  .form__group textarea { font-size: 16px; }

  /* Footer */
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer__logo-img { height: 36px; }
  .footer__nav ul   { gap: 1.25rem; flex-wrap: wrap; }
  .footer__bottom   { flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
}

/* ── 18. Responsive — Petit mobile (≤ 480px) ─────────────── */
@media (max-width: 480px) {
  .hero__eyebrow { font-size: 0.62rem; }
  .hero__title   { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .hero__desc    { font-size: 0.9rem; }

  .hero__actions             { flex-direction: column; }
  .hero__actions .btn        { width: 100%; justify-content: center; }

  .section__title { font-size: clamp(2rem, 8vw, 2.75rem); }

  .service-card { padding: 1.75rem 1.25rem; }

  .portfolio__grid--single .portfolio-card { aspect-ratio: 3 / 2; }
  .portfolio-card__title { font-size: 1.25rem; }

  .cta-banner__title { font-size: clamp(1.6rem, 8vw, 2.25rem); }

  .contact__intro { font-size: 1rem; }

  .footer__nav ul { gap: 1rem; }
}
