/* ==========================================================================
   Capitane Coop — charte 2026
   Bleu #1401A5, crème #FFFEDC, étoile rouge #FF1200 / jaune #FFFE00 (valeurs de l'affiche).
   Polices de la charte : Forma DJR Display (titres) + PP Grafier (texte) — voir fonts.css.
   En attendant les fichiers, Archivo + Newsreader (Google Fonts) prennent le relais.
   Univers monochrome volontaire : le site vit en bleu, en clair comme en sombre.
   ========================================================================== */

:root {
  --blue: #1401A5;
  --blue-deep: #0F0180;
  --blue-ink: #0A0160;
  --cream: #FFFEDC;
  --cream-soft: rgba(255, 254, 220, 0.72);
  --cream-line: rgba(255, 254, 220, 0.28);
  --red: #FF1200;
  --yellow: #FFFE00;    /* jaune de l'affiche */

  --display: "Forma DJR Display", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "PP Grafier", "Newsreader", "Times New Roman", Times, Georgia, serif;

  --measure: 34rem;         /* ~62 caractères en Newsreader 19px */
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.5;
  font-optical-sizing: auto;
  padding-inline: var(--gutter);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-color: var(--yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

p { margin: 0 0 1em; }
strong { font-weight: 600; }

/* --------------------------------------------------------------- mot-symbole (assets/logo.svg, inline, prend la couleur du texte) */
.wordmark { display: inline-block; color: var(--cream); line-height: 0; }
.wordmark svg { display: block; height: 2.3rem; width: auto; }
.foot .wordmark svg { height: 3rem; }

/* --------------------------------------------------------------- en-tête */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  max-width: 72rem;
  margin-inline: auto;
}
.menu { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.menu a:not(.cta) {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu a:not(.cta):hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.lang { display: flex; gap: 0.6rem; border-left: 1px solid var(--cream-line); padding-left: 1rem; }
.lang a.active { color: var(--yellow); }

.burger { display: none; }

@media (max-width: 860px) {
  .burger {
    display: grid; gap: 5px;
    background: none; border: 0; padding: 0.4rem; cursor: pointer;
  }
  .burger span { display: block; width: 26px; height: 2px; background: var(--cream); }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 4.6rem;
    background: var(--blue-deep);
    padding: 1.5rem var(--gutter) 2rem;
    flex-direction: column; align-items: flex-start;
    border-top: 1px solid var(--cream-line);
    z-index: 10;
  }
  .menu.open { display: flex; }
  .menu ul { flex-direction: column; gap: 0.9rem; }
  .menu a:not(.cta) { font-size: 1rem; }
  .lang { border: 0; padding: 0; }
  .top { position: relative; }
}

/* --------------------------------------------------------------- boutons */
.cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-ink);
  background: var(--cream);
  padding: 0.7em 1.1em;
  border-radius: 999px;
  transition: background 120ms ease;
}
.cta:hover { background: var(--yellow); text-decoration: none; }
.cta.big { font-size: 0.95rem; padding: 0.9em 1.5em; }

/* --------------------------------------------------------------- héro (l'affiche) */
.hero {
  text-align: center;
  padding-block: clamp(2rem, 8vh, 6rem) clamp(2rem, 6vh, 4rem);
  display: grid;
  justify-items: center;
}
.hero-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  position: relative; z-index: 1;
}
.star-hero {
  width: clamp(190px, 38vw, 340px); height: auto;
  margin-block: calc(-1 * clamp(2.5rem, 9vw, 5.5rem));
  position: relative; z-index: 0;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  position: relative; z-index: 1;
}
.hero-text { max-width: var(--measure); margin-top: clamp(2rem, 5vw, 3.5rem); text-align: left; }

@media (prefers-reduced-motion: no-preference) {
  .star-hero { animation: turn 240s linear infinite; }
  @keyframes turn { to { transform: rotate(360deg); } }
}

/* --------------------------------------------------------------- sections */
main { max-width: 72rem; margin-inline: auto; }

.manifesto, .sec {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, var(--measure));
  gap: 0 1.25rem;
  justify-content: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--cream-line);
}
.manifesto { border-top: 0; }
.sec-mark { padding-top: 0.25rem; }
.star-mark { width: 40px; height: 40px; }
.sec-body > :last-child { margin-bottom: 0; }

.sec h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 1.25rem;
}
.lede { font-size: 1.08em; }
.lede strong { font-weight: 600; }

.credo {
  margin-top: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

/* listes */
.list { margin: 0 0 1em; padding: 0; list-style: none; }
.list li { margin-bottom: 0.9em; }
.list-tools strong, .list-values strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92em;
  letter-spacing: 0.01em;
}
.list-tools strong a { text-decoration-color: var(--cream-line); }
.list-tools strong a:hover { text-decoration-color: var(--yellow); }
.list-tools li { display: grid; gap: 0.15rem; }
.list-dash li { padding-left: 1.4rem; position: relative; }
.list-dash li::before { content: "—"; position: absolute; left: 0; color: var(--yellow); }
.list-values strong::after { content: " — "; font-family: var(--serif); font-weight: 400; }

@media (max-width: 560px) {
  .manifesto, .sec { grid-template-columns: minmax(0, 1fr); }
  .sec-mark { margin-bottom: 0.75rem; }
  .star-mark { width: 32px; height: 32px; }
}

/* --------------------------------------------------------------- appel final */
.join-cta {
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--cream-line);
  display: grid; justify-items: center; gap: 0.5rem;
}
.join-cta h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 2.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 1rem;
}
.join-cta p { max-width: var(--measure); }
.join-cta .cta { margin-top: 1rem; }

/* --------------------------------------------------------------- pages annexes */
.pagehead {
  max-width: calc(var(--measure) + 4.75rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 6vh, 4rem) 1rem;
}
.pagehead h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 2rem + 4vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.sec-note { font-size: 0.9em; color: var(--cream-soft); }

.press { list-style: none; margin: 0 0 2rem; padding: 0; }
.press li {
  display: grid; gap: 0.2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--cream-line);
}
.press li:first-child { border-top: 1px solid var(--cream-line); }
.press-media {
  font-family: var(--display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow);
}
.press li a { font-size: 1.05em; line-height: 1.35; }
.press-meta { font-family: var(--display); font-size: 0.78rem; color: var(--cream-soft); letter-spacing: 0.02em; }
.press-meta time { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- pied de page */
.foot {
  max-width: 72rem; margin-inline: auto;
  border-top: 1px solid var(--cream-line);
  padding-block: 3rem 2.5rem;
  display: grid; justify-items: center; gap: 0.75rem; text-align: center;
}
.foot-tag {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1; font-size: 1.3rem; margin: 0.5rem 0 0;
}
.foot-contact { margin: 0; }
.foot-legal { margin: 0; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--cream-soft); }
.foot .wordmark { margin-top: 1.5rem; }

@media print {
  body { background: #fff; color: #000; }
  .menu, .burger, .cta { display: none !important; }
}
