/* Austral : design de l'ancien site Ranger (avril 2026), transmis à l'institution.
   Papier + encre, Soleil (dégradé or), vert minéral, verre liquide.
   Fraunces (titres) · DM Sans (lecture) · JetBrains Mono (repères). */

:root {
  --paper: #F4F1EA;
  --ivory: #FAF8F4;
  --sky-top: #CFE4EE;
  --sky-mid: #E8EFEC;

  --ink: #0F1A18;
  --ink-2: #1F2B28;
  --ink-3: #4A5450;
  --ink-4: #7C847F;
  --hair: rgba(15, 26, 24, 0.10);
  --hair-2: rgba(15, 26, 24, 0.18);

  --sun-1: #FDC33A;
  --sun-2: #FEEB91;
  --sun: #E8A516;
  --sun-grad: linear-gradient(90deg, #FDC33A 0%, #FEEB91 100%);
  --mineral-1: #2F6F6A;
  --mineral-2: #59C6B8;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); overflow-x: clip; }
section[id], header[id] { scroll-margin-top: 90px; }
body {
  background: var(--paper); color: var(--ink);
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sun); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .container { padding: 0 48px; } }

/* ------- Typo ------- */
.display {
  font-family: 'Fraunces', Georgia, serif; font-weight: 550;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance;
}
.display .accent {
  font-style: italic;
  background: linear-gradient(90deg, #E39A0E 0%, #F6B92C 100%); -webkit-background-clip: text; background-clip: text;  /* or plus dense : lisible sur fond clair */
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: .06em;
}
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--sun-grad); }
.lede { font-size: 19px; color: var(--ink-3); max-width: 58ch; text-wrap: pretty; }

/* ------- Verre & boutons ------- */
.glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 22px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.8) inset, 0 30px 60px -24px rgba(15,26,24,0.18);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .3s, background .3s, filter .3s;
}
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:focus-visible { outline: 3px solid var(--mineral-1); outline-offset: 3px; }
.btn-sun {
  background: var(--sun-grad); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 30px -10px rgba(232,165,22,0.55), 0 2px 6px -2px rgba(15,26,24,0.2);
}
.btn-sun:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost {
  background: rgba(255,255,255,0.5); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: #fff; }

/* ------- Nav ------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; padding: 0 14px; pointer-events: none; }
.nav-inner {
  pointer-events: auto; max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 48px -28px rgba(15,26,24,.3);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: none; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-3); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 980px) { .nav-links { display: flex; } }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(15,26,24,.06); }
.lang-chip { border: 0; background: transparent; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--ink-3); padding: 7px 11px; border-radius: 999px; }
.lang-chip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }

/* ------- Taches de couleur (système de l'ancien site) -------
   De grandes taches floues posées à cheval sur les sections : le bas d'une
   section et le haut de la suivante partagent la même couleur, la couture
   disparaît. Discrètes par défaut, elles se ravivent au survol. */
.tache {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: auto;
  filter: blur(20px); opacity: .55;
  transition: opacity 1.6s var(--ease), filter 1.6s var(--ease);
}
.tache:hover { opacity: .95; filter: blur(8px); }
.t-blue        { background: radial-gradient(circle, #6AAECA 0%, rgba(106,174,202,0) 70%); }
.t-blue-deep   { background: radial-gradient(circle, #255071 0%, rgba(37,80,113,0) 70%); opacity: .35; }
.t-mineral     { background: radial-gradient(circle, #59C6B8 0%, rgba(89,198,184,0) 70%); }
.t-mineral-deep{ background: radial-gradient(circle, #2F6F6A 0%, rgba(47,111,106,0) 70%); opacity: .4; }
.t-sun         { background: radial-gradient(circle, #FDC33A 0%, rgba(253,195,58,0) 70%); opacity: .45; }
.t-sun-pale    { background: radial-gradient(circle, #FEEB91 0%, rgba(254,235,145,0) 70%); }
.hero > .container, .section > .container { position: relative; z-index: 1; }

/* ------- Hero ------- */
.hero { position: relative; padding: clamp(100px, 13vh, 140px) 0 clamp(48px, 6vw, 90px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.hero-title { font-size: clamp(46px, 6.2vw, 94px); line-height: 1; letter-spacing: -0.03em; }
.hero-lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* deux colonnes de lieux qui défilent sans fin, en sens contraires */
.reel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  height: clamp(520px, 76vh, 760px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.reel-track { display: flex; flex-direction: column; animation: reel-up 110s linear infinite; }  /* flex : la marge du dernier élément compte */
.reel-down .reel-track { animation: reel-down 120s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel-track > .ph { margin-bottom: 14px; }  /* marge et non gap : la moitié de la piste vaut une liste pile */
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes reel-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.ph {
  position: relative; overflow: hidden; border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -28px rgba(15,26,24,.4);
}
.ph-tall { aspect-ratio: 4 / 5; }
.ph-square { aspect-ratio: 1 / 1; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.ph figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ------- Sections ------- */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section-title { font-size: clamp(34px, 4.4vw, 60px); margin: 16px 0 22px; max-width: 18ch; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.prose { display: grid; gap: 18px; font-size: 18px; color: var(--ink-2); max-width: 60ch; padding-top: 34px; }
.prose p { text-wrap: pretty; }

/* Section 1 : la savane */
.split-photo { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.split-photo .prose { padding-top: 0; }
.mission-photo {
  position: relative; height: clamp(460px, 62vh, 620px); border-radius: 28px; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%);
  box-shadow: 0 40px 80px -40px rgba(15,26,24,.45);
}
.mission-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 96%; }
.mission-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37,80,113,0.16) 0%, rgba(0,0,0,0) 55%); }

/* Ce que fait Austral */
#actions-title { max-width: 22ch; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.pillar { padding: 32px; display: grid; gap: 12px; align-content: start; }
.pillar-n { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--sun); font-weight: 500; }
.pillar h3 { font-size: 30px; }
.pillar p { color: var(--ink-3); font-size: 16px; }

/* Critères */
.criteria { list-style: none; margin: 40px 0 clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.criterion { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-top: 22px; border-top: 1px solid var(--hair); }
.criterion:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 24px); justify-self: center; }
.criterion-n { font-size: 44px; font-style: italic; line-height: .9; color: var(--sun); }
.criterion h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.criterion p { color: var(--ink-3); font-size: 16px; text-wrap: pretty; }
.commits { padding: clamp(24px, 3vw, 40px); }
.commits-title { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }
.commits ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.commits li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; }
.commits li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-grad); }

/* Ranger */
.split-ranger { align-items: center; }
.split-ranger .btn { margin-top: 26px; }
.wheel-box { display: grid; gap: 8px; }
.wheel { position: relative; height: clamp(320px, 34vw, 460px); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.wheel:active { cursor: grabbing; }
.wheel-item {
  position: absolute; left: 50%; top: 60%; width: 58%;
  border: 0; padding: 0; background: none; cursor: pointer; will-change: transform, opacity;
}
.wheel-item img { width: 100%; height: auto; filter: drop-shadow(0 22px 24px rgba(15,26,24,.22)); -webkit-user-drag: none; }
.wheel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.wheel-label { flex: 0 1 15em; min-width: 0; text-align: center; display: grid; gap: 2px; }
.wheel-label strong { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.wheel-label span { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.wheel-btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--ink);
  background: rgba(255,255,255,.6); border: 1px solid var(--hair-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s;
}
.wheel-btn:hover { background: #fff; }
.wheel-btn:focus-visible { outline: 3px solid var(--mineral-1); outline-offset: 2px; }

/* Transparence */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 60px); }
.figure { padding: 28px 30px; display: grid; gap: 8px; }
.figure-v { font-size: clamp(38px, 4vw, 56px); }
.figure:first-child .figure-v { color: var(--mineral-1); }
.figure-l { color: var(--ink-3); font-size: 15.5px; }

/* Associations : la carte bleu pétrole du bloc final de l'ancien site */
.partners {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  padding: clamp(36px, 5vw, 72px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, #6AAECA, transparent 60%),
    radial-gradient(circle at 90% 100%, #59C6B8, transparent 60%),
    linear-gradient(135deg, #255071 0%, #2F6F6A 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.35), 0 50px 100px -28px rgba(37,80,113,0.55), 0 22px 50px -14px rgba(47,111,106,0.4);
}
.partners .section-title { max-width: none; color: #fff; }
.partners .lede { color: rgba(255,255,255,.88); }
.partners .eyebrow { color: rgba(255,255,255,.75); }

/* Mentions */
.legal { display: grid; gap: 0; padding-top: 34px; }
.legal > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.legal dt { color: var(--ink-3); font-size: 15px; }
.legal dd { font-weight: 500; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.legal a { color: var(--mineral-1); font-weight: 600; }
.credits { margin-top: 22px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.credits strong { color: var(--ink-2); margin-right: 6px; }
.credits a { color: var(--ink-2); }

/* Pied de page */
.footer { background: var(--ink); color: rgba(250,248,244,.7); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer .brand { color: var(--ivory); font-size: 19px; }
.footer .brand img { width: 28px; height: 28px; }
.footer-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,248,244,.5); margin-left: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ivory); }
.footer-links a:hover { color: var(--sun-1); }
.footer-copy { width: 100%; font-size: 13px; color: rgba(250,248,244,.45); }

/* Apparition */
.rise { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.rise.d1 { animation-delay: .05s; } .rise.d2 { animation-delay: .15s; } .rise.d3 { animation-delay: .3s; } .rise.d4 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .mission-photo { height: 360px; clip-path: none; }
  .ph figcaption { font-size: 11.5px; }
  .prose, .legal { padding-top: 0; }
  .pillars, .figures { grid-template-columns: 1fr; }
  .criteria, .commits ul { grid-template-columns: 1fr; }
  .criterion:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .partners { grid-template-columns: 1fr; align-items: start; }
  .wheel-box { padding-top: 12px; }
  .reel { height: 460px; }
  .wheel-item { width: 62%; }
}
@media (max-width: 560px) {
  .legal > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-tag { display: none; }
  .brand span { font-size: 19px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel-track { animation: none; }
  .rise { animation: none; opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}

/* Page des mentions légales */
.legal-page { padding-top: clamp(120px, 16vh, 170px); min-height: 70vh; }
.legal-page .section-title { max-width: none; margin-bottom: 8px; }
.legal-page .legal { padding-top: 8px; max-width: 820px; }
.legal-page .credits { max-width: 820px; }
.legal-h { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 24px; letter-spacing: -0.01em; margin: 28px 0 4px; }
.back { display: inline-block; margin-bottom: 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.back:hover { color: var(--ink); }
.legal-page > .container { position: relative; z-index: 1; }
