/* =================================================================
   PORTFOLIO — Développeur Web Freelance
   Feuille de style unique, mobile first.
   Sommaire :
     1.  Variables & thème
     2.  Reset & bases
     3.  Utilitaires (shell, titres, boutons)
     4.  En-tête & navigation
     5.  Hero
     6.  Services & « pourquoi moi »
     7.  Portfolio
     8.  Process
     9.  Témoignages
     10. Contact & formulaire
     11. Pied de page & CTA flottant
     12. Responsive
     13. Accessibilité / mouvement réduit
   ================================================================= */


/* =================================================================
   1. VARIABLES & THÈME
   Fond sombre choisi volontairement : il fait ressortir la palette
   chaude afro-caribéenne (terracotta, safran, turquoise) bien plus
   qu'un fond clair, où ces teintes s'écrasent.
   ================================================================= */
:root {
  /* Palette */
  --terracotta: #E2572B;
  --safran:     #F5B027;
  --turquoise:  #17B8A6;
  --vert:       #2FA34C;
  --rouge:      #C8321F;

  /* Neutres */
  --ink:     #14100E;   /* fond principal */
  --ink-2:   #1D1815;   /* fond de section alterné */
  --ink-3:   #2A231E;   /* cartes */
  --line:    #3A302A;   /* bordures */
  --cream:   #F7EFE4;   /* texte principal */
  --muted:   #B5A79A;   /* texte secondaire */

  /* Typographie */
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Rythme */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 11vw, 8.5rem);
  --radius: 18px;
  --radius-sm: 12px;

  /* Transitions */
  --ease: cubic-bezier(.22, 1, .36, 1);

  --accent: var(--terracotta); /* surchargé par élément via style="--accent:…" */
}

/* Motif « wax » stylisé, généré en SVG et appliqué en filigrane.
   Aucune image à télécharger : le motif pèse quelques centaines d'octets. */
.section--services,
.section--process,
.section--contact { position: relative; }

.section--services::before,
.section--process::before,
.section--contact::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23F5B027' stroke-width='1.4'%3E%3Ccircle cx='60' cy='60' r='26'/%3E%3Ccircle cx='60' cy='60' r='13'/%3E%3Cpath d='M0 30h120M0 90h120'/%3E%3Cpath d='M0 0l15 15L0 30M120 0l-15 15 15 15M0 90l15 15L0 120M120 90l-15 15 15 15'/%3E%3C/g%3E%3Cg fill='%2317B8A6'%3E%3Ccircle cx='0' cy='60' r='4'/%3E%3Ccircle cx='120' cy='60' r='4'/%3E%3Ccircle cx='60' cy='0' r='4'/%3E%3Ccircle cx='60' cy='120' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 78%);
}


/* =================================================================
   2. RESET & BASES
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* compense l'en-tête fixe lors des ancres */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.68;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--cream); }

::selection { background: var(--safran); color: var(--ink); }

/* Focus visible : indispensable pour la navigation clavier */
:focus-visible {
  outline: 3px solid var(--safran);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--safran); color: var(--ink);
  padding: .75rem 1.25rem; border-radius: 0 0 10px 10px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }


/* =================================================================
   3. UTILITAIRES
   ================================================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--services,
.section--pledges { background: var(--ink-2); }

.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--safran); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--safran); border-radius: 2px;
}
.section__head--center .eyebrow::after {
  content: ''; width: 28px; height: 2px; background: var(--safran); border-radius: 2px;
}

.section__title {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  margin-bottom: 1.1rem;
}
.section__lead { color: var(--muted); font-size: 1.075rem; max-width: 60ch; }
.section__head--center .section__lead { margin-inline: auto; }

/* Surlignage tracé à la main sous les mots clés */
.hl {
  position: relative;
  display: inline-block;
  color: var(--terracotta);
}
.hl::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .04em;
  height: .34em; z-index: -1; border-radius: 4px;
  background: currentColor; opacity: .16;
}
.hl--turquoise { color: var(--turquoise); }
.hl--safran    { color: var(--safran); }

/* --- Boutons --- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .95rem 1.6rem; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; text-align: center; line-height: 1;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--terracotta); color: #fff;
  box-shadow: 0 8px 24px -10px rgba(226, 87, 43, .9);
}
.btn--primary:hover { background: var(--safran); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(245, 176, 39, .8); }

.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--safran); color: var(--safran); }

.btn--outline { border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--ink); }

.btn--lg { padding: 1.1rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: .7rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }


/* =================================================================
   4. EN-TÊTE & NAVIGATION
   ================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: .35rem;
}

/* Le fond flouté vit sur un pseudo-élément, surtout PAS sur .site-header.
   Un `backdrop-filter` (comme `filter`, `transform` ou `will-change`) fait de
   l'élément le bloc conteneur de ses descendants en `position: fixed`. Posé sur
   l'en-tête, il repliait le menu mobile — `position: fixed; inset: 0` — à la
   hauteur de l'en-tête au lieu de l'écran entier : les premiers liens se
   retrouvaient hors champ, au-dessus du viewport. */
.site-header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 16, 14, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
/* Classe ajoutée en JS au-delà de 40px de scroll */
.site-header.is-stuck::before { opacity: 1; }
.site-header.is-stuck { border-bottom-color: var(--line); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
/* Symbole neutre en attendant la décision sur le logo P&N. */
.logo__mark {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  background: var(--terracotta); color: #fff; border-radius: 10px;
  font-size: .82rem; font-weight: 700;
}
/* Même famille, même graisse et même couleur que les titres de projet
   (.project__name) : la marque est traitée comme un titre, pas comme un label. */
.logo__text {
  font-size: clamp(1.2rem, 1.05rem + .55vw, 1.45rem);
  color: var(--cream);
  letter-spacing: -.02em;
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav > a:not(.btn) {
  position: relative; font-size: .95rem; font-weight: 400; color: var(--muted);
  transition: color .25s var(--ease);
}
.nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--safran); border-radius: 2px; transition: width .3s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--cream); }
.nav > a:not(.btn):hover::after { width: 100%; }

/* Bouton hamburger (mobile) */
.burger {
  display: none; width: 44px; height: 44px; flex: none;
  background: none; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; padding: 0; place-items: center; gap: 5px;
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =================================================================
   5. HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  /* Padding lié à la hauteur d'écran : sur un portable 768–900 px de haut,
     le CTA principal doit rester visible sans défiler. */
  padding-block: clamp(6rem, 13vh, 8rem) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}

/* Canvas 3D en arrière-plan */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

/* Halo coloré : donne de la profondeur même si la 3D ne se charge pas */
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 48% at 78% 26%, rgba(226, 87, 43, .30), transparent 65%),
    radial-gradient(48% 42% at 12% 74%, rgba(23, 184, 166, .22), transparent 62%),
    radial-gradient(40% 38% at 46% 6%,  rgba(245, 176, 39, .16), transparent 60%),
    linear-gradient(180deg, transparent 55%, var(--ink) 100%);
}

.hero__inner { position: relative; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1rem .5rem .8rem; margin-bottom: 1.75rem;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(42, 35, 30, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .86rem; color: var(--muted);
}
.hero__badge strong { color: var(--safran); font-weight: 600; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex: none;
  box-shadow: 0 0 0 0 rgba(47, 163, 76, .7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 163, 76, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(47, 163, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 163, 76, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 1.05rem + 4.6vw, 4.5rem);
  max-width: 19ch;
  margin-bottom: 1.4rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: normal; color: var(--safran); }

.hero__sub {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.28rem);
  color: var(--muted); max-width: 54ch; margin-bottom: 2rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: clamp(2rem, 4vh, 3rem); }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.25rem);
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero__proof li { display: flex; flex-direction: column; gap: .15rem; }
.hero__proof strong {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 800;
  color: var(--turquoise); line-height: 1;
}
.hero__proof span { font-size: .84rem; color: var(--muted); }

/* Indicateur de scroll */
.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: var(--muted); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  transition: color .25s var(--ease);
}
.scroll-cue:hover { color: var(--safran); }
.scroll-cue__track {
  width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 8px;
}
.scroll-cue__dot {
  width: 4px; height: 8px; border-radius: 2px; background: var(--safran);
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  55%      { transform: translateY(14px); opacity: .1; }
  56%      { transform: translateY(0);    opacity: 0; }
}


/* =================================================================
   6. SERVICES & « POURQUOI MOI »
   ================================================================= */
.about { max-width: 760px; margin-bottom: clamp(3rem, 7vw, 4.5rem); }
.about__text { color: var(--muted); font-size: 1.08rem; margin: 0; }

.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  position: relative; overflow: hidden;
  padding: 2rem 1.75rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
/* Trait de couleur qui se déploie au survol */
.card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); transition: width .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card:hover::before { width: 100%; }

.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.4rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 1.25rem; }

.card__list { display: grid; gap: .55rem; font-size: .9rem; color: var(--muted); }
.card__list li { position: relative; padding-left: 1.4rem; }
.card__list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
  transform: rotate(45deg);
}

/* --- Pourquoi me choisir --- */
.why { margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.why__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: 2rem; }
.why__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.why__item {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(42, 35, 30, .8), rgba(29, 24, 21, .4));
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.why__item:hover { transform: translateY(-4px); border-color: var(--safran); }
.why__num {
  display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.5px var(--safran); line-height: 1; margin-bottom: .75rem;
}
.why__item h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.why__item p { color: var(--muted); font-size: .94rem; margin: 0; }


/* =================================================================
   7. PORTFOLIO
   ================================================================= */
.projects { display: grid; gap: clamp(3rem, 8vw, 6rem); }

.project {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}

.project__visual {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.75rem);
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.project__visual:hover { transform: translateY(-6px); border-color: var(--accent); }

.mockup {
  width: 100%; height: auto; border-radius: var(--radius-sm);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8);
}

/* --- Captures d'écran réelles ---
   Les interfaces applicatives sont claires, le portfolio est sombre : sans
   cadre, l'image ferait un « trou » blanc dans la mise en page. La barre de
   fenêtre reprend le vocabulaire visuel des mockups SVG des autres projets. */
/* Les captures occupent tout le cadre : le numéro décoratif du projet passe
   dessous plutôt que de venir baver sur une interface déjà chargée. */
.shots { display: grid; gap: .7rem; position: relative; z-index: 1; }
.shots__row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #2A231E;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8);
}

.shot__bar {
  display: flex; align-items: center; gap: 5px;
  height: 20px; padding-inline: 9px;
}
.shot__bar i { width: 6px; height: 6px; border-radius: 50%; }
.shot__bar i:nth-child(1) { background: var(--terracotta); }
.shot__bar i:nth-child(2) { background: var(--safran); }
.shot__bar i:nth-child(3) { background: var(--vert); }

.shot img { display: block; width: 100%; height: auto; }
/* Les deux vignettes sont recadrées par le haut pour rester de hauteur
   identique quelles que soient les dimensions des captures d'origine. */
.shots__row .shot img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top center; }

.project__index {
  position: absolute; right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.25rem, 1vw, .5rem);
  font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
  line-height: 1; pointer-events: none;
}

.project__type {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .6rem;
}
.project__name { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: 1rem; }
.project__desc { color: var(--muted); margin-bottom: 1rem; }
.project__desc--muted { font-size: .95rem; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.tags li {
  font-size: .78rem; font-weight: 500; padding: .35rem .75rem;
  border: 1px solid var(--line); border-radius: 100px; color: var(--muted);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.project:hover .tags li { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--cream); }


/* =================================================================
   7b. PRODUCTION VIDÉO
   ================================================================= */
.section--video { background: var(--ink-2); }

.video-showcase { display: grid; gap: clamp(3rem, 8vw, 6rem); }

.video-card {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}

.video-card__player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    var(--ink);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.video-card__player:hover { transform: translateY(-6px); border-color: var(--accent); }

.video-card__player video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.video-sound-btn {
  position: absolute;
  bottom: clamp(.75rem, 2vw, 1.25rem);
  right: clamp(.75rem, 2vw, 1.25rem);
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(20, 16, 14, .75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.video-sound-btn:hover { background: rgba(20, 16, 14, .92); transform: scale(1.1); }
.video-sound-btn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.video-sound-btn .ico-unmuted { display: none; }
.video-sound-btn.is-on .ico-muted { display: none; }
.video-sound-btn.is-on .ico-unmuted { display: block; }

@media (min-width: 900px) {
  .video-card { grid-template-columns: 1.3fr 1fr; }
}


/* =================================================================
   8. PROCESS
   ================================================================= */
.steps {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2.25rem 1.5rem 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--terracotta); background: var(--ink-3); }

.step__num {
  position: absolute; top: -22px; left: 1.5rem;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; background: var(--terracotta); color: #fff;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  box-shadow: 0 8px 20px -10px rgba(226, 87, 43, .9);
}
.step:nth-child(2) .step__num { background: var(--safran); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(245, 176, 39, .9); }
.step:nth-child(3) .step__num { background: var(--turquoise); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(23, 184, 166, .9); }
.step:nth-child(4) .step__num { background: var(--vert); color: #fff; box-shadow: 0 8px 20px -10px rgba(47, 163, 76, .9); }

.step h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

.steps { margin-top: 2rem; } /* laisse la place aux pastilles numérotées */


/* =================================================================
   9. ENGAGEMENTS
   Occupe l'emplacement des anciens témoignages : même grille, même
   rythme visuel, mais du contenu qu'on peut tenir sans client à citer.
   ================================================================= */
.pledges { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.pledge {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-3);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.pledge:hover { transform: translateY(-4px); border-color: var(--turquoise); }

.pledge__mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--turquoise) 18%, transparent);
  color: var(--turquoise);
}
.pledge__mark svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.pledge h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pledge p { color: var(--muted); font-size: .94rem; margin: 0; }


/* =================================================================
   10. CONTACT & FORMULAIRE
   ================================================================= */
.contact {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.form {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }

.field label { font-size: .88rem; font-weight: 500; color: var(--cream); }
.field .opt { color: var(--muted); font-weight: 300; }

.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .98rem; font-weight: 300; color: var(--cream);
  background: var(--ink-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem; width: 100%;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7C6F65; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--safran); background: var(--ink); outline: none;
}
.field select {
  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='%23B5A79A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
  padding-right: 2.75rem;
}
.field select option { background: var(--ink-2); color: var(--cream); }

/* État d'erreur, piloté par le JS de validation */
.field.has-error input,
.field.has-error textarea { border-color: var(--rouge); }
.error { color: var(--rouge); font-size: .82rem; min-height: 0; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__status { margin: .9rem 0 0; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form__status.is-ok    { color: var(--vert); }
.form__status.is-error { color: var(--rouge); }

/* --- Colonne de droite --- */
.contact__side { display: grid; gap: .75rem; align-content: start; }
.contact__side h3 { font-size: 1.25rem; margin-bottom: .35rem; }

.contact__link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-3);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.contact__link:hover { transform: translateX(5px); border-color: var(--accent); background: var(--ink-2); }
.contact__link span:last-child { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.contact__link strong { font-size: .96rem; overflow-wrap: anywhere; }
.contact__link em { font-style: normal; font-size: .82rem; color: var(--muted); }

.contact__ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.contact__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.contact__note {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.25rem; margin-top: .5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  font-size: .9rem;
}
.contact__note span { color: var(--muted); }


/* =================================================================
   11. PIED DE PAGE & CTA FLOTTANT
   ================================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 6rem; background: var(--ink); }
.footer__inner { display: grid; gap: 1.75rem; }
.footer__brand { display: flex; align-items: flex-start; gap: .9rem; }
.footer__brand p { margin: 0; font-size: .92rem; line-height: 1.6; }
.footer__brand span { color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .92rem; color: var(--muted); }
.footer__nav a:hover { color: var(--safran); }
.footer__legal { margin: 0; font-size: .82rem; color: var(--muted); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Bouton d'action flottant : visible uniquement sur mobile */
.fab {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%) translateY(150%);
  z-index: 90; display: none;
  padding: .95rem 1.6rem; border-radius: 100px;
  background: var(--terracotta); color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .9);
  transition: transform .4s var(--ease);
}
.fab.is-visible { transform: translateX(-50%) translateY(0); }


/* =================================================================
   12. RESPONSIVE
   Mobile first : les règles ci-dessus valent pour le mobile,
   on élargit ensuite.
   ================================================================= */

/* --- Tablette --- */
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
}

/* --- Desktop --- */
@media (min-width: 900px) {
  .project { grid-template-columns: 1.05fr 1fr; }
  .project--reverse .project__visual { order: 2; }
  .contact { grid-template-columns: 1.35fr 1fr; gap: 2rem; }
  .footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer__nav { justify-content: flex-end; }
  .footer__legal { grid-column: 1 / -1; }
}

/* --- Mobile : menu plein écran + CTA flottant --- */
@media (max-width: 899px) {
  .burger { display: grid; }

  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 1.75rem; padding: 2rem;
    background: rgba(20, 16, 14, .97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav > a:not(.btn) { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--cream); }

  /* Zones tactiles d'au moins 44 px (WCAG 2.5.5) */
  .nav .btn--sm { padding: 1.05rem 1.75rem; font-size: 1rem; }
  .logo { padding-block: 4px; }
  .footer__nav a { padding-block: .45rem; }
  .footer__legal a { display: inline-block; padding-block: .35rem; }

  .fab { display: block; }
  .site-footer { padding-bottom: 6.5rem; }

  /* `display: block` et non `flex` : l'indicateur de scroll repasse en flux
     normal sur mobile, il doit se placer SOUS le contenu et non à côté. */
  .hero { display: block; min-height: auto; padding-block: 7rem 5rem; }
  .scroll-cue { position: static; transform: none; margin: 3rem auto 0; width: max-content; }
}

/* --- Très petits écrans --- */
@media (max-width: 420px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__proof { gap: 1.25rem 2rem; }
}


/* =================================================================
   13. ACCESSIBILITÉ / MOUVEMENT RÉDUIT
   ================================================================= */

/* États de départ des animations GSAP.
   La classe .js-ready est posée par main.js : sans JavaScript,
   tout le contenu reste visible. */
.js-ready .js-fade,
.js-ready .js-card,
.js-ready .js-project { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js-ready .js-fade,
  .js-ready .js-card,
  .js-ready .js-project { opacity: 1 !important; transform: none !important; }
  .hero__canvas { display: none; }
}


/* =================================================================
   14. PAGE MENTIONS LÉGALES
   Page autonome : pas de navigation principale, juste un retour au
   site. Colonne étroite (820px) pour garder des lignes lisibles.
   ================================================================= */
.legal { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem); }
.legal__inner { max-width: 820px; }

.legal__back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .92rem; font-weight: 600; color: var(--muted);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.legal__back:hover { color: var(--terracotta); gap: .75rem; }
.legal__back svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.legal__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.legal__head .section__title { margin-bottom: 1.1rem; }

.legal__block { margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.legal__block h2 {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  padding-bottom: .7rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.legal__block h3 { font-size: 1.02rem; color: var(--safran); margin: 1.6rem 0 .5rem; }
.legal__block p { color: var(--muted); margin-bottom: .9rem; }
.legal__block a,
.legal__list a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.legal__block a:hover,
.legal__list a:hover { color: var(--safran); }

/* Paires libellé / valeur de l'identification légale */
.legal__list { display: grid; gap: .2rem 1.5rem; margin: 0; }
.legal__list dt {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--safran); font-weight: 600; margin-top: 1.1rem;
}
.legal__list dt:first-child { margin-top: 0; }
.legal__list dd { margin: 0; color: var(--cream); }

.legal__ul { margin: 0 0 .9rem 1.1rem; color: var(--muted); }
.legal__ul li { margin-bottom: .55rem; }

.legal__updated {
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}

/* Au-delà de 700px, libellé et valeur passent côte à côte */
@media (min-width: 700px) {
  .legal__list { grid-template-columns: 230px 1fr; align-items: baseline; }
  .legal__list dt { margin-top: 0; }
  .legal__list dd { margin-bottom: .55rem; }
}
