/* ==========================================================================
   Djums Digital : design system (HTML/CSS/JS pur, sans framework)
   ========================================================================== */

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --- Design tokens --- */
:root {
  --navy: #021772;
  --ink: #010e47;
  --black: #06070f;
  --gold: #f0b841;
  --gold-light: #f7d88a;
  --gold-deep: #d99a2b;
  --paper: #ffffff;
  --white: #ffffff;
  /* Seul aplat clair autorisé : un gris froid très léger, jamais un beige. */
  --shade: #f3f5fa;
  --text: #141414;

  /* Surfaces & hairlines : premium depth */
  --surface-light: #fbfbfd;
  --hairline-dark: rgba(255, 255, 255, 0.1);
  --hairline-light: rgba(2, 23, 114, 0.12);
  --gold-grad: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));

  --font-heading: "Space Grotesk", "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --container: 1240px;

  /* Radius scale */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Layered shadow system : soft, multi-stop reads as premium */
  --shadow-xs: 0 1px 2px rgba(4, 8, 30, 0.05);
  --shadow-sm: 0 2px 6px -2px rgba(4, 8, 30, 0.08), 0 4px 12px -4px rgba(4, 8, 30, 0.06);
  --shadow-md: 0 6px 16px -6px rgba(4, 8, 30, 0.12), 0 14px 32px -12px rgba(4, 8, 30, 0.1);
  --shadow-lg: 0 16px 34px -12px rgba(4, 8, 30, 0.2), 0 34px 68px -28px rgba(4, 8, 30, 0.24);
  --shadow-gold: 0 10px 26px -8px rgba(240, 184, 65, 0.45), 0 2px 6px -2px rgba(240, 184, 65, 0.3);

  --fs-display: clamp(3.1rem, 3vw + 2.2rem, 7.5rem);
  --fs-h1: clamp(2.7rem, 2.4vw + 2rem, 5.25rem);
  --fs-h2: clamp(2.05rem, 1.6vw + 1.5rem, 3.4rem);
  --fs-h3: clamp(1.2rem, 0.4vw + 1rem, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.3vw + 0.95rem, 1.3rem);
  --fs-ghost: clamp(5rem, 7vw, 9.5rem);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* Optical tightening grows with type size for a refined display feel */
h1 {
  letter-spacing: -0.032em;
}
.hero h1,
.hero__title {
  letter-spacing: -0.038em;
}
/* Accueil et index des services : le <h1> est la ligne courte au-dessus de la
   grande phrase (voir heroSection). Il garde exactement le rendu de l'ancien
   surtitre ; la grande phrase (.hero__title) garde celui de l'ancien <h1>. */
.hero .hero__kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.22em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.4rem;
}
@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem;
  }
}
.container--narrow {
  max-width: 880px;
}

/* Lien d'évitement (accessibilité + bon signal SEO technique) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 7.5vw, 8.5rem);
  overflow: hidden;
}
.section--tight {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}
.bg-ink {
  background: var(--ink);
  color: var(--white);
}
.bg-white {
  background: var(--white);
  color: var(--text);
}
/* Aplat clair de respiration. Il reste froid : l or est un accent, jamais un fond. */
.bg-shade {
  background: var(--shade);
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.bg-shade .eyebrow {
  color: var(--gold-deep);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 42ch;
}
.lead--center {
  margin-inline: auto;
  text-align: center;
}
/* Paragraphes de corps de texte : plus larges, empilés */
.lead--flow {
  max-width: 68ch;
  margin-top: 1.2rem;
}

.text-gold {
  color: var(--gold);
}
.t-navy {
  color: var(--navy);
}
.muted {
  opacity: 0.72;
}

/* En-tête et pied de section réutilisables */
.section__head {
  max-width: 46rem;
}
.section__head--center {
  text-align: center;
  margin-inline: auto;
}
.section__head h2 {
  font-size: var(--fs-h2);
}
.section__head .lead {
  margin-top: 1.3rem;
  opacity: 0.82;
}
.section__foot {
  margin-top: 3rem;
  text-align: center;
}
.section > .container > .section__head + * {
  margin-top: 3rem;
}
.section--cta {
  text-align: center;
}
.section--cta h2 {
  font-size: var(--fs-h1);
}
.section--cta .lead {
  margin-top: 1.4rem;
}

.dot {
  color: var(--gold);
}

/* --- Grain texture --- */
.grain {
  position: relative;
}
.grain::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
}

/* --- Decorative blobs --- */
.blob {
  position: absolute;
  border-radius: 50%;
  border: 56px solid var(--gold);
  opacity: 0.08;
  pointer-events: none;
}
.blob--a {
  animation: blobFloatA 16s ease-in-out infinite;
}
.blob--b {
  animation: blobFloatB 19s ease-in-out infinite;
}
@keyframes blobFloatA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(36px, -28px) scale(1.08);
  }
}
@keyframes blobFloatB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-28px, 34px) scale(1.05);
  }
}

/* --- Ghost numerals (typographic graphic device) --- */
.ghost-number {
  font-family: var(--font-heading);
  font-size: var(--fs-ghost);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
  opacity: 0.16;
}
.bg-white .ghost-number,
.bg-shade .ghost-number {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
  opacity: 0.14;
}

/* --- Scroll progress bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 70;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Header : menu flottant
   Desktop : la barre se détache des bords, arrondi maîtrisé (18px, jamais une
   capsule), marque à gauche, nav centrée, actions à droite.
   Mobile : la même structure redevient une barre simple, pleine largeur.
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-block: 0;
  transition: padding 0.4s var(--ease);
}
.header__shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.4rem;
}
@media (min-width: 768px) {
  .header__shell {
    padding-inline: 2.5rem;
  }
}
.header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), padding 0.35s var(--ease), backdrop-filter 0.4s var(--ease);
}
/* Sur mobile la barre reste simple : un fond apparaît seulement au scroll. */
.header.is-scrolled .header__bar {
  background: rgba(1, 14, 71, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.header__brand {
  flex-shrink: 0;
  display: block;
}
.logo {
  height: 36px;
  width: auto;
  max-width: none;
  display: block;
}
.nav {
  display: none;
  align-items: center;
  justify-self: center;
  gap: 0.15rem;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__link.is-active {
  color: var(--white);
}
.nav__link.is-active::after {
  opacity: 1;
  transform: translateY(0);
}
.header__end {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
/* Deux classes pour battre `.btn { display: inline-flex }`, défini plus bas. */
.header .header__cta {
  display: none;
}

/* Sélecteur de langue FR / EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.lang-switch span {
  color: var(--gold);
}
.lang-switch i {
  font-style: normal;
}
.lang-switch::before {
  content: "";
  width: 1px;
  height: 0.85em;
  background: currentColor;
  opacity: 0.4;
  order: 1;
}
.lang-switch i {
  order: 2;
}
.lang-switch:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

/* Bouton du menu mobile : une pastille bordée qui reprend le langage du menu
   flottant, avec deux barres de longueurs différentes qui se croisent en X à
   l'ouverture. Plus discret et plus dessiné que trois traits égaux. */
.nav-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle:hover {
  border-color: rgba(240, 184, 65, 0.55);
  background: rgba(255, 255, 255, 0.1);
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease-spring), width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) {
  width: 20px;
}
.nav-toggle span:nth-child(2) {
  width: 13px;
  align-self: center;
  margin-left: 7px;
  background: var(--gold);
}
.nav-toggle:hover span:nth-child(2) {
  width: 20px;
  margin-left: 0;
}
.nav-toggle[aria-expanded="true"] span {
  width: 20px;
  margin-left: 0;
  background: var(--gold);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Menu mobile --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(240, 184, 65, 0.16), transparent 55%),
    radial-gradient(100% 80% at -10% 100%, rgba(41, 66, 168, 0.55), transparent 60%),
    linear-gradient(165deg, var(--ink), #020c3a 70%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--ease);
  pointer-events: none;
}
.mobile-nav.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.mobile-nav__inner {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: 6.4rem 1.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mobile-nav__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1.4rem;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.25s var(--ease);
}
.mobile-nav.is-open .mobile-nav__link {
  animation: mobileLinkIn 0.5s var(--ease) forwards;
  animation-delay: calc(0.16s + var(--i) * 0.06s);
}
@keyframes mobileLinkIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-nav__link em {
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.65;
  padding-top: 0.4em;
}
.mobile-nav__link span {
  flex: 1;
}
.mobile-nav__link svg {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-nav__link.is-active {
  color: var(--gold);
}
.mobile-nav__link.is-active svg,
.mobile-nav__link:hover svg {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav__foot {
  margin-top: auto;
  padding-top: 2.4rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.42s;
}
.mobile-nav.is-open .mobile-nav__foot {
  opacity: 1;
}
.mobile-nav__meta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.mobile-nav__meta a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.mobile-nav__meta svg {
  color: var(--gold);
  flex-shrink: 0;
}
.mobile-nav__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.mobile-nav__bottom .social-row {
  margin-top: 0;
}

/* --- Desktop : le menu devient un composant flottant --- */
@media (min-width: 1024px) {
  .header {
    padding-top: 1.15rem;
  }
  .header__bar {
    padding: 0.6rem 0.7rem 0.6rem 1.4rem;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(1, 14, 71, 0.42);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
  }
  .header.is-scrolled {
    padding-top: 0.7rem;
  }
  .header.is-scrolled .header__bar {
    background: rgba(1, 14, 71, 0.82);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.8);
  }
  .nav {
    display: flex;
  }
  .header .header__cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg {
  flex-shrink: 0;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}
.btn:hover::after {
  left: 125%;
}
.btn--primary {
  background: var(--gold-grad);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  box-shadow: var(--shadow-gold);
}
.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn--ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn--ghost-dark {
  border: 1.5px solid rgba(2, 23, 114, 0.3);
  color: var(--navy);
}
.btn--ghost-dark:hover {
  border-color: var(--navy);
  background: rgba(2, 23, 114, 0.05);
}
.btn--block {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  /* Les halos décoratifs sont volontairement posés en dehors du cadre
     (right/left négatifs) : sans cette coupe, ils élargissaient le document et
     tout le site défilait horizontalement sur mobile. */
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 85% -10%, rgba(240, 184, 65, 0.18), transparent 52%),
    radial-gradient(90% 80% at -5% 115%, rgba(41, 66, 168, 0.5), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--navy) 62%);
  color: var(--white);
  padding-top: clamp(7.5rem, 12vw, 11rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid--split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero h1,
.hero__title {
  font-size: var(--fs-display);
}
.hero h1 .word,
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  animation: wordIn 0.7s var(--ease) forwards;
}
@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.hero__actions--center {
  justify-content: center;
  margin-top: 2.2rem;
}
.hero__sub {
  margin-top: 1.6rem;
  max-width: 52ch;
}
.scroll-cue {
  display: none;
  margin: 3rem auto 0;
  width: 26px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  position: relative;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollCue 1.6s ease-in-out infinite;
}
@keyframes scrollCue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (min-width: 768px) {
  .scroll-cue {
    display: block;
  }
}

/* --- Visuel du hero : les 4 expertises, lisibles d'un coup d'oeil --- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.hero-tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.hero-tile:hover {
  border-color: rgba(240, 184, 65, 0.6);
  transform: translateY(-4px);
}
.hero-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(240, 184, 65, 0.14);
  color: var(--gold);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.hero-tile:hover .hero-tile__icon {
  background: var(--gold);
  color: var(--navy);
}
.hero-tile b {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.hero-tile__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.66;
}
@media (max-width: 420px) {
  .hero-tiles {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Services : bento panels
   ========================================================================== */
.bento {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
}
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 2.2rem 1.8rem;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.panel:hover {
  border-color: rgba(240, 184, 65, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.55);
}
.panel__index {
  position: absolute;
  top: -0.4rem;
  right: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 5.5rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
  line-height: 1;
}
.panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(240, 184, 65, 0.12);
  color: var(--gold);
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.panel:hover .panel__icon {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(6deg) scale(1.05);
}
.panel h3 {
  position: relative;
  z-index: 1;
  font-size: var(--fs-h3);
  margin-bottom: 0.7rem;
}
.panel p {
  position: relative;
  z-index: 1;
  opacity: 0.75;
  font-size: 0.95rem;
}
.panel__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
}
.panel__link svg {
  transition: transform 0.25s var(--ease);
}
.panel:hover .panel__link svg {
  transform: translateX(4px);
}
.panel--light {
  border-color: var(--hairline-light);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.panel--light .panel__index {
  -webkit-text-stroke: 1px rgba(2, 23, 114, 0.14);
}
.panel--light:hover {
  border-color: rgba(2, 23, 114, 0.35);
  box-shadow: var(--shadow-md);
}
.panel--light h3 {
  color: var(--navy);
}
.panel--light .panel__link {
  color: var(--navy);
}

/* ==========================================================================
   Value / team cards
   ========================================================================== */
.value-grid,
.team-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 3rem;
}
@media (min-width: 700px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.value-card {
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-md);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.value-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
}
.value-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.72;
}
.team-card {
  text-align: center;
}
.team-card__avatar {
  width: 92px;
  height: 92px;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, #0a2aa0, var(--navy) 65%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  border: 3px solid transparent;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.team-card:hover .team-card__avatar {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.team-card h3 {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.team-card p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.72;
}
.bg-ink .team-card h3,
.bg-navy .team-card h3 {
  color: var(--white);
}

/* ==========================================================================
   Service detail
   ========================================================================== */
.check-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .check-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.97rem;
}
/* Libellé + phrase concrète (pages de services) */
.check-list li b {
  display: block;
  font-weight: 600;
}
.check-list__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.72;
}
.check-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--gold);
}
.process-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.process-list b {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.faq {
  margin-top: 2rem;
}
.faq-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(2, 23, 114, 0.1);
}
.faq-item dt {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-item dd {
  margin-top: 0.5rem;
  margin-left: 0;
  font-size: 0.95rem;
  opacity: 0.78;
  max-width: 72ch;
}
.bg-ink .faq-item,
.bg-navy .faq-item {
  border-bottom-color: var(--hairline-dark);
}
.bg-ink .faq-item dt,
.bg-navy .faq-item dt {
  color: var(--gold);
}
.bg-ink .faq-item dd,
.bg-navy .faq-item dd {
  opacity: 0.8;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.form-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .form-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}
.field {
  margin-bottom: 1.3rem;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(2, 23, 114, 0.18);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(2, 23, 114, 0.12);
}
.field-row {
  display: grid;
  gap: 1.3rem;
}
@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.required {
  color: var(--gold);
}
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.form-status[data-state="error"] {
  color: #c0392b;
}
.form-status[data-state="success"] {
  background: var(--shade);
  border-radius: 12px;
  padding: 1.6rem;
  color: var(--navy);
}
.contact-card {
  background: var(--shade);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 {
  font-size: 1.25rem;
  color: var(--navy);
}
.contact-card dl {
  margin-top: 1.6rem;
}
.contact-card dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.3rem;
}
.contact-card dt:first-child {
  margin-top: 0;
}
.contact-card dd {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  opacity: 0.78;
}
.contact-card dd a {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s var(--ease);
}
.contact-card dd a:hover {
  text-decoration-color: currentColor;
}
.contact-card__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.contact-card__wa {
  margin-top: 1.8rem;
}
.contact-intro {
  margin-top: 0.8rem;
  margin-bottom: 2rem;
  font-size: 0.98rem;
  opacity: 0.75;
  max-width: 60ch;
}
.contact-offices {
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-light);
}
.contact-offices__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-office {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.contact-office__pin {
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.contact-office b {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
}
.contact-office span {
  font-size: 0.88rem;
  opacity: 0.75;
}
.contact-offices__world {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-offices__world svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--gold-deep);
}

/* --- Bureaux / couverture mondiale --- */
.office-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (min-width: 760px) {
  .office-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.office-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(2, 23, 114, 0.15);
  border-radius: var(--r-md);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.office-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-md);
}
.office-card__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.office-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
}
.office-card p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: rgba(2, 23, 114, 0.78);
  max-width: 34ch;
}
.office-card .panel__link {
  color: var(--navy);
  margin-top: 1.2rem;
}
.office-card--world {
  background: var(--navy);
  border-color: var(--navy);
}
.office-card--world h3 {
  color: var(--white);
}
.office-card--world p {
  color: rgba(255, 255, 255, 0.78);
}
.office-card--world .office-card__pin {
  background: rgba(240, 184, 65, 0.16);
}
.office-card--world .panel__link {
  color: var(--gold);
}
.office-card--world:hover {
  background: var(--ink);
}

/* Encart adresse sur les pages villes */
.city-office {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 2.4rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--shade);
  border: 1px solid var(--hairline-light);
}
.city-office svg {
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.city-office b {
  display: block;
  color: var(--navy);
}
.city-office span {
  font-size: 0.92rem;
  opacity: 0.78;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--white);
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}
@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer__about p {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: 0.9rem;
  opacity: 0.7;
}
.footer__world {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  max-width: 32ch;
}
.footer__world svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.footer__offices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.6rem;
}
.footer__office b {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
}
.footer__office span {
  font-size: 0.84rem;
  opacity: 0.7;
  line-height: 1.5;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
  opacity: 0.85;
}
.footer__links a:hover {
  opacity: 0.7;
}
.social-row {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.3rem;
}
.social-row a {
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.social-row a:hover {
  opacity: 1;
  color: var(--gold);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.4rem;
  font-size: 0.78rem;
  opacity: 0.6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}

/* ==========================================================================
   WhatsApp float button
   ========================================================================== */
/* Aux couleurs de la charte : navy + doré, pas de vert WhatsApp. */
.whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 50;
  height: 52px;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  background: var(--navy);
  border: 1px solid rgba(240, 184, 65, 0.55);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 14px 30px -12px rgba(2, 23, 114, 0.75);
  animation: pulseRing 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.whatsapp-float__label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--navy);
}
.whatsapp-float:hover .whatsapp-float__label {
  color: var(--navy);
}
@keyframes pulseRing {
  0% {
    box-shadow: 0 14px 30px -12px rgba(2, 23, 114, 0.75), 0 0 0 0 rgba(240, 184, 65, 0.45);
  }
  100% {
    box-shadow: 0 14px 30px -12px rgba(2, 23, 114, 0.75), 0 0 0 18px rgba(240, 184, 65, 0);
  }
}
@media (max-width: 560px) {
  .whatsapp-float {
    width: 52px;
    padding: 0;
    justify-content: center;
  }
  .whatsapp-float__label {
    display: none;
  }
}

/* ==========================================================================
   Scroll reveal (progressive enhancement : only active once .js is set)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Entrée de section : opacité seule, pour ne pas créer de bloc conteneur qui
   perturberait les colonnes sticky de la stratégie et du processus. */
.js [data-reveal-section] {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.js [data-reveal-section].is-visible {
  opacity: 1;
}

/* ==========================================================================
   Accessibility / performance safeguards
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-reveal-section] {
    opacity: 1;
    transform: none;
  }
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ==========================================================================
   Motion layer : smooth scroll, intro veil, page transitions, text reveal
   (all gated behind .anim, which is NOT set under reduced-motion or no-JS)
   ========================================================================== */

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Intro veil + page-transition curtain */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transform: translateY(0);
  pointer-events: none;
  will-change: transform;
}
.anim .page-veil {
  display: flex;
  animation: veilLift 1s var(--ease) 0.35s forwards;
}
.page-veil__logo {
  width: clamp(185px, 40vw, 300px);
  height: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: veilLogo 1.35s var(--ease) forwards;
}
@keyframes veilLift {
  to {
    transform: translateY(-100%);
  }
}
@keyframes veilLogo {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  68% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Scroll text reveal : words are wrapped and opacity-scrubbed by animate.js.
   Only styled once JS has split them, so no-JS text stays fully legible. */
.rw {
  display: inline-block;
}

/* ==========================================================================
   Signature sections : showreel, strategy, process
   ========================================================================== */

/* Eyebrow needs a darker gold on light backgrounds (contrast) */
.bg-white .eyebrow {
  color: var(--gold-deep);
}

/* Sticky columns need a non-clipping section context */
.process {
  overflow: visible;
}

/* --- Process --- */
.process__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .process__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
  .process__aside {
    position: sticky;
    top: 130px;
  }
}
.process__lead {
  margin-top: 1.4rem;
  opacity: 0.8;
}
.process__progress {
  margin-top: 1.8rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.process__progress span {
  display: block;
  height: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}
.process__count {
  margin-top: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
}
.process__count b {
  color: var(--gold);
  font-size: 1.7rem;
}
.process__steps {
  display: flex;
  flex-direction: column;
}
.process-step {
  padding: 2.2rem 0;
  border-top: 1px solid var(--hairline-dark);
}
.process-step:last-child {
  border-bottom: 1px solid var(--hairline-dark);
}
.process-step__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.process-step h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-top: 0.6rem;
  transition: color 0.3s var(--ease);
}
.process-step p {
  margin-top: 0.7rem;
  opacity: 0.75;
  max-width: 46ch;
}
.process-step.is-active h3 {
  color: var(--gold);
}

/* ==========================================================================
   Pourquoi nous choisir
   Reprend la composition et les animations qui servaient à « Notre approche » :
   colonne collante à gauche, liste numérotée à filets à droite.
   ========================================================================== */
.why {
  overflow: visible;
}
.why__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: start;
  }
  .why__head {
    position: sticky;
    top: 130px;
  }
}
.why__lead {
  margin-top: 1.4rem;
  opacity: 0.85;
}
.why-facts {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline-dark);
}
@media (min-width: 520px) {
  .why-facts {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 2.4rem;
  }
}
.why-fact b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.why-fact span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 17ch;
  opacity: 0.6;
}
.why__list {
  display: flex;
  flex-direction: column;
}
.why-item {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 1.9rem 0;
  border-top: 1px solid var(--hairline-dark);
}
.why-item:last-child {
  border-bottom: 1px solid var(--hairline-dark);
}
.why-item__num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  padding-top: 0.4rem;
}
.why-item h3 {
  font-size: clamp(1.25rem, 1.4vw, 1.55rem);
}
.why-item p {
  margin-top: 0.5rem;
  opacity: 0.75;
  max-width: 44ch;
}

/* ==========================================================================
   Preuve sociale : logos clients
   ========================================================================== */
.clients__title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.55;
}
.clients__note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ==========================================================================
   Preuve sociale : témoignages
   ========================================================================== */
.testimonial-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-md);
  padding: 1.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 23, 114, 0.22);
  box-shadow: var(--shadow-md);
}
.testimonial svg {
  color: var(--gold);
  margin-bottom: 1rem;
}
.testimonial blockquote {
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.65;
  opacity: 0.85;
}
.testimonial figcaption {
  margin-top: 1.4rem;
  font-size: 0.88rem;
}
.testimonial figcaption b {
  display: block;
  color: var(--navy);
}
.testimonial figcaption span {
  opacity: 0.7;
}
.testimonial__logo {
  margin-top: 1.2rem;
  max-height: 30px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
}
.testimonial--wide {
  margin-top: 2.5rem;
}
.testimonial--wide blockquote {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
}

/* ==========================================================================
   Réalisations : navigation par catégorie et composition d'un projet
   La hiérarchie est toujours la même (client, visuel, contexte, intervention,
   résultat, accès) mais chaque bloc absent disparaît sans laisser de vide.
   ========================================================================== */
.work-jump ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.work-jump a {
  display: inline-flex;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.work-jump a:hover {
  border-color: var(--navy);
  background: rgba(2, 23, 114, 0.05);
}
.work-cat {
  scroll-margin-top: 110px;
}
.work-cat__head {
  max-width: 46ch;
  margin-bottom: 3.4rem;
}
.work-cat__head .lead {
  margin-top: 1rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 6vw, 6rem);
}
.project {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .project {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 4vw, 4.5rem);
  }
  .project--flip .project__media {
    order: 2;
  }
  .project--textonly {
    grid-template-columns: 1fr;
    max-width: 62ch;
  }
}
.project__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  background: var(--shade);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.project:hover .project__media {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.project__media img,
.project__media video {
  width: 100%;
  height: auto;
  display: block;
}
/* Une capture produit se lit large, une identité de marque se lit carrée. */
.project__media--screenshot .project__cover {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.project__media--brand .project__cover {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project__media--campaign .project__cover {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.project__shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 2px;
  background: var(--hairline-light);
  border-top: 1px solid var(--hairline-light);
}
.project__shots img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.project__logo {
  max-height: 32px;
  width: auto;
  margin-bottom: 1.1rem;
  filter: grayscale(1);
  opacity: 0.7;
}
.project__client {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.project__client span {
  opacity: 0.55;
}
.project__name {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  color: var(--navy);
}
.bg-ink .project__name,
.bg-navy .project__name {
  color: var(--white);
}
.project__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 1.6rem;
  padding: 1.2rem 0;
  border-block: 1px solid var(--hairline-light);
}
.project__metric b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy);
}
.project__metric span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.65;
  max-width: 18ch;
}
.project__facts {
  margin-top: 1.6rem;
  display: grid;
  gap: 1.1rem;
}
.project__facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}
.project__facts dd {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.62;
  opacity: 0.82;
  max-width: 52ch;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.6rem;
}
.project__tags li {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  opacity: 0.75;
}
.project__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}
.project-list--compact .project__facts dd {
  font-size: 0.92rem;
}

/* ==========================================================================
   État vide assumé : on annonce ce qui arrive, on n'invente rien
   ========================================================================== */
.empty-state {
  max-width: 58ch;
  margin: 3rem auto 0;
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px dashed var(--hairline-light);
  border-radius: var(--r-lg);
  background: var(--shade);
  text-align: center;
}
.empty-state__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.empty-state__items li {
  padding: 0.34rem 0.85rem;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.85;
}
.empty-state__title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
}
.empty-state__text {
  margin-top: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.65;
  opacity: 0.78;
}
.empty-state .btn {
  margin-top: 1.8rem;
}

/* ==========================================================================
   Étude de cas
   ========================================================================== */
.case__cover {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline-light);
  box-shadow: var(--shadow-md);
}
.case__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.case__metric b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  color: var(--navy);
}
.case__metric span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  opacity: 0.68;
}
.case__block + .case__block {
  margin-top: clamp(2.5rem, 4vw, 3.8rem);
}
.case__block h2 {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}
.case__block .lead {
  margin-top: 1rem;
}
.case__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.case__gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-light);
}

/* ==========================================================================
   Bloc éditorial « le constat »
   ========================================================================== */
.statement h2 {
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  max-width: 18ch;
}
.statement__row {
  display: grid;
  gap: 2rem;
}
.statement__note {
  margin-top: 1.4rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
@media (min-width: 900px) {
  .statement__row {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 3.5rem;
  }
}

/* ==========================================================================
   Vignettes de réalisation
   Utilisées pour l'aperçu de l'accueil et pour la page Réalisations tant
   qu'aucun projet réel n'est saisi dans data.mjs.
   ========================================================================== */
.gallery {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.gallery-card__link {
  display: block;
  height: 100%;
}
.gallery-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(240, 184, 65, 0.14), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-card__media span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(2, 23, 114, 0.92);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.gallery-card:hover .gallery-card__overlay {
  transform: translateY(0);
}
.gallery-card__body {
  padding: 1.1rem 1.2rem;
  background: var(--shade);
}
.gallery-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.gallery-card__name {
  margin-top: 0.2rem;
  font-weight: 700;
  color: var(--navy);
}
.gallery__note {
  margin-top: 2.6rem;
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.7;
  max-width: 62ch;
  margin-inline: auto;
}

/* ==========================================================================
   Appel à l'action sur fond clair
   Utilisé en fin de page d'accueil et de page Réalisations : après une longue
   dominante bleue, cette respiration relance le contraste juste avant le pied
   de page, qui est sombre.
   ========================================================================== */
.section--cta-light {
  border-top: 1px solid var(--hairline-light);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(2, 23, 114, 0.07), transparent 62%),
    var(--white);
}
.section--cta-light h2 {
  font-size: clamp(2.1rem, 2.4vw + 1.4rem, 3.6rem);
  max-width: 20ch;
  margin-inline: auto;
}
.section--cta-light .lead {
  color: var(--text);
  opacity: 0.75;
}

/* ==========================================================================
   Bandeau défilant des logos clients
   Deux pistes identiques se suivent : quand la première a entièrement défilé,
   la seconde est exactement à sa place, donc la boucle ne saute pas.
   ========================================================================== */
.clients__marquee {
  display: flex;
  width: 100%;
  margin-top: 2.4rem;
  overflow: hidden;
  /* Les logos s'effacent sur les bords plutôt que d'être coupés net. La bande
     reste courte : à 12 % elle escamotait un logo entier en permanence. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
  animation: clientsScroll 38s linear infinite;
}
.clients__marquee:hover .clients__track {
  animation-play-state: paused;
}
@keyframes clientsScroll {
  to {
    transform: translateX(-100%);
  }
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-logo img {
  max-height: 62px;
  max-width: 210px;
  width: auto;
  object-fit: contain;
  /* Plusieurs logos fournis sont clairs ou très fins : désaturés puis passés à
     62 % d'opacité, ils devenaient illisibles. On garde le gris, mais assombri
     et contrasté pour que chaque marque reste identifiable. */
  filter: grayscale(1) contrast(1.3) brightness(0.7);
  opacity: 0.85;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
/* Au survol comme au toucher, le logo reprend ses couleurs. */
.client-logo:hover img,
.client-logo:focus-within img,
.client-logo:active img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .clients__marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .clients__track {
    animation: none;
  }
  .clients__track[aria-hidden="true"] {
    display: none;
  }
}

.gallery-card__media--shot {
  background: var(--shade);
}
.gallery-card__media--shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.gallery-card:hover .gallery-card__media--shot img {
  transform: scale(1.04);
}

.gallery-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gallery-card__body {
  flex: 1;
}
.gallery-card__sub {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.7;
}

/* Projet sans texte rédigé : carte compacte, deux ou trois par rangée, plutôt
   quune composition deux colonnes à moitié vide. */
.project-list {
  display: grid;
  gap: clamp(3rem, 5vw, 5rem);
}
.project--brief {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project--brief:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project--brief .project__media {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.project--brief .project__body {
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
}
/* Toutes les captures sont ramenées au même cadrage : sans cela, une page
   longue et une page courte donnent deux cartes de hauteurs très différentes
   sur la même rangée. */
.project--brief .project__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
/* Les visuels secondaires sont réservés à la composition détaillée. */
.project--brief .project__shots {
  display: none;
}
.project--brief .project__name {
  font-size: 1.25rem;
}
.project--brief .project__logo {
  max-height: 26px;
  margin-bottom: 0.9rem;
}
@media (min-width: 760px) {
  .project-list:has(.project--brief) {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
  .project--brief {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1180px) {
  .project-list:has(.project--brief) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Une catégorie encore vide tient en trois lignes : elle ne mérite pas la
   respiration dune section pleine. */
/* Domaines encore sans projet publié : un seul bloc en fin de page, sur deux
   colonnes, plutôt qu'une section pleine par catégorie. */
.work-pending__inner {
  display: grid;
  gap: 1.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--hairline-light);
}
@media (min-width: 860px) {
  .work-pending__inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
  }
}
.work-pending__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.work-pending__list li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.work-pending__note {
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.7;
}

/* Piège à robots : hors flux et hors champ, jamais annoncé aux lecteurs
   décran. display:none serait ignoré par certains robots, pas ce décalage. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Confirmation d'envoi du formulaire
   ========================================================================== */
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 14, 71, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal__panel {
  position: relative;
  width: min(100%, 470px);
  padding: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-spring);
}
.modal.is-open .modal__backdrop {
  opacity: 1;
}
.modal.is-open .modal__panel {
  opacity: 1;
  transform: none;
}
.modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.modal__title {
  font-size: clamp(1.4rem, 1vw + 1.15rem, 1.85rem);
  color: var(--navy);
  line-height: 1.25;
}
.modal__text {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.75;
}
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--navy);
  opacity: 0.45;
  transition: opacity 0.25s var(--ease), background-color 0.25s var(--ease);
}
.modal__close:hover {
  opacity: 1;
  background: rgba(2, 23, 114, 0.07);
}

/* Notification d'erreur : discrète, en bas d'écran, elle ne bloque pas la
   page pour que le visiteur puisse corriger et réessayer tout de suite. */
.toast[hidden] {
  display: none;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 190;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: min(calc(100% - 2rem), 420px);
  padding: 0.95rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-spring);
}
.toast.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast__close {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  padding: 0.15rem 0.3rem;
}
@media (max-width: 560px) {
  /* Le bouton WhatsApp flottant occupe déjà ce coin. */
  .toast {
    bottom: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal__backdrop,
  .modal__panel,
  .toast {
    transition: none;
  }
}

.project--brief .project__shots {
  display: none;
}
