/* =========================================================
   Explore Digital — feuille de style principale (mise en page)
   Les mouvements et animations sont dans animations.css.
   Sommaire :
   1. Polices  2. Variables  3. Base  4. Composants communs
   5. En-tête  6. Sections (dans l'ordre de la page)
   7. Pied de page  8. Visionneuse  9. Pages secondaires
   10. Adaptations écran
   ========================================================= */

/* ---------- 1. Polices (auto-hébergées, licence OFL) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Variables (charte : couleurs, rayons, marges) ---------- */
:root {
  --bg: #061827;
  --panel: #0b2538;
  --panel2: #103348;
  --cyan: #39d5e8;
  --cyan-hover: #78e5f1;
  --cyan-soft: rgba(57, 213, 232, .12);
  --on-cyan: #062233;
  --text: #f4f8fc;
  --subtle: #b6c9d6;
  --line: #294253;
  --paper: #f0f6f9;
  --ink: #102d3e;
  --ink-accent: #126f83;
  --muted: #536b7a;
  --focus: var(--cyan);

  --radius: 22px;
  --content: 1200px;   /* largeur maximale du contenu */
  --gutter: 48px;      /* marge latérale des sections */
  --pad-y: 104px;      /* marge verticale des sections */
  --header-h: 78px;

  --font-title: "Manrope", Arial, sans-serif;
  --font-text: "Inter", Arial, sans-serif;
  color-scheme: dark;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-text);
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 500; }
h1 {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.07;
  letter-spacing: -.045em;
  max-width: 640px;
  margin: 20px 0 18px;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 14px 0 16px;
}
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
p { color: var(--subtle); }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Icônes Lucide intégrées en SVG */
.i {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Focus clavier visible */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* Lien d'évitement : visible uniquement au clavier */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--cyan); color: var(--on-cyan);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 13px;
}
.skip-link:focus { top: 16px; }

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Composants communs ---------- */

/* Section : fond pleine largeur, contenu limité à 1200 px */
.wrap {
  position: relative;
  padding-block: var(--pad-y);
  padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
}
.anchor { scroll-margin-top: calc(var(--header-h) - 1px); }

/* Surtitre avec trait */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }

.small { font-size: 12px; line-height: 1.5; color: var(--subtle); }
.accent { color: var(--cyan); }
.accent-ink { color: var(--ink-accent); }

/* Sections claires (Santé, Méthode, FAQ) */
.light {
  background: var(--paper);
  color: var(--ink);
  --subtle: #4d6575;
  --line: #ccdce5;
  --focus: #126f83;
  color-scheme: light;
}
.light .kicker { color: var(--ink-accent); }

/* Titre + texte côte à côte */
.headingrow {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end;
  margin-bottom: 48px;
}
.headingrow h2 { margin-bottom: 0; }
.headingrow > p { font-size: 15px; max-width: 400px; }

/* Boutons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; min-height: 48px;
  border-radius: 10px; border: 1px solid transparent;
  background: var(--cyan); color: var(--on-cyan);
  font-weight: 600; font-size: 14px; line-height: 1.4; text-align: center;
}
.btn:hover { background: var(--cyan-hover); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn-ghost { border-color: #3c596a; background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--panel2); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-size: 14px;
  border-bottom: 1px solid #536b7b; padding: 7px 0;
}
.textlink .i { width: 15px; height: 15px; }
.textlink:hover { border-color: var(--cyan); }

/* Étiquette arrondie (ex. « Démonstration ») */
.tag {
  display: inline-block;
  background: rgba(8, 33, 50, .9); color: #cce9f0;
  border: 1px solid #3d6371; border-radius: 20px;
  font-size: 10px; font-weight: 600; padding: 5px 10px; letter-spacing: .08em; text-transform: uppercase;
}

/* Logo provisoire (logotype de la maquette) */
.brand {
  display: flex; align-items: center; gap: 11px; white-space: nowrap;
  font-family: var(--font-title); font-weight: 600; letter-spacing: -.055em;
  font-size: 25px; line-height: 1.05;
}
.brand-name > span {
  display: block; margin-top: 5px;
  font-family: var(--font-text); font-size: 9px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
}
.brand-mark {
  display: grid; place-items: center; width: 35px; height: 35px;
  border-radius: 11px; background: var(--cyan); color: var(--bg);
  font-size: 25px; font-weight: 700; letter-spacing: -.04em;
  transform: rotate(-6deg);
}

/* ---------- 5. En-tête (fixé en haut pendant le défilement) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--header-h);
  padding-block: 14px;
  padding-inline: max(32px, calc((100% - var(--content)) / 2 + 32px));
  border-bottom: 1px solid transparent;
  background: rgba(6, 24, 39, .6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled { background: rgba(6, 24, 39, .88); border-bottom-color: var(--line); }
.navlinks { display: flex; align-items: center; gap: 26px; font-size: 13px; color: var(--subtle); }
.navlinks a { position: relative; padding: 6px 0; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
}
.navlinks a:hover, .navlinks a.is-current { color: var(--text); }
.navlinks a:hover::after, .navlinks a.is-current::after { transform: scaleX(1); }
.site-header .btn { font-size: 13px; padding: 11px 16px; min-height: 44px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: transparent;
}
.menu-toggle .i { width: 20px; height: 20px; }
.mobilelinks {
  position: absolute; top: 100%; left: 0; right: 0;
  border-bottom: 1px solid var(--line); background: #092031;
  padding: 10px 22px 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.mobilelinks a:not(.btn) { display: block; padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobilelinks .btn { width: 100%; margin-top: 18px; }

/* Barre de progression de lecture */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #1aa3b8, var(--cyan));
  transform: scaleX(0); transform-origin: left;
}

/* ---------- 6. Sections ---------- */

/* 6.1 Premier écran */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
  min-height: min(860px, calc(100vh - var(--header-h)));
  padding-top: 56px; padding-bottom: 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 40%, rgba(19, 84, 108, .75) 0%, transparent 52%),
    radial-gradient(ellipse at 0% 100%, rgba(13, 62, 82, .6) 0%, transparent 45%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-copy, .hero .visual { position: relative; z-index: 1; }
.hero .accent { display: inline; }
.hero .lead { font-size: 17px; max-width: 520px; line-height: 1.75; }

/* Mots qui défilent : tous empilés dans la même case (la plus large donne la taille) */
.rotator {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .35em;
  margin-bottom: 18px;
  font-family: var(--font-title); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em;
  color: var(--text);
}
.rotator-words { display: inline-grid; }
.rotator-words > span { grid-area: 1 / 1; color: var(--cyan); white-space: nowrap; }
.rotator-words > span + span { opacity: 0; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin: 32px 0 22px; }
.hero-foot { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--subtle); }
.hero-foot span + span { border-left: 1px solid var(--line); padding-left: 14px; }

.visual { position: relative; min-width: 0; }
.media {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid #315366; border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 60px -20px rgba(57, 213, 232, .35);
}
/* Vidéo de présentation : format 16/9 conservé à toutes les largeurs */
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--panel); }
.visual-caption { margin: 12px 6px 0; font-size: 11px; color: #a6c2d0; }

/* Pastilles flottantes autour de la vidéo */
.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(10, 36, 54, .88); border: 1px solid #3d6371;
  font-size: 12px; font-weight: 500; color: #e3f4f8; white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
}
.chip .i { color: var(--cyan); width: 15px; height: 15px; }
.chip-1 { top: -22px; left: 8%; }
.chip-2 { top: 34%; right: -18px; }
.chip-3 { top: 42%; left: -24px; }

/* 6.2 Bandeau qui défile */
.marquee {
  display: flex; overflow: hidden; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #071d2e;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; align-items: center; }
.marquee-track li {
  display: flex; align-items: center; gap: 34px; padding: 22px 0 22px 34px;
  font-family: var(--font-title); font-size: clamp(18px, 2vw, 24px); letter-spacing: -.02em;
  color: #d8e8ef; white-space: nowrap;
}
.marquee-track li::after { content: "✦"; color: var(--cyan); font-size: .7em; }

/* 6.3 Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 30px 28px 26px;
  background: linear-gradient(160deg, #0d2b40 0%, #0a2133 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
}
/* Halo qui suit la souris (position fournie par animations.js) */
.service::before, .quote::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(57, 213, 232, .16), transparent 60%);
}
.service:hover::before, .quote:hover::before { opacity: 1; }
.service:hover { border-color: #3e6f82; }
/* Photo en haut de carte, fondue dans le fond bleu nuit (le texte reste toujours sur fond sombre) */
.service { padding-top: 150px; }
.service::before { z-index: 1; }
.service > :not(.service-media) { position: relative; z-index: 2; }
.service-media {
  position: absolute; top: 0; left: 0; right: 0; height: 240px; overflow: hidden; z-index: 0;
  /* La photo s'efface progressivement vers le bas : aucune ligne de démarcation */
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 39, 0) 30%, rgba(6, 24, 39, .55) 100%);
}
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.service-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--cyan-soft); border: 1px solid rgba(57, 213, 232, .3); color: var(--cyan);
}
.service-icon .i { width: 22px; height: 22px; }
.service-no { font-family: var(--font-title); font-size: 13px; letter-spacing: .08em; color: #6f8fa1; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service > p { font-size: 14px; flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 22px; }
.service-tags li {
  padding: 4px 10px; border-radius: 999px; border: 1px solid #2f4c5e;
  font-size: 11px; color: #b6cfdb;
}
.service-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--cyan); }
.service-link .i { width: 15px; height: 15px; }

/* 6.4 Chiffres */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #0a2131, #0b2d42);
}
.stat { padding: 40px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-title); font-weight: 600; font-size: clamp(40px, 5vw, 60px);
  line-height: 1; letter-spacing: -.05em; color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: .45em; margin-left: 4px; letter-spacing: 0; color: #d8edf5; }
.stat-label { display: block; margin-top: 12px; font-size: 13px; color: var(--subtle); }

/* 6.5 Spécialité santé (section claire) */
.health { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.health-visual {
  overflow: hidden; border-radius: 28px;
  box-shadow: 0 40px 80px -40px rgba(6, 24, 39, .55);
}
.health-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; scale: 1.08; }
.health-intro { font-size: 16px; max-width: 560px; }
.health-points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.health-points li { display: flex; gap: 16px; align-items: flex-start; }
.hp-icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: #dceef4; color: #1f6b80;
}
.hp-icon .i { width: 20px; height: 20px; }
.health-points h3 { font-size: 17px; margin-bottom: 6px; }
.health-points p { font-size: 14px; }
/* Professions : grille de cartes (icône, métier, idée de support) */
.professions { margin-top: 80px; padding-top: 48px; border-top: 1px solid #c3d6e0; }
.professions-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.professions-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-accent); }
.professions-head h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; }
.prof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.prof {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 20px 22px; border-radius: 16px;
  background: #fff; border: 1px solid #d3e2ea;
  box-shadow: 0 10px 30px -24px rgba(6, 24, 39, .5);
}
.prof-icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px;
  border-radius: 12px; background: #e3f2f7; color: var(--ink-accent);
}
.prof-icon .i { width: 20px; height: 20px; }
.prof strong { font-family: var(--font-title); font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.prof > span:last-child { font-size: 13px; line-height: 1.5; color: var(--subtle); }
/* Survol : la carte passe en bleu nuit */
.prof:hover { background: var(--ink); border-color: var(--ink); }
.prof:hover strong { color: #fff; }
.prof:hover > span:last-child { color: #b6c9d6; }
.prof:hover .prof-icon { background: var(--cyan); color: var(--on-cyan); }

/* 6.6 Exemples de créations (galerie en colonnes) */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -16px 0 32px; }
.filter {
  min-height: 42px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid #355368; background: transparent; color: var(--subtle); font-size: 13px; font-weight: 500;
}
.filter:hover { color: var(--text); border-color: #4f7285; }
.filter[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); }
/* Sans JavaScript : colonnes simples. Avec JavaScript (.is-masonry) : mosaïque qui respecte
   l'ordre de lecture, chaque création occupant un nombre de lignes de 4 px calculé par galerie.js. */
.works { columns: 3; column-gap: 22px; }
.work { position: relative; break-inside: avoid; margin-bottom: 26px; }
.works.is-masonry { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22px; grid-auto-rows: 4px; align-items: start; }
.work.is-filtered { display: none; }
.works-more { display: flex; justify-content: center; margin-top: 8px; }
.work-open {
  position: relative; display: block; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line); background: var(--panel);
}
.work-open img { width: 100%; }
/* Voile + icône « agrandir » au survol */
.work-open::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 18, 30, .75)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339d5e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3Cpath d='m21 3-7 7'/%3E%3Cpath d='m3 21 7-7'/%3E%3C/svg%3E") right 18px bottom 18px / 22px no-repeat;
}
.work-open:hover::after, .work-open:focus-visible::after { opacity: 1; }
.work figcaption { padding: 14px 4px 0; }
.work figcaption .tag { margin-bottom: 10px; font-size: 9px; padding: 4px 9px; color: var(--cyan); border-color: rgba(57, 213, 232, .4); background: var(--cyan-soft); }
.work figcaption strong { display: block; font-family: var(--font-title); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.work-detail { display: block; font-size: 12px; color: var(--subtle); margin-top: 2px; }

/* 6.7 Au-delà de la santé */
.beyond {
  background:
    radial-gradient(ellipse at 100% 50%, rgba(19, 84, 108, .5), transparent 55%),
    linear-gradient(120deg, #0a2131, #0b2d42);
}
.beyond-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.beyond-copy > p { font-size: 16px; margin: 4px 0 30px; max-width: 480px; }
.beyond-visual { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid #315366; }
.beyond-visual img { width: 100%; scale: 1.08; }
.beyond-visual .tag { position: absolute; top: 14px; left: 14px; }

/* 6.8 Méthode (frise en 4 étapes) */
.timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  --tl: 0; /* avancement de la ligne (0 à 1), mis à jour par animations.js */
}
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: #c6d8e1;
}
.timeline::after {
  background: linear-gradient(90deg, var(--ink-accent), var(--cyan));
  transform: scaleX(var(--tl)); transform-origin: left;
}
.tl-step { position: relative; z-index: 1; }
.tl-no {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px;
  border-radius: 50%; background: var(--ink); color: #e5f9fc;
  font-family: var(--font-title); font-weight: 600; font-size: 15px;
  box-shadow: 0 0 0 6px var(--paper);
}
.tl-step h3 { font-size: 18px; margin-bottom: 8px; }
.tl-step p { font-size: 14px; }

/* 6.9 Avis clients : carrousel à défilement horizontal (glisser au doigt, boutons avec JavaScript) */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 18px; margin: -4px -2px 0;
  scrollbar-width: thin; scrollbar-color: #2f4c5e transparent;
}
.carousel-track:focus-visible { outline-offset: 6px; }
.carousel-track > .quote { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.carousel-nav { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.carousel-btn {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #3d6371; background: transparent; color: var(--text);
}
.carousel-btn:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn .i { width: 20px; height: 20px; }
.carousel-progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(.3); }
.quote {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px 28px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, #0d2b40 0%, #0a2133 100%); border: 1px solid var(--line);
}
.stars { display: flex; gap: 3px; color: #f5c451; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.quote blockquote p { font-size: 16px; line-height: 1.7; color: #dbe8ef; }
.quote figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.quote figcaption strong { display: block; font-size: 14px; }
.quote figcaption span { font-size: 12px; color: var(--subtle); }

/* 6.10 À propos */
.about { overflow: hidden; background: radial-gradient(ellipse at 15% 50%, rgba(19, 84, 108, .45), transparent 50%); }
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
/* Portrait : photo aux coins arrondis, halo cyan derrière et contour lumineux animé */
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 360px; width: 100%; margin-inline: auto;
}
.portrait::before {
  content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(57, 213, 232, .28), transparent 65%);
}
.portrait img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  border-radius: 26px; background: var(--panel);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.portrait-ring {
  --angle: 0deg;
  position: absolute; inset: -7px; z-index: 2; border-radius: 32px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 200deg, var(--cyan) 290deg, transparent 350deg);
  -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;
}
.founder-copy p { margin-top: 18px; max-width: 540px; font-size: 16px; }
.founder-role { color: var(--cyan); font-size: 14px; }
.founder-meta { display: flex; gap: 8px; align-items: center; margin-top: 23px; font-size: 13px; color: var(--subtle); }
.founder-meta .i { width: 15px; height: 15px; color: var(--cyan); }
.founder-copy .small { font-size: 13px; }

/* 6.11 FAQ (éléments natifs details/summary) */
.faqgrid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.faqgrid > div:first-child p { font-size: 15px; }
.faqgrid details { border-bottom: 1px solid #cadbe4; }
.faqgrid summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 0; font-size: 16px; font-weight: 500; list-style: none; cursor: pointer;
}
.faqgrid summary:hover { color: var(--ink-accent); }
.faqgrid summary::-webkit-details-marker { display: none; }
.faqgrid summary::after {
  content: "+"; display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #b9cfda;
  font-size: 18px; color: #21647b;
}
.faqgrid details[open] summary::after { content: "\2212"; background: var(--ink); border-color: var(--ink); color: #fff; }
.faqgrid details p { font-size: 15px; padding: 0 46px 22px 0; }

/* 6.12 Contact */
.contact-wrap {
  background:
    radial-gradient(ellipse at 5% 70%, #104456, transparent 52%),
    url("../img/ile-reseau-1000.webp") right center / cover no-repeat,
    var(--bg);
}
.contact-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 24, 39, .55), rgba(6, 24, 39, .88) 55%);
}
.contact { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy > p { font-size: 16px; margin-top: 20px; }
.contact-copy > p.small { font-size: 13px; }
.contact-points { margin-top: 28px; font-size: 14px; color: var(--subtle); }
.contact-points li { display: flex; align-items: center; gap: 11px; margin: 14px 0; }
.contact-points .i { width: 17px; height: 17px; color: var(--cyan); }

.form {
  border: 1px solid #35586c; border-radius: var(--radius); padding: 30px;
  background: rgba(12, 37, 55, .92);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.field { margin-bottom: 16px; }
.form label { display: block; font-size: 13px; color: #dce9ef; margin-bottom: 7px; }
.form label span { color: #b1c9d5; font-weight: 400; }
.form input, .form textarea, .form select {
  display: block; width: 100%; padding: 11px 12px;
  border: 1px solid #527083; border-radius: 8px;
  background: #071c2b; color: #f4f8fc; font-size: 16px; line-height: 1.5;
}
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #071c2b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339d5e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.form select:has(option[value=""]:checked) { color: #9eb7c6; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--cyan); }
.form input::placeholder, .form textarea::placeholder { color: #9eb7c6; opacity: 1; font-size: 14px; }
.form textarea { resize: vertical; min-height: 96px; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #ff9b9b; }
.form .btn { width: 100%; margin: 8px 0 12px; }
.form .small { font-size: 11px; color: #b9ceda; }
.form .small a { text-decoration: underline; }
.form-note { font-size: 12px; color: #b9ceda; margin-top: 6px; }
.field-error { font-size: 12px; color: #ffb4b4; margin-top: 6px; }
.form-status {
  margin-top: 13px; padding: 13px; border-radius: 8px; font-size: 13px;
  border: 1px solid #468ea1; background: #153e4e; color: #dcf4f7;
}
.form-status.is-error { border-color: #b86b6b; background: #3d1f26; color: #ffe1e1; }

/* Champ piège antispam : invisible pour les humains */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 7. Pied de page ---------- */
.site-footer {
  padding-block: 64px 28px;
  padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line);
  background: #051421;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; margin: 16px 0 22px; max-width: 340px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--subtle); }
.footer-col a:hover { color: var(--cyan); }
.footer-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
}
.footer-bottom p { font-size: 12px; }
/* Pied de page court des pages secondaires */
.footer-simple { margin-top: 0; padding-top: 0; border-top: 0; align-items: flex-end; }
.footer-simple p { margin-top: 12px; font-size: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--subtle); }
.footer-links a:hover { color: var(--text); }

/* ---------- 8. Visionneuse des créations ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px;
  border: 0; background: rgba(3, 12, 20, .94); color: var(--text);
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.lightbox::backdrop { background: rgba(3, 12, 20, .6); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; border-radius: 14px; }
.lightbox figcaption { font-size: 14px; color: var(--subtle); text-align: center; }
.lb-close, .lb-nav {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #3d6371; background: rgba(10, 36, 54, .9);
}
.lb-close:hover, .lb-nav:hover { border-color: var(--cyan); color: var(--cyan); }
.lb-close { position: absolute; top: 18px; right: 18px; z-index: 1; }
.lb-close .i, .lb-nav .i { width: 22px; height: 22px; }

/* ---------- 9. Pages secondaires (légales, 404, confirmation) ---------- */
.page-simple { max-width: 760px; }
.page-simple h1 { font-size: clamp(32px, 5vw, 48px); max-width: none; }
.page-simple h2 { font-size: 22px; margin-top: 36px; }
.page-simple p, .page-simple li { font-size: 15px; color: var(--subtle); margin-top: 12px; }
.page-simple ul { list-style: disc; padding-left: 20px; }
.page-simple a:not(.btn) { color: var(--cyan); text-decoration: underline; }
.page-simple .btn { margin-top: 28px; }
.todo { background: #3a3413; color: #ffe89a; padding: 0 4px; border-radius: 3px; }

/* ---------- 10. Adaptations écran ---------- */
@media (min-width: 1101px) {
  .contact-wrap {
    background:
      radial-gradient(ellipse at 5% 70%, #104456, transparent 52%),
      url("../img/ile-reseau-1920.webp") right center / cover no-repeat,
      var(--bg);
  }
}

@media (max-width: 1100px) {
  .navlinks { gap: 18px; }
  .chip-2 { right: -6px; }
  .chip-3 { left: -8px; }
  .works { columns: 2; }
  .works.is-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --gutter: 34px; --pad-y: 80px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-top: 48px; }
  .hero .visual { max-width: 680px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-track > .quote { flex-basis: calc((100% - 20px) / 2); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .health, .beyond-grid { grid-template-columns: 1fr; gap: 44px; }
  .health-visual { max-width: 460px; }
  .prof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
  .founder { gap: 40px; }
  .contact { gap: 36px; }
}

@media (max-width: 860px) {
  .navlinks { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-contact { margin-left: auto; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; --pad-y: 64px; --header-h: 70px; }
  .site-header { padding-inline: 20px; gap: 12px; }
  .brand { font-size: 22px; }
  .headingrow { grid-template-columns: 1fr; gap: 14px; margin-bottom: 34px; }
  .headingrow > p { max-width: 560px; }
  .health-points { grid-template-columns: 1fr; }
  .prof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .faqgrid { grid-template-columns: 1fr; gap: 20px; }
  .founder, .contact { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .lightbox[open] { grid-template-columns: 1fr; padding: 70px 14px 14px; }
  .lb-nav { display: none; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(36px, 10vw, 46px); }
  h2 { font-size: clamp(28px, 8vw, 34px); }
  .hero { padding-top: 36px; padding-bottom: 56px; gap: 48px; }
  .hero .lead { font-size: 15px; }
  .nav-contact { display: none; }
  .menu-toggle { margin-left: auto; }
  .services { grid-template-columns: 1fr; }
  .carousel-track { gap: 14px; }
  .carousel-track > .quote { flex-basis: 86%; padding: 24px 22px; }
  .service { padding: 140px 22px 22px; }
  .service-media { height: 210px; }
  .works { columns: 1; }
  .works.is-masonry { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; row-gap: 30px; }
  .tl-step { display: grid; grid-template-columns: 50px 1fr; gap: 18px; }
  .tl-no { margin-bottom: 0; }
  .stat { padding: 28px 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .chip { font-size: 11px; padding: 7px 11px; }
  .chip-1 { top: -18px; left: 4%; }
  .chip-2, .chip-3 { display: none; }
  .form { padding: 22px; }
  .faqgrid details p { padding-right: 0; }
  .hero-foot { font-size: 12px; gap: 6px 16px; }
  .hero-foot span + span { border-left: 0; padding-left: 0; }
  .hero-foot span::before { content: "✦ "; color: var(--cyan); font-size: 9px; }
  .professions { margin-top: 56px; padding-top: 40px; }
  .prof { padding: 16px 14px 18px; }
  .prof strong { font-size: 15px; }
  .prof > span:last-child { font-size: 12px; }
}

@media (max-width: 370px) {
  :root { --gutter: 18px; }
  .actions { flex-direction: column; align-items: stretch; }
  .textlink { align-self: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .prof-grid { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
}
