:root {
  --sand: #F7F3EC;
  --ink: #14181C;
  --ink-panel: #1C2B3A;
  --red: #A6373A;
  --red-deep: #8A2C2F;
  --green: #4A5D45;
  --white: #FFFDF9;

  --font-display: "Archivo Black", sans-serif;
  --font-body: "Archivo", sans-serif;

  --radius: 2px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: url('images/cursor-gray.png') 16 16, auto;
}

a, button, .btn, input[type="submit"], input[type="checkbox"], input[type="radio"],
.quiz-option, .scroll-cue, .quiz-callout, .nav-cta {
  cursor: url('images/cursor-color.png') 16 16, pointer;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }

p { margin: 0 0 1em; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.accroche {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  max-width: 520px;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 1.2em;
}

.text-block { max-width: 640px; }
.text-block p { color: inherit; opacity: 0.9; }

.section { padding: 110px 0; }
.section--dark { background: var(--ink-panel); color: var(--white); }
.section--dark h1, .section--dark h2 { color: var(--white); }
.section--dark .text-block p { color: var(--white); }
.section--photo { background-size: cover; background-position: center; }
.manifesto-hero { background-position: center 20%; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; }
.photo-grid figcaption { font-size: 0.82rem; margin-top: 8px; opacity: 0.75; }

.raison-img, .event-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
  display: block;
}

.origine-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.origine-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .origine-grid { grid-template-columns: 1fr; }
}

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(247, 243, 236, 0.95);
  border-bottom: 1px solid rgba(20,24,28,0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.logo {
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.logo-img { height: 96px; display: block; }
.logo:hover { text-decoration: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
}
.scroll-cue-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  animation: scrollBounce 2.2s ease-in-out infinite;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.scroll-cue-icon {
  width: 32px; height: 32px;
  filter: grayscale(1) brightness(2);
  transition: filter 0.25s ease;
}
.scroll-cue:hover .scroll-cue-circle {
  border-color: var(--white);
  background: rgba(255,255,255,0.18);
}
.scroll-cue:hover .scroll-cue-icon {
  filter: grayscale(0) brightness(1);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-circle { animation: none; }
}

.section--photo-light { background-size: cover; background-position: center; }
.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a { color: var(--white); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.25s ease; }
.site-header.scrolled .main-nav a { color: var(--ink); }
.main-nav a:hover { color: var(--red); text-decoration: none; }
.nav-cta { color: var(--red) !important; }
.header-login.btn-ghost { border-color: var(--white); color: var(--white); }
.site-header.scrolled .header-login.btn-ghost { border-color: var(--ink); color: var(--ink); }

#header-placeholder { display: flex; align-items: center; min-height: 34px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px; height: 34px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.site-header.scrolled .nav-burger span { background: var(--ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 10px 22px; font-size: 0.75rem; }
.btn-ghost:hover { background: var(--ink) !important; color: var(--white) !important; }
.btn-full { width: 100%; text-align: center; }
.hero-actions { margin-top: 12px; }

/* --- Hero --- */
.hero {
  padding: 200px 0 150px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
}
.hero h1 { color: var(--white); }
.hero .accroche { color: var(--white); opacity: 0.85; }
.hero-inner { max-width: 820px; }
.hero-sub { font-size: 1.05rem; max-width: 560px; opacity: 0.9; color: var(--white); }

/* --- Two column --- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }

/* --- Trois raisons --- */
.raisons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.raison-card { border-top: 3px solid var(--red); padding-top: 20px; }
.raison-card p { opacity: 0.85; }

/* --- Origine --- */
.origine-section { background: var(--sand); }

/* --- Evenements --- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.event-type-card { background: var(--white); border-radius: var(--radius); padding: 30px 26px; border-top: 3px solid var(--green); }
.event-type-card p { opacity: 0.85; }

/* --- Partenaires --- */
.place-list { display: flex; flex-direction: column; gap: 12px; }
.place-list--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.place-card {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--white);
}

/* --- Candidature --- */
.process-list { list-style: none; padding: 0; margin: 28px 0 0; }
.process-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  opacity: 0.9;
}
.process-list li em { display: block; font-size: 0.82rem; opacity: 0.75; font-style: normal; margin-top: 4px; }
.process-list span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
  margin-top: 2px;
}

.quiz-callout {
  display: block;
  background: var(--sand);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 24px 0;
  border-left: 4px solid var(--red);
  transition: transform 0.15s ease;
}
.quiz-callout:hover { text-decoration: none; transform: translateX(3px); }
.quiz-callout-label { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.quiz-callout-cta { display: block; color: var(--red); font-weight: 600; font-size: 0.9rem; }
.candidature-form { background: var(--sand); border-radius: var(--radius); padding: 36px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--ink); }
.form-row input, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid rgba(20,24,28,0.2);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white); color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.form-row input.invalid { border-color: var(--red); }
.field-hint { font-size: 0.78rem; color: var(--red); margin: 6px 0 0; min-height: 1em; }
.form-row--check { display: flex; align-items: flex-start; gap: 10px; }
.form-row--check label { font-size: 0.82rem; font-weight: 400; text-transform: none; color: var(--ink); opacity: 0.8; margin: 0; }
.form-status { font-size: 0.88rem; margin-top: 14px; min-height: 1.2em; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }

/* --- Footer --- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin: 0; }
.footer-tag { margin: 6px 0 0; font-size: 0.85rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.footer-links a:hover { color: var(--white); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .raisons-grid, .events-grid { grid-template-columns: 1fr; }

  .nav-burger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(20,24,28,0.1);
    box-shadow: 0 12px 24px rgba(20,24,28,0.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    color: var(--ink);
    padding: 16px 24px;
    border-top: 1px solid rgba(20,24,28,0.08);
  }
  .main-nav a:first-child { border-top: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- Legal pages --- */
.legal-header { padding: 140px 0 40px; }
.legal-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-updated { font-size: 0.85rem; opacity: 0.6; margin-top: -0.5em; }
.legal-body { padding: 0 0 100px; }
.legal-body .wrap { max-width: 780px; }
.legal-body h2 { font-size: 1.3rem; text-transform: none; letter-spacing: 0; margin-top: 2em; }
.legal-body h3 { font-size: 1.05rem; text-transform: none; margin-top: 1.4em; }
.legal-body p, .legal-body li { font-size: 0.95rem; opacity: 0.85; }
.legal-body ul { padding-left: 1.2em; }
.back-link { display: inline-block; margin-bottom: 12px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Quiz --- */
.quiz-header { padding: 140px 0 40px; text-align: center; }
.quiz-body { padding: 0 0 100px; }
.quiz-body .wrap { max-width: 720px; }
.quiz-question {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(20,24,28,0.1);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.quiz-question h3 { text-transform: none; font-size: 1.05rem; margin-bottom: 16px; letter-spacing: 0; color: var(--ink); }
.quote {
  font-style: italic;
  color: var(--ink);
  opacity: 0.9;
  border-left: 3px solid var(--red);
  padding-left: 16px;
  margin: 0 0 16px;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(20,24,28,0.15);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.quiz-option:hover { border-color: var(--red); }
.quiz-option input { accent-color: var(--red); }
.quiz-option.selected { border-color: var(--red); background: rgba(166,55,58,0.06); }
.quiz-result {
  text-align: center;
  padding: 40px;
  border-radius: var(--radius);
  margin-top: 24px;
  display: none;
}
.quiz-result.show { display: block; }
.quiz-result.success { background: var(--ink-panel); color: var(--white); }
.quiz-result.soft { background: var(--sand-deep, var(--sand)); border: 1.5px solid var(--red); color: var(--ink); }
.quiz-score { font-family: var(--font-display); font-size: 3rem; margin-bottom: 8px; }
.quiz-progress { font-size: 0.85rem; opacity: 0.7; margin-bottom: 24px; }

/* --- Test Ambassadeur (affichage séquentiel) --- */
.ambassadeur-progress-label { font-size: 0.8rem; opacity: 0.85; margin-bottom: 6px; }
.ambassadeur-progress-track { height: 6px; background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.ambassadeur-progress-fill { height: 100%; background: var(--red); transition: width 0.35s ease; }
.ambassadeur-viewport { overflow: hidden; }
.amb-step { transition: transform 0.35s ease, opacity 0.35s ease; transform: translateX(0); opacity: 1; }
.amb-step.exiting { transform: translateX(-40px); opacity: 0; }
.amb-step.entering { transform: translateX(40px); opacity: 0; }

/* --- Carrousel témoignages (autoplay) --- */
.testimonial-carousel-wrap { overflow: hidden; }
.testimonial-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.testimonial-carousel::-webkit-scrollbar { display: none; }
.testimonial-carousel .testimonial-card {
  flex: 0 0 min(420px, 85vw);
}

/* --- Carrousel presse (autoplay) --- */
.press-carousel-wrap { overflow: hidden; }
.press-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.press-carousel::-webkit-scrollbar { display: none; }
.press-carousel .press-card { flex: 0 0 min(420px, 85vw); }
.press-card-logo { height: 40px; display: flex; align-items: center; margin-bottom: 16px; }
.press-card-logo img { max-height: 100%; max-width: 160px; object-fit: contain; }
.press-card-photo { margin: 0 0 16px; }
.press-card-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; }
.press-card a { display: inline-block; margin-top: 4px; font-weight: 600; }
