/* ============================================================
   TOULOUSE WAY — Redesign v2
   Style : Bento Grid + Exaggerated Minimalism
   Fonts : Bebas Neue (display) · Source Sans 3 (body)
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --brick:      #9c1f06;
  --brick-dark: #6b1504;
  --brick-light:#c4290a;
  --orange:     #f26716;
  --terra:      #a44300;
  --limestone:  #f0ede8;
  --chalk:      #ffffff;
  --noir:       #0a0a0a;
  --dark:       #111111;
  --text:       #1a1a1a;
  --text-soft:  #666666;
  --display:    'Bebas Neue', Impact, sans-serif;
  --body:       'Source Sans 3', Arial, Helvetica, sans-serif;
  --radius-sm:  6px;
  --radius:     16px;
  --radius-lg:  24px;
  --shadow:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.18);
  --t:          .25s cubic-bezier(.4,0,.2,1);
  --t-slow:     .6s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--chalk);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Utilitaires ---------- */
.u-max { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.u-section { padding: 100px 32px; }
.section__header { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.section__tag {
  display: inline-block;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1.5px solid var(--brick);
  border-radius: 100px;
}
.section__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: .02em;
  line-height: 1;
  color: var(--noir);
  margin-bottom: 18px;
}
.section__sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--t);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--brick   { background: var(--brick);  color: var(--chalk); }
.btn--brick:hover   { background: var(--brick-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(156,31,6,.35); }
.btn--orange  { background: var(--orange); color: var(--chalk); }
.btn--orange:hover  { background: #d95a0f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(242,103,22,.35); }
.btn--chalk   { background: var(--chalk);  color: var(--brick); }
.btn--chalk:hover   { background: var(--limestone); }
.btn--outline-chalk { border-color: rgba(255,255,255,.5); color: var(--chalk); }
.btn--outline-chalk:hover { border-color: var(--chalk); background: rgba(255,255,255,.08); }
.btn--dark    { background: var(--noir);   color: var(--chalk); }
.btn--dark:hover    { background: #2a2a2a; }
.btn--sm { padding: 10px 20px; font-size: .8rem; }

/* ---------- Skip to content ---------- */
.skip-to-content {
  position: fixed; top: -100%; left: 16px; z-index: 9999;
  background: var(--brick); color: var(--chalk);
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 700; transition: top .2s ease;
}
.skip-to-content:focus { top: 0; }

/* ============================================================
   NAV — Floating pill
   ============================================================ */
.nav {
  position: fixed;
  top: 20px; left: 20px; right: 20px;
  z-index: 900;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  transition: background var(--t), box-shadow var(--t), top var(--t);
}
.nav.scrolled {
  background: rgba(255,255,255,.98);
  border-color: rgba(0,0,0,.1);
  box-shadow: 0 4px 32px rgba(0,0,0,.15);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img {
  height: 36px; width: auto;
  filter: none;
  transition: filter var(--t);
}
.nav.scrolled .nav__logo img { filter: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  transition: color var(--t);
}
.nav.scrolled .nav__link { color: var(--text); }
.nav__link:hover { color: var(--orange) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--noir);
  border-radius: 2px; transition: var(--t);
}
.nav.scrolled .nav__burger span { background: var(--noir); }

/* ============================================================
   MENU MOBILE — overlay plein écran (hors <nav> pour éviter
   le containment backdrop-filter)
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d0000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-menu.open { display: flex; }

.mobile-menu__close {
  position: absolute;
  top: 24px; right: 28px;
  background: none; border: none;
  color: rgba(255,255,255,.55);
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color .2s;
  min-width: 44px; min-height: 44px;
}
.mobile-menu__close:hover { color: #fff; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-menu__link {
  font-family: var(--display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--chalk);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu__link:hover { color: var(--orange); }

/* ============================================================
   HERO — Split editorial
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__left {
  background: linear-gradient(160deg, #1a0503 0%, #2d0906 60%, #1a0503 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 64px 80px;
  position: relative;
  z-index: 1;
}
.hero__right {
  background: var(--brick);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 64px 80px;
  position: relative;
  overflow: hidden;
}

/* Grande diagonale entre les deux moitiés */
.hero__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 120px;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}
.hero__divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brick);
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
}

/* Motif répété du logo en arrière-plan droite */
.hero__right::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background-image: url('../assets/logo.png');
  background-size: 200px;
  background-repeat: repeat;
  opacity: .06;
  filter: brightness(0) invert(1);
  transform: rotate(-15deg);
}

.hero__eyebrow {
  font-family: var(--body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--brick);
}
.hero__tagline {
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .95;
  letter-spacing: .03em;
  color: var(--chalk);
  margin-bottom: 32px;
}
.hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 40px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Logo côté droit */
.hero__logo-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 40px;
}
.hero__logo {
  width: 200px;
  filter: brightness(0) invert(1);
  margin: 0 auto;
}
.hero__logo-name {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.9);
  margin-top: 16px;
}
.hero__founded {
  position: relative;
  z-index: 2;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 24px;
  margin-top: 32px;
  width: 100%;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 25%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 20;
  animation: bounce 2.5s ease infinite;
}
.hero__scroll svg { width: 18px; height: 18px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   STATS — Bento grid
   ============================================================ */
.stats {
  background: var(--limestone);
  padding: 48px 32px;
  position: relative;
  z-index: 1;
}
.stats__bento {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
}
.stat-tile {
  background: var(--chalk);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--t), box-shadow var(--t);
  cursor: default;
}
.stat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Tile 1 — large, fond brique */
.stat-tile:first-child {
  background: var(--brick);
  grid-column: span 1;
}
.stat-tile:first-child .stat__num { color: var(--chalk); }
.stat-tile:first-child .stat__label { color: rgba(255,255,255,.7); }

.stat__num {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--brick);
}
.stat__label {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ============================================================
   AUDIENCES — Asymmetric bento CTAs
   ============================================================ */
.audiences {
  background: var(--noir);
  padding: 100px 32px;
}
.audiences .section__title { color: var(--chalk); }
.audiences .section__sub { color: rgba(255,255,255,.55); }
.audiences .section__tag { color: var(--orange); border-color: var(--orange); }

.audiences__bento {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}

.aud-card {
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform var(--t), box-shadow var(--t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.aud-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* Numéro de fond décoratif */
.aud-card::before {
  font-family: var(--display);
  font-size: 10rem;
  line-height: 1;
  position: absolute;
  bottom: -20px;
  right: 16px;
  color: rgba(255,255,255,.07);
  pointer-events: none;
}
.aud-card--citizen::before  { content: '01'; }
.aud-card--company::before  { content: '02'; }
.aud-card--newcomer::before { content: '03'; }

.aud-card--citizen  { background: var(--brick); }
.aud-card--company  { background: var(--terra); }
.aud-card--newcomer { background: #8B3A0A; }

.aud-card__icon svg { width: 40px; height: 40px; stroke: rgba(255,255,255,.6); }
.aud-card__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.aud-card__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: .02em;
  line-height: 1.05;
  color: var(--chalk);
}
.aud-card__desc {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  flex: 1;
}
.aud-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}
.aud-card__list li { display: flex; align-items: flex-start; gap: 8px; }
.aud-card__list li::before {
  content: '→';
  font-weight: 700;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
}
.aud-card__actions { display: flex; flex-direction: column; gap: 10px; }
.aud-card__cta { align-self: flex-start; }

/* ============================================================
   MISSION — Editorial
   ============================================================ */
.mission {
  background: var(--chalk);
  padding: 100px 32px;
}
.mission__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.mission__left .section__tag { display: block; }
.mission__left .section__title { text-align: left; margin-bottom: 28px; }
.mission__left p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}
.mission__left p strong { color: var(--text); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  padding: 7px 18px;
  border: 2px solid var(--brick);
  color: var(--brick);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: var(--t);
  cursor: pointer;
}
.chip:hover { background: var(--brick); color: var(--chalk); }

.mission__quote {
  position: relative;
  padding: 60px 52px;
  background: var(--limestone);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mission__quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 16rem;
  line-height: .8;
  color: var(--brick);
  opacity: .12;
  position: absolute;
  top: -8px;
  left: 16px;
}
.mission__quote blockquote {
  position: relative;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}
.mission__quote cite {
  font-style: normal;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brick);
}
.mission__president {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.1);
  display: flex;
  gap: 16px;
  align-items: center;
}
.mission__president-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brick);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mission__president-avatar svg { width: 24px; height: 24px; stroke: var(--chalk); }
.mission__president-name { font-weight: 800; font-size: 1rem; color: var(--noir); }
.mission__president-role { font-size: .82rem; color: var(--text-soft); }

/* ============================================================
   ACTIONS — Bento grid
   ============================================================ */
.actions {
  background: var(--limestone);
  padding: 100px 32px;
}
.actions__bento {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.action-tile {
  background: var(--chalk);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  border: 2px solid transparent;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.action-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brick);
}
/* Tile 01 — large (2 colonnes) */
.action-tile:first-child {
  grid-column: span 2;
  background: var(--brick);
}
.action-tile:first-child .action-tile__num { color: rgba(255,255,255,.2); }
.action-tile:first-child h3 { color: var(--chalk); }
.action-tile:first-child p { color: rgba(255,255,255,.75); }
.action-tile:first-child .action-tile__meta { color: rgba(255,255,255,.5); }
.action-tile:first-child:hover { border-color: rgba(255,255,255,.4); }

/* Tile 04 — large (3 colonnes) */
.action-tile:last-child {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  background: var(--noir);
}
.action-tile:last-child .action-tile__num { color: rgba(255,255,255,.1); font-size: 5rem; }
.action-tile:last-child h3 { color: var(--orange); }
.action-tile:last-child p { color: rgba(255,255,255,.65); }
.action-tile:last-child .action-tile__meta { color: rgba(255,255,255,.35); }
.action-tile:last-child > div { flex: 1; }

.action-tile__num {
  font-family: var(--display);
  font-size: 6rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--limestone);
}
.action-tile h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .04em;
  color: var(--brick);
}
.action-tile p {
  font-size: .95rem;
  color: var(--text-soft);
  line-height: 1.75;
  flex: 1;
}
.action-tile__meta {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ============================================================
   TÉMOIGNAGES — Magazine style
   ============================================================ */
.testimonials {
  background: var(--chalk);
  padding: 100px 32px;
}
.testimonials__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  border-radius: var(--radius);
  padding: 48px 40px;
  background: var(--limestone);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Grande initiale décorative */
.testi-card__initial {
  font-family: var(--display);
  font-size: 7rem;
  line-height: 1;
  color: var(--brick);
  opacity: .12;
  position: absolute;
  top: -10px;
  right: 20px;
}
.testi-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  flex: 1;
  position: relative;
  z-index: 1;
}
.testi-card__quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--brick);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
}
.testi-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.testi-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testi-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-card__name { font-weight: 800; font-size: .95rem; color: var(--noir); }
.testi-card__role { font-size: .8rem; color: var(--text-soft); }

.testimonials__cta {
  text-align: center;
  margin-top: 56px;
}
.testimonials__cta p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* ============================================================
   GALERIE — En images
   ============================================================ */
.gallery {
  background: var(--noir);
  padding: 100px 32px;
}

.gallery__header {
  max-width: 1200px;
  margin: 0 auto 48px;
}

.gallery__header .section__tag {
  color: var(--orange);
  border-color: var(--orange);
}

.gallery__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--chalk);
  margin-top: 16px;
  line-height: 1;
}

.gallery__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  background: #111;
  cursor: zoom-in;
}

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1), filter .4s;
  filter: brightness(.92);
}

.gallery__item:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity .3s;
}

.gallery__item:hover::after { opacity: 0; }

/* Lightbox overlay */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.gallery-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.gallery-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
}
.gallery-overlay__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.gallery-overlay__close:hover { color: #fff; }

@media (max-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
}

@media (max-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

/* ============================================================
   ÉVÉNEMENT — Cinématique
   ============================================================ */
.event {
  background: var(--noir);
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}
/* Texte décoratif géant */
.event::before {
  content: 'CAW';
  font-family: var(--display);
  font-size: 40vw;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.025);
  pointer-events: none;
  white-space: nowrap;
}
.event__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.event__left {}
.event__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--orange);
  color: var(--chalk);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.event__label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chalk);
  animation: pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}
.event__title {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: .03em;
  line-height: 1;
  color: var(--chalk);
  margin-bottom: 8px;
}
.event__subtitle {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: .06em;
  color: rgba(255,255,255,.35);
  margin-bottom: 40px;
}
.event__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 40px;
}
.event__desc strong { color: var(--orange); }

/* Countdown */
.event__right {}
.event__countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.countdown-tile {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
}
.countdown-tile__num {
  font-family: var(--display);
  font-size: 3rem;
  letter-spacing: .04em;
  color: var(--chalk);
  line-height: 1;
  display: block;
}
.countdown-tile__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-top: 8px;
  display: block;
}
.event__details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.event__detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}
.event__detail svg { width: 20px; height: 20px; stroke: var(--orange); flex-shrink: 0; margin-top: 2px; }
.event__detail strong { display: block; color: var(--chalk); font-weight: 700; }
.event__detail span { color: rgba(255,255,255,.55); font-size: .9rem; }

/* ============================================================
   PARTENAIRES — Infinite marquee
   ============================================================ */
.partners {
  background: var(--chalk);
  padding: 80px 0;
}
.partners__header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 32px;
}
.partners__category-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 32px;
  text-align: center;
}
.partners__track-wrap {
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}
/* Dégradé masque sur les bords */
.partners__track-wrap::before,
.partners__track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.partners__track-wrap::before { left: 0;  background: linear-gradient(90deg, var(--chalk), transparent); }
.partners__track-wrap::after  { right: 0; background: linear-gradient(90deg, transparent, var(--chalk)); }

.partners__track {
  display: flex;
  gap: 24px;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.partners__track:hover { animation-play-state: paused; }
.partners__track--reverse { animation-direction: reverse; animation-duration: 22s; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--chalk);
  border: 1.5px solid #ece7e0;
  border-radius: var(--radius-sm);
  min-width: 140px;
  flex-shrink: 0;
  transition: var(--t);
  cursor: default;
}
.partner-logo:has(a) { cursor: pointer; }
.partner-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.partner-logo:hover { border-color: var(--brick); box-shadow: var(--shadow); }
.partner-logo img {
  height: 44px; width: auto; max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .65;
  transition: var(--t);
}
.partner-logo:hover img { filter: none; opacity: 1; }

/* ============================================================
   CONTACT — Split screen
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.contact__info {
  background: var(--noir);
  padding: 96px 64px;
}
.contact__info h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: .03em;
  color: var(--chalk);
  margin-bottom: 24px;
  line-height: 1;
}
.contact__info > p {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 400px;
}
.contact__list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .95rem;
  color: rgba(255,255,255,.7);
}
.contact__list li svg { width: 18px; height: 18px; stroke: var(--orange); flex-shrink: 0; margin-top: 3px; }
.contact__list a { color: var(--chalk); font-weight: 600; }
.contact__list a:hover { color: var(--orange); }
.contact__social { display: flex; gap: 12px; flex-wrap: wrap; }
.contact__social a {
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: var(--t);
}
.contact__social a:hover { border-color: var(--orange); color: var(--chalk); background: rgba(242,103,22,.12); }

.contact__permanent {
  background: var(--brick);
  padding: 96px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.contact__permanent::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  bottom: -80px; right: -80px;
  background: url('../assets/logo.png') center/contain no-repeat;
  opacity: .07;
  filter: brightness(0) invert(1);
}
.contact__permanent h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: .04em;
  color: var(--chalk);
  margin-bottom: 20px;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.contact__permanent p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 48px 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { height: 40px; filter: brightness(0) invert(1); opacity: .6; }
.footer__tagline {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
}
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a {
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.35);
  transition: color var(--t);
  letter-spacing: .03em;
}
.footer__nav a:hover { color: var(--chalk); }
.footer__legal {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  line-height: 1.9;
  text-align: right;
}

/* ============================================================
   ANIMATIONS / RÉVÉLATION
   ============================================================ */
.reveal, .reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-card:nth-child(2) { transition-delay: .12s; }
.reveal-card:nth-child(3) { transition-delay: .22s; }
.reveal-card:nth-child(4) { transition-delay: .32s; }
.revealed { opacity: 1; transform: none; }

/* Focus visible */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-card { opacity: 1; transform: none; }
  .hero__scroll { animation: none; }
  .event__label::before { animation: none; }
  .partners__track { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette large (1024px) */
@media (max-width: 1024px) {
  .stats__bento { grid-template-columns: repeat(2, 1fr); }
  .stat-tile:first-child { grid-column: span 2; }
  .actions__bento { grid-template-columns: repeat(2, 1fr); }
  .action-tile:first-child { grid-column: span 2; }
  .action-tile:last-child { grid-column: span 2; flex-direction: column; gap: 16px; }
  .event__inner { grid-template-columns: 1fr; gap: 56px; }
  .event__countdown { max-width: 480px; }
}

/* Tablette (768px) */
@media (max-width: 768px) {
  .u-section { padding: 72px 20px; }
  .section__header { margin-bottom: 48px; }
  .hero { grid-template-columns: 1fr; }
  .hero__left { padding: 130px 28px 56px; }
  .hero__right { padding: 48px 28px; min-height: 260px; }
  .hero__divider { display: none; }
  .audiences__bento { grid-template-columns: 1fr; }
  .aud-card--citizen { grid-row: span 1; }
  .aud-card__cta { align-self: stretch; justify-content: center; }
  .aud-card__actions .btn { align-self: stretch; justify-content: center; text-align: center; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .mission__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact { grid-template-columns: 1fr; }
  .contact__info  { padding: 64px 32px; }
  .contact__permanent { padding: 64px 32px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { text-align: left; }
  .event { padding: 72px 24px; }
  .gallery { padding: 72px 20px; }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  .nav { top: 12px; left: 12px; right: 12px; }
  .nav__inner { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; z-index: 901; }
  .hero__tagline { font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero__left { padding: 110px 24px 48px; }
  .hero__right { min-height: 200px; padding: 40px 24px; }
  .hero__logo { width: 140px; }
  .stats__bento { grid-template-columns: 1fr 1fr; }
  .stat-tile:first-child { grid-column: span 2; }
  .actions__bento { grid-template-columns: 1fr; }
  .action-tile:first-child,
  .action-tile:last-child { grid-column: span 1; }
  .action-tile:last-child { flex-direction: column; }
  .event__countdown { grid-template-columns: repeat(2, 1fr); }
  .aud-card { padding: 36px 24px; gap: 18px; }
  .testi-card { padding: 36px 28px; }
  .contact__info { padding: 56px 24px; }
  .contact__permanent { padding: 56px 24px; }
  .hero__cta { flex-direction: column; gap: 12px; }
  .hero__cta .btn { align-self: stretch; justify-content: center; text-align: center; }
  .partners__track-wrap::before,
  .partners__track-wrap::after { width: 40px; }
}

/* Mobile étroit (480px) */
@media (max-width: 480px) {
  .u-section { padding: 60px 16px; }
  .hero__left { padding: 100px 20px 44px; }
  .hero__tagline { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .hero__sub { font-size: .95rem; }
  .aud-card { padding: 32px 20px; }
  .section__title { font-size: clamp(2rem, 8vw, 3.2rem); }
  .event__title { font-size: clamp(2.4rem, 9vw, 4rem); }
  .event { padding: 60px 16px; }
  .gallery { padding: 60px 16px; }
  .contact__info { padding: 48px 20px; }
  .contact__permanent { padding: 48px 20px; }
  .stats { padding: 40px 16px; }
  .partners { padding: 60px 0; }
  .footer__inner { padding: 40px 20px; }
}
