:root {
  --clay: #c8502a;
  --clay-dark: #a23f1f;
  --ink: #0f1b2d;
  --ink-2: #1b2a41;
  --paper: #faf7f2;
  --soft: #f1ebe2;
  --muted: #6b7280;
  --line: rgba(15, 27, 45, .12);
  --display: "Anton", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body { font: 400 17px/1.65 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 .6rem; }
h4 { font-size: 1.05rem; font-weight: 600; }
p + p { margin-top: 1rem; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin-bottom: .9rem; }
.dark { background: var(--ink); color: #fff; }
.soft { background: var(--soft); }
.clay { background: var(--clay); color: #fff; }
.clay .eyebrow { color: #ffd9c7; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(250, 247, 242, .94); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav__logo { font: 400 1.6rem var(--display); text-decoration: none; letter-spacing: .04em; }
.nav__menu { display: flex; gap: 28px; align-items: center; }
.nav__menu a { text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .02em; opacity: .9; }
.nav__menu a:hover { opacity: 1; color: var(--clay); }
.nav__cta { background: var(--clay); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav__cta:hover { background: var(--clay-dark); }
.nav__burger { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 6px; right: 6px; height: 2px; background: currentColor; transition: transform .3s; }
.nav__burger span:first-child { top: 13px; }
.nav__burger span:last-child { top: 21px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; animation: zoom 14s ease-out both; background: #0d1a17; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero { background: #0d1a17; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,14,0) 40%, rgba(8,16,14,.55) 100%), linear-gradient(180deg, rgba(8,16,14,.35) 0%, rgba(8,16,14,0) 25%, rgba(8,16,14,0) 60%, rgba(8,16,14,.6) 100%); }
.hero__content { position: relative; width: min(1180px, 100% - 32px); margin: 0 auto; padding-bottom: clamp(56px, 9vh, 96px); display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero__stats { justify-content: flex-end; }
@media (min-width: 821px) {
  .hero .hero__title { font-size: clamp(3.6rem, 6.6vw, 7rem); }
  .hero__content { padding-bottom: clamp(40px, 6vh, 72px); }
}
.hero .eyebrow { color: #ffd9c7; }
.hero__title { font-size: clamp(4.2rem, 15vw, 11rem); line-height: .88; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 2rem; }
.hero__stats strong { display: block; font: 400 1.9rem var(--display); }
.hero__stats span { font-size: .85rem; opacity: .85; }
.hero__scroll { position: absolute; right: clamp(16px, 4vw, 40px); bottom: 32px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; text-decoration: none; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* PORTRAIT */
.portrait__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait__img img { border-radius: var(--r); aspect-ratio: 4/5; object-fit: cover; object-position: 70% center; width: 100%; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts li { font-size: .9rem; color: var(--muted); }
.facts span { display: block; font: 400 2rem var(--display); color: var(--clay); line-height: 1.1; }
.formation { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; background: #fff; border-radius: var(--r); padding: 20px; box-shadow: 0 10px 40px rgba(15,27,45,.06); }
.formation img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.formation h3 { margin-top: 0; }

/* RESULTATS */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; margin-bottom: 64px; }
.kpis div { background: var(--ink-2); padding: 28px 22px; }
.kpis strong { display: block; font: 400 2.4rem var(--display); color: #ff8a5c; }
.kpis span { font-size: .88rem; opacity: .75; }
.timeline { list-style: none; border-left: 2px solid rgba(255,255,255,.15); margin-left: 6px; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 0 0 26px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px var(--ink); }
.timeline time { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff8a5c; padding-top: 2px; }
.timeline p { opacity: .7; font-size: .95rem; }
.profiles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.profiles a { text-decoration: none; border: 1px solid rgba(255,255,255,.3); padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; transition: background .2s, border-color .2s; }
.profiles a:hover { background: var(--clay); border-color: var(--clay); }

/* TEAM */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.team__list { list-style: none; }
.team__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team__list span { color: var(--muted); font-size: .92rem; text-align: right; }
.team__img img { border-radius: var(--r); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.team__img figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* PARTENAIRES */
.main-partner { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; background: #fff; border-radius: var(--r); padding: 36px; margin-bottom: 28px; }
.main-partner p { font-size: 1.1rem; }
.logos { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos li { background: #fff; border-radius: 12px; height: 110px; display: grid; place-items: center; padding: 18px; }
.logos img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }

/* GALERIE */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery button { display: block; width: 100%; margin-bottom: 14px; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; break-inside: avoid; }
.gallery button { position: relative; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; font: 600 .8rem/1.35 var(--body); color: #fff; text-align: left; background: linear-gradient(transparent, rgba(8,14,24,.85)); }
.gallery button:hover img { transform: scale(1.04); }
.gallery:not(.is-open) button:nth-child(n+13) { display: none; }
.gallery-more { display: block; margin: 28px auto 0; }

/* SOUTENIR */
.support { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.support { align-items: center; }
.support__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.budget { background: #fff; color: var(--ink); border-radius: var(--r); padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.iban { background: var(--soft); border-radius: 10px; padding: 22px; display: grid; gap: 4px; }
.iban span { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--clay); }
.iban code { font: 600 1.1rem ui-monospace, SFMono-Regular, Menlo, monospace; margin: 4px 0 10px; }

/* BOUTONS */
.btn { display: inline-block; background: var(--clay); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--clay-dark); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--clay); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--clay); }
.btn--small { padding: 9px 16px; font-size: .85rem; justify-self: start; }

/* CONTACT */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); }
address { font-style: normal; margin-top: 1.6rem; line-height: 1.9; }
address a { color: var(--clay); font-weight: 600; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--clay); border-color: transparent; }
.form .btn { justify-self: start; }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(16px, 4vw, 40px); background: var(--ink); color: rgba(255,255,255,.7); font-size: .88rem; }
.footer a { text-decoration: none; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,14,24,.94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lightbox__cap { color: #fff; font-size: .95rem; text-align: center; padding: 0 16px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 12px 18px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ANIMATION */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img, .hero__scroll { animation: none; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__burger { display: block; color: inherit; }
  .nav__menu { position: fixed; inset: 0; background: var(--ink); color: #fff; flex-direction: column; justify-content: center; gap: 26px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: -1; }
  .nav__menu a { font: 400 2rem var(--display); text-transform: uppercase; }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery button { margin-bottom: 10px; }
  body.menu-open .nav { color: #fff; background: transparent; box-shadow: none; }
  .portrait__grid, .team, .support, .contact, .formation, .main-partner { grid-template-columns: 1fr; }
  .main-partner { padding: 24px; gap: 20px; }
  .main-partner img { max-width: 240px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .team__img { order: -1; }
  .hero__img { object-position: 38% 30%; }
  .hero__shade { background: linear-gradient(180deg, rgba(8,16,14,.4) 0%, rgba(8,16,14,0) 25%, rgba(8,16,14,.35) 55%, rgba(8,16,14,.92) 100%); }
  .hero__content { align-items: flex-start; text-align: left; }
  .hero__stats { justify-content: flex-start; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .kpis div { padding: 20px 16px; }
  .kpis strong { font-size: 1.9rem; }
  .facts { gap: 14px; }
  .budget { padding: 22px; }
  .budget dl div { font-size: .88rem; }
}
