/* =========================================================
   MGIB — feuille de style principale
   ========================================================= */

/* Titres : Juana (Fontspring, version DEMO sans accents : licence web à acheter).
   Texte : Satoshi (Indian Type Foundry, Fontshare), variable 300 → 900. */
@font-face{
  font-family: "Juana";
  src: url("../fonts/juana-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Juana";
  src: url("../fonts/juana-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Juana";
  src: url("../fonts/juana-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Satoshi";
  src: url("../fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ----- Variables ----- */
:root{
  --navy: #001C36;
  --navy-2: #0a2a47;
  --ink: #17233B;
  --gold: #CBA46B;
  --white: #ffffff;
  --text: #333333;

  /* Titres en Juana (plus d'italique : --font-script = Juana aussi), texte en Satoshi */
  --font-serif: "Juana", Georgia, "Times New Roman", serif;
  --font-script: var(--font-serif);
  --font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 2000px;
}

/* ----- Base ----- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}
body{
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas{ display: block; max-width: 100%; }
h1, h2, h3, p{ margin: 0; }
button, input, textarea{ font: inherit; }

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link{
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus{ transform: none; }

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

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  color: var(--white);
  transition: transform .5s var(--ease-out), background-color .4s ease, backdrop-filter .4s ease;
}
/* Hors du hero : fond bleu translucide pour rester lisible */
.site-header.is-solid{
  background: rgba(0, 28, 54, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* Se cache quand on descend, revient quand on remonte */
.site-header.is-hidden{ transform: translateY(-100%); }
.menu-open .site-header{
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}
.site-header-inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max);
  height: 92px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.7vw, 74px);
  transition: height .4s var(--ease-out);
}
.site-header.is-solid .site-header-inner{ height: 76px; }

.hdr-menu-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease;
}
.hdr-menu-btn:hover{
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
}
/* Icône menu (3 barres) → croix à l'ouverture */
.hdr-burger{ flex: 0 0 auto; overflow: visible; }
.hdr-burger rect{
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .5s var(--ease-out), opacity .3s ease;
}
.menu-open .hdr-burger rect:nth-child(1){ transform: translateY(5.09px) rotate(45deg); }
.menu-open .hdr-burger rect:nth-child(2){ opacity: 0; transform: scaleX(0); }
.menu-open .hdr-burger rect:nth-child(3){ transform: translateY(-5.09px) rotate(-45deg); }

.hdr-logo{
  display: block;
  line-height: 0;
}
.hdr-logo-img{
  width: auto;
  height: 54px;
  transition: height .4s var(--ease-out);
}
.site-header.is-solid .hdr-logo-img{ height: 46px; }

.hdr-right{
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

/* ----- Choix de la langue ----- */
.hdr-lang{ position: relative; }
.hdr-lang-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease;
}
.hdr-lang-btn:hover,
.hdr-lang.is-open .hdr-lang-btn{
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
}
.hdr-lang-chevron{ transition: transform .3s var(--ease-out); }
.hdr-lang.is-open .hdr-lang-chevron{ transform: rotate(180deg); }
.hdr-lang-list{
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(0, 28, 54, .08);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 28, 54, .18);
  list-style: none;
}
.hdr-lang-list a{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 3px;
  color: rgba(0, 28, 54, .7);
  font-size: 14px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.hdr-lang-list a:hover{ background: rgba(0, 28, 54, .05); color: var(--navy); }
.hdr-lang-list a[aria-current]{ color: var(--navy); font-weight: 500; }
.hdr-lang-code{
  width: 22px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
}

.hdr-members{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--white);
  font-size: 15px;
  text-decoration: none;
  transition: background-color .3s ease;
}
.hdr-members:hover{ background: #b8925b; }
.hdr-members svg{
  flex: 0 0 auto;
  width: 12px;
  height: 15px;
}

@media (max-width: 767px){
  .site-header-inner{ height: 72px; }
  .site-header.is-solid .site-header-inner{ height: 64px; }
  .hdr-menu-btn,
  .hdr-members{
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  .hdr-menu-label,
  .hdr-members-label{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hdr-logo-img,
  .site-header.is-solid .hdr-logo-img{ height: 42px; }
  .hdr-right{ gap: 8px; }
  .hdr-lang-btn{ height: 44px; padding: 0 10px; gap: 6px; font-size: 13px; }
}
@media (max-width: 420px){
  .hdr-logo-img,
  .site-header.is-solid .hdr-logo-img{ height: 34px; }
}

/* ----- Menu plein écran ----- */
.site-menu{
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  overflow-y: auto;
  background: var(--navy);
  color: var(--white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s cubic-bezier(.77,0,.18,1);
}
.site-menu[hidden]{ display: none; }
.site-menu.is-open{ clip-path: inset(0 0 0 0); }
.site-menu-inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px clamp(24px, 8vw, 120px) 40px;
}
.site-menu-list{
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu-list li{
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-menu-list a{
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(10px, 1.8vh, 18px) 0;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(60%);
  transition: opacity .7s var(--ease-out), filter .7s var(--ease-out), transform .9s var(--ease-out), color .3s ease;
  transition-delay: 0s;
}
.site-menu.is-open .site-menu-list a{
  opacity: 1;
  filter: none;
  transform: none;
  transition-delay: calc(.35s + var(--i, 0) * .07s);
}
.site-menu-num{
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .1em;
}
.site-menu-text{
  font-family: var(--font-serif);
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 1.1;
  transition: transform .5s var(--ease-out);
}
.site-menu-list a:hover,
.site-menu-list a:focus-visible{ color: var(--gold); }
.site-menu-list a:hover .site-menu-text{ transform: translateX(12px); }
.site-menu-footer{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 6vh, 64px);
  color: rgba(255,255,255,.6);
  font-size: 14px;
  opacity: 0;
  transition: opacity .6s ease;
}
.site-menu.is-open .site-menu-footer{
  opacity: 1;
  transition-delay: .8s;
}
.site-menu-footer a{
  color: var(--gold);
  text-decoration: none;
}
.site-menu-footer a:hover{ text-decoration: underline; }
.menu-open{ overflow: hidden; }

/* =========================================================
   HERO — séquence d'images au scroll
   ========================================================= */
.ss-wrapper{
  position: relative;
  width: 100%;
  max-width: var(--max);
  height: 500vh; /* recalculé en JS */
  margin: 0 auto;
}
.ss-sticky{
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.ss-content-inner{
  position: absolute;
  inset: 0;
  will-change: opacity;
}
.ss-poster,
.ss-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ss-poster{ object-fit: cover; }
.ss-canvas{ opacity: 0; }
.ss-canvas.is-ready{ opacity: 1; }

.ss-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 64%) 0%, rgb(0 0 0 / 54%) 50%, rgb(0 0 0 / 76%) 100%);
}

.ss-text{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  text-align: center;
  pointer-events: none;
  transition: opacity .7s ease;
}
.js .ss-text{ opacity: 0; }
.js .ss-text.is-active{ opacity: 1; }
.no-js-hidden,
html:not(.js) .ss-text[data-text-slot="2"]{ display: none; }

.ss-text-inner{
  color: var(--white);
  font-weight: 400;
  letter-spacing: .01em;
}
.ss-text-line1,
.ss-text-line2{
  display: block;
  line-height: 1.15;
}
.ss-text-line1{
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 6vw, 80px);
}
.ss-text-line2{
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 80px);
}

/* Moteur CBA Reveal : unités (mots ou lettres) en fondu + flou.
   Masquées seulement une fois découpées par le JS. */
.cba-reveal-nowrap{ white-space: nowrap; }
.cba-reveal-word{
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
}
@keyframes cbaRevealWordIn{
  to{ opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce){
  .cba-reveal-word{
    opacity: 1 !important;
    filter: none !important;
    animation: none !important;
  }
}

/* Lettres du titre du carrousel (sortie / entrée en fondu + flou) */
.rl-word{ display: inline-block; white-space: nowrap; }
.rl-letter{
  display: inline-block;
  transition: opacity .9s var(--ease-out), filter .9s var(--ease-out);
}
.rl-letter.is-hidden{
  opacity: 0;
  filter: blur(12px);
}

.ss-footer{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 2;
  height: 20px;
  pointer-events: none;
  color: var(--white);
  font-size: 14px;
}
.ss-footer-side{
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: opacity .8s ease .45s;
}
.ss-footer-side svg{ flex: 0 0 auto; }
.ss-footer-left{ left: 40px; }
.ss-footer-right{ right: 40px; }
.ss-footer-center{
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity .8s ease;
}
.ss-footer-bar{
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,.6);
  transform-origin: top;
  animation: ss-bar 2s ease-in-out infinite;
}
@keyframes ss-bar{
  0%{ transform: scaleY(0); }
  50%{ transform: scaleY(1); transform-origin: top; }
  51%{ transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}
.js .ss-footer-side,
.js .ss-footer-center{ opacity: 0; }
.js .ss-footer.is-active .ss-footer-side,
.js .ss-footer.is-active .ss-footer-center{ opacity: 1; }
.js .ss-footer.is-active.is-scrolled .ss-footer-center{ opacity: 0; }

.ss-loader{
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 3;
  width: 40%;
  max-width: 320px;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .4s ease;
}
html:not(.js) .ss-loader,
.ss-loader.is-hidden{ opacity: 0; }
.ss-loader-bar{
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
}
.ss-loader-fill{
  width: 100%;
  height: 100%;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s ease-out;
}

@media (max-width: 767px){
  .ss-footer-side{ display: none; }
  .ss-text{ padding: 0 5vw; }
  .ss-text-line1{ font-size: clamp(32px, 9.5vw, 56px); }
  .ss-text-line2{ font-size: clamp(32px, 9.5vw, 56px); }
}

/* ----- Apparitions au scroll (fondu + flou) ----- */
.js [data-reveal]{
  opacity: 0;
  transition: opacity 1s var(--ease-out), filter 1s var(--ease-out);
}
/* `html` en plus : doit l'emporter sur les flous de départ propres
   à chaque section (.js .xxx[data-reveal]), déclarés plus bas. */
html.js [data-reveal].is-visible{ opacity: 1; filter: none; }

/* =========================================================
   MGIB (institution) — titre à gauche, texte à droite,
   puis bandeau de photos qui défile à l'infini
   ========================================================= */
.ss-intro{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  /* Remonte d'un écran : glisse par-dessus le hero encore épinglé */
  margin: -100vh auto 0;
  padding: clamp(80px, 11vw, 160px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
  background: var(--white);
}
.ss-intro-text{
  display: grid;
  /* Titre à sa largeur naturelle (sur 2 lignes), texte dans le reste */
  grid-template-columns: max-content minmax(0, 480px);
  justify-content: space-between;
  align-items: end;
  gap: clamp(32px, 6vw, 120px);
  padding: 0 6vw;
}
.js .ss-intro-text[data-reveal]{ filter: blur(12px); }
.ss-intro-eyebrow{
  margin-bottom: 16px;
  color: #000;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ss-intro-title{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #000;
  font-weight: 400;
  line-height: 1.15;
}
.ss-intro-title-serif{
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 64px);
}
.ss-intro-title-script{
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 64px);
}
.ss-intro-title > span{ white-space: nowrap; }
.ss-intro-body{ max-width: 480px; }
.ss-intro-paragraph{
  color: #000;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
}

/* Bandeau infini : deux listes identiques côte à côte, la piste glisse
   de -50 % puis repart de zéro sans saut visible. */
.mq{
  --mq-height: clamp(240px, 30vw, 480px);
  --mq-gap: 12px;
  margin-top: clamp(56px, 7vw, 100px);
  overflow: hidden;
}
.mq-track{
  display: flex;
  width: max-content;
  animation: mqScroll 60s linear infinite;
}
.mq:hover .mq-track{ animation-play-state: paused; }
.mq-list{
  display: flex;
  gap: var(--mq-gap);
  margin: 0;
  padding: 0 var(--mq-gap) 0 0;
  list-style: none;
}
.mq-item{
  flex: 0 0 auto;
  height: var(--mq-height);
  overflow: hidden;
}
.mq-item img{
  width: auto;
  height: 100%;
  object-fit: cover;
}
@keyframes mqScroll{
  to{ transform: translateX(-50%); }
}
/* Mouvement réduit : pas d'animation, défilement manuel à la place */
@media (prefers-reduced-motion: reduce){
  .mq{ overflow-x: auto; }
  .mq-track{ animation: none; }
}
@media (max-width: 900px){
  .ss-intro-text{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ss-intro-title > span{ white-space: normal; }
}
@media (max-width: 767px){
  .mq{
    --mq-height: 220px;
    --mq-gap: 8px;
  }
  .mq-track{ animation-duration: 40s; }
}

/* =========================================================
   NOTRE CONVICTION
   ========================================================= */
.ss-card{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
}
.ss-card-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) 6vw;
}
.ss-card-title-group{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.js .ss-card-title-group[data-reveal]{ filter: blur(14px); }
.ss-card-eyebrow{
  margin-bottom: clamp(14px, 2.2vh, 22px);
  color: rgba(0,0,0,.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ss-card-title{
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000;
  font-weight: 400;
  line-height: 1.25;
}
.ss-card-title-serif{
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 50px);
}
.ss-card-title-script{
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 50px);
}

.ss-card-columns{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 14px);
  width: 100%;
}
.ss-card-col{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: clamp(20px, 2.2vw, 32px);
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-2);
  text-align: left;
}
.ss-card-col::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 35%, rgba(0,0,0,.15) 70%, rgba(0,0,0,0) 100%);
}
.js .ss-card-col[data-reveal]{ transition-duration: .9s; }
.js .ss-card-col:nth-child(2)[data-reveal]{ transition-delay: .18s; }
.js .ss-card-col:nth-child(3)[data-reveal]{ transition-delay: .36s; }

.ss-card-col-image{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.ss-card-col:hover .ss-card-col-image{ transform: scale(1.04); }
.ss-card-col-title,
.ss-card-col-text{ position: relative; z-index: 2; }
.ss-card-col-title{
  margin-bottom: 10px;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
}
.ss-card-col-text{
  max-width: 360px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1024px){
  .ss-card-inner{
    gap: clamp(20px, 3.5vh, 36px);
    padding: 48px 5vw;
  }
  .ss-card-col{ padding: 20px; }
}
@media (max-width: 767px){
  .ss-card-columns{
    display: flex;
    gap: 10px;
    margin: 0 -5vw;
    padding: 0 5vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 5vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ss-card-columns::-webkit-scrollbar{ display: none; }
  .ss-card-col{
    flex: 0 0 82%;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }
}

/* =========================================================
   CRÉEZ DES CONNEXIONS — carrousel
   ========================================================= */
.ccn-wrapper{
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(100px, 11vw, 180px) 6vw;
  overflow: hidden;
  background: var(--white);
}
.ccn-decor{
  position: absolute;
  top: 4vh;
  bottom: 4vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
}
.ccn-decor-left{ left: clamp(16px, 4vw, 90px); }
.ccn-decor-right{ right: clamp(16px, 4vw, 90px); }
.ccn-rose{
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
}
.ccn-line{
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, rgba(203,164,107,.3), rgba(203,164,107,0));
}
.ccn-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.ccn-eyebrow{
  margin-bottom: .6rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(.85rem, .95vw, 1rem);
}
.ccn-stage{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 70px);
  width: 100%;
}
.ccn-slide-title{
  min-height: 1.1em;
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}
.ccn-slide-title .rl-letter{ transition-duration: .45s; transition-timing-function: ease; }
.ccn-carousel{
  width: 100%;
  max-width: 860px;
}
.ccn-carousel-image{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  background: #e9e5dc;
}
.ccn-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.ccn-slide-b{ transform: translateX(100%); }
.ccn-slide:not([src]){ visibility: hidden; }

.ccn-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(16px, 2.2vw, 26px);
  margin-bottom: clamp(40px, 6vw, 70px);
}
.ccn-arrow{
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: opacity .2s ease;
}
.ccn-arrow:hover{ opacity: .6; }
.ccn-arrow-prev svg{ transform: scaleX(-1); }
.ccn-progress{
  position: relative;
  width: 220px;
  max-width: 50vw;
  height: 1px;
}
.ccn-progress-track{
  position: absolute;
  inset: 0;
  background: rgba(23,35,59,.15);
}
.ccn-progress-fill{
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}
.ccn-description{
  max-width: 600px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.5;
}
/* Lignes de description (découpées en JS) */
.ccn-desc-mask{
  display: block;
  overflow: hidden;
}
.ccn-desc-line{
  display: block;
  transform: translateY(0);
  transition: transform .8s cubic-bezier(.215,.61,.355,1);
}
.ccn-desc-line.is-below{ transform: translateY(110%); transition: none; }
.ccn-desc-line.is-above{
  transform: translateY(-110%);
  transition-duration: .48s;
  transition-timing-function: cubic-bezier(.55,.055,.675,.19);
}

@media (max-width: 1000px){
  .ccn-decor{ display: none; }
  .ccn-wrapper{ padding: 80px 6vw; }
  .ccn-stage{ gap: 24px; }
  .ccn-eyebrow{ margin-bottom: .3rem; }
  .ccn-slide-title{ font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .ccn-carousel{ max-width: 100%; }
  .ccn-nav{ margin-top: 8px; margin-bottom: 20px; }
  .ccn-description{
    max-width: 100%;
    font-size: 14px;
    line-height: 1.45;
  }
}

/* =========================================================
   GALERIE SPOTLIGHT
   ========================================================= */
.sg-wrapper{
  position: relative;
  width: 100%;
  max-width: var(--max);
  height: 340vh; /* recalculé en JS */
  margin: 0 auto;
}
.sg-sticky{
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0f0f0f;
}
.sg-inner{
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.sg-gallery{
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 1rem;
  width: calc(300% + 2rem);
  height: calc(300% + 2rem);
  transform: translate(-50%, -50%) scale(1);
  will-change: transform;
}
.sg-col{
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
}
.sg-item{
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #1a1a1a;
}
.sg-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  will-change: transform;
}
.sg-item-overlay{
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .4;
  pointer-events: none;
}
.sg-center{
  position: absolute;
  top: 15%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4vw;
  width: 90%;
  max-width: 1600px;
  color: var(--white);
  transform: translate(-50%, -50%);
}
.sg-center-title{
  flex: 0 1 35%;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 3.2rem);
  line-height: 1.25;
  text-align: left;
}
.sg-center-text{
  flex: 0 1 48%;
  max-width: 480px;
  margin-left: auto;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}
.sg-overlay{
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1000px){
  .sg-center{
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem;
    text-align: center;
  }
  .sg-center-title{ text-align: center; }
  .sg-center-text{ max-width: 100%; margin-left: 0; text-align: center; }
}

/* =========================================================
   NOUS CONTACTER
   ========================================================= */
.sg-contact-section{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  min-height: 120vh;
  margin: 0 auto;
  padding: 8vh 4vw 6vh;
  overflow: hidden;
  background: var(--navy);
}
.sg-contact-bg{
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 65%;
  background: url("../img/contact-fond.webp") no-repeat center bottom / cover;
  pointer-events: none;
}
.sg-contact-title{
  position: relative;
  z-index: 1;
  margin-bottom: clamp(80px, 13vh, 180px);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 10rem);
  line-height: 1;
  text-align: center;
}
.js .sg-contact-title[data-reveal]{ filter: blur(16px); }
.sg-contact-card-wrap{
  position: relative;
  z-index: 1;
  width: clamp(360px, 42vw, 720px);
  margin-top: auto;
}
.js .sg-contact-card-wrap[data-reveal]{ transition-delay: .2s; }
.sg-contact-seal{
  position: absolute;
  top: -9%;
  left: 50%;
  z-index: 2;
  width: 22%;
  height: auto;
  pointer-events: none;
  transform: translateX(-50%);
}
.sg-contact-card{
  position: relative;
  width: 100%;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.sg-contact-form-area{
  display: flex;
  flex-direction: column;
  padding: 22% 12% 9%;
}
.sg-contact-form-title{
  margin-bottom: 8%;
  color: #1a1a1a;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  text-align: center;
}
.sg-contact-form{
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
}
.sg-field{
  display: flex;
  flex-direction: column;
}
.sg-field input,
.sg-field textarea{
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.25);
  border-radius: 0;
  background: transparent;
  color: #1a1a1a;
  font-size: .9rem;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.sg-field textarea{ min-height: clamp(80px, 8vw, 120px); }
.sg-field input::placeholder,
.sg-field textarea::placeholder{ color: #555; opacity: 1; }
.sg-field input:focus,
.sg-field textarea:focus{
  outline: none;
  border-bottom-color: var(--gold);
}
.sg-field [aria-invalid="true"]{ border-bottom-color: #b3261e; }
.sg-hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sg-contact-submit{
  padding: .85rem 1.5rem;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s ease;
}
.sg-contact-submit:hover{ background: #b8925b; }
.sg-contact-submit[disabled]{ opacity: .6; cursor: wait; }
.sg-contact-status{
  min-height: 1.2em;
  font-size: .85rem;
  text-align: center;
}
.sg-contact-status.is-error{ color: #b3261e; }
.sg-contact-status.is-success{ color: #1e6b3a; }
.sg-contact-footnote{
  margin-top: 6%;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .85rem;
  text-align: center;
}

@media (max-width: 1000px){
  .sg-contact-section{
    justify-content: flex-start;
    min-height: 0;
    padding: 7vh 5vw 8vh;
  }
  .sg-contact-bg{ background-image: url("../img/contact-fond-800.webp"); }
  .sg-contact-title{ margin-bottom: 120px; }
  .sg-contact-card-wrap{ width: min(92vw, 460px); margin-top: 0; }
  .sg-contact-form-area{ padding: 27% 10% 12%; }
  .sg-contact-seal{ width: 20%; }
  .sg-contact-form-title{ margin-bottom: 6%; }
  .sg-contact-form{ gap: 14px; }
  .sg-field input,
  .sg-field textarea{ padding: 10px 4px; font-size: 16px; }
  .sg-field textarea{ min-height: 84px; }
  .sg-contact-submit{ width: 100%; margin-top: 4px; padding: .8rem 1.2rem; font-size: .9rem; }
  .sg-contact-footnote{ margin-top: 14px; font-size: .75rem; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,.7);
  font-size: 14px;
}
.site-footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 3.7vw, 74px) 32px;
}
.site-footer a{
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible{ color: var(--gold); }
.site-footer ul{
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftr-top{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ftr-logo{ display: inline-block; line-height: 0; }
.ftr-logo img{ width: auto; height: 64px; }
.ftr-tagline{
  max-width: 340px;
  margin-top: 20px;
  line-height: 1.6;
}
.ftr-title{
  margin-bottom: 16px;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ftr-col li + li{ margin-top: 10px; }
.ftr-bottom{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.ftr-legal{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
@media (max-width: 767px){
  .ftr-top{ grid-template-columns: 1fr 1fr; }
  .ftr-brand{ grid-column: 1 / -1; }
  .ftr-logo img{ height: 52px; }
  .ftr-bottom{ flex-direction: column-reverse; align-items: flex-start; }
  .ftr-legal{ flex-direction: column; }
}

/* =========================================================
   Mouvement réduit : pas d'animations décoratives
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* =========================================================
   PAGES LÉGALES (cookies, confidentialité, mentions)
   ========================================================= */
.hdr-back-btn{ text-decoration: none; }
.legal{
  padding: clamp(140px, 16vw, 200px) 6vw clamp(80px, 10vw, 140px);
  background: var(--white);
}
.legal-inner{
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
.legal-title{
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.legal-updated{
  margin: 14px 0 0;
  color: rgba(0, 28, 54, .55);
  font-size: 14px;
}
.legal-lead{
  margin: 40px 0 0;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 28, 54, .12);
  color: var(--navy);
  font-size: 18px;
}
.legal-inner h2{
  margin: 48px 0 12px;
  color: var(--navy);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
}
.legal-inner p{ margin: 0 0 16px; }
.legal-inner ul{ margin: 0 0 16px; padding-left: 20px; }
.legal-inner li{ margin-bottom: 6px; }
.legal-inner a{
  color: #a07c45;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-inner a:hover{ color: var(--navy); }
.legal-table-wrap{
  margin: 24px 0;
  overflow-x: auto;
}
.legal-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal-table th,
.legal-table td{
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 28, 54, .12);
  text-align: left;
}
.legal-table th{
  background: rgba(0, 28, 54, .04);
  color: var(--navy);
  font-weight: 500;
}
.legal-table td:last-child{ white-space: nowrap; }
