/* TERRAZAC — site vitrine, une seule page.
   Charte : les deux bleus Zac (#0f5780, #cce8f7) et des neutres bleutés.
   Typographies de la plaquette : Open Sans pour les titres (un mot en gras),
   Karla pour le texte. Direction : sobre et haut de gamme, la matière portée
   par les photos, beaucoup de blanc. */

/* ---------------------------------------------------------------- Polices */
/* Hebergees sur le site (assets/fonts), pas chez Google : une connexion de
   moins, et aucune adresse IP de visiteur transmise a un tiers (RGPD).
   Polices variables : un fichier couvre toutes les graisses. Le jeu
   latin-ext n'est telecharge que si la page contient un de ses caracteres. */
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/karla-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/karla-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Karla"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/karla-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karla"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/karla-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  --blue: #0f5780;
  --blue-700: #0c4867;
  --blue-900: #082f45;
  --sky: #cce8f7;
  --sky-50: #eef7fc;
  /* Bleu acier des petites capitales : 4,9:1 au pire, sur le halo bleu clair */
  --steel: #3e6482;

  --ink: #13232e;
  --text: #3b4a54;
  --muted: #56666f; /* 4,7:1 sur le halo bleu clair, 5,4:1 sur --mist */
  --line: #d9e3ea;
  --mist: #f1f5f7;
  --paper: #fbfcfc;
  --white: #ffffff;

  --font-title: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 10vw, 152px);
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[data-menu="open"] { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px;
  background: var(--blue); color: var(--white);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------ Typographie */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  /* Filet du bas en fond, pas en bordure : il peut se tracer a l'apparition */
  background: linear-gradient(var(--eyebrow-line, var(--sky)) 0 0) left bottom / 100% 1px no-repeat;
  color: var(--steel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--blue); }
.eyebrow--plain { background: none; padding: 0; margin-bottom: 12px; }
.eyebrow--light { --eyebrow-line: rgba(204, 232, 247, .35); color: var(--sky); }
.eyebrow--light span { color: var(--white); }

.title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--blue);
}
.title strong { font-weight: 700; }
.title--light { color: var(--white); }
/* Titres sur une seule ligne des que la largeur le permet */
@media (min-width: 960px) {
  .title { white-space: nowrap; }
}

.lede {
  margin-top: 22px;
  max-width: 62ch;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text);
}

/* ---------------------------------------------------------------- Boutons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-900); }

.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--sky); }

.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.arrow-link .arrow {
  position: relative;
  width: 22px; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.arrow-link .arrow::after {
  content: "";
  position: absolute; right: 0; top: -3.5px;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.arrow-link:hover .arrow { width: 32px; }
.arrow-link--strong {
  font-family: var(--font-title);
  font-size: clamp(18px, 1.6vw, 22px);
}

/* ---------------------------------------------------------------- En-tete */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease),
              box-shadow .35s var(--ease);
}
/* Barre de lecture : la part de la page deja parcourue (ajoutee par le JS) */
.header__progress {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.header--solid .header__progress { opacity: 1; }
body[data-menu="open"] .header__progress { opacity: 0; }
.header--solid {
  background: rgba(251, 252, 252, .94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
body[data-menu="open"] .header { background: transparent; color: var(--white); box-shadow: none; backdrop-filter: none; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo : les gouttes du "a" descendent sous le nom ; on cale le nom sur
   la ligne du menu et les gouttes tombent vers le bas de l'en-tete. */
.wordmark {
  position: relative;
  display: block;
  margin-top: 18px;
  line-height: 0;
}
.wordmark__logo { width: 116px; height: auto; transition: opacity .35s var(--ease); }
.wordmark__logo--bleu { position: absolute; inset: 0; opacity: 0; }
.header--solid .wordmark__logo { opacity: 0; }
.header--solid .wordmark__logo--bleu { opacity: 1; }
body[data-menu="open"] .header .wordmark__logo { opacity: 1; }
body[data-menu="open"] .header .wordmark__logo--bleu { opacity: 0; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  opacity: .88;
  transition: opacity .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }

/* Sur la couverture, le bouton passe en blanc pour rester lisible */
.header:not(.header--solid) .nav__cta { background: var(--white); color: var(--blue); }
.header:not(.header--solid) .nav__cta:hover { background: var(--sky); }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger__bars { position: relative; display: block; width: 24px; height: 10px; margin: auto; }
.burger__bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger__bars span:first-child { top: 0; }
.burger__bars span:last-child { top: 8px; }
.burger[aria-expanded="true"] .burger__bars span:first-child { top: 4px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:last-child { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  background: var(--blue);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu[data-open="true"] { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.menu__list { display: grid; gap: 6px; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  font-family: var(--font-title);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 300;
  text-decoration: none;
}
.menu__link span { font-family: var(--font-text); font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--sky); }
.menu .btn { align-self: flex-start; }

@media (max-width: 1023px) {
  .nav__list, .nav__cta { display: none; }
  .burger { display: block; }
}
@media (min-width: 1024px) {
  .menu { display: none; }
}

/* ------------------------------------------------------------- Couverture */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(640px, 100svh);
  overflow: hidden;
  background: #1b130d;
  color: var(--white);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__shade {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 18, 27, .78) 0%, rgba(6, 18, 27, .5) 42%, rgba(6, 18, 27, .05) 72%),
    linear-gradient(0deg, rgba(6, 18, 27, .35), rgba(6, 18, 27, 0) 30%);
}
.hero__inner { position: relative; z-index: 2; padding-block: calc(var(--header-h) + 48px) 96px; }
.hero__text { max-width: 640px; }

.hero__title { font-family: var(--font-title); }
.hero__logo { display: block; width: clamp(220px, 62vw, 520px); height: auto; }
.hero__tagline {
  margin-top: 18px;
  font-size: clamp(21px, 2.3vw, 32px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}
.hero__actions { margin-top: 36px; }
.hero__card {
  max-width: 420px;
  margin: 36px 0 0;
  padding: 20px 24px;
  background: rgba(15, 87, 128, .92);
  border-left: 3px solid var(--sky);
  font-size: 17px;
  line-height: 1.5;
}
.hero__card p + p { margin-top: 4px; color: rgba(255, 255, 255, .9); }

.hero__hand {
  position: absolute;
  z-index: 1;
  right: calc(max(0px, (100vw - var(--container)) / 2) - 4vw);
  bottom: -12%;
  width: auto;
  height: 143%;
  max-width: none;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35));
  animation: hand-in 1.2s var(--ease) both .1s;
  pointer-events: none;
}
@keyframes hand-in {
  from { opacity: 0; transform: translateY(40px); }
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 24px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none;
}
.hero__scroll span {
  width: 1px; height: 38px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .9));
  animation: scroll-cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scroll-cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 959px) {
  .hero { align-items: flex-start; }
  .hero__inner { padding-block: calc(var(--header-h) + 24px) 0; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(6, 18, 27, .8) 0%, rgba(6, 18, 27, .55) 45%, rgba(6, 18, 27, .1) 75%);
  }
  .hero__actions { margin-top: 24px; }
  .hero__card { margin: 24px 0 0; padding: 16px 18px; font-size: 16px; }
  .hero__hand { right: -7vw; bottom: -3%; height: 60%; opacity: .98; }
  .hero__scroll { display: none; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .hero__hand { right: 0; height: 79%; }
}
@media (max-width: 959px) and (max-height: 760px) {
  .hero__card { display: none; }
}

/* --------------------------------------------------------------- Sections */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }

/* ---------------------------------------------------------------- Fonds */
/* Eclats de TERRAZAC en suspension : un canvas par bloc data-flakes, pose
   par le JS sous le contenu (z-index negatif dans un contexte isole).
   Reserves aux rendus, pour que l'effet reste un temps fort. */
.has-flakes { position: relative; isolation: isolate; }
.flakes {
  position: absolute; inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Halos de lumiere, fixes, sur les fonds gris-bleu et bleu nuit */
.section--mist, .matieres { position: relative; isolation: isolate; overflow: hidden; }
.section--mist::before, .matieres::before {
  content: "";
  position: absolute;
  inset: -25% -15%;
  z-index: -2;
  pointer-events: none;
}
.section--mist::before {
  background:
    radial-gradient(36% 30% at 16% 20%, rgba(204, 232, 247, .9), transparent 70%),
    radial-gradient(30% 26% at 86% 76%, rgba(204, 232, 247, .7), transparent 70%),
    radial-gradient(34% 28% at 62% 40%, rgba(255, 255, 255, .9), transparent 70%);
}
.matieres::before {
  background:
    radial-gradient(38% 32% at 18% 18%, rgba(15, 87, 128, .7), transparent 70%),
    radial-gradient(30% 28% at 84% 82%, rgba(15, 87, 128, .55), transparent 70%),
    radial-gradient(26% 22% at 60% 50%, rgba(204, 232, 247, .08), transparent 70%);
}
/* Profondeur au defilement : decalage --py calcule par le JS */
[data-parallax] { translate: 0 var(--py, 0px); }

.sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head__split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.sec-head__split > div { flex: 1 1 520px; }

/* -------------------------------------------------------------- L'origine */
.origine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.statement {
  font-family: var(--font-title);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  max-width: 24ch;
}
.statement strong { font-weight: 700; color: var(--blue); }

.facts { margin-top: 40px; border-top: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 8px 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-family: var(--font-title);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}
.fact dd { align-self: center; color: var(--text); }

.origine__photo { overflow: hidden; border-radius: var(--radius); }
.origine__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  scale: 1.12; /* de la marge pour la profondeur au defilement */
}

/* Les chiffres qui defilent gardent la largeur de leur valeur finale */
.count { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

.gisements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(72px, 9vw, 128px);
}
.gisement__img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
  padding: 24px;
  background: var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
}
.gisement__img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.gisement:hover .gisement__img img { transform: scale(1.05); }
.gisement h3 {
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
}
.gisement p { max-width: 36ch; }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(32px, 4vw, 56px);
  gap: 32px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  counter-reset: step;
}
.process__step { position: relative; padding-top: 28px; }
.process__step::before {
  content: "";
  position: absolute; left: 0; right: -32px; top: 6px;
  height: 1px;
  background: rgba(204, 232, 247, .35);
  transform-origin: left;
}
.process__step:last-child::before { right: 0; }
.process__step::after {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sky);
}
.process__num { display: block; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--sky); }
.process h3 {
  margin: 8px 0 6px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
}
.process p { color: rgba(255, 255, 255, .86); font-size: 16px; }

/* ------------------------------------------- Partenaire ETNISI (mentions) */
/* Le triptyque d'ETNISI, sous les reperes du concept, aux couleurs du site */
.venn {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}
.venn__svg { display: block; width: 100%; height: auto; }
.venn__zone { fill: var(--sky); }
.venn__rings { stroke: var(--blue); }
.venn__labels { fill: var(--blue); font-family: var(--font-title); font-size: 19px; font-weight: 700; }
.venn figcaption { max-width: 34ch; font-size: 15px; font-style: italic; color: var(--muted); }
.fact dd a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }

/* Les trois phrases d'ETNISI, sous les volets des rendus */
.credo { margin-top: clamp(56px, 7vw, 96px); }
.credo blockquote { margin: 0; }
.credo__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.credo__list li {
  padding-top: 20px;
  border-top: 1px solid rgba(204, 232, 247, .35);
  font-family: var(--font-title);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
}
.credo__list strong { font-weight: 700; }
.credo figcaption {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
}

.specs-note { max-width: 70ch; margin-top: 16px; font-size: 15px; font-style: italic; color: var(--muted); }

.footer__partner { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.footer__partner img { flex: none; width: 64px; height: auto; }

@media (max-width: 639px) {
  .venn { grid-template-columns: 1fr; gap: 16px; }
  .venn__svg { max-width: 260px; }
  .credo__list { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------------------------------------------------------- Les references */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.mosaic__item { grid-column: span 4; }
.mosaic__item--boutique { grid-column: span 8; }
.mosaic__item--meubles { grid-column: span 4; }
.mosaic__item--support { grid-column: span 8; }
.visit { grid-column: span 4; }

.zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.zoom:hover img { transform: scale(1.035); }
.zoom::after {
  content: "Agrandir";
  position: absolute; right: 12px; bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }

.mosaic__item .zoom { aspect-ratio: 3 / 4; }
/* La boutique prend la hauteur de la rangee, legende deduite : la photo
   est posee en absolu pour ne pas imposer sa propre hauteur (sinon la
   legende deborde sur la rangee suivante). */
.mosaic__item--boutique { display: flex; flex-direction: column; }
.mosaic__item--boutique .zoom { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
.mosaic__item--boutique .zoom img { position: absolute; inset: 0; }
.mosaic__item--support .zoom { aspect-ratio: 2.4 / 1; }

.mosaic figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}

.visit {
  align-self: start;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.visit h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue);
}
.visit__address { margin: 6px 0 18px; }
.hours { width: 100%; margin-bottom: 22px; font-size: 15px; }
.hours th, .hours td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.hours th { padding-right: 16px; font-weight: 700; color: var(--ink); text-align: left; white-space: nowrap; }
.hours td { text-align: right; }

/* --------------------------------------------------------------- La gamme */
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px) clamp(20px, 2.6vw, 40px);
}
.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
  background: var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
/* La carte n'est pas un lien : elle ne se souleve pas, seule la photo
   s'approche un peu */
.product:hover .product__media img { transform: scale(1.03); }
.product__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--steel);
}
.product h3 {
  margin: 6px 0 8px;
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.product p { max-width: 40ch; }
.product__tag {
  margin-top: 12px;
  font-weight: 700;
  color: var(--blue);
}
.badge {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.product--soon .product__media img { filter: saturate(.85); }

/* ------------------------------------------------------------ Proprietes */
/* overflow-y : les lignes qui montent a l'apparition ne font pas surgir
   de barre de defilement verticale */
.specs-wrap { overflow-x: auto; overflow-y: hidden; }
.specs {
  width: 100%;
  min-width: 520px;
  font-size: 17px;
}
.specs th, .specs td {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.specs thead th {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}
.specs thead td { border-bottom: 2px solid var(--blue); }
.specs tbody th { width: 26%; font-weight: 700; color: var(--ink); }
.specs tbody td { width: 37%; }
.specs tbody tr { transition: background-color .2s var(--ease); }
.specs tbody tr:hover { background: rgba(204, 232, 247, .35); }

.tests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(32px, 5vw, 80px);
  margin-top: 40px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
}
.tests__title {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
}
.tests li { padding: 6px 0; color: rgba(255, 255, 255, .88); }
.tests strong { color: var(--white); }

/* ----------------------------------------------- Les rendus : polyptyque */
/* Quatre volets verticaux sur fond bleu nuit : la matiere claire ressort,
   et le recadrage serre la montre a l'echelle. Les deux volets du centre
   sont plus grands ; les legendes partagent la meme ligne de base. */
.matieres { background: var(--blue-900); color: var(--white); }
.matieres__head { margin-bottom: clamp(48px, 6vw, 88px); }
.matieres__intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
}
.matieres .lede { margin-top: 0; color: rgba(255, 255, 255, .74); }

/* Volets au format 2:3, dont la hauteur suit la fenetre : l'ensemble
   tient d'un seul regard et ne deborde jamais en largeur (34vw : quatre
   volets et trois gouttieres tiennent des 960 px). Les volets des bords
   font 82 % de ceux du centre. La sous-grille aligne les
   legendes, avec ou sans sous-titre. */
.polyptyque {
  --h: clamp(300px, min(72vh, 34vw), 620px);
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: auto auto;
  justify-content: center;
  column-gap: clamp(14px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.panneau {
  --ph: calc(var(--h) * .82);
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
  width: calc(var(--ph) * 2 / 3);
}
.panneau--centre { --ph: var(--h); }
.panneau__img {
  align-self: end;
  height: var(--ph);
  border-radius: 2px;
  background: var(--blue-700);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
/* Filet clair a l'interieur du cadre, comme un passe-partout */
.panneau__img::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  pointer-events: none;
}
.panneau__img:hover img { transform: scale(1.06); }
.panneau__img::after { z-index: 2; }

.panneau__txt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(204, 232, 247, .28);
}
.panneau__lettre {
  grid-row: span 2;
  font-family: var(--font-title);
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 300;
  line-height: .9;
  color: var(--sky);
}
.panneau__titre {
  font-family: var(--font-title);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--white);
}
.panneau__desc {
  margin-top: 4px;
  font-size: 15px;
  color: rgba(255, 255, 255, .66);
}

/* Tablette et mobile : un bandeau a faire defiler, un panneau a la fois,
   le suivant deborde pour inviter au geste. */
@media (max-width: 959px) {
  .matieres__intro { grid-template-columns: 1fr; }
  .polyptyque {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: rgba(204, 232, 247, .35) transparent;
  }
  .panneau { display: block; flex: 0 0 min(74vw, 360px); width: auto; scroll-snap-align: start; }
  .panneau__img { height: auto; aspect-ratio: 2 / 3; }
}

/* --------------------------------------------------------------- Contact */
.contact {
  position: relative;
  padding-block: clamp(96px, 12vw, 180px);
  isolation: isolate;
  overflow: hidden;
}
.contact__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  /* La matiere en fond glisse avec le defilement : de la marge pour le decalage */
  scale: 1.16;
}
.contact__card {
  max-width: 900px;
  padding: clamp(32px, 5vw, 64px);
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(8, 47, 69, .25);
}
.contact__title { font-size: clamp(30px, 3.4vw, 44px); }
.contact__lede { margin: 18px 0 32px; font-size: 19px; color: rgba(255, 255, 255, .9); }
.contact__mail { margin-top: 20px; }
.contact__mail a { color: var(--sky); text-underline-offset: 4px; }
.contact__mail a:hover { color: var(--white); }

/* ---------------------------------------------------------- Pied de page */
.footer {
  padding-block: clamp(72px, 8vw, 112px) 32px;
  background: var(--blue-900);
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 56px clamp(48px, 8vw, 128px);
}
.wordmark--footer { margin-bottom: 36px; line-height: 0; }
.wordmark--footer img { width: 200px; height: auto; }
.footer__title {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
}
.footer__about p { max-width: 46ch; }
.footer__about p + p { margin-top: 12px; }
.footer__address { margin-top: 28px; font-style: normal; color: var(--white); line-height: 1.7; }
.footer a { color: var(--white); text-underline-offset: 4px; }
.footer a:hover { color: var(--sky); }

.footer__team .footer__title { margin-top: 70px; }
.crew { margin: 0 0 40px; max-width: 435px; }
.crew__photo { width: 100%; height: auto; border-radius: var(--radius); }
.crew__cap { margin-top: 10px; font-size: 14px; font-style: italic; }
.footer__subtitle { margin-bottom: 20px; color: var(--white); font-size: 17px; font-weight: 700; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.person__photo {
  width: 112px; height: 112px;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--sky);
}
.person__name { color: var(--white); font-weight: 700; font-size: 17px; }
.person__role { margin-bottom: 4px; font-size: 15px; }
.person__mail { font-size: 15px; overflow-wrap: anywhere; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid rgba(204, 232, 247, .18);
  font-size: 14px;
}
.footer__bottom p { margin: 0; }

/* ------------------------------------------------------------ Lightbox */
.lightbox {
  width: min(92vw, 1400px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 20, 28, .9); }
/* L'image laisse la place du bouton Fermer au-dessus et de la legende
   en dessous, quelle que soit la hauteur de l'ecran */
.lightbox__figure img {
  width: 100%;
  max-height: calc(100vh - 192px);
  max-height: calc(100svh - 192px);
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__cap { margin-top: 12px; color: rgba(255, 255, 255, .88); text-align: center; font-style: italic; }
/* Accroche a l'ecran, pas a la photo : toujours visible */
.lightbox__close {
  position: fixed; right: 16px; top: 16px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------- Apparitions */
/* Courtes et discretes : un bloc est lisible en moins d'une seconde.
   Reperes : bloc 0,6 s, titre complet 0,75 s au plus, listes 0,5 s par
   element. */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); }
.reveal-on .reveal.is-in {
  animation: reveal .6s var(--ease) both;
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Titres : chaque mot monte dans sa fenetre (.w, posee par le JS). Les
   marges negatives compensent la fenetre agrandie pour les accents et les
   jambages : la ligne ne bouge pas. */
.w {
  display: inline-block;
  overflow: hidden;
  padding: .1em 0 .16em;
  margin: -.1em 0 -.16em;
  vertical-align: top;
}
.w > span { display: inline-block; }
.reveal-on .is-in .w > span {
  animation: word-up .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 25ms + 50ms);
}
@keyframes word-up {
  from { translate: 0 110%; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 16px; }
}

/* Le filet du sur-titre se trace, le chapeau suit le titre */
.reveal-on .is-in .eyebrow:not(.eyebrow--plain) { animation: line-draw .7s var(--ease) both; }
@keyframes line-draw {
  from { background-size: 0% 1px; }
}
.reveal-on .is-in .lede { animation: rise .6s var(--ease) both .15s; }
.reveal-on .is-in .sec-head__split .arrow-link { animation: rise .6s var(--ease) both .2s; }
.reveal-on .is-in .panneau__lettre { animation: rise .6s var(--ease) both .15s; }

/* Listes : un element apres l'autre (--i : rang, pose par le JS). Les
   tableaux et les essais apparaissent d'un bloc : ils se lisent ensemble. */
.reveal-on .is-in :is(.fact, .process__step) {
  animation: rise .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}
/* Etapes de fabrication : le fil se tire d'une etape a la suivante */
.reveal-on .process.is-in .process__step { animation-delay: calc(var(--i, 0) * 140ms + 100ms); }
.reveal-on .process.is-in .process__step::before {
  animation: line-x .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 140ms + 150ms);
}
.reveal-on .process.is-in .process__step::after {
  animation: dot-in .4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 140ms + 100ms);
}
@keyframes line-x {
  from { transform: scaleX(0); }
}
@keyframes dot-in {
  from { transform: scale(0); }
}

/* Photos : l'image se pose en dezoomant legerement dans son cadre.
   Remplissage « backwards » seulement : une fois fini, rien ne reste
   (pas de zoom qui bloquerait celui du survol). */
.reveal-on .is-in :is(.product__media, .zoom, .origine__photo) img {
  animation: settle .9s var(--ease) backwards;
}
@keyframes settle {
  from { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1099px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic__item, .mosaic__item--meubles, .visit { grid-column: span 6; }
  .mosaic__item--boutique, .mosaic__item--support { grid-column: span 12; }
  .mosaic__item--boutique .zoom { flex: none; aspect-ratio: 3 / 2; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__step::before { right: 0; }
}

@media (max-width: 959px) {
  .origine { grid-template-columns: 1fr; }
  .origine__photo { max-width: 460px; }
  .fact { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
  .gisements { grid-template-columns: 1fr; gap: 40px; }
  .gisement { display: grid; grid-template-columns: 140px 1fr; gap: 0 20px; align-items: center; }
  .gisement__img { grid-row: span 2; margin: 0; padding: 12px; }
  .gisement h3 { align-self: end; }
  .gisement p { align-self: start; }
  .tests { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__team .footer__title { margin-top: 0; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  .products { grid-template-columns: 1fr; }
  .mosaic { gap: 28px 12px; }
  .mosaic__item, .mosaic__item--meubles { grid-column: span 6; }
  .mosaic__item--boutique, .mosaic__item--support, .visit { grid-column: span 12; }
  .mosaic figcaption { font-size: 14px; }
  .process { grid-template-columns: 1fr; gap: 24px; }
  .team { grid-template-columns: 1fr; }
  .person { display: flex; align-items: center; gap: 18px; }
  .person__photo { flex: none; width: 88px; height: 88px; margin: 0; }
  .specs { min-width: 0; font-size: 15px; }
  .specs th, .specs td { padding: 12px 10px 12px 0; }
  .specs thead th { font-size: 15px; }
  .specs tbody th { width: 30%; }
  .sec-head__split .arrow-link--strong { font-size: 18px; }
}

/* ---------------------------------------------- Sous-titre du H1 (SEO) */
.hero__sub {
  display: block;
  margin-top: 16px;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: .01em;
}

/* -------------------------------------------- Pied de page : liens bas */
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ------------------------------------ Pages simples (mentions, 404) */
.page { padding-block: calc(var(--header-h) + clamp(48px, 7vw, 96px)) var(--section); }
.page .lede { margin-bottom: 8px; }
.page__actions { align-items: center; gap: 12px 28px; margin-top: 32px; }
.legal { max-width: 760px; }
.legal:not(.story) > .title { font-size: clamp(30px, 3.2vw, 40px); }
.legal h2 {
  margin: 48px 0 12px;
  font-family: var(--font-title);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 700;
  color: var(--blue);
}
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a:not(.btn) { color: var(--blue); }
.todo { padding: 0 6px; background: #fff1bf; color: var(--ink); font-weight: 700; }

/* Page « Notre histoire » : texte et photo detouree cote a cote, en
   alternance, sur le bleu clair de la presentation Zac */
.story { max-width: 1080px; }
.story > .lede { max-width: 760px; }
.story__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}
.story__row--flip { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.story__row--flip .story__img { order: -1; }
.story__row h2:first-child, .story__end h2:first-child { margin-top: 0; }
.story__end { max-width: 760px; margin-top: clamp(56px, 7vw, 96px); }
.story__img {
  margin: 0;
  background: var(--sky-50);
  border-radius: var(--radius);
  overflow: hidden;
}
.story__img img { width: 100%; height: auto; }
.story__img--wide { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 799px) {
  .story__row, .story__row--flip { grid-template-columns: 1fr; }
  .story__row--flip .story__img { order: 0; }
  .story__row .story__img { max-width: 380px; }
}
