/* ==========================================================================
   Fruitsalad · feuille de style principale
   Reproduction fidèle de la maquette Claude Design (Fruitsalad.dc.html).
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: 'Nokia Expanded'; src: url('../fonts/NokiaExpanded-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nokia Expanded'; src: url('../fonts/NokiaExpanded-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nokia Expanded'; src: url('../fonts/NokiaExpanded-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nokia Expanded'; src: url('../fonts/NokiaExpandedItalic-Medium.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nokia Expanded'; src: url('../fonts/NokiaExpandedItalic-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }

/* ---------- Couleurs et mesures ---------- */
:root {
  --bg: #050F28;
  --bg-deep: #030A1F;
  --fg: #FAFCFF;
  --blue: #006EFF;
  --blue-soft: #6EA6FF;
  --glass: rgba(5, 15, 40, 0.7);
  --font-display: 'Nokia Expanded', 'Archivo', sans-serif;
  --font-body: 'Noto Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --container: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { font-family: var(--font-body); }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--blue-soft); }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: var(--fg); }
::placeholder { color: rgba(250, 252, 255, 0.4); }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }
html.menu-open { overflow: hidden; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus, .skip-link:hover { transform: none; color: var(--bg); }

.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.page {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: clip;
}

.container { max-width: var(--container); margin: 0 auto; }
.accent { color: var(--blue); }

/* Petit libellé bleu précédé d'un point */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.eyebrow::before,
.stat-label::before,
.badge::before,
.media-label::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* Grands titres */
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 4.2vw, 62px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.h2--xl { font-size: clamp(32px, 5.4vw, 80px); line-height: 0.95; letter-spacing: -0.025em; }
.h2--trust { font-size: clamp(28px, 4.2vw, 60px); }
.h2--contact { font-size: clamp(40px, 6.4vw, 100px); line-height: 0.92; letter-spacing: -0.03em; }

/* ---------- Boutons ---------- */
.btn {
  --h: 50px; --pl: 22px; --pr: 6px; --fs: 15px; --gap: 12px; --arrow: 38px; --arrow-fs: 15px;
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  height: var(--h);
  padding: 0 var(--pr) 0 var(--pl);
  border: 0;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--fs);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  /* --mx / --my : léger effet « aimanté » vers le curseur (piloté en JS) */
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { color: var(--bg); }
.btn-arrow {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  width: var(--arrow);
  height: var(--arrow);
  border-radius: 50%;
  background: var(--blue);
  color: var(--fg);
  display: grid;
  place-items: center;
  font-size: var(--arrow-fs);
}
.btn-arrow > span { display: block; }
.btn--sm { --h: 46px; --pl: 18px; --pr: 6px; --fs: 14px; --gap: 10px; --arrow: 34px; --arrow-fs: 14px; }
.btn--lg { --h: 56px; --pl: 26px; --pr: 7px; --gap: 14px; --arrow: 42px; --arrow-fs: 16px; }
.btn--banner { --h: 52px; --pl: 24px; --arrow: 40px; }
.btn--menu {
  --h: 60px; --pl: 26px; --pr: 8px; --fs: 16px; --arrow: 46px; --arrow-fs: 17px;
  display: flex;
  justify-content: space-between;
  transition: none;
}
.btn--submit {
  --h: 58px; --pl: 26px; --pr: 7px; --fs: 16px; --arrow: 44px; --arrow-fs: 16px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.btn--submit:disabled { cursor: progress; }

@media (hover: hover) {
  .btn:hover { transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0); box-shadow: 0 14px 36px -12px rgba(0, 110, 255, 0.95); }
  .btn--sm:hover { transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 1px), 0); box-shadow: 0 10px 30px -10px rgba(0, 110, 255, 0.95); }
  .btn--lg:hover, .btn--submit:hover { box-shadow: 0 16px 44px -12px rgba(0, 110, 255, 0.95); }
  .btn--flat:hover { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
  .btn--menu:hover { transform: none; box-shadow: none; }
  .btn--submit:disabled:hover { transform: none; box-shadow: none; }
}
/* La flèche sort par le coin et revient : l'action « part » vers sa destination */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover .btn-arrow > span { animation: fs-arrow 0.55s var(--ease); }
  .btn--submit:disabled:hover .btn-arrow > span { animation: none; }
}
@keyframes fs-arrow {
  0% { transform: translate(0, 0); }
  40% { transform: translate(1.7em, -1.7em); }
  40.01% { transform: translate(-1.7em, 1.7em); }
  100% { transform: translate(0, 0); }
}
/* Retour tactile au clic */
.btn:active,
.btn:hover:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(0.98); }
.btn--submit:disabled:active { transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(250, 252, 255, 0.22);
  background: rgba(5, 15, 40, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: background 0.25s, transform 0.25s ease;
}
.btn-ghost:hover { color: var(--fg); background: rgba(250, 252, 255, 0.1); }
.btn-ghost:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(0.98); }

.btn-outline {
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(250, 252, 255, 0.22);
  background: rgba(250, 252, 255, 0.04);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(250, 252, 255, 0.1); }

.round-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(250, 252, 255, 0.16);
  background: rgba(250, 252, 255, 0.04);
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.round-btn:hover { background: var(--blue); border-color: var(--blue); }

/* Sélecteur de langue EN / FR */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(250, 252, 255, 0.14);
  background: rgba(250, 252, 255, 0.04);
  flex: 0 0 auto;
}
.lang-switch button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 252, 255, 0);
  color: rgba(250, 252, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 14px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: 100%;
  max-width: 1100px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: rgba(5, 15, 40, 0.58);
  border: 1px solid rgba(250, 252, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.7);
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 6px 0; }
.nav-icon { height: 18px; width: auto; filter: drop-shadow(0 0 10px rgba(0, 110, 255, 0.55)); }
.nav-wordmark { height: 17px; width: auto; }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  z-index: 1;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 252, 255, 0.68);
  background: rgba(250, 252, 255, 0);
  transition: color 0.2s, background 0.2s;
}
.nav-link.is-active { color: var(--fg); }
.nav-link:hover { color: var(--fg); background: rgba(250, 252, 255, 0.06); }
/* Pastille qui glisse vers la rubrique en cours (position calculée en JS) */
.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: rgba(250, 252, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s;
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-cta-compact {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta-compact:hover { color: var(--bg); }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(250, 252, 255, 0.16);
  background: rgba(250, 252, 255, 0.05);
  cursor: pointer;
  place-items: center;
  padding: 0;
}
.burger-bars { display: flex; flex-direction: column; gap: 5px; }
.burger-bars span { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: transform 0.3s; }
.menu-open .burger-bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .burger-bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1059.98px) {
  .nav-wordmark,
  .nav-links,
  .nav-actions > .lang-switch,
  .nav-cta { display: none; }
  .nav-cta-compact { display: inline-flex; }
  .burger { display: grid; }
}

/* Menu plein écran */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(3, 10, 31, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 110px 24px 32px;
  overflow-y: auto;
}
/* Contenu calé en bas, tout en restant défilable sur les écrans peu hauts */
.mobile-menu > :first-child { margin-top: auto; }
.mobile-menu-lang { display: flex; justify-content: flex-end; }
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(250, 252, 255, 0.1);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 7.5vw, 44px);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.mobile-menu-link:hover { color: var(--fg); }
.mobile-menu-num {
  font-family: var(--font-body);
  font-stretch: 100%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-soft);
}
@media (min-width: 1060px) {
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 12px 12px 0; }
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(600px, calc(100vh - 24px));
  min-height: max(600px, calc(100svh - 24px));
  border-radius: 28px;
  background: var(--bg-deep);
  border: 1px solid rgba(250, 252, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.glow-canvas {
  position: absolute;
  left: -40px;
  top: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  filter: blur(9px);
  z-index: -2;
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 50%, rgba(3, 10, 31, 0.9) 0%, rgba(3, 10, 31, 0.55) 55%, rgba(3, 10, 31, 0) 100%),
    repeating-linear-gradient(90deg, rgba(250, 252, 255, 0.025) 0px, rgba(250, 252, 255, 0.025) 1px, transparent 1px, transparent 72px);
}
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(112px, 16vh, 170px) clamp(20px, 4vw, 48px) clamp(84px, 12vh, 130px);
}
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
  font-weight: inherit;
}
.hero-title-main {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, min(7.6vw, 13vh), 124px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--blue);
  text-shadow: 0 0 60px rgba(0, 110, 255, 0.35);
}
.hero-title-sub {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(18px, min(3.2vw, 5.6vh), 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-wrap: balance;
}
.hero-text {
  margin: 26px 0 0;
  max-width: 620px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: rgba(250, 252, 255, 0.66);
  text-wrap: pretty;
}
.hero-text strong { color: var(--fg); font-weight: 600; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(20px, 3vw, 36px) 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 252, 255, 0.55);
  pointer-events: none;
}
.rec { display: flex; align-items: center; gap: 10px; }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.timecode { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; color: rgba(250, 252, 255, 0.82); }

/* ==========================================================================
   Qui sommes-nous
   ========================================================================== */
.about { padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(60px, 8vw, 110px); }
.about-top { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 80px); align-items: flex-start; }
.about-aside { flex: 1 1 220px; max-width: 320px; display: flex; flex-direction: column; gap: 18px; }
.statement {
  flex: 3 1 520px;
  margin: 0;
  font-size: clamp(24px, 3.1vw, 44px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
/* Le texte se « remplit » en blanc au fil du défilement (taille du fond pilotée en JS) */
.statement-fill {
  color: rgba(250, 252, 255, 0.22);
  background-image: linear-gradient(90deg, var(--fg), var(--fg));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}
.js .statement-fill { background-size: 0% 100%; }
.stats {
  margin-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 22px;
}
/* Filet sous chaque chiffre (se trace de gauche à droite à l'apparition) */
.stat::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(250, 252, 255, 0.14);
  transform-origin: 0 50%;
}
.stat-num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(250, 252, 255, 0.72); }

/* ==========================================================================
   En-têtes de sections (Nos expertises, Secteurs)
   ========================================================================== */
.section-head { padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(8px, 2vw, 24px); }
.section-head--industries { padding-top: clamp(60px, 8vw, 120px); }
.section-head-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head-titles { display: flex; flex-direction: column; gap: 18px; }
.section-head-text {
  margin: 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 252, 255, 0.64);
  text-wrap: pretty;
}

/* ==========================================================================
   Panneaux à défilement horizontal (expertises et secteurs)
   Sur mobile ou petite hauteur : empilés verticalement.
   ========================================================================== */
.hs { position: relative; }
.hs-frame { position: relative; overflow: hidden; }
.hs-track { display: flex; flex-direction: column; width: 100%; }
.hs-track--industries { position: relative; }
.hs-track-glow {
  position: absolute;
  inset: -4px 0 0 122px;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 92% 100%, rgba(0, 110, 255, 0.2), rgba(0, 110, 255, 0) 70%);
}

.panel {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 12vw, 110px) var(--gutter) 8px;
}
.panel-glow { position: absolute; inset: 0; pointer-events: none; }
.panel-glow--br { background: radial-gradient(ellipse 55% 60% at 92% 100%, rgba(0, 110, 255, 0.2), rgba(0, 110, 255, 0) 70%); }
.panel-glow--top { background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(0, 110, 255, 0.2), rgba(0, 110, 255, 0) 70%); }
.panel-glow--tl { background: radial-gradient(ellipse 50% 55% at 8% 0%, rgba(0, 110, 255, 0.2), rgba(0, 110, 255, 0) 70%); }
.panel-glow--tr { background: radial-gradient(ellipse 55% 60% at 88% 12%, rgba(0, 110, 255, 0.2), rgba(0, 110, 255, 0) 70%); }
.panel-glow--tl2 { background: radial-gradient(ellipse 55% 60% at 10% 0%, rgba(0, 110, 255, 0.2), rgba(0, 110, 255, 0) 70%); }
.panel-glow--tr2 { background: radial-gradient(ellipse 55% 60% at 88% 10%, rgba(0, 110, 255, 0.2), rgba(0, 110, 255, 0) 70%); }

.panel-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.4vh, 30px);
}
.panel-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 252, 255, 0.62);
}
.panel-num { color: var(--blue-soft); }
.panel-rule { flex: 0 0 auto; width: 44px; height: 1px; background: rgba(250, 252, 255, 0.25); }
.panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 8.4vw;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--fg);
  white-space: nowrap;
  transform-origin: 0% 50%;
  will-change: transform;
}
/* Titres des secteurs : taille ajustée en JS pour tenir sur une ligne */
.panel-title--fit { font-size: min(5vw, 9vh); }
.panel-title--fit > span { display: inline-block; }

.panel-body { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.panel-copy {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.panel-copy-top { display: flex; flex-direction: column; gap: 16px; }
.panel-tag {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--fg);
  text-wrap: pretty;
}
.panel-cta { display: flex; }

/* Liste des prestations (pilote le carrousel) */
.rows { display: flex; flex-direction: column; border-bottom: 1px solid rgba(250, 252, 255, 0.12); }
.row {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  margin: 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(250, 252, 255, 0.12);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  color: rgba(250, 252, 255, 0.72);
  transition: border-color 0.3s, color 0.3s;
}
.row:hover { color: var(--fg); }
.row[aria-pressed="true"] { border-top-color: rgba(0, 110, 255, 0.35); color: var(--fg); }
/* Trait bleu de la prestation active : il se remplit pendant le défilement
   automatique du carrousel (--p de 0 à 1, piloté en JS ; plein par défaut) */
.row::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
.row[aria-pressed="true"]::before { transform: scaleX(var(--p, 1)); }
.row-name { font-size: 16px; font-weight: 600; color: inherit; transition: transform 0.35s var(--ease); }
@media (hover: hover) {
  .row:hover .row-name { transform: translateX(4px); }
}
.row-desc { font-size: 14px; color: rgba(250, 252, 255, 0.5); text-align: right; transition: color 0.3s; }
.row[aria-pressed="true"] .row-desc { color: rgba(250, 252, 255, 0.78); }

/* Carrousel d'images */
.media {
  flex: 1.4 1 420px;
  min-width: 0;
  position: relative;
  height: min(60vw, 520px);
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(250, 252, 255, 0.1);
  background: rgba(250, 252, 255, 0.03);
}
.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgba(127, 127, 127, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.slide.is-active { opacity: 1; visibility: visible; }

/* Image qui remplit son cadre (le recadrage éventuel est appliqué en JS via data-crop) */
.fill-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.media-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.dots {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 252, 255, 0.12);
  pointer-events: auto;
}
.dot-btn {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(250, 252, 255, 0.35);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.dot-btn::after { content: ''; position: absolute; inset: -12px -3px; }
.dot-btn[aria-current="true"] { width: 18px; background: var(--fg); }
.arrows { display: flex; gap: 8px; pointer-events: auto; }
.arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(250, 252, 255, 0.16);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.arrow-btn:hover { background: var(--blue); border-color: var(--blue); }
.media-label {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 252, 255, 0.12);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
}

/* Onglets + barre de progression (mode horizontal) */
.hs-ui {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 3.2vh, 34px);
  padding: 0 var(--gutter);
  pointer-events: none;
}
.hs-ui-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.hs-tabs { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.hs-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 252, 255, 0.5);
  transition: color 0.3s;
}
.hs-tab-num { color: rgba(250, 252, 255, 0.4); transition: color 0.3s; }
.hs-tab.is-active { color: var(--fg); }
.hs-tab.is-active .hs-tab-num { color: var(--blue-soft); }
.hs-hint {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 252, 255, 0.5);
}
.hs-progress { position: relative; height: 2px; border-radius: 2px; background: rgba(250, 252, 255, 0.12); overflow: hidden; }
.hs-progress-bar {
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(calc(1 / var(--n, 3)));
  box-shadow: 0 0 12px var(--blue);
}

/* Mode horizontal : écran assez large et assez haut, JavaScript actif */
@media (min-width: 900px) and (min-height: 600px) {
  .js .hs { height: calc(var(--n) * 100vh + 60vh); }
  .js .hs-frame { position: sticky; top: 0; height: 100vh; }
  .js .hs-track { flex-direction: row; width: calc(var(--n) * 100%); height: 100%; will-change: transform; }
  .js .panel {
    width: calc(100% / var(--n));
    height: 100%;
    padding-top: clamp(84px, 12vh, 124px);
    padding-bottom: clamp(70px, 11vh, 120px);
  }
  .js .panel-title { font-size: min(8.6vw, 15vh); }
  .js .panel-title--fit { font-size: min(5vw, 9vh); }
  .js .media { height: min(44vh, 30vw); }
  .js .hs-ui { display: block; }
}

/* ==========================================================================
   Réalisations
   ========================================================================== */
.works { padding: clamp(90px, 12vw, 170px) var(--gutter) clamp(60px, 8vw, 100px); }
.works-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.works-head-titles { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.works-text { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(250, 252, 255, 0.64); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(250, 252, 255, 0.18);
  background: rgba(250, 252, 255, 0);
  color: rgba(250, 252, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.filter:hover { border-color: rgba(250, 252, 255, 0.4); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 2.6vw, 36px) clamp(20px, 2.4vw, 32px);
}
.work { display: flex; flex-direction: column; gap: 16px; }
.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(250, 252, 255, 0.08);
  background: rgba(250, 252, 255, 0.03);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s;
}
.work-media:hover { transform: translateY(-4px); border-color: rgba(0, 110, 255, 0.6); }
.work-frame { position: absolute; inset: 0; overflow: hidden; background: rgba(127, 127, 127, 0.08); }
/* Voile bleu qui s'efface au survol */
.work-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 110, 255, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 1;
  transition: opacity 0.45s ease;
}
.work-media:hover .work-veil { opacity: 0; }
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  pointer-events: none;
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(5, 15, 40, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 252, 255, 0.12);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
}
.work-info { display: flex; flex-direction: column; gap: 6px; }
.work-title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
}
.work-meta { margin: 0; font-size: 14px; color: rgba(250, 252, 255, 0.56); }

.next-banner {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(250, 252, 255, 0.1);
  background: linear-gradient(100deg, rgba(0, 110, 255, 0.16), rgba(0, 110, 255, 0.02) 60%);
}
.next-banner-copy { display: flex; flex-direction: column; gap: 8px; }
.next-banner-title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.01em;
}
.next-banner-text { margin: 0; font-size: 15px; color: rgba(250, 252, 255, 0.66); }

/* ==========================================================================
   Clients (défilé de logos)
   ========================================================================== */
.trusted { padding: clamp(80px, 10vw, 140px) var(--gutter); border-top: 1px solid rgba(250, 252, 255, 0.06); }
.trusted-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.logos { position: relative; }
.logos-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.logos-track {
  --gap: clamp(12px, 1.4vw, 18px);
  position: relative;
  height: clamp(96px, 9vw, 128px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-tile {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(170px, calc((100% - 4 * var(--gap)) / 5), 280px);
  height: clamp(96px, 9vw, 128px);
  transform: translateX(calc(var(--i) * (100% + var(--gap))));
  will-change: transform;
  border-radius: 18px;
  border: 1px solid rgba(250, 252, 255, 0.08);
  background: rgba(250, 252, 255, 0.03);
  padding: 22px 28px;
}
.logo-frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: rgba(127, 127, 127, 0.08); }
.logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.logos-nav { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 12px; }
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg-deep);
  border: 1px solid rgba(250, 252, 255, 0.08);
}
.contact-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 10, 31, 0.72), rgba(3, 10, 31, 0.4) 50%, rgba(3, 10, 31, 0.15)),
    repeating-linear-gradient(90deg, rgba(250, 252, 255, 0.025) 0px, rgba(250, 252, 255, 0.025) 1px, transparent 1px, transparent 72px);
}
.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 130px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 96px);
  align-items: flex-start;
}
.contact-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(250, 252, 255, 0.14);
  background: rgba(250, 252, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
}
.pill-badge::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}
.contact-text {
  margin: 0;
  max-width: 460px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(250, 252, 255, 0.72);
  text-wrap: pretty;
}
.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(250, 252, 255, 0.12);
}
.steps li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid rgba(250, 252, 255, 0.12);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(250, 252, 255, 0.7);
}
.steps strong { color: var(--fg); font-weight: 600; }
.step-num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 13px;
  color: var(--blue-soft);
}

.contact-form-wrap { flex: 1.1 1 420px; min-width: 0; }
.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: rgba(5, 15, 40, 0.74);
  border: 1px solid rgba(250, 252, 255, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
/* Champ piège anti-robots, invisible pour les visiteurs */
.hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.interests { display: flex; flex-direction: column; gap: 12px; }
.interests-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 252, 255, 0.72);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(250, 252, 255, 0.16);
  background: rgba(250, 252, 255, 0.04);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(250, 252, 255, 0.74);
}
.field input,
.field textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(250, 252, 255, 0.14);
  background: rgba(250, 252, 255, 0.04);
  color: var(--fg);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--blue); background: rgba(0, 110, 255, 0.08); }
.form-error { margin: 0; font-size: 14px; color: var(--blue-soft); }
.form-note { margin: 0; font-size: 13px; text-align: center; color: rgba(250, 252, 255, 0.55); }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 24px;
  background: rgba(5, 15, 40, 0.8);
  border: 1px solid rgba(0, 110, 255, 0.5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 0 40px rgba(0, 110, 255, 0.6);
}
.success-title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.success-title:focus { outline: none; }
.success-text { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(250, 252, 255, 0.72); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; }
.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 100%, rgba(0, 110, 255, 0.18), rgba(0, 110, 255, 0) 70%);
}
.footer-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 22px; width: auto; }
.footer-text { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(250, 252, 255, 0.62); }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col-title {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 252, 255, 0.5);
}
.footer-wordmark { user-select: none; pointer-events: none; }
.footer-wordmark img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, 0.3) 100%);
  mask-image: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, 0.3) 100%);
}
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 252, 255, 0.1);
  font-size: 13px;
  color: rgba(250, 252, 255, 0.55);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-bottom-links a { color: rgba(250, 252, 255, 0.7); }
.footer-bottom-links a:hover { color: var(--fg); }

/* ==========================================================================
   Micro-interactions
   ========================================================================== */

/* Liens du pied de page : soulignement qui se trace au survol */
.footer-col a,
.footer-bottom-links a {
  align-self: flex-start;
  padding-bottom: 1px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color 0.2s, background-size 0.35s var(--ease);
}
.footer-col a:hover,
.footer-bottom-links a:hover { background-size: 100% 1px; }

/* Flèches des carrousels et des logos : la flèche pousse dans sa direction */
.arrow-btn > span,
.round-btn > span { display: block; pointer-events: none; transition: transform 0.3s var(--ease); }
@media (hover: hover) {
  .arrow-btn[data-prev]:hover > span,
  .round-btn[data-logos-prev]:hover > span { transform: translateX(-3px); }
  .arrow-btn[data-next]:hover > span,
  .round-btn[data-logos-next]:hover > span { transform: translateX(3px); }
}

/* Retour tactile sur les petits boutons */
.filter,
.chip,
.lang-switch button,
.arrow-btn,
.round-btn {
  transition-property: background, color, border-color, transform;
  transition-duration: 0.25s, 0.25s, 0.25s, 0.15s;
}
.filter:active,
.chip:active,
.lang-switch button:active,
.arrow-btn:active,
.round-btn:active { transform: scale(0.94); }
.chip:hover { border-color: rgba(250, 252, 255, 0.34); }
.chip[aria-pressed="true"]:hover { border-color: var(--blue); }

/* Réalisations : l'image s'avance légèrement quand le voile s'efface */
.work-media .fill-img { transition: transform 0.8s var(--ease); }
@media (hover: hover) {
  .work-media:hover .fill-img { transform: translate(-50%, -50%) scale(1.045); }
}

/* Logos clients : la tuile survolée s'éclaire (le défilé est en pause) */
.logo-tile { transition: border-color 0.3s, background 0.3s; }
@media (hover: hover) {
  .logo-tile:hover { border-color: rgba(0, 110, 255, 0.45); background: rgba(0, 110, 255, 0.06); }
}

/* Carrousels : l'image qui arrive se « pose » en douceur */
@media (prefers-reduced-motion: no-preference) {
  .slide .fill-img { transform: translate(-50%, -50%) scale(1.04); transition: transform 1.6s var(--ease); }
  .slide.is-active .fill-img { transform: translate(-50%, -50%); }
}

/* Formulaire : le libellé du champ actif s'éclaire */
.field { transition: color 0.2s; }
.field:focus-within { color: var(--fg); }

/* Envoi en cours : la flèche laisse place à un indicateur de chargement */
.btn--submit.is-sending .btn-arrow > span { visibility: hidden; }
.btn--submit.is-sending .btn-arrow::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid rgba(250, 252, 255, 0.3);
  border-top-color: var(--fg);
  animation: fs-spin 0.8s linear infinite;
}
@keyframes fs-spin { to { transform: rotate(360deg); } }

/* Confirmation d'envoi */
@media (prefers-reduced-motion: no-preference) {
  .form-success:not([hidden]) { animation: fs-rise 0.7s var(--ease) backwards; }
  .form-success:not([hidden]) .success-icon { animation: fs-pop 0.7s var(--ease) 0.12s backwards; }
}

.form-privacy {
  margin: -8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: rgba(250, 252, 255, 0.45);
}
.form-privacy a { color: rgba(250, 252, 255, 0.7); text-decoration: underline; text-underline-offset: 2px; }
.form-privacy a:hover { color: var(--fg); }

/* ==========================================================================
   Lumière qui suit le curseur sur les grandes surfaces vitrées
   (--sx / --sy : position du curseur, pilotée en JS)
   ========================================================================== */
[data-spot] { position: relative; }
[data-spot]::before,
[data-spot]::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
/* Reflet sur le contour */
[data-spot]::before {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(110, 166, 255, 0.65), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Halo diffus */
[data-spot]::after {
  inset: 0;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(0, 110, 255, 0.09), transparent 60%);
}
@media (hover: hover) and (pointer: fine) {
  [data-spot]:hover::before,
  [data-spot]:hover::after { opacity: 1; }
}

/* ==========================================================================
   Animations d'entrée et d'apparition au défilement
   ========================================================================== */
@keyframes fs-fade { from { opacity: 0; } }
@keyframes fs-drop { from { opacity: 0; transform: translate3d(0, -18px, 0); } }
@keyframes fs-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
/* « Mise au point » : le titre passe du flou au net, comme une caméra */
@keyframes fs-focus { from { opacity: 0; filter: blur(12px); transform: translate3d(0, 0.18em, 0); } }
@keyframes fs-pop {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Ouverture de la page : les lumières s'allument, puis la mise au point sur le titre */
  .hero .glow-canvas { animation: fs-fade 1.8s ease-out backwards; }
  .site-header .nav { animation: fs-drop 0.9s var(--ease) 0.05s backwards; }
  .hero-line { display: inline-block; }
  .hero-line,
  .hero-title-sub { animation: fs-focus 1.1s var(--ease) backwards; }
  .hero-line:first-child { animation-delay: 0.1s; }
  .hero-line:last-child { animation-delay: 0.22s; }
  .hero-title-sub { animation-delay: 0.4s; }
  .hero-text { animation: fs-rise 0.9s var(--ease) 0.55s backwards; }
  .hero-ctas { animation: fs-rise 0.9s var(--ease) 0.7s backwards; }
  .hero-bar { animation: fs-fade 1s ease-out 0.95s backwards; }

  /* Apparition au défilement (classes posées en JS, uniquement sous la ligne de flottaison) */
  .rv-wait { opacity: 0; transform: translate3d(0, 24px, 0); }
  .rv-wait.rv-focus { transform: translate3d(0, 0.2em, 0); filter: blur(10px); }
  .rv-in {
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
    transition-delay: var(--rv-delay, 0s);
  }
  .rv-wait.stat::after { transform: scaleX(0); }
  .rv-in.stat::after { transition: transform 1.2s var(--ease) calc(var(--rv-delay, 0s) + 0.2s); }
}

/* À l'impression, tout le contenu est visible */
@media print {
  .rv-wait { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Réduction des animations demandée par le système : tout devient instantané */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Pages légales (mentions légales, confidentialité)
   ========================================================================== */
.legal { position: relative; padding: clamp(130px, 18vh, 190px) var(--gutter) clamp(70px, 9vw, 120px); }
.legal::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(0, 110, 255, 0.18), rgba(0, 110, 255, 0) 70%);
}
.legal-inner { position: relative; max-width: 1040px; margin: 0 auto; }
.legal-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 252, 255, 0.7);
}
.legal-back:hover { color: var(--fg); }
.legal-back span { display: inline-block; transition: transform 0.3s var(--ease); }
.legal-back:hover span { transform: translateX(-3px); }
.legal-title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(24px, 8vw, 92px); /* « CONFIDENTIALITÉ » doit tenir sur une ligne, même sur petit mobile */
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.legal-updated { margin: 0; font-size: 14px; color: rgba(250, 252, 255, 0.55); }
.legal-intro { margin: 0 0 clamp(32px, 4vw, 48px); max-width: 720px; font-size: 18px; line-height: 1.6; color: rgba(250, 252, 255, 0.72); text-wrap: pretty; }
.legal-body { margin-top: clamp(48px, 7vw, 88px); border-bottom: 1px solid rgba(250, 252, 255, 0.12); }
@media (prefers-reduced-motion: no-preference) {
  .legal-head > * { animation: fs-rise 0.9s var(--ease) backwards; }
  .legal-head > :nth-child(2) { animation-delay: 0.08s; }
  .legal-head > .legal-title { animation-name: fs-focus; animation-duration: 1.1s; animation-delay: 0.16s; }
  .legal-head > :nth-child(4) { animation-delay: 0.3s; }
  .legal-body { animation: fs-rise 1s var(--ease) 0.4s backwards; }
}
.legal-section {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 14px clamp(24px, 4vw, 64px);
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid rgba(250, 252, 255, 0.12);
}
.legal-section h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.legal-num { flex: 0 0 auto; font-size: 13px; color: var(--blue-soft); }
.legal-text { min-width: 0; font-size: 15.5px; line-height: 1.7; color: rgba(250, 252, 255, 0.72); }
.legal-text p { margin: 0 0 12px; }
.legal-text p:last-child { margin-bottom: 0; }
.legal-text ul { margin: 0 0 12px; padding-left: 18px; }
.legal-text ul:last-child { margin-bottom: 0; }
.legal-text li { margin-bottom: 8px; }
.legal-text li::marker { color: var(--blue-soft); }
.legal-text strong { color: var(--fg); font-weight: 600; }
.legal-text a { color: var(--blue-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-text a:hover { color: var(--fg); }
.legal-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.legal-dl dt { color: rgba(250, 252, 255, 0.5); font-size: 14px; line-height: 1.7; }
.legal-dl dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.legal-note { margin: 28px 0 0; font-size: 13px; line-height: 1.6; color: rgba(250, 252, 255, 0.5); }
@media (max-width: 720px) {
  .legal-section { grid-template-columns: minmax(0, 1fr); }
  .legal-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-dl dd { margin-bottom: 12px; }
}
