/* ============================================================
   AMICALE DES SAPEURS-POMPIERS — CIS Sud Agglo
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #d42a0f;
  --red2:   #b02208;
  --black:  #0c0c0c;
  --dark:   #141414;
  --dark2:  #1e1e1e;
  --mid:    #f0eeea;
  --white:  #ffffff;
  --gray:   #7a7a7a;
  --border: rgba(0,0,0,0.1);

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 150px;
  mix-blend-mode: normal;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(12,12,12,0.6);
  backdrop-filter: blur(16px);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.light .header-inner {
  background: rgba(255,255,255,0.9);
  border-bottom-color: rgba(0,0,0,0.08);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}
.menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: width 0.3s, transform 0.3s, opacity 0.3s;
}
.menu-btn span:first-child  { width: 28px; }
.menu-btn span:last-child   { width: 18px; }
.menu-btn:hover span        { width: 28px; }
.site-header.light .menu-btn span { background: var(--black); }

.nav-overlay.open ~ .site-header .menu-btn span,
.menu-btn.open span { background: var(--white) !important; }
.menu-btn.open span:first-child { width: 28px; transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open span:last-child  { width: 28px; transform: translateY(-7.5px) rotate(-45deg); }

.header-logo img {
  width: 300px;
  height: auto;
  position: absolute;
  left: 0;
  transition: opacity 0.3s;
}
.header-logo { position: relative; display: flex; align-items: center; width: 300px; height: 91px; }
.logo-white { opacity: 1; }
.logo-black { opacity: 0; }
.site-header.light .logo-white { opacity: 0; }
.site-header.light .logo-black { opacity: 1; }

.header-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 9px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.header-cta:hover { background: var(--red); border-color: var(--red); }
.site-header.light .header-cta { color: var(--black); border-color: rgba(0,0,0,0.25); }
.site-header.light .header-cta:hover { color: var(--white); }

.header-lock {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.header-lock svg { width: 16px; height: 16px; }
.header-lock:hover { background: var(--red); border-color: var(--red); }
.site-header.light .header-lock { color: var(--black); border-color: rgba(0,0,0,0.25); }

/* ── NAV OVERLAY ──────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.77,0,0.175,1);
}
.nav-overlay.open {
  pointer-events: all;
  clip-path: inset(0 0 0% 0);
}
.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 170px 80px 60px;
}
.nav-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.2s;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.nav-item::before {
  content: attr(data-num);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  color: var(--red);
  opacity: 0.6;
  width: 28px;
}
.nav-item:hover { color: var(--white); }
.nav-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.nav-footer p { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.6; }
.nav-socials { display: flex; gap: 24px; }
.nav-socials a { font-size: 13px; color: rgba(255,255,255,0.4); font-weight: 500; transition: color 0.2s; }
.nav-socials a:hover { color: var(--white); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 180px 80px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #0c0c0c;
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 15% 80%, rgba(212,42,15,0.22) 0%, transparent 60%),
    linear-gradient(to top, rgba(12,12,12,0.9) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--red);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--white);
  display: flex;
  flex-direction: column;
}
.hero-title-line--indent { padding-left: 0.35em; }
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 400px;
}
.hero-actions { flex-shrink: 0; }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-arrow:hover { background: var(--red); border-color: var(--red); }
.btn-arrow svg { width: 16px; height: 16px; }
.hero-number {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.15);
  z-index: 2;
  transform-origin: center center;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 80px;
  right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.scroll-track {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.scroll-thumb {
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: rgba(255,255,255,0.4);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* ── TICKER ───────────────────────────────────────────────── */
.ticker {
  background: var(--red);
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.ticker-dot { color: rgba(255,255,255,0.4); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SHARED STYLES ────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
}
.section-tag--light { color: rgba(255,255,255,0.5); }
.section-tag--light::before { background: rgba(255,255,255,0.3); }

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--black);
}
.section-heading--light { color: var(--white); }

.body-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* ── AMICALE ──────────────────────────────────────────────── */
.amicale { background: var(--mid); }
.amicale-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.amicale-left { position: relative; overflow: hidden; }
.amicale-img-block {
  position: relative;
  height: 100%;
  min-height: 500px;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 500px;
}
.img-placeholder svg { width: 64px; height: 64px; }
.img-placeholder p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.5;
  font-style: italic;
}
.img-ph--red { background: var(--red); }
.amicale-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.amicale-badge {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.badge-num {
  display: block;
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: var(--black);
  letter-spacing: -0.03em;
}
.badge-num sup { font-size: 24px; }
.badge-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 4px;
}
.amicale-right {
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.amicale-right .body-text { margin-top: 24px; }
.amicale-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.value-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.value-icon svg { width: 20px; height: 20px; color: var(--red); }
.value-item strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.value-item p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── CHIFFRES ─────────────────────────────────────────────── */
.chiffres {
  background: var(--black);
  padding: 0;
}
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.chiffre-item {
  padding: 64px 48px;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chiffre-item:last-child { border-right: none; }
.chiffre-val {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  display: inline;
}
.chiffre-unit {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
  margin-left: 4px;
}
.chiffre-item p {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── BLASON ───────────────────────────────────────────────── */
.blason { background: var(--dark); }
.blason-header {
  padding: 80px 80px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blason-header-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  align-self: end;
}
.blason-stage {
  display: grid;
  grid-template-columns: 420px 1fr;
}
.blason-img-col {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.blason-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.blason-figure img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 24px 60px rgba(212,42,15,0.25));
  transition: filter 0.4s, transform 0.4s;
}
.blason-figure:hover img {
  filter: drop-shadow(0 32px 80px rgba(212,42,15,0.4));
  transform: translateY(-4px);
}
.blason-figure figcaption {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  line-height: 1.7;
  font-style: italic;
}
.blason-figure figcaption em { color: rgba(255,255,255,0.45); font-style: italic; }

.blason-panels { display: flex; flex-direction: column; }
.blason-panel {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.blason-panel--dark { background: rgba(255,255,255,0.02); }
.panel-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 48px;
  cursor: pointer;
}
.panel-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  width: 28px;
  flex-shrink: 0;
}
.panel-head h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.6);
  flex: 1;
  transition: color 0.2s;
}
.blason-panel.open .panel-head h3 { color: var(--white); }
.blason-panel:hover .panel-head h3 { color: rgba(255,255,255,0.9); }
.panel-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.panel-toggle svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s, color 0.2s;
}
.blason-panel.open .panel-toggle { background: var(--red); border-color: var(--red); }
.blason-panel.open .panel-toggle svg { transform: rotate(45deg); color: var(--white); }
.panel-toggle:hover { border-color: rgba(255,255,255,0.3); }

.panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding: 0 48px;
}
.blason-panel.open .panel-body {
  max-height: 700px;
  padding: 0 48px 40px;
}

.panel-items { display: flex; flex-direction: column; gap: 20px; }
.panel-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.2s, background 0.2s;
}
.panel-item:hover { border-color: rgba(212,42,15,0.25); background: rgba(212,42,15,0.04); }
.pi-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 8px;
}
.pi-marker--pink { background: #d4607a; }
.pi-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}
.pi-text p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* Memorial panel */
.memorial-intro {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 24px;
}
.memorial-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.memorial-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border-left: 2px solid rgba(255,255,255,0.15);
}
.mc-cross {
  font-size: 22px;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  flex-shrink: 0;
}
.memorial-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3px;
}
.memorial-card span { font-size: 13px; color: rgba(255,255,255,0.35); }
.memorial-quote {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  font-style: italic;
  line-height: 1.7;
  padding-left: 16px;
  border-left: 2px solid rgba(212,42,15,0.3);
}

/* ── ÉVÉNEMENTS ───────────────────────────────────────────── */
.evenements { background: var(--white); }
.eve-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding: 80px 80px 64px;
  border-bottom: 1px solid var(--border);
}
.eve-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  align-self: end;
}
.eve-list { display: flex; flex-direction: column; }
.eve-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 40px 80px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}
.eve-item:hover { background: #fafafa; }
.eve-item--featured { background: var(--red); }
.eve-item--featured:hover { background: var(--red2); }
.eve-item--featured .eve-day,
.eve-item--featured .eve-month,
.eve-item--featured .eve-year { color: rgba(255,255,255,0.9); }
.eve-item--featured .eve-month { color: rgba(255,255,255,0.6); }
.eve-item--featured .eve-tag { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.12); }
.eve-item--featured h3,
.eve-item--featured p,
.eve-item--featured .eve-meta span { color: var(--white); }
.eve-item--featured p { color: rgba(255,255,255,0.7); }
.eve-item--featured .eve-meta span { color: rgba(255,255,255,0.6); }
.eve-item--featured .eve-arrow { border-color: rgba(255,255,255,0.3); color: var(--white); }
.eve-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.eve-day {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
}
.eve-month {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}
.eve-year {
  font-size: 12px;
  color: rgba(0,0,0,0.25);
  margin-top: 2px;
}
.eve-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: #fdecea;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.eve-info h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.eve-info p { font-size: 14px; color: var(--gray); line-height: 1.6; }
.eve-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.eve-meta span { font-size: 13px; color: var(--gray); font-weight: 500; }
.eve-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  transition: background 0.2s, border-color 0.2s;
  color: var(--black);
}
.eve-arrow svg { width: 16px; height: 16px; }
.eve-item:hover .eve-arrow { background: var(--black); border-color: var(--black); color: var(--white); }
.eve-item--featured:hover .eve-arrow { background: rgba(255,255,255,0.2); border-color: transparent; }

/* ── FORMS ────────────────────────────────────────────────── */
.aform { display: flex; flex-direction: column; gap: 16px; }
.cform { display: flex; flex-direction: column; gap: 16px; }
.aform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aform-field { display: flex; flex-direction: column; gap: 6px; }
.aform-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.contact-right .aform-field label { color: var(--gray); }
input, textarea, select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.2); }
input:focus, textarea:focus, select:focus {
  border-color: var(--red);
  background: rgba(255,255,255,0.08);
}
select option { background: var(--dark2); color: var(--white); }
textarea { resize: vertical; min-height: 140px; }
.contact-right input,
.contact-right textarea,
.contact-right select {
  background: var(--mid);
  border-color: rgba(0,0,0,0.1);
  color: var(--black);
}
.contact-right input::placeholder,
.contact-right textarea::placeholder { color: #aaa; }
.contact-right input:focus,
.contact-right textarea:focus { background: var(--white); border-color: var(--red); }
.aform-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.aform-submit:hover { background: var(--red2); }
.aform-submit svg { width: 16px; height: 16px; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact { background: var(--mid); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 600px;
}
.contact-left {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.contact-coords {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0;
}
.coord-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.coord-item svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.coord-item strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.coord-item span { font-size: 13px; color: var(--gray); line-height: 1.6; }
.contact-socials { display: flex; gap: 16px; }
.csocial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.csocial svg { width: 16px; height: 16px; }
.csocial:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.contact-right {
  padding: 80px;
  display: flex;
  align-items: center;
}
.contact-right .cform { width: 100%; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--dark); }
.footer-inner {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-brand img { height: 52px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.6; }
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.35); font-weight: 500; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-bottom div { display: flex; gap: 24px; }
.footer-bottom a { font-size: 12px; color: rgba(255,255,255,0.2); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12,12,12,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mid);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: #e0e0e0; }
.modal-close svg { width: 16px; height: 16px; color: var(--black); }

.modal-logo {
  margin-bottom: 28px;
}
.modal-logo img { height: 72px; width: auto; }

.modal h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 8px;
}
.modal > p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.6;
}

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form input {
  background: var(--mid);
  border-color: transparent;
  color: var(--black);
}
.modal-form input::placeholder { color: #aaa; }
.modal-form input:focus { background: var(--white); border-color: var(--red); }
.modal-form .aform-field label { color: var(--gray); }

.password-wrap {
  position: relative;
}
.password-wrap input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--gray);
  transition: color 0.2s;
}
.password-toggle:hover { color: var(--black); }
.password-toggle svg { width: 18px; height: 18px; }

.modal-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: -4px;
}
.modal-forgot {
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
  transition: opacity 0.2s;
}
.modal-forgot:hover { opacity: 0.7; }

.modal-submit { margin-top: 4px; }

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--dark2);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .amicale-layout,
  .blason-stage    { grid-template-columns: 1fr; }
  .blason-img-col  { position: static; height: auto; padding: 48px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .blason-figure img { max-width: 260px; }
  .chiffres-grid   { grid-template-columns: repeat(2, 1fr); }
  .chiffre-item    { border-bottom: 1px solid rgba(255,255,255,0.06); }
}

@media (max-width: 900px) {
  .blason-header,
  .eve-header,
  .contact-inner   { grid-template-columns: 1fr; }
  .contact-left    { border-right: none; border-bottom: 1px solid var(--border); }
  .eve-item        { grid-template-columns: 80px 1fr; gap: 24px; padding: 32px 40px; }
  .eve-meta        { display: none; }
  /* Le header fixe fait 150px — le hero commence en dessous */
  .hero            { padding: 180px 40px 60px; }
  .hero-bottom     { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 680px) {
  /* Header réduit — grid 3 col pour centrer le logo */
  .site-header     { height: 70px; }
  .header-inner    { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px; }
  .header-logo     { width: 150px; height: 44px; justify-self: center; }
  .header-logo img { width: 150px; }
  .header-cta      { display: none; }
  .header-lock     { display: flex; justify-self: end; }

  /* Nav overlay */
  .nav-overlay-inner { padding: 100px 28px 40px; }
  .nav-item          { font-size: clamp(34px, 9vw, 56px); gap: 14px; }

  /* Hero — header réduit à 70px */
  .hero            { padding: 100px 24px 48px; }
  .hero-title      { font-size: clamp(52px, 16vw, 72px); }
  .hero-desc       { font-size: 14px; max-width: 100%; }
  .hero-scroll-hint { display: none; }
  .btn-arrow       { width: 100%; justify-content: center; }

  /* Amicale */
  .amicale-right   { padding: 40px 24px; }
  .amicale-badge   { bottom: 16px; right: 16px; padding: 14px 18px; }
  .badge-num       { font-size: 40px; }
  .badge-num sup   { font-size: 18px; }

  /* Chiffres */
  .chiffres-grid   { grid-template-columns: 1fr 1fr; }
  .chiffre-item    { padding: 40px 24px; }
  .chiffre-val     { font-size: 52px; }
  .chiffre-unit    { font-size: 26px; }

  /* Blason */
  .blason-header      { padding: 40px 24px; gap: 20px; }
  .blason-header-desc { font-size: 13px; }
  .blason-img-col     { padding: 32px 24px; }
  .panel-head         { padding: 20px 24px; }
  .panel-head h3      { font-size: 18px; }
  .blason-panel.open .panel-body { max-height: 900px; padding: 0 24px 28px; }

  /* Événements */
  .eve-header      { padding: 40px 24px; }
  .eve-item        { padding: 24px; grid-template-columns: 60px 1fr; gap: 16px; }
  .eve-day         { font-size: 36px; }
  .eve-info h3     { font-size: 18px; }

  /* Contact */
  .contact-left,
  .contact-right   { padding: 40px 24px; }
  .contact-socials { flex-wrap: wrap; gap: 12px; }

  /* Footer */
  .footer-inner    { padding: 40px 24px; gap: 32px; }
  .footer-brand    { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-brand img { height: 40px; }
  .footer-nav      { gap: 16px; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Forms */
  .aform-row       { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .chiffres-grid   { grid-template-columns: 1fr; }
  .nav-item        { font-size: clamp(28px, 8vw, 40px); }
}
