/* ==========================================================================
   SOMATIME — Société Maritime d'Agadir
   Feuille de style principale
   ========================================================================== */

:root {
  --ink: #06131f;
  --ink-2: #0a1e30;
  --navy: #0d3b5c;
  --brand: #0e4a6e;
  --gold: #f2a81d;
  --gold-2: #ffc451;
  --sand: #e6ecef;
  --paper: #f4f6f7;
  --gold-ink: #8a5a00;
  --white: #ffffff;
  --text: #13212e;
  --muted: #5d6b78;
  --muted-light: rgba(255, 255, 255, 0.62);
  --line: rgba(19, 33, 46, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --danger: #b03a2e;
  --placeholder: #66737f;
  --focus: var(--brand);

  --font-display: "Instrument Serif", "Serif Fallback", serif;
  --font-body: "Manrope", "Sans Fallback", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
  /* Échelle d’empilement : menu < en-tête < curseur < rideau < préchargement < lien d’évitement */
  --z-menu: 90; --z-header: 100; --z-cursor: 200; --z-curtain: 300; --z-preloader: 400; --z-skip: 500;
}

/* ---------- Polices (hébergées localement) ---------- */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
/* Polices de secours aux mêmes largeurs : pas de saut de mise en page au chargement. */
@font-face { font-family: "Serif Fallback"; src: local("Times New Roman"), local("Times"); size-adjust: 83%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 102.6%; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--navy) var(--paper); accent-color: var(--brand); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
/* Images en parallaxe : marge haute/basse pour ne jamais laisser de vide */
[data-parallax] { position: absolute; left: 0; top: -12%; width: 100%; height: 124% !important; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }
input, textarea { caret-color: var(--brand); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero, .page-hero, .section--dark, .hscroll, .cta, .footer, .orgs, .menu, .header:not(.is-scrolled), .menu-open .header { --focus: var(--white); }

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: var(--z-skip);
  padding: 12px 20px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo ---------- */
.display {
  font-family: var(--font-display); font-weight: 400;
  line-height: 0.98; letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--gold); }
.section:not(.section--dark) .display em { color: var(--brand); }
.h-xxl { font-size: clamp(54px, 9.2vw, 168px); }
.h-xl { font-size: clamp(44px, 6.4vw, 112px); }
.h-lg { font-size: clamp(38px, 4.8vw, 80px); }
.h-md { font-size: clamp(30px, 3.2vw, 52px); }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.6; }
.muted { color: var(--muted); }
.lead--ink { color: var(--text); }
.lead--light { color: var(--muted-light); }
.lead--light strong { color: var(--white); }
.cta__lead { max-width: 560px; color: rgba(255, 255, 255, 0.75); }
.link-arrow--brand { color: var(--brand); }
.about-intro__side .heritage__media { margin-top: 12px; }

/* Split text (JS) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-word > span { display: inline-block; will-change: transform; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn:hover { color: var(--white); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: rgba(255, 255, 255, 0.14); --fg: var(--white); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--white); }
.btn--dark::before { background: var(--gold); }
.btn--dark:hover { color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color 0.4s var(--ease);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Curseur personnalisé ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--gold); mix-blend-mode: normal;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s;
  }
  .cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(242, 168, 29, 0.28); }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.preloader__logo { width: 92px; opacity: 0; }
.preloader__bar { width: min(240px, 60vw); height: 2px; background: var(--line-light); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - 10px);
  font-family: var(--font-display); font-size: clamp(64px, 12vw, 180px); line-height: 1; color: var(--white);
}
.preloader__tag { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: 16px; color: var(--muted-light); }
html.no-preload .preloader { display: none; }

/* Rideau de transition entre les pages */
.curtain {
  position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none;
  background: var(--ink); transform: translateY(100%);
  display: grid; place-items: center;
}
.curtain img { width: 70px; opacity: 0.9; }
html.is-entering .curtain { transform: translateY(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  color: var(--white);
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s, box-shadow 0.4s;
}
.header__top {
  display: flex; justify-content: flex-end; gap: 28px;
  padding: 10px var(--gutter) 0; font-size: 14px; color: var(--muted-light);
  max-width: var(--max); margin: 0 auto;
  transition: opacity 0.3s, height 0.4s var(--ease), padding 0.4s var(--ease);
}
.header__top a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.header__top a:hover { color: var(--gold); }
.header__top svg { width: 14px; height: 14px; color: var(--gold); }
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto;
}
.header__logo { position: relative; display: block; width: clamp(150px, 15vw, 196px); }
.header__logo img { width: 100%; height: auto; transition: opacity 0.4s; }
.header__logo .logo-color { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.nav__link {
  position: relative; font-size: 16px; font-weight: 600; padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--gold); }
.header .btn { padding: 13px 22px; font-size: 14px; }

.header.is-scrolled { background: rgba(244, 246, 247, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--text); } /* taste-skill-ignore: une seule barre collante, translucide */
.header.is-scrolled .header__top { height: 0; padding-top: 0; opacity: 0; overflow: hidden; }
.header.is-scrolled .logo-white { opacity: 0; }
.header.is-scrolled .logo-color { opacity: 1; }
.header.is-scrolled .nav__link[aria-current="page"] { color: var(--brand); }
.header.is-hidden { transform: translateY(-100%); }

.burger { display: none; width: 48px; height: 48px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, 0.14); transition: background 0.4s; }
.header.is-scrolled .burger { background: var(--sand); }
.burger span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s linear 0.8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease); }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-size: clamp(42px, 11vw, 72px); line-height: 1.15;
  transform: translateY(30px); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu-open .menu__links li:nth-child(2) a { transition-delay: 0.06s; }
.menu-open .menu__links li:nth-child(3) a { transition-delay: 0.12s; }
.menu-open .menu__links li:nth-child(4) a { transition-delay: 0.18s; }
.menu-open .menu__links li:nth-child(5) a { transition-delay: 0.24s; }
.menu__foot { display: grid; gap: 6px; color: var(--muted-light); font-size: 16px; }
.menu__foot a { color: var(--white); }
.menu-open .header { background: transparent; color: var(--white); backdrop-filter: none; }
.menu-open .burger { background: rgba(255, 255, 255, 0.14); }
.menu-open .header .logo-white { opacity: 1; }
.menu-open .header .logo-color { opacity: 0; }

@media (max-width: 1023px) {
  .nav, .header__top, .header .btn { display: none; }
  .burger { display: block; }
  :root { --header-h: 76px; }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 19, 31, 0.55) 0%, rgba(6, 19, 31, 0.15) 35%, rgba(6, 19, 31, 0.35) 60%, rgba(6, 19, 31, 0.92) 100%), /* taste-skill-ignore: voile neutre sous le texte, sur la vidéo */
    linear-gradient(90deg, rgba(6, 19, 31, 0.55), transparent 60%); /* taste-skill-ignore: voile neutre sous le texte, sur la vidéo */
}
.hero__content { position: relative; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(36px, 6vh, 72px); }
.hero__title { font-size: clamp(34px, 7.2vw, 124px); }
.hero__row {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
  margin-top: clamp(40px, 6vh, 72px);
}
.hero__text { max-width: 560px; color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__meta { display: flex; align-items: center; gap: 28px; }
.hero__contact { display: grid; gap: 10px; justify-items: end; }
.hero__contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--white); transition: color 0.3s var(--ease); }
.hero__contact a:hover { color: var(--gold); }
.hero__contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; font-size: 16px; color: var(--muted-light); }
.scroll-cue__line { position: relative; width: 2px; height: 56px; background: var(--line-light); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.badge {
  position: relative; width: 132px; height: 132px; flex: none;
}
.badge__ring { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge__ring text { font-size: 10.4px; letter-spacing: 0.32em; fill: var(--white); font-weight: 600; text-transform: uppercase; } /* taste-skill-ignore: texte circulaire du sceau, comme une estampille */
.badge img { position: absolute; inset: 0; margin: auto; width: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }



@media (max-width: 767px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__meta { justify-content: space-between; }
  .hero__contact { justify-items: start; }
  .badge { width: 104px; height: 104px; }
  .badge img { width: 36px; }
}

/* ---------- Sections génériques ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--sand { background: var(--sand); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 899px) { .section__head { grid-template-columns: 1fr; } }

/* Manifeste — mots qui s'allument au scroll */
.statement { padding: clamp(110px, 16vw, 230px) 0; }
.statement .eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink);
}
.statement .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.statement__text {
  font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 36px); line-height: 1.25; letter-spacing: -0.005em;
  max-width: 34ch;
}
.statement__text .w { opacity: 0.14; transition: none; }
.statement__text em { font-style: italic; color: var(--brand); }
.statement__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-top: clamp(48px, 6vw, 88px); }
.statement__foot p { max-width: 460px; }
.statement__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.statement__visual { position: relative; }
.statement__media .photo__frame { aspect-ratio: 4 / 5; }
.statement__media .badge { position: absolute; left: -48px; top: -40px; padding: 10px; border-radius: 50%; background: var(--paper); box-sizing: content-box; }
.badge--brand .badge__ring text { fill: var(--brand); }
@media (max-width: 899px) {
  .statement__grid { grid-template-columns: 1fr; }
  .statement__media .photo__frame { aspect-ratio: 4 / 3; }
  .statement__media .badge { left: auto; right: 12px; top: -48px; }
}

/* ---------- Photos légendées ---------- */
.photo { margin: 0; }
.photo__frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--sand); }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.photo figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.photo figcaption a:hover { color: var(--brand); }

/* ---------- Bandeau défilant ---------- */
.marquee {
  overflow: hidden; background: var(--gold); color: var(--ink);
  padding: clamp(18px, 2.2vw, 30px) 0; white-space: nowrap;
}
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 64px); line-height: 1;
}
.marquee__item img { width: clamp(26px, 3vw, 44px); height: auto; }

/* ---------- Services horizontaux ---------- */
.hscroll { background: var(--ink); color: var(--white); overflow: hidden; }
.hscroll__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) 0 40px; }
.hscroll__top { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto 40px; width: 100%; }
.hscroll__progress { display: flex; align-items: center; gap: 16px; font-size: 16px; color: var(--muted-light); font-variant-numeric: tabular-nums; }
.hscroll__progress-bar { width: 140px; height: 2px; background: var(--line-light); }
.hscroll__progress-bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0.25); }
.hscroll__track { display: flex; gap: clamp(20px, 2.4vw, 36px); padding: 0 var(--gutter); width: max-content; will-change: transform; }

.scard {
  position: relative; flex: none; width: min(78vw, 560px);
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2);
}
.scard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.scard:hover .scard__media img { transform: scale(1.0); }
.scard__body { padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.scard__title { font-family: var(--font-display); font-size: clamp(30px, 2.6vw, 42px); line-height: 1.05; }
.scard__sub { margin-top: -10px; font-size: 16px; font-weight: 600; color: var(--gold); }
.scard__list { display: grid; gap: 10px; color: rgba(255, 255, 255, 0.72); font-size: 16px; }
.scard__list li { position: relative; padding-left: 22px; }
.scard__list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.scard .link-arrow { margin-top: auto; color: var(--gold); align-self: flex-start; }

.scard--intro {
  width: min(78vw, 420px); background: transparent; border: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0;
}
.scard--intro p { color: var(--muted-light); max-width: 340px; }

@media (max-width: 1023px) {
  .hscroll__pin { min-height: 0; padding: clamp(90px, 13vw, 140px) 0; }
  .hscroll__track { width: auto; flex-direction: column; }
  .scard, .scard--intro { width: 100%; }
  .hscroll__progress { display: none; }
}

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.stat { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--sand); }
.stat__icon { width: 44px; height: 44px; color: var(--brand); }
.stat__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; }
.stat__label { font-size: 16px; color: var(--muted); max-width: 240px; }
.section--dark .stat__label { color: var(--muted-light); }
.section--dark .stat__value small { color: var(--gold); }
@media (max-width: 899px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Vidéo qui s'ouvre ---------- */
.reveal-video { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--paper); }
.reveal-video__frame { position: absolute; inset: 0; clip-path: inset(7% 10% 7% 10% round 24px); will-change: clip-path; }
.reveal-video__frame video, .reveal-video__frame img { width: 100%; height: 100%; object-fit: cover; }
.reveal-video__frame::after { content: ""; position: absolute; inset: 0; background: rgba(6, 19, 31, 0.42); }
.reveal-video__text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--white); z-index: 1; padding: 0 var(--gutter); }
.reveal-video__text .eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.reveal-video__text .eyebrow::before, .reveal-video__text .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Présence (Agadir — Nador) ---------- */
.presence { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.route {
  position: relative; aspect-ratio: 1 / 1; max-height: 78vh; width: 100%; margin: 0 auto; border-radius: 24px; overflow: hidden;
  background:
    var(--navy);
}
.route svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route__path { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.route__path--ghost { stroke: rgba(255, 255, 255, 0.16); stroke-dasharray: 2 9; }
.route__pin circle.pulse { fill: var(--gold); opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.route__pin circle.dot { fill: var(--gold); stroke: var(--ink); stroke-width: 3; }
.route__label { fill: var(--white); font-family: var(--font-display); font-size: 34px; }
.route__sub { fill: rgba(255, 255, 255, 0.62); font-family: var(--font-body); font-size: 14px; }
.route__ship { fill: var(--white); }
.route__land { fill: rgba(255, 255, 255, 0.13); }
.route__land--other { fill: rgba(255, 255, 255, 0.05); }
.route__sea { fill: rgba(255, 255, 255, 0.4); font-family: var(--font-body); font-size: 12px; font-style: italic; letter-spacing: 0.2em; }
.route__country { fill: rgba(255, 255, 255, 0.5); font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.35em; }
.route__country--other { fill: rgba(255, 255, 255, 0.25); font-size: 12px; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(3.2); opacity: 0; } }

.offices { display: grid; gap: 18px; margin-top: 40px; }
.office {
  display: grid; gap: 6px; padding: 22px 0;
}
.office h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.office p { color: var(--muted-light); font-size: 16px; }
.office a:hover { color: var(--gold); }
@media (max-width: 899px) { .presence { grid-template-columns: 1fr; } }

/* ---------- Héritage ---------- */
.heritage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.heritage__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; }
.heritage__media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.25) saturate(0.85); }
.heritage__year {
  position: absolute; left: 22px; bottom: 16px; z-index: 1; color: var(--white);
  font-family: var(--font-display); font-size: clamp(64px, 8vw, 120px); line-height: 1;
}
.heritage__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(6, 19, 31, 0.7)); } /* taste-skill-ignore: voile neutre sous la date, sur la photo */
.heritage__text { display: grid; gap: 26px; }
.heritage__text p { color: var(--text); }
@media (max-width: 899px) { .heritage { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(110px, 15vw, 220px) 0; text-align: center; }
.cta__bg { position: absolute; inset: -10% 0; opacity: 0.3; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta .container { position: relative; z-index: 1; display: grid; justify-items: center; gap: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: clamp(70px, 9vw, 120px) 0 28px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand img { width: 210px; margin-bottom: 22px; }
.footer__brand p { color: var(--muted-light); max-width: 320px; font-size: 16px; }
.footer__title { font-size: 16px; color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.footer li { margin-bottom: 2px; color: var(--muted-light); font-size: 16px; }
.footer li a { transition: color 0.3s; }
.footer li a:hover { color: var(--white); }
.footer__word {
  margin-top: clamp(60px, 8vw, 110px);
  font-family: var(--font-display); font-size: clamp(64px, 19.5vw, 330px); line-height: 0.8; letter-spacing: -0.02em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
  user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 36px; font-size: 14px; color: var(--muted-light); }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.to-top:hover { color: var(--gold); }
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures : bannière ---------- */
.page-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img, .page-hero__media video { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 19, 31, 0.6), rgba(6, 19, 31, 0.25) 40%, rgba(6, 19, 31, 0.9)); } /* taste-skill-ignore: voile neutre sous le texte, sur la photo */
.page-hero__content { position: relative; width: 100%; padding-top: calc(var(--header-h) + 100px); padding-bottom: clamp(40px, 6vw, 80px); }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted-light); margin-bottom: 26px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--white); }
.page-hero__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
@media (max-width: 899px) { .page-hero__row .scroll-cue { display: none; } }
.page-hero__row p { max-width: 520px; color: rgba(255, 255, 255, 0.8); }

/* ---------- Page services ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; padding: clamp(60px, 8vw, 120px) 0; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc:nth-child(even) .svc__media { order: 2; }
.svc__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4.4; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__body h2 { margin-bottom: 10px; }
.svc__sub { color: var(--brand); font-weight: 700; margin-bottom: 28px; display: block; }
.svc__list { display: grid; gap: 16px; }
.svc__list li { position: relative; padding-left: 28px; color: var(--text); }
.svc__list li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 899px) { .svc { grid-template-columns: 1fr; } .svc:nth-child(even) .svc__media { order: 0; } }

/* ---------- Page À propos ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
.about-intro__side { display: grid; gap: 24px; align-content: start; }
.about-intro__body { display: grid; gap: 22px; color: var(--text); }
.about-intro__body .lead { color: var(--text); }
@media (max-width: 899px) { .about-intro { grid-template-columns: 1fr; } }

.equip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.equip__item { padding: 0 24px 0 0; display: grid; gap: 14px; align-content: start; }
.equip__item svg { width: 40px; height: 40px; color: var(--gold); }
.equip__item p { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; color: var(--white); }
@media (max-width: 1023px) { .equip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .equip { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.value { padding: 0; display: grid; gap: 16px; align-content: start; }
.value h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; }
.value p { color: var(--text); }
@media (max-width: 899px) { .values { grid-template-columns: 1fr; } }

.quote-band { text-align: center; }
.quote-band p { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; max-width: 34ch; margin: 0 auto; }
.quote-band p em { font-style: italic; color: var(--brand); }

/* ---------- Page Contact ---------- */
.contact-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: clamp(60px, 8vw, 110px); }
.quick {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--radius); background: var(--white);
  overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease);
}
.quick::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 0.6s var(--ease); }
.quick:hover { color: var(--white); }
.quick:hover::before { transform: none; }
.quick small { display: block; font-size: 16px; color: var(--brand); font-weight: 700; margin-top: 8px; transition: color 0.5s; }
.quick:hover small { color: var(--gold); }
.quick strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 46px); line-height: 1.1; word-break: break-word; }
.quick svg { width: 48px; height: 48px; flex: none; padding: 12px; border-radius: 50%; background: var(--gold); color: var(--ink); }
@media (max-width: 767px) { .contact-quick { grid-template-columns: 1fr; } }

.office-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ocard { border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.ocard__map { aspect-ratio: 16 / 9; background: var(--sand); }
.ocard__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
.ocard__body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.ocard__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 3vw, 48px); line-height: 1; }
.ocard__role { margin-top: -8px; color: var(--brand); font-weight: 700; }
.ocard__photo .photo__frame { border-radius: 0; aspect-ratio: 16 / 7; }
.ocard__photo figcaption { padding: 0 clamp(24px, 3vw, 40px); }
.ocard dl { display: grid; grid-template-columns: 90px 1fr; gap: 12px 16px; margin: 0; padding-top: 8px; font-size: 16px; }
.ocard dt { color: var(--muted); font-size: 14px; }
.ocard dd { margin: 0; }
.ocard dd a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color 0.3s, color 0.3s; }
.ocard dd a:hover { color: var(--brand); text-decoration-color: var(--brand); }
@media (max-width: 899px) { .office-cards { grid-template-columns: 1fr; } }

/* ---------- Page Devis ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.ports { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(60px, 8vw, 110px); }
@media (max-width: 640px) { .ports { grid-template-columns: 1fr; } }
.quote__aside { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 26px; }
.quote__aside p { color: var(--text); }
.quote__contacts { display: grid; gap: 14px; padding-top: 10px; }
.quote__contacts a { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.quote__contacts a:hover { color: var(--brand); }
.quote__contacts svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--sand); color: var(--brand); flex: none; }
.form { background: var(--white); border-radius: 24px; padding: clamp(26px, 4vw, 56px); }
.form__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.1; margin-bottom: 8px; }
.form__note { font-size: 14px; color: var(--muted); margin-bottom: 34px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.field { position: relative; display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.field label abbr, .form__note abbr { color: var(--gold-ink); text-decoration: none; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); /* taste-skill-ignore: champ de formulaire */
  padding: 12px 0; border-radius: 0; outline: none; transition: border-color 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field textarea + .field__err, .field input + .field__err { display: none; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"] + .field__err { display: block; font-size: 14px; color: var(--danger); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 36px; }
.form__foot .muted { font-size: 14px; max-width: 320px; }
.form-status { margin-top: 22px; padding: 16px 18px; border-radius: 12px; font-size: 16px; display: none; }
.form-status.success { display: block; background: #e7f4ea; color: #1e6b34; }
.form-status.error { display: block; background: #fbeaea; color: #9b2c2c; }
.form-status.warning { display: block; background: #fdf3df; color: #7a5300; }
.spinner { width: 18px; height: 18px; animation: spin 0.8s linear infinite; }
@media (max-width: 899px) { .quote { grid-template-columns: 1fr; } .quote__aside { position: static; } .quote__aside .photo { display: none; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Accessibilité : réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .statement__text .w { opacity: 1; }
  .reveal-video__frame { clip-path: none; }
}

/* ---------- Références : clients, partenaires, organisations ---------- */
.trust { --spring: cubic-bezier(0.32, 0.72, 0, 1); padding: clamp(120px, 14vw, 220px) 0 clamp(96px, 11vw, 160px); }
.trust__layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
.trust__intro { position: sticky; top: calc(var(--header-h) + 48px); display: grid; gap: 32px; }
.trust__heading { font-size: clamp(52px, 6.4vw, 112px); line-height: 0.95; letter-spacing: -0.02em; }
.trust__lead { max-width: 400px; font-size: 18px; line-height: 1.55; color: var(--text); }

/* Grille sans trou : 6 colonnes, grid-auto-flow dense */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 14.5vw, 230px); grid-auto-flow: dense; gap: 12px; }
.ref--xl { grid-column: span 4; grid-row: span 2; }
.ref--md { grid-column: span 3; }
.ref--sm { grid-column: span 2; }

/* Double cadre : coque + cœur */
.ref { padding: 6px; border-radius: 28px; background: rgba(13, 59, 92, 0.06); box-shadow: inset 0 0 0 1px rgba(13, 59, 92, 0.06); }
.ref__core { position: relative; height: 100%; transition: translate 0.8s var(--spring); border-radius: 22px; background: var(--white); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9); display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.ref__logo { position: relative; display: grid; place-items: center; padding: 18px 22px 0; min-height: 0; }
.ref__logo img { max-width: 70%; max-height: 72%; width: auto; height: auto; object-fit: contain; transition: transform 0.9s var(--spring); }
.ref--xl .ref__logo img { max-width: 56%; max-height: 62%; }
.ref--sm .ref__logo { padding: 14px 14px 0; }
.ref--sm .ref__logo img { max-width: 78%; max-height: 82%; }
.ref--wide-logo .ref__logo img { max-width: 94%; max-height: 90%; scale: 1.45; }
.ref__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 20px 16px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.ref__meta b { font-weight: 600; color: var(--text); }
.ref__meta span { text-align: right; }
.ref--sm .ref__meta { flex-direction: column; gap: 2px; }
.ref--sm .ref__meta span { text-align: left; }
.ref:hover .ref__core { translate: 0 -6px; }
.ref:hover .ref__logo img { transform: scale(1.07); }

.orgs { margin-top: clamp(96px, 11vw, 160px); padding: 8px; border-radius: 36px; background: rgba(13, 59, 92, 0.08); box-shadow: inset 0 0 0 1px rgba(13, 59, 92, 0.08); }
.orgs__core { background: var(--ink); color: var(--white); border-radius: 28px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12); padding: clamp(36px, 5.5vw, 88px); display: grid; gap: clamp(44px, 5vw, 72px); }
.orgs__title { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; max-width: 40ch; }
.orgs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.org { display: grid; gap: 24px; align-content: start; }
.org__logo { height: clamp(64px, 7vw, 96px); display: flex; align-items: center; }
.org__logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: 0.88; transition: opacity 0.6s var(--spring), transform 0.8s var(--spring); }
.org:hover .org__logo img { opacity: 1; transform: translateY(-3px); }
.org p { color: var(--muted-light); font-size: 16px; line-height: 1.5; }
.org b { display: block; color: var(--white); font-weight: 600; }

@media (max-width: 1023px) {
  .trust__layout { grid-template-columns: 1fr; }
  .trust__intro { position: static; }
}
@media (max-width: 767px) {
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 168px; gap: 10px; }
  .ref--xl { grid-column: span 2; grid-row: span 1; }
  .ref--md, .ref--sm { grid-column: span 1; }
  .ref:last-child { grid-column: span 2; }
  .ref__logo img, .ref--sm .ref__logo img { max-height: 76px; }
  .ref--xl .ref__logo img { max-height: 92px; }
  .ref__meta, .ref--sm .ref__meta { flex-direction: column; gap: 2px; padding: 0 14px 12px; font-size: 13px; }
  .ref__meta span, .ref--sm .ref__meta span { text-align: left; }
  .orgs__list { grid-template-columns: 1fr; }
  .orgs__title { font-size: 22px; }
  .ref:hover .ref__core { translate: none; }
}

@media (max-width: 480px) { .org { grid-template-columns: 1fr; } }

/* ---------- Devis : hero compact, formulaire remonté ---------- */
.page-hero--compact { min-height: 56vh; min-height: 56svh; }
.page-hero--compact .page-hero__content { padding-bottom: clamp(150px, 14vw, 210px); }
.page-hero--compact .page-hero__row { margin-top: 24px; }
.section--quote { padding-top: 0; }
.section--quote .quote { margin-top: clamp(-170px, -12vw, -110px); position: relative; z-index: 2; align-items: start; }
.section--quote .quote__aside { padding-top: clamp(150px, 15vw, 210px); }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.choice legend { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--sand); color: var(--text); font-size: 15px; font-weight: 600; transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.chip:hover span { background: #d6dfe4; }
.chip input:checked + span { background: var(--brand); color: var(--white); }
.chip input:active + span { transform: scale(0.96); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
@media (max-width: 899px) {
  .section--quote .quote { margin-top: -110px; }
  .section--quote .quote__aside { order: 2; padding-top: 0; }
  .page-hero--compact { min-height: 0; }
  .page-hero--compact .page-hero__content { padding-bottom: 150px; }
}



/* Image générée : garder le navire et l’agent sur le quai dans le cadre */
img[src$="porte-conteneurs.webp"] { object-position: 72% 50%; }

/* ---------- Accueil : devis rapide, à cheval sur le hero ---------- */
.hero:has(+ .qq-wrap) .hero__content { padding-bottom: calc(clamp(36px, 6vh, 72px) + 96px); }
.qq-wrap { position: relative; z-index: 2; margin-top: -96px; padding-bottom: clamp(24px, 4vw, 48px); }
.qq { background: var(--white); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(6, 19, 31, 0.35); overflow: hidden; } /* taste-skill-ignore: la carte flotte au-dessus du hero */
.qq__tabs { display: flex; gap: 8px; padding: 0 clamp(20px, 3vw, 40px); background: var(--navy); }
.qq__tab { display: inline-flex; align-items: center; gap: 10px; padding: 22px 6px 20px; margin-right: clamp(12px, 2vw, 28px); border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.66); cursor: pointer; box-shadow: inset 0 -3px 0 transparent; transition: color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.qq__tab svg { width: 20px; height: 20px; color: var(--gold); }
.qq__tab:hover { color: var(--white); }
.qq__tab[aria-selected="true"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.qq__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.qq__panel { padding: clamp(24px, 3vw, 44px); }
.qq__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; color: var(--ink); margin-bottom: 24px; }
.qq-form .choice legend { margin-bottom: 14px; color: var(--navy); }
.chip--icon span { gap: 10px; }
.chip--icon svg { width: 20px; height: 20px; flex: none; color: var(--navy); transition: color 0.3s var(--ease); }
.qq-form .chip input:checked + span { background: var(--navy); color: var(--white); }
.qq-form .chip input:checked + span svg { color: var(--gold); }
.qq__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; margin-top: 28px; }
.qq__wide { grid-column: span 2; }
.qq__grid .field label { font-size: 14px; color: var(--navy); }
.qq__grid .field::after { display: none; }
.qq__grid .field input, .qq__grid .field select { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid rgba(13, 59, 92, 0.16); border-radius: 12px; background: var(--paper); font: inherit; font-size: 16px; color: var(--text); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease); }
.qq__grid .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3b5c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.qq__grid .field input:hover, .qq__grid .field select:hover { border-color: rgba(13, 59, 92, 0.32); }
.qq__grid .field input:focus, .qq__grid .field select:focus { outline: none; background-color: var(--white); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 168, 29, 0.45); }
.qq__grid .field [aria-invalid="true"] { border-color: var(--danger); }
.qq__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.qq__foot .muted { font-size: 14px; max-width: 520px; }
.qq__offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.qq__office h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; margin-bottom: 10px; }
.qq__office p { color: var(--muted); margin-bottom: 8px; }
.qq__office a:not(.btn) { color: var(--text); font-weight: 600; }
.qq__office a:not(.btn):hover { color: var(--brand); }
.qq__office--cta { align-self: center; justify-self: end; }
@media (max-width: 1023px) {
  .qq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qq__offices { grid-template-columns: 1fr 1fr; }
  .qq__office--cta { justify-self: start; }
}
@media (max-width: 599px) {
  .qq__grid { grid-template-columns: 1fr; }
  .qq__wide { grid-column: auto; }
  .qq__offices { grid-template-columns: 1fr; }
  .qq__tabs { padding: 0 16px; gap: 0; }
  .qq__tab { font-size: 14px; gap: 6px; margin-right: 14px; white-space: nowrap; }
  .qq__tab svg { width: 18px; height: 18px; }
}

/* ---------- Page crédits photos ---------- */
.credits { display: grid; gap: clamp(32px, 4vw, 56px); }
.credits__intro { max-width: 720px; color: var(--text); }
.credits__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.credit { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; }
.credit img { width: 160px; height: 110px; object-fit: cover; border-radius: 12px; }
.credit p { margin: 0 0 4px; }
.credit__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: var(--brand); }
.footer__bottom a[href="credits.html"] { display: inline-block; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) { .credit { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; } .credit img { width: 96px; height: 72px; } }

/* ---------- Formulaires aux couleurs de la marque (Devis, Contact) ---------- */
.form { padding: 0; overflow: hidden; box-shadow: 0 24px 60px -28px rgba(6, 19, 31, 0.35); } /* taste-skill-ignore: la carte flotte au-dessus du hero */
.form__head { background: var(--navy); color: var(--white); padding: clamp(24px, 3vw, 40px) clamp(26px, 4vw, 56px); }
.form__head .form__title { color: var(--white); margin-bottom: 6px; }
.form__head .form__note { color: rgba(255, 255, 255, 0.72); margin-bottom: 0; }
.form__head .form__note abbr { color: var(--gold); }
.form__body { padding: clamp(26px, 4vw, 48px) clamp(26px, 4vw, 56px); }
.form .choice legend { color: var(--navy); }
.form .chip input:checked + span, .qq--page .chip input:checked + span { background: var(--navy); color: var(--white); }
.form .chip input:checked + span svg { color: var(--gold); }
.form .chip--icon svg { color: var(--navy); }
.form .field::after { display: none; }
.form .field label { font-size: 14px; color: var(--navy); }
.form .field input, .form .field textarea { width: 100%; padding: 13px 16px; border: 1px solid rgba(13, 59, 92, 0.16); border-radius: 12px; background: var(--paper); font: inherit; font-size: 16px; color: var(--text); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease); }
.form .field input { min-height: 52px; }
.form .field input:hover, .form .field textarea:hover { border-color: rgba(13, 59, 92, 0.32); }
.form .field input:focus, .form .field textarea:focus { outline: none; background-color: var(--white); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 168, 29, 0.45); }
.form .field [aria-invalid="true"] { border-color: var(--danger); }

.section--tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.qq__head { background: var(--navy); color: var(--white); padding: clamp(26px, 3.5vw, 44px) clamp(24px, 3vw, 44px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; }
.qq__head-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; }
.qq__head p { max-width: 460px; color: rgba(255, 255, 255, 0.75); }
.section--quick { padding-bottom: 0; }
#ecrire { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Zones tactiles : 44 px de haut pour les liens texte isolés ---------- */
.footer li a, .ocard dd a, .office a, .qq__office a:not(.btn), .hero__contact a, .credit a, .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
.footer li:not(:has(a)) { padding: 10px 0; }

/* ---------- Titres sans mot isolé en fin de ligne ---------- */
h1, h2, h3, .statement__text, .orgs__title { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Page confidentialité ---------- */
.legal { display: grid; gap: clamp(36px, 4vw, 56px); max-width: 820px; }
.legal__block { display: grid; gap: 14px; }
.legal__block h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; color: var(--ink); }
.legal__block p { color: var(--text); line-height: 1.65; }
.legal__block a, .qq__foot .muted a { text-decoration: underline; text-underline-offset: 3px; }
.legal__block a:hover, .qq__foot .muted a:hover { color: var(--brand); }
.footer__bottom a[href="confidentialite.html"] { display: inline-block; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.qq--page { box-shadow: none; }
.legal { max-width: 680px; }
@media (max-width: 599px) { .reveal-video__text .h-xl { font-size: 34px; } }
@media (max-width: 599px) { .stat { padding: 18px; } .stat__title { font-size: 22px; } }

/* ---------- Questions fréquentes (page Services) ---------- */
.faq__layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq__list { margin: 0; display: grid; gap: 12px; }
.faq__item { padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius); background: var(--sand); }
.faq__item dt { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; color: var(--ink); margin-bottom: 10px; }
.faq__item dd { margin: 0; color: var(--text); line-height: 1.6; max-width: 68ch; }
.faq__item a { text-decoration: underline; text-underline-offset: 3px; }
.faq__item a:hover { color: var(--brand); }
@media (max-width: 899px) { .faq__layout { grid-template-columns: 1fr; } }

/* ---------- Services : introduction et intitulés ---------- */
.svc__intro { color: var(--text); margin: -8px 0 24px; max-width: 540px; }
.svc__list strong { color: var(--ink); font-weight: 700; }

