/* =====================================================================
   OTERRANDI – feuille de style
   ===================================================================== */

:root {
  --rouge: #862b2a;
  --pale: #d1e0d9;
  --clair: #e5efe7;

  --ghost: 'TWK Ghost', Georgia, 'Times New Roman', serif;
  --lateral: 'Lateral Standard', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 1.8rem;

  --glass-blur: 1.28rem;
  --glass-veil: rgba(255, 255, 255, 0.14);

  --titre-mobile: 4.7rem;
}

/* ---------- Lenis (défilement lissé) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

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

html {
  font-size: clamp(6px, 0.6944444vw, 13.3px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pale);
  color: var(--rouge);
  font: 500 2.18rem/0.92 var(--lateral);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
main, .footer, .band { overflow-x: clip; }
.hero { overflow: clip; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

img, svg {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

::selection { background: #872a2a; color: #d1e0d8; }
.roles ::selection,
.bureaux ::selection,
.zone__name::selection { background: #d1e0d8; color: #872a2a; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.wrap {
  position: relative;
  width: 100%;
  max-width: 144rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- typographie commune ---------- */
.caps {
  font: 500 3.27rem/0.96 var(--lateral);
  text-transform: uppercase;
}
.ghost { font-family: var(--ghost); font-weight: 400; }

/* ---------- ascenseur desktop (main.js) ---------- */
@media (min-width: 821px) and (pointer: fine) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
}
.ascenseur {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: 10px;
  background: #d1e0d8;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.ascenseur.visible { opacity: 1; pointer-events: auto; transition-duration: .12s; }
.ascenseur.inutile { display: none; }
.ascenseur__pouce {
  position: absolute;
  top: 0;
  left: 2px;
  right: 2px;
  border-radius: 3px;
  background: #872a2a;
  cursor: grab;
  touch-action: none;
}
.ascenseur.glisse .ascenseur__pouce { cursor: grabbing; }
@media (max-width: 820px), (pointer: coarse) {
  .ascenseur { display: none; }
}

/* ---------- curseur ---------- */
@media (pointer: fine) {
  html.curseur-actif, html.curseur-actif * { cursor: none !important; }
}
.curseur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 39px;
  height: 39px;
  margin: -19.5px 0 0 -19.5px;
  border: 1px solid #d1e0d8;
  border-radius: 50%;
  background: #872a2a;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, background-color .2s ease, border-color .2s ease;
  will-change: transform;
}
.curseur.visible { opacity: 1; }
.curseur.lien { background: #d1e0d8; border-color: #872a2a; }
@media (pointer: coarse), (hover: none) {
  .curseur { display: none; }
}

/* ---------- voile de chargement ---------- */
.voile {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--pale);
  pointer-events: none;
  transition: opacity .9s ease;
}
.voile.out { opacity: 0; }

/* ---------- apparition au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity .9s ease var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal--spin { transform: none; transition-duration: 1.1s, 1.1s; }
.reveal--spin .zone__star {
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.reveal--spin.in .zone__star { transform: none; }

/* =====================================================================
   VITRE
   ===================================================================== */
.glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--clair);
  --py: 0px;
  --zoom: 1.072;
}
.glass.in { --zoom: 1; }
.glass__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.glass__layer--blur { z-index: 2; clip-path: var(--clip, none); }
.glass__layer--sharp { z-index: 1; }
.glass__layer picture {
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform;
  transform: scale(var(--zoom));
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
}
.glass__img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, var(--py), 0);
}
.glass__layer--blur .glass__img {
  left: -3%;
  width: 106%;
  top: -14%;
  height: 128%;
  filter: blur(var(--glass-blur));
}
.glass__layer--blur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass-veil);
  pointer-events: none;
}

.band {
  position: relative;
  aspect-ratio: 1440 / 463;
  background: var(--clair);
}

/* =====================================================================
   HERO (1440 × 810)
   ===================================================================== */
.hero {
  position: relative;
  aspect-ratio: 1440 / 810;
  min-height: 60rem;
  color: var(--rouge);
  text-align: center;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 2.1rem;
}
.hero__content {
  will-change: transform;
  transform: translate3d(0, var(--hy, 0px), 0);
}
.hero__logo {
  display: block;
  width: 34.8rem;
  margin: 0 auto;
}
.hero__title {
  margin-top: 16.4rem;
  font: 400 13.6rem/0.88 var(--ghost);
  letter-spacing: -0.005em;
}
.hero__line { display: block; }
.hero__text {
  margin: 3.6rem auto 0;
  max-width: 80rem;
  font-size: 2.18rem;
  line-height: 0.9;
}
.hero__tags {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font: 500 3.27rem/1 var(--lateral);
  text-transform: uppercase;
}

/* =====================================================================
   NOS CINQ RÔLES (fond rouge)
   ===================================================================== */
.roles {
  background: var(--rouge);
  color: var(--pale);
}
.roles__inner {
  padding-top: 13.4rem;
  padding-bottom: 15rem;
}
.roles__title {
  font: 400 9.8rem/0.9 var(--ghost);
  letter-spacing: -0.005em;
}
.roles__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 12rem;
}
.role {
  position: relative;
  min-height: 24.1rem;
  padding: 0 1.8rem 0 1.9rem;
  border-left: 1px solid var(--pale);
}
.role:last-child { border-right: 1px solid var(--pale); }
.role__num {
  display: block;
  font: 400 6.53rem/1 var(--ghost);
}
.role__name {
  display: block;
  margin-top: 2.2rem;
  font: 500 3.27rem/0.96 var(--lateral);
  text-transform: uppercase;
}

/* =====================================================================
   TROIS ZONES (fond pâle)
   ===================================================================== */
.zones {
  background: var(--pale);
  color: var(--rouge);
}
.zones__inner {
  display: flex;
  align-items: center;
  min-height: 46.3rem;
  padding-top: 7rem;
  padding-bottom: 7rem;
}
.zones__title {
  flex: none;
  width: 48.6rem;
  text-align: center;
  font: 400 6.53rem/0.88 var(--ghost);
}
.zones__list {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end;
  gap: 1.8rem;
  margin-left: auto;
}
.zone {
  position: relative;
  width: 29.2rem;
  flex: 0 1 auto;
  min-width: 0;
  aspect-ratio: 6276 / 6606;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zone__star {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--rouge);
}
.zone__name {
  position: relative;
  padding-top: .2em;
  font: 500 2.18rem/1 var(--lateral);
  text-transform: uppercase;
  color: var(--pale);
  text-align: center;
}

/* =====================================================================
   NOS BUREAUX (fond rouge)
   ===================================================================== */
.bureaux {
  background: var(--rouge);
  color: var(--pale);
  text-align: center;
}
.bureaux__inner {
  padding-top: 7.9rem;
  padding-bottom: 14.5rem;
}
.bureaux__title { font: 400 6.53rem/1 var(--ghost); }
.bureaux__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12rem;
}
.bureau {
  min-height: 21.9rem;
  padding: 0 2rem;
  border-left: 1px solid var(--pale);
}
.bureau:last-child { border-right: 1px solid var(--pale); }
.bureau__city {
  font: 500 13.6rem/0.82 var(--lateral);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.bureau__role {
  margin-top: 1.2rem;
  font: 500 3.27rem/1 var(--lateral);
  text-transform: uppercase;
}
.bureau__text {
  margin-top: 1.7rem;
  font-size: 2.18rem;
  line-height: 0.9;
}

/* =====================================================================
   FOOTER (fond pâle)
   ===================================================================== */
.footer {
  position: relative;
  background: var(--pale);
  color: var(--rouge);
  text-align: center;
}
.footer__inner {
  min-height: 46.3rem;
  padding-top: 7.9rem;
  padding-bottom: 6.48%;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em 2.2em;
  font: 500 1.63rem/1 var(--lateral);
  text-transform: uppercase;
}
.footer__nav a {
  position: relative;
  padding-bottom: .35em;
  text-decoration: none;
}
.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s cubic-bezier(.65, 0, .35, 1);
}
.footer__nav a:hover::after, .footer__nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.footer__nav a:focus-visible { outline: none; }
.footer__legal {
  margin-top: 5.6rem;
  font: 500 1.63rem/0.92 var(--lateral);
  text-transform: uppercase;
}
.footer__legal span { display: block; }
.footer__legal-sub {
  margin-top: 1.5rem;
  text-transform: none;
}
.footer__accueil { display: block; }
.footer__logo {
  width: 100%;
  margin-top: 8.4rem;
}

/* =====================================================================
   PAGE MENTIONS LÉGALES
   ===================================================================== */
.page-legale {
  background: var(--pale);
  color: var(--rouge);
}
.page-legale__entete {
  padding-top: 2.1rem;
  text-align: center;
}
.page-legale__entete .hero__logo { width: 34.8rem; margin: 0 auto; }
.legal {
  max-width: 86rem;
  margin: 0 auto;
  padding-top: 12rem;
  padding-bottom: 6rem;
}
.legal__titre {
  font: 400 9.8rem/0.9 var(--ghost);
  letter-spacing: -0.005em;
  margin-bottom: 7rem;
}
.legal h2 {
  margin: 6rem 0 2rem;
  font: 500 3.27rem/0.96 var(--lateral);
  text-transform: uppercase;
}
.legal p {
  margin: 0 0 1.6rem;
  font-size: 2.18rem;
  line-height: 1.3;
}
.legal a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* =====================================================================
   PAGE CONTACT
   ===================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 8rem;
  max-width: 116rem;
}
.contact .legal__titre { grid-column: 1 / -1; margin-bottom: 0; }
.contact__coord h2 { margin-top: 0; }
.contact__coord p { margin-bottom: 2.4rem; }
.contact__coord a { text-decoration: none; }
.contact__coord a:hover { text-decoration: underline; }
.contact__form h2 { margin-top: 0; }

.contact__piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.champ { margin-bottom: 3.2rem; }
.champ label {
  display: block;
  margin-bottom: 1rem;
  font: 500 1.63rem/1 var(--lateral);
  text-transform: uppercase;
}
.champ label abbr { text-decoration: none; }
.champ input, .champ textarea {
  display: block;
  width: 100%;
  padding: .6rem 0 1rem;
  border: 0;
  border-bottom: 1px solid var(--rouge);
  border-radius: 0;
  background: transparent;
  color: var(--rouge);
  font: 500 2.18rem/1.3 var(--lateral);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea { min-height: 16rem; resize: vertical; }
.champ input:focus, .champ textarea:focus { box-shadow: 0 1px 0 0 var(--rouge); }
.champ input:-webkit-autofill {
  -webkit-text-fill-color: var(--rouge);
  box-shadow: 0 0 0 100rem var(--pale) inset;
}
.contact__envoi {
  display: inline-block;
  padding: 1.6rem 3.6rem 1.4rem;
  border: 1px solid var(--rouge);
  background: var(--rouge);
  color: var(--pale);
  font: 500 1.63rem/1 var(--lateral);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.contact__envoi:hover, .contact__envoi:focus-visible { background: transparent; color: var(--rouge); }
.contact__envoi:disabled { opacity: .5; cursor: default; }
.legal .contact__statut { margin: 1.6rem 0 0; }
.legal .contact__statut:empty { display: none; }
.legal .contact__mention { margin: 2.4rem 0 0; font-size: 1.63rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) and (min-width: 821px) {
  .hero__text { max-width: 90rem; }
}

@media (max-width: 820px) {
  html { font-size: clamp(7px, 2.5641vw, 12px); }
  :root { --gutter: 2rem; --glass-blur: 0.96rem; }

  body { line-height: 1.05; }

  .hero {
    aspect-ratio: auto;
    min-height: 0;
    padding-bottom: 4.5rem;
  }
  .hero__inner { padding-top: 2.4rem; }
  .hero__logo { width: 22rem; }
  .hero__title {
    margin-top: 9rem;
    font-size: calc(var(--titre-mobile) * 1.56);
    line-height: 0.92;
    hyphens: manual;
  }
  .hero__text { margin-top: 3rem; max-width: 34rem; font-size: 1.9rem; line-height: 1.1; }
  .hero__text br { display: none; }
  .hero__tags {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    margin-top: 4rem;
    font-size: 2rem;
  }

  .roles__inner { padding-top: 7rem; padding-bottom: 8rem; }
  .roles__title { font-size: var(--titre-mobile); line-height: 0.92; }
  .roles__list {
    grid-template-columns: 1fr;
    margin-top: 5rem;
    border-right: 0;
  }
  .role {
    display: grid;
    grid-template-columns: 6rem 1fr;
    align-items: center;
    gap: 0 1.5rem;
    min-height: 0;
    padding: 2rem 0 1.8rem;
    border-left: 0;
    border-bottom: 1px solid var(--pale);
  }
  .role:last-child { border-right: 0; }
  .role__num { font-size: 4.4rem; }
  .role__name { margin-top: 0; font-size: 2.4rem; }
  .role__name br { display: none; }

  .zones__inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .zones__title { width: auto; font-size: var(--titre-mobile); line-height: 0.92; }
  .zones__list {
    flex-direction: column;
    align-items: center;
    gap: 4.5rem;
    margin: 5rem auto 0;
  }
  .zone { flex: none; width: 24rem; }
  .zone.reveal, .zone .zone__star { transition-delay: 0s !important; }
  .zone__name { font-size: 1.9rem; }

  .band { aspect-ratio: 4 / 3; }

  .bureaux__inner { padding-top: 6rem; padding-bottom: 8rem; }
  .bureaux__title { font-size: var(--titre-mobile); line-height: 0.92; }
  .bureaux__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 5rem;
    margin-top: 5rem;
    border-right: 0;
  }
  .bureau { min-width: 0; padding: 1rem 1.2rem; border-left: 1px solid var(--pale); border-right: 1px solid var(--pale); }
  .bureau__city { font-size: 8rem; }
  .bureau__role { font-size: 2.6rem; }
  .bureau__text { font-size: 1.9rem; line-height: 1.1; }

  .footer__inner { min-height: 0; padding-top: 6rem; padding-bottom: 7.56%; }

  .page-legale__entete { padding-top: 2.4rem; }
  .page-legale__entete .hero__logo { width: 22rem; }
  .legal { padding-top: 7rem; padding-bottom: 4rem; }
  .legal__titre { font-size: var(--titre-mobile); line-height: 0.92; margin-bottom: 4rem; }
  .legal h2 { margin-top: 4.5rem; font-size: 2.4rem; }
  .legal p { font-size: 1.9rem; line-height: 1.35; }
  .contact { grid-template-columns: 1fr; gap: 5rem; }
  .champ label { font-size: 1.5rem; }
  .champ input, .champ textarea { font-size: 1.9rem; }
  .contact__envoi { width: 100%; font-size: 1.6rem; }
  .footer__nav { gap: 1.2em 1.8em; font-size: 1.6rem; }
  .footer__legal { margin-top: 4rem; font-size: 1.5rem; line-height: 1.15; }
  .footer__logo { margin-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--spin, .reveal--spin .zone__star { opacity: 1; transform: none; transition: none; }
  .glass { --zoom: 1; }
  .glass__layer picture { transition: none; }
}
