/* =========================================================
   TOC AFRIQUE 2026 — feuille de style unique
   Blanc dominant / noir structurant / or en accent rare.
   Hiérarchie par contraste de graisse (Archivo 100→900),
   jamais par la couleur ou la taille seule.
   ========================================================= */

/* --- Polices self-hostées (variables, latin + latin-ext) --- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Archivo-var-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Archivo-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter-var-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Variables --- */
:root {
  --c-white: #ffffff;
  --c-black: #0b0b0a;
  --c-ink: #14140f;
  --c-grey-700: #4a4a44;
  --c-grey-500: #666660;
  --c-grey-300: #d9d6cc;
  --c-grey-100: #f4f3ee;
  --c-gold: #a9803f;
  --c-gold-deep: #7c5e2e;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
}
p {
  margin: 0;
}
button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-black);
  color: var(--c-white);
  padding: 0.75em 1.25em;
  z-index: 200;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

/* --- Motif amazigh (filigrane, jamais dominant) --- */
.pattern-amazigh {
  position: relative;
  isolation: isolate;
}
.pattern-amazigh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/pattern-amazigh.svg");
  background-size: 96px 96px;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--c-grey-300);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand-mark {
  display: flex;
  align-items: center;
}
.brand-mark img {
  height: clamp(38px, 5.5vw, 54px);
  width: auto;
  display: block;
}
.brand-mark-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
}
.brand-mark-text strong {
  font-weight: 800;
  color: var(--c-white);
}
.brand-mark-text span {
  font-weight: 200;
  color: rgba(255, 255, 255, 0.55);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}
.nav-primary a {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding-block: 0.4em;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  border-color: var(--c-black);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}
.lang-switch button,
.lang-switch a {
  padding: 0.6rem 0.5rem;
  letter-spacing: 0.03em;
  color: var(--c-grey-500);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lang-switch button[aria-pressed="true"],
.lang-switch a[aria-current="true"] {
  color: var(--c-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: -8px 0;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--c-black);
  display: block;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .menu-toggle {
    display: flex;
  }
  .site-header {
    /* backdrop-filter turns this element into a new containing block for
       fixed-position descendants, which breaks .nav-primary's full-viewport
       overlay below — disable it only where the mobile menu is fixed. */
    backdrop-filter: none;
  }
  .nav-primary {
    position: fixed;
    inset: 92px 0 0 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease),
      visibility 0.2s;
  }
  .nav-primary[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav-primary a {
    font-size: 1.1rem;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4rem);
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.5;
}
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    var(--c-white) 100%
  );
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero-title .w-bold {
  font-weight: 800;
  display: block;
}
.hero-title .w-light {
  font-weight: 200;
  display: block;
}

.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 1.2em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.02em;
  max-width: 46em;
}
.hero-meta .sep {
  color: var(--c-grey-300);
  font-weight: 300;
}

.hero-foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--c-grey-300);
  padding-top: 1.75rem;
}
@media (max-width: 560px) {
  .hero-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
  }
  .hero-foot .btn {
    justify-content: center;
    padding-block: 1.05em;
  }
}

.countdown {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.countdown div {
  text-align: left;
}
.countdown .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown .label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-grey-500);
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 0.95em 1.6em;
  background: var(--c-black);
  color: var(--c-white);
  border: 1px solid var(--c-black);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.btn:hover {
  background: var(--c-white);
  color: var(--c-black);
}
.btn-ghost {
  background: transparent;
  color: var(--c-black);
}
.btn-ghost:hover {
  background: var(--c-black);
  color: var(--c-white);
}

/* =========================================================
   Bandeau chiffres clés (signature bocusedor.com / cmpatisserie.com)
   ========================================================= */
.stats-band {
  background: var(--c-black);
  color: var(--c-white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
.stats-grid > div {
  text-align: center;
  padding-inline: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.stats-grid > div:first-child {
  border-left: none;
}
.stats-grid .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  line-height: 1;
}
.stats-grid .label {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
}
@media (max-width: 780px) and (min-width: 561px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  .stats-grid > div:nth-child(odd) {
    border-left: none;
  }
  .stats-grid > div:nth-child(3) {
    grid-column: 1 / -1;
    border-left: none;
  }
}
@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
    padding-block: 0.5rem;
  }
  .stats-grid > div {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    padding-block: 1.1rem;
  }
  .stats-grid > div:first-child {
    border-top: none;
  }
  .stats-grid .num {
    font-size: 1.9rem;
  }
  .stats-grid .label {
    margin-top: 0;
    text-align: right;
    max-width: 9.5em;
  }
}

/* =========================================================
   Accroche
   ========================================================= */
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.accroche {
  max-width: 44em;
  margin-inline: auto;
  text-align: center;
}
.accroche h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 300;
  text-transform: none;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.accroche h2 strong {
  font-weight: 800;
}
.accroche p {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--c-grey-700);
  line-height: 1.7;
}

/* =========================================================
   Cartes compétitions — parité stricte
   ========================================================= */
.competitions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 800px) {
  .competitions {
    grid-template-columns: 1fr;
  }
}

.comp-card {
  border: 1px solid var(--c-grey-300);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.2s var(--ease);
}
.comp-card:hover {
  border-color: var(--c-black);
}
.comp-card img {
  width: min(280px, 78%);
  height: auto;
}
.comp-card .comp-when {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-grey-700);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--c-grey-300);
  padding-top: 1.25rem;
}
.comp-card .comp-when .gold-dot {
  color: var(--c-gold-deep);
}
.comp-card .comp-quote {
  font-size: 1.05rem;
  color: var(--c-ink);
  line-height: 1.6;
  max-width: 26em;
}
.comp-card a.card-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.comp-card a.card-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
.comp-card a.card-link:hover::after {
  transform: translateX(4px);
}

/* =========================================================
   Parcours en trois étapes
   ========================================================= */
.journey-title {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.journey-title .eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
  margin-bottom: 0.75rem;
}
.journey-title h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
}

.journey {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.journey .step {
  border: 1px solid var(--c-grey-300);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.journey .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(0.4rem, 1.5vw, 1rem);
  color: var(--c-grey-300);
  font-size: 1.4rem;
}
.journey .step-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.journey .step-detail {
  font-size: 0.85rem;
  color: var(--c-grey-500);
}
.journey .step.is-current {
  background: var(--c-black);
  border-color: var(--c-black);
  color: var(--c-white);
  position: relative;
}
.journey .step.is-current .step-detail {
  color: rgba(255, 255, 255, 0.65);
}
.journey .step.is-current .here {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-top: 0.5rem;
}

@media (max-width: 860px) {
  .journey {
    grid-template-columns: 1fr;
  }
  .journey .arrow {
    transform: rotate(90deg);
    padding-block: 0.5rem;
  }
}

/* =========================================================
   Citation
   ========================================================= */
.citation {
  background: var(--c-grey-100);
}
.citation-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 780px) {
  .citation-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.citation-portrait {
  margin: 0;
}
.citation-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 1053;
  object-fit: cover;
}
@media (max-width: 780px) {
  .citation-portrait {
    max-width: 220px;
    margin-inline: auto;
  }
}
.citation-portrait figcaption {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--c-grey-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-grey-700);
}
.citation blockquote {
  max-width: 38em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
}
@media (max-width: 780px) {
  .citation blockquote {
    max-width: none;
    margin-inline: auto;
  }
}
.citation cite {
  display: block;
  font-style: normal;
  font-family: var(--font-text);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--c-grey-500);
  margin-top: 1.5rem;
}

/* =========================================================
   Bandeau cookies
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--c-black);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem var(--gutter);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.cookie-banner[data-open="true"] {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1 1 32em;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.cookie-banner p a {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner button {
  flex: 0 0 auto;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
}
@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner button {
    width: 100%;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--c-black);
  color: rgba(255, 255, 255, 0.85);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 780px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
.footer-top h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 26em;
}
.footer-top address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-top ul li {
  margin-bottom: 0.6rem;
}
.footer-top a {
  font-size: 0.9rem;
}
.footer-top a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Animations légères — révélation au défilement */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .photo-feature img {
    transition: none;
  }
}

.footer-social li {
  margin-bottom: 1.1rem;
}
.footer-social li:last-child {
  margin-bottom: 0;
}
.footer-social-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}
.footer-social-icons {
  display: flex;
  gap: 0.6rem;
}
.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.footer-social-icons a:hover,
.footer-social-icons a:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.footer-bottom {
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-bottom a:hover {
  color: var(--c-white);
}

/* =========================================================
   Page-hero — sous-pages (événement, compétitions, programme,
   partenaires, contact). Version sobre du hero d'accueil :
   pas de compte à rebours, pas de bandeau chiffres.
   ========================================================= */
.page-hero {
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
}
.page-hero .hero-eyebrow {
  margin-bottom: 1.1rem;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.75rem);
  line-height: 1.02;
  font-weight: 800;
  max-width: 18em;
}
.page-hero .lede {
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--c-grey-700);
  line-height: 1.7;
  max-width: 42em;
}
.page-hero .day-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-black);
  border: 1px solid var(--c-grey-300);
  padding: 0.6em 1.1em;
}
.page-hero .day-tag .gold-dot {
  color: var(--c-gold-deep);
}

/* =========================================================
   Repères — petits faits clés (créé en / finale / équipe)
   ========================================================= */
.reperes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--c-grey-300);
  border-bottom: 1px solid var(--c-grey-300);
}
.reperes > div {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--c-grey-300);
}
.reperes > div:first-child {
  border-left: none;
}
.reperes .reperes-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-grey-500);
  margin-bottom: 0.6rem;
}
.reperes .reperes-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.3;
}
@media (max-width: 700px) {
  .reperes {
    grid-template-columns: 1fr;
  }
  .reperes > div {
    border-left: none;
    border-top: 1px solid var(--c-grey-300);
    padding-block: 1.25rem;
  }
  .reperes > div:first-child {
    border-top: none;
  }
}

/* =========================================================
   Photo éditoriale — pleine largeur contenue, légende sobre
   ========================================================= */
.photo-feature {
  margin-block: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
}
.photo-feature img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.photo-feature:hover img {
  transform: scale(1.03);
}
.photo-feature figcaption {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--c-grey-500);
  max-width: 42em;
}
.photo-feature.is-wide {
  margin-inline: calc(var(--gutter) * -1);
  width: calc(100% + var(--gutter) * 2);
}
.photo-feature.is-wide figcaption {
  margin-inline: var(--gutter);
}
.photo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-block: clamp(2rem, 5vw, 3rem);
}
.photo-grid-2 img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .photo-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Frise éditions (4 éditions TOC Afrique)
   ========================================================= */
.editions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-grey-300);
  border: 1px solid var(--c-grey-300);
}
.editions > div {
  background: var(--c-white);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}
.editions .edition-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.editions .edition-place {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-grey-500);
}
.editions > div.is-current {
  background: var(--c-black);
  color: var(--c-white);
}
.editions > div.is-current .edition-place {
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 700px) {
  .editions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   Liste des pays engagés (avec drapeaux)
   ========================================================= */
.country-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
.country-list li {
  display: flex;
  align-items: center;
  gap: 0.75em;
  border: 1px solid var(--c-grey-300);
  padding: 0.85em 1.1em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.country-list img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--c-grey-300);
}
@media (max-width: 700px) {
  .country-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.country-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-block: clamp(2rem, 5vw, 3rem);
}
.country-columns h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-grey-300);
}
@media (max-width: 700px) {
  .country-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* =========================================================
   Programme — les 3 jours
   ========================================================= */
.day-schedule {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-grey-300);
}
.day-schedule > div {
  display: grid;
  grid-template-columns: 12em 1fr;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--c-grey-300);
}
.day-schedule .day-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.day-schedule .day-date span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--c-gold-deep);
  text-transform: none;
  letter-spacing: 0;
}
.day-schedule .day-desc {
  font-size: 1rem;
  color: var(--c-grey-700);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .day-schedule > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.notice-waiting {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--c-grey-500);
  font-style: italic;
}

/* =========================================================
   Presse & actualités
   ========================================================= */
.press-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-grey-300);
}
.press-item {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--c-grey-300);
}
.press-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--c-gold-deep);
}
.press-year span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--c-grey-500);
  letter-spacing: 0;
}
.press-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.press-summary {
  font-size: 0.98rem;
  color: var(--c-grey-700);
  line-height: 1.65;
  max-width: 48em;
}
.press-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1rem;
}
.press-sources a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--c-grey-300);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s var(--ease);
}
.press-sources a:hover {
  border-color: var(--c-black);
}
@media (max-width: 640px) {
  .press-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.press-video {
  grid-column: 1 / -1;
  margin-top: 1.25rem;
}
@media (max-width: 560px) {
  .press-video {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Contenu juridique (mentions légales / confidentialité / CGU / cookies)
   ========================================================= */
.legal-content {
  max-width: 42em;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-top: 3rem;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-grey-700);
}
.legal-content ul,
.legal-content ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--c-grey-700);
  line-height: 1.7;
}
.legal-content li {
  list-style: disc;
  margin-bottom: 0.4rem;
}
.legal-content ol li {
  list-style: decimal;
}
.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content .legal-updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-grey-300);
  font-size: 0.82rem;
  color: var(--c-grey-500);
}

/* =========================================================
   Vidéo — façade clic-pour-charger (aucune connexion tierce avant clic)
   ========================================================= */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--c-grey-300);
  cursor: pointer;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed .video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 10, 0.28);
  transition: background 0.2s var(--ease);
}
.video-embed:hover .video-play {
  background: rgba(11, 11, 10, 0.42);
}
.video-embed .video-play-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-embed .video-play-ring::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--c-white);
}
.video-caption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--c-grey-500);
}

/* =========================================================
   Formulaires (partenaires / contact)
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  max-width: 42em;
}
.form-grid .field.is-full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius);
  padding: 0.75em 0.85em;
  font-family: var(--font-text);
  font-size: 0.98rem;
  color: var(--c-ink);
  background: var(--c-white);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--c-gold);
  outline-offset: 1px;
  border-color: var(--c-gold);
}
.field textarea {
  resize: vertical;
  min-height: 8em;
}
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65em;
  font-size: 0.85rem;
  color: var(--c-grey-700);
  line-height: 1.5;
}
.field-consent input {
  margin-top: 0.3em;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.form-status {
  margin-top: 1.25rem;
  padding: 1em 1.25em;
  border: 1px solid var(--c-grey-300);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-actions {
  margin-top: 1.75rem;
}

/* =========================================================
   Utilitaires
   ========================================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
