/* ==========================================================
   Servigold — feuille de style v5.4
   Identité : bleu marine #104088, cyan #0090d8 (tirés du logo)
   Typographie : Outfit (400 / 700), servie en local
   Orange réservé à la signature TRS inc.
   ========================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #06183a;
  --navy: #104088;
  --cyan: #0090d8;
  --cyan-light: #4db6e8;
  --cyan-glow: rgba(0, 144, 216, 0.35);
  --mist: #dcedf5;
  --mist-strong: #cfe3ef;
  --paper: #f4f8fb;
  --ink: #0b1f3a;
  --muted: #4d6178;
  --muted-light: #6b7d90;
  --line: #d6e2ec;
  --line-strong: #c2d1dc;
  --white: #fff;
  --trs: #ff7a1a;
  --success: #12703a;
  --error: #b3261e;

  --font: "Outfit", "Segoe UI", system-ui, sans-serif;

  --header-h: 76px;
  --gutter: 12px;
  --radius: 14px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shadow scale */
  --shadow-sm: 0 1px 2px rgba(6, 24, 58, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(6, 24, 58, 0.18);
  --shadow-lg: 0 24px 48px -24px rgba(6, 24, 58, 0.28);
  --shadow-xl: 0 40px 80px -30px rgba(6, 24, 58, 0.35);
  --shadow-glow: 0 0 40px var(--cyan-glow);

  /* Focus ring */
  --focus-ring: 0 0 0 3px var(--cyan-glow);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--white);
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; color: var(--night); }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: #fff; }

.wrap { width: min(100% - 48px, 1160px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

/* Utility classes */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.9rem; }
.fw-600 { font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  position: relative; isolation: isolate; overflow: hidden;
  transition: color .3s .06s, border-color .2s, transform .2s var(--ease), translate .35s var(--ease), box-shadow .2s var(--ease);
  translate: var(--mx, 0px) var(--my, 0px);
  gap: 10px;
}
.btn::before { /* balayage de couleur qui monte depuis le bas */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sweep, transparent);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { min-height: 44px; padding: 0 20px; border-radius: 10px; font-size: 0.9rem; }
.btn-lg { min-height: 60px; padding: 0 36px; border-radius: 14px; font-size: 1.0625rem; }

.btn-dark {
  background: var(--night);
  color: #fff;
  --sweep: var(--navy);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(6, 24, 58, 0.08);
}
.btn-dark:hover, .btn-dark:focus-visible {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--night);
  --sweep: var(--mist);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
}
.btn-light:hover, .btn-light:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--navy);
}

.btn-outline {
  border-color: var(--night);
  color: var(--night);
  background: transparent;
  --sweep: var(--night);
}
.btn-outline:hover, .btn-outline:focus-visible {
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  --sweep: var(--mist);
  border-color: transparent;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  color: var(--cyan);
  background: var(--mist);
}

.text-link {
  font-weight: 700; color: var(--navy); text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--cyan), var(--cyan)) left bottom / 100% 2px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.text-link:hover, .text-link:focus-visible { color: var(--night); background-size: 100% 5px; }

/* Button with icon */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  min-height: auto;
}
.btn-icon svg { width: 20px; height: 20px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.site-header::after { /* progression de la page, visible une fois l'en-tête plein */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
}
.header-inner {
  width: min(100% - 48px, 1160px); height: 100%; margin-inline: auto; padding-top: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand img { width: 56px; height: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.05); }
.brand-text { display: none; font-weight: 700; font-size: 1.1rem; color: var(--night); letter-spacing: -0.02em; }
.nav { margin-inline: auto 0; }
.nav ul { display: flex; gap: 8px; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--cyan); background: var(--mist); }
.nav a[aria-current="true"] { color: var(--cyan); background: var(--mist); }
.nav ul { position: relative; }
.nav-ink {
  position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w, 0px);
  background: var(--cyan); border-radius: 2px; opacity: 0; pointer-events: none;
  transform: translateX(var(--x, 0px));
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .25s;
}
.nav-ink.is-on { opacity: 1; }

@media (min-width: 961px) {
  .brand-text { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--gutter) var(--gutter) 0; }
.hero-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
  gap: 48px;
  min-height: min(860px, calc(100svh - 2 * var(--gutter)));
  padding: calc(var(--header-h) + 32px) max(24px, calc((100% - 1160px) / 2)) 64px;
  background: linear-gradient(145deg, var(--white) 0%, var(--mist) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, var(--cyan-glow) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(16, 64, 136, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  max-width: 9.5em;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-lead {
  margin-top: 24px;
  max-width: 28em;
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Badge de confiance */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  animation: fade-up .8s var(--ease) .2s both;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }

/* Carte de devis simplifiée */
.quote {
  margin-top: 36px;
  max-width: 600px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  border: 1px solid var(--line);
}
.quote-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote-field label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color .2s var(--ease);
}
.quote-field:focus-within label { color: var(--cyan); }
.quote-field.has-value label { color: var(--navy); }

.quote-field select,
.quote-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.quote-field select:hover,
.quote-field input:hover { border-color: var(--line-strong); }
.quote-field select:focus,
.quote-field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--focus-ring);
  background: var(--white);
}
.quote-field input::placeholder { color: var(--muted-light); }
.quote-field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234d6178' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
}
.quote-field:focus-within { z-index: 1; }

.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.quote .btn { flex: 1; min-width: 180px; }
.quote .btn-lg { flex: 1; min-width: 200px; }

/* Position GPS (optionnelle) */
.quote-gps { margin-top: 4px; }
.quote-gps .opt { font-weight: 400; color: var(--muted); }
.gps-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.gps-btn svg { flex: none; width: 18px; height: 18px; }
.gps-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--mist); }
.gps-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--cyan);
}
.gps-btn.is-loading { pointer-events: none; opacity: .7; }
.gps-btn.is-loading svg { animation: gps-spin 1s linear infinite; }
.quote-gps.has-value label { color: var(--navy); }
.gps-status {
  margin-top: 8px;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gps-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.gps-status:empty::before { display: none; }
.gps-status.is-ok { color: var(--success); }
.gps-status.is-ok::before { background: var(--success); }
.gps-status.is-error { color: var(--error); }
.gps-status.is-error::before { background: var(--error); }
@keyframes gps-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gps-btn.is-loading svg { animation: none; } }
.quote .btn.is-sending { pointer-events: none; }

/* Fondu d'entrée du texte du hero */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }

.hero-badge { animation: fade-up .8s var(--ease) .1s both; }
.hero h1 { animation: fade-up .9s var(--ease) .2s both; }
.hero-lead { animation: fade-up .9s var(--ease) .4s both; }
.quote { animation: scale-in .9s var(--ease-spring) .6s both; }

/* Titre : chaque mot monte dans son masque (JS ajoute .is-split) */
@keyframes failsafe { to { opacity: 1; } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
.js .hero h1:not(.is-split) { opacity: 0; animation: failsafe 0s 1.6s forwards; }
.hero h1.is-split { animation: none; }
.hero h1 .w { display: inline-block; vertical-align: top; overflow: hidden; padding: .1em .04em .16em; margin: -.1em -.04em -.16em; }
.hero h1 .w > span { display: inline-block; animation: rise 1s var(--ease) both; }

/* Disque et vidéo : le disque se met en place, la vidéo apparaît */
@keyframes disc-in { from { scale: .86; rotate: -24deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: .85; } }
@keyframes frame-in { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-disc { animation: disc-in 1.5s var(--ease) .15s both; }
.hero-frame { animation: frame-in 1.1s var(--ease) .4s both; }

/* Vidéo verticale, disque rayé cyan derrière */
.hero-media { position: relative; z-index: 1; display: grid; place-items: center; align-self: stretch; }
.hero-disc {
  position: absolute; width: min(480px, 90%); aspect-ratio: 1; border-radius: 50%;
  top: 50%; left: 50%; translate: calc(-38% + var(--dx, 0px)) calc(-56% + var(--dy, 0px));
  background: repeating-linear-gradient(135deg, var(--cyan) 0 7px, transparent 7px 16px);
  opacity: .85;
}
.hero-frame {
  position: relative; width: min(350px, 80%); aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden; background: var(--night);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
  translate: var(--fx, 0px) calc(var(--py, 0px) + var(--fy, 0px));
}
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-btn {
  position: absolute; left: 16px; bottom: 16px;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(6, 24, 58, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.media-btn { transition: background-color .2s var(--ease), transform .25s var(--ease-spring); }
.media-btn:hover { background: rgba(6, 24, 58, .85); transform: scale(1.1); }
.media-btn:active { transform: scale(.94); }
.media-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-md);
}
.media-btn .i-play { display: none; }
.media-btn[aria-pressed="true"] .i-play { display: block; }
.media-btn[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-4xl);
}
.section-header h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.section-header p { margin-top: 16px; font-size: 1.2rem; color: var(--muted); line-height: 1.7; }

/* Services - Cards */
.services { background: var(--white); }
.service-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 14px 4px 22px;
  margin: -14px -4px -22px;
}
.service-grid::-webkit-scrollbar { display: none; }
.service-grid:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: var(--radius-lg); }
.service-grid > .service-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--navy); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), opacity .25s;
}
.carousel-btn:hover:not(:disabled) { background: var(--navy); color: #fff; transform: scale(1.06); }
.carousel-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.carousel-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .3s var(--ease), background-color .3s var(--ease); }
.carousel-dots span.on { width: 26px; background: var(--cyan); }
.service-carousel.no-scroll .carousel-controls { display: none; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--cyan-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--cyan);
  z-index: 1;
}
.service-card:hover::before { opacity: 1; }
.service-card:focus-within {
  box-shadow: var(--focus-ring), var(--shadow-lg);
  border-color: var(--cyan);
  z-index: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  border-radius: var(--radius);
  color: var(--navy);
  transition: transform .4s var(--ease-spring), color .3s var(--ease), background-color .3s var(--ease);
  flex-shrink: 0;
}
.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  transform: scale(1.1) rotate(-3deg);
  color: var(--cyan);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.service-icon svg { width: 32px; height: 32px; }

.service-card h3 {
  margin-top: 20px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--night);
}
.service-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.service-card .text-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .text-link::after {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230090d8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.service-card:hover .text-link::after,
.service-card:focus-within .text-link::after {
  transform: translateX(4px);
}

/* Fil vidéo façon TikTok - Modernisé */
.reels {
  background: var(--night);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 8px) 0 24px;
  position: relative;
  overflow: hidden;
}
.reels::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 144, 216, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 100%, rgba(16, 64, 136, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.reels h2, .reels-copy p { color: #fff; }
.reels-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 64px; }
.reels-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; position: relative; z-index: 1; }
.reels-copy p { font-size: 1.25rem; color: rgba(255, 255, 255, .75); line-height: 1.7; }
.reels-copy .btn { margin-top: 8px; }

.feed-wrap {
  --feed-h: min(calc(100svh - var(--header-h) - 40px), 800px);
  position: relative;
  width: calc(var(--feed-h) * 9 / 16);
  max-width: 100%;
  justify-self: center;
  z-index: 1;
}
.feed {
  height: var(--feed-h);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-xl);
}
.feed::-webkit-scrollbar { display: none; }
.feed:focus, .reel:focus, .reel video:focus { outline: 0; }
.feed:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.reel ::selection, .reel::selection { background: transparent; }
.reel {
  position: relative;
  height: 100%;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: pointer;
}
.reel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.reel:hover video,
.reel:focus-within video {
  transform: scale(1.03);
}
.reel::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 24, 58, .98) 10%, rgba(6, 24, 58, .6) 50%, rgba(6, 24, 58, 0));
}
.reel-info {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 60px;
  bottom: 0;
  padding: 0 0 32px 28px;
  color: #fff;
  pointer-events: none;
}
.reel-info h3 {
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.reel::before { /* icône lecture, visible quand la vidéo est en pause */
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(6, 24, 58, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 6.5v11a1 1 0 0 0 1.5.86l8.8-5.5a1 1 0 0 0 0-1.72l-8.8-5.5A1 1 0 0 0 9 6.5z'/%3E%3C/svg%3E") center / 32px no-repeat;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .2s var(--ease), transform .4s var(--ease-spring);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.reel.is-paused::before {
  opacity: 1;
  transform: none;
}
.reel-progress {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 16px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
  pointer-events: none;
}
.reel-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.feed-dots {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.feed-dots li {
  width: 5px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .35);
  transition: height .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.feed-dots li.is-active {
  height: 36px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* Scroll hint */
.feed-hint {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .6);
  font-size: 0.8rem;
  text-align: center;
  pointer-events: none;
  animation: bounce 2s var(--ease) infinite;
}
.feed-hint svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .feed-hint { animation: none; }
}

/* À propos - Enrichi */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 80px;
}
.about-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--cyan-glow) 0%, transparent 50%);
  border-radius: var(--radius-xl);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.about-photo:hover::before { opacity: 1; }
.about-photo img {
  width: 100%;
  border-radius: var(--radius-xl);
  transition: transform .8s var(--ease-out);
}
.about-photo:hover img { transform: scale(1.02); }
.ready .about-photo:not(.is-in) img {
  clip-path: inset(0 0 100% 0 round var(--radius-xl));
  transform: scale(1.07);
}
.ready .about-photo img {
  transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease);
}
.ready .about-photo.is-in img {
  clip-path: inset(0 0 0 0 round var(--radius-xl));
  transform: none;
}

.about-copy {
  position: relative;
}
.about-copy .section-header {
  text-align: left;
  margin-bottom: 0;
}
/* Contact - Conversion optimisée */
.contact { padding: 0 var(--gutter) var(--gutter); }
.contact-panel {
  position: relative;
  padding: 100px 48px;
  text-align: center;
  background: linear-gradient(145deg, var(--white) 0%, var(--mist) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--cyan-glow) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 100%, rgba(16, 64, 136, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.contact-panel h2 {
  position: relative;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  margin-bottom: 8px;
}
.contact-panel > .text-muted {
  position: relative;
  font-size: 1.2rem;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.contact-actions {
  position: relative;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.contact-actions .btn { min-width: 180px; }
.contact-actions .btn-outline { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.contact-meta {
  position: relative;
  margin-top: 36px;
  padding-top: 28px;
  color: var(--muted);
}
.contact-meta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 60px;
  height: 1px;
  background: var(--line);
}
.contact-meta a { color: var(--navy); font-weight: 700; transition: color .2s var(--ease); }
.contact-meta a:hover { color: var(--cyan); }

/* Contact info cards */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contact-info-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  border-radius: 50%;
  color: var(--navy);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.contact-info-item:hover .contact-info-icon {
  background: var(--cyan);
  color: #fff;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* Pied de page */
.site-footer {
  padding: 40px 0 48px;
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
}
.signature { font-size: 0.9rem; }
.trs {
  color: var(--trs);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(var(--trs), var(--trs)) left bottom / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size .4s var(--ease);
}
.trs:hover, .trs:focus-visible { background-size: 100% 2px; }

/* ---------- Large Desktop ---------- */
@media (min-width: 1400px) {
  :root { --header-h: 84px; }
  .wrap { width: min(100% - 80px, 1280px); }
  .header-inner { width: min(100% - 80px, 1280px); }
  .hero-panel { gap: 64px; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
  .hero-panel {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
    min-height: 0;
    text-align: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero h1 { max-width: 100%; }
  .hero-lead { max-width: 100%; }
  .hero-badge { margin-bottom: 16px; }
  .hero-media { padding-top: 32px; order: -1; }
  .quote { max-width: 100%; }
  .quote-actions { justify-content: center; }

  .service-grid > .service-card { flex-basis: calc((100% - 24px) / 2); }

  .reels { align-items: flex-start; padding-bottom: 12px; }
  .reels-grid { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .reels-copy { align-items: center; text-align: center; }
  .reels-copy p, .reels-copy .btn { display: none; }
  .reels h2 { font-size: 1.9rem; }
  .feed-wrap { --feed-h: calc(100svh - var(--header-h) - 92px); }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 520px; margin: 0 auto; order: -1; }
  .about-copy .section-header { text-align: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  :root { --header-h: 64px; --gutter: 8px; }
  .wrap, .header-inner { width: calc(100% - 32px); }
  .brand img { width: 48px; }
  .brand-text { display: none !important; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }

  .hero-panel {
    padding: calc(var(--header-h) + 12px) 20px 32px;
    border-radius: 22px;
  }
  .hero-badge { font-size: 0.8rem; padding: 6px 12px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-lead { font-size: 1.05rem; margin-top: 14px; }
  .quote { margin-top: 24px; padding: 16px; }
  .quote-row { grid-template-columns: 1fr; gap: 12px; }
  .quote-field { gap: 4px; }
  .quote-field select, .quote-field input { padding: 14px 16px; font-size: 1rem; }
  .quote-actions { flex-direction: column; }
  .quote .btn, .quote .btn-lg { width: 100%; min-width: 0; }
  .gps-btn { width: 100%; justify-content: center; }
  /* Vidéo plus compacte : titre et formulaire remontent dans le premier écran */
  .hero-frame { width: min(240px, 64%, calc(48svh * 9 / 16)); }
  .hero-disc { width: 92%; translate: calc(-30% + var(--dx, 0px)) calc(-54% + var(--dy, 0px)); }

  .section { padding: 80px 0; }
  .section-header { margin-bottom: var(--space-3xl); }
  .service-grid { gap: 14px; }
  .service-grid > .service-card { flex-basis: 82%; }
  .service-card { padding: 28px 20px; }

  /* Fil plein écran, comme un vrai scroll vertical */
  .reels { padding: calc(var(--header-h) + 10px) 0 0; }
  .reels-grid { width: 100%; gap: 10px; }
  .reels-copy { padding-inline: 16px; }
  .feed-wrap { --feed-h: calc(100svh - var(--header-h) - 72px); width: 100%; }
  .feed { border-radius: 0; box-shadow: none; height: var(--feed-h); }
  .reel-info { padding: 0 0 28px 20px; right: 50px; }
  .reel-info h3 { font-size: 1.3rem; }
  .feed-hint { bottom: 84px; } /* au-dessus du titre de la vidéo */
  .reel::before { width: 60px; height: 60px; margin: -30px 0 0 -30px; background-size: 26px; }
  .reel-progress { left: 16px; right: 16px; bottom: 12px; }
  .feed-dots { right: 12px; gap: 8px; }
  .feed-dots li { width: 4px; height: 12px; }
  .feed-dots li.is-active { height: 28px; }

  .contact-panel { padding: 72px 20px; border-radius: 22px; }
  .contact-panel h2 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }
  .contact-info { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; padding-top: 24px; }
  .contact-info-item { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 16px 20px; }
  .contact-info-icon { flex-shrink: 0; }
}

/* ---------- Préférences d'accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html, .feed { scroll-behavior: auto; }
  .hero-frame { translate: none; }
  * { transition-duration: .01ms !important; }
  .hero h1, .hero-lead, .quote, .hero-disc, .hero-frame, .hero-badge { animation: none; }
  .hero h1 .w > span { animation: none; }
  .hero-disc { opacity: .85; }
  .btn { translate: none; }
  .btn::before { transition-duration: .01ms; }
  .ready .about-photo img { clip-path: none !important; transform: none !important; transition: none; }
  .service-card:hover .service-icon,
  .service-card:focus-within .service-icon { transform: none; }
  .reel video { transition: none; }
  .reel:hover video { transform: none; }
  .feed-hint { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .media-btn { background: rgba(6, 24, 58, .8); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .reel::before { background: rgba(6, 24, 58, .8); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- High Contrast Mode ---------- */
@media (prefers-contrast: high) {
  :root {
    --cyan: #006bb3;
    --navy: #082f5e;
    --line: #8a9bb3;
    --muted: #3a4d5e;
  }
  .btn-dark, .btn-outline { border-width: 3px; }
  .quote-field select, .quote-field input { border-width: 2px; }
  .service-card { border-width: 2px; }
  .contact-panel { border-width: 2px; }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header, .hero-media, .reels, .contact-actions, .feed-hint, .media-btn, .site-footer .signature { display: none !important; }
  .hero-panel { min-height: auto; padding: 0; background: none; border: none; border-radius: 0; }
  .hero-panel::before { display: none; }
  .section { padding: 40px 0; page-break-inside: avoid; }
  .service-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .about-photo img { box-shadow: none; }
  body { font-size: 12pt; line-height: 1.5; }
  a { text-decoration: none; color: #000; }
}
