/* Café Mammouth — styles communs
   Couleurs : modifier ici pour changer la charte sur tout le site. */
:root {
  /* Charte Café Mammouth : jaune Coolos, noir, crème et couleurs parfums (piste 1) */
  --papier: #FBF5EC;      /* crème clair : fond général */
  --creme: #F2E1D1;       /* crème du logo */
  --encre: #0E0C0B;       /* noir Coolos */
  --prune: #0E0C0B;       /* le prune du fichier n'est pas retenu : fonds sombres en noir Coolos */
  --jaune: #F2C744;       /* jaune Coolos */
  --rose: #DDA1A8;        /* vieux rose */
  --tomate: #D2553A;
  --sauge: #9AA27A;
  --bleu: #8AA7D3;        /* bleu poudré */
  --blanc: #FFFFFF;
  /* anciens noms gardés pour ne rien casser */
  --fraise: var(--tomate);  /* accent pour les grands titres seulement (contraste) */
  --pistache: var(--jaune);
  --gris-clair: #EADBCB;
  --gris-texte: #F2E1D1;
  --ligne-sombre: rgba(255, 255, 255, 0.35);
  --largeur: 1200px;
  --titres: "Titan One", "DM Sans", system-ui, sans-serif;
  --titres-longs: "DM Sans", system-ui, sans-serif;
  --texte: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
a { color: inherit; }
a:hover { color: var(--fraise); }
:focus-visible { outline: 3px solid var(--fraise); outline-offset: 3px; }

.h { font-family: var(--titres); font-weight: 400; letter-spacing: 0; margin: 0; line-height: 1.12; }
.h-long { font-family: var(--titres-longs); font-weight: 700; letter-spacing: -0.01em; }
.wrap { max-width: var(--largeur); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre); }
.lead { font-size: 20px; line-height: 1.5; max-width: 660px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-encre { background: var(--encre); color: var(--blanc); }
.btn-fraise { background: var(--jaune); color: var(--encre); border-color: var(--encre); }
.btn-pistache { background: var(--pistache); color: var(--encre); }
.btn-blanc { background: var(--blanc); color: var(--encre); }
.btn-contour { border-color: currentColor; background: transparent; }
.btn:hover { filter: brightness(1.08); color: inherit; }
.btn-encre:hover { color: var(--blanc); }
.btn-fraise:hover { color: var(--encre); }

/* En-tête */
.entete { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.logo { font-size: 28px; text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tomate); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Ouverture de page */
.hero { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-texte { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 72px); }
.logo-coolos { flex: 1 1 300px; width: 100%; max-width: 400px; min-width: 0; border-radius: 28px; }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section h2 { font-size: clamp(30px, 4vw, 46px); }
.bande-blanche { background: var(--blanc); }
.bande-sombre { background: var(--prune); color: var(--blanc); }
.bande-creme { background: var(--creme); }
.bande-sombre a:hover { color: var(--jaune); }
.deux-col { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.deux-col > .principal { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.deux-col > .cote { flex: 1 1 300px; min-width: 0; }

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 32px; }
.carte { background: var(--blanc); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.carte h3 { font-size: 24px; }
.carte-lien { text-decoration: none; color: var(--encre); }
.carte-lien:hover h3 { color: var(--fraise); }
.vignette { aspect-ratio: 3 / 2; border-radius: 12px; background: var(--gris-clair); object-fit: cover; width: 100%; }
.etiquette { font-size: 13px; font-weight: 600; color: var(--encre); text-transform: uppercase; letter-spacing: 0.04em; }

/* Citation */
.citation { margin: 0; padding: 28px 32px; background: var(--papier); border-radius: 20px; }
.bande-blanche .citation { background: var(--papier); }
.citation-blanche { background: var(--blanc); }
.citation p:first-child { font-family: var(--titres-longs); font-weight: 700; font-size: 24px; line-height: 1.3; }
.citation p + p { margin-top: 12px; font-size: 15px; }

/* Pastille du compteur */
.pastille { flex: 0 0 auto; width: 220px; height: 220px; border-radius: 50%; background: var(--pistache); color: var(--encre); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; transform: rotate(-6deg); }
.pastille .h { font-size: 40px; white-space: nowrap; }
.pastille span + span { font-weight: 600; font-size: 16px; line-height: 1.3; }

/* Chapitres (origines, coopérative) */
.chapitre { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 48px 0; border-top: 1.5px solid var(--encre); }
.chapitre > h2 { flex: 1 1 260px; font-size: 30px; color: var(--fraise); }
.chapitre > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.65; }
.chapitre ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Article du Journal */
.article { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.article h1 { font-size: clamp(32px, 5vw, 56px); margin: 12px 0 24px; }
.contenu { font-size: 18px; line-height: 1.7; }
.contenu > * + * { margin-top: 1em; }
.contenu h2 { font-family: var(--titres); font-size: 28px; line-height: 1.2; margin-top: 1.6em; }
.contenu img { border-radius: 16px; }
.contenu blockquote { margin: 1.4em 0; padding: 20px 24px; background: var(--blanc); border-radius: 16px; }

/* Agenda */
.agenda { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.agenda li { color: var(--encre); display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding: 20px 24px; border: 1.5px solid var(--encre); border-radius: 16px; background: var(--blanc); }
.bande-sombre .agenda li { background: transparent; border-color: var(--ligne-sombre); color: var(--blanc); }
.agenda .quand { font-family: var(--titres); font-weight: 700; font-size: 20px; color: var(--fraise); flex: 0 0 190px; }
.bande-sombre .agenda .quand { color: var(--pistache); }
.agenda .quoi { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; }
.agenda .quoi strong { font-size: 18px; }

/* Formulaires (Tally) */
.formulaire { background: var(--blanc); color: var(--encre); border-radius: 24px; padding: 24px; }
.formulaire iframe { width: 100%; border: 0; min-height: 220px; }
.attente { padding: 24px; border: 1.5px dashed var(--encre); border-radius: 16px; }

/* Pied de page */
.pied { background: var(--jaune); color: var(--encre); margin-top: 0; }
.pied a { color: var(--encre); }
.pied a:hover { color: var(--prune); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; border-top: 1px solid rgba(14, 12, 11, 0.3); padding-top: 20px; margin-top: 32px; }

@media (max-width: 640px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .lead { font-size: 18px; }
  .pastille { width: 180px; height: 180px; }
  .chapitre > div { font-size: 17px; }
  .citation p:first-child { font-size: 20px; }
  .pastille .h { font-size: 34px; }
}

/* Logo texte multicolore (piste 1 : doux, couleurs de la charte) */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; font-family: "Titan One", sans-serif; line-height: 0.95; text-decoration: none; }
.wm-ligne { display: flex; align-items: baseline; }
.wm-cafe { font-size: 0.6em; margin-bottom: -0.04em; }
.wordmark [class^="c"], .wm-accent { text-shadow: 0.035em 0 0 var(--encre), -0.035em 0 0 var(--encre), 0 0.035em 0 var(--encre), 0 -0.035em 0 var(--encre), 0.025em 0.025em 0 var(--encre), -0.025em 0.025em 0 var(--encre), 0.025em -0.025em 0 var(--encre), -0.025em -0.025em 0 var(--encre); }
.wordmark .cj { color: var(--jaune); }
.wordmark .ct { color: var(--tomate); }
.wordmark .cb { color: var(--bleu); }
.wordmark .cs { color: var(--sauge); }
.wordmark .cr { color: var(--rose); }
.wm-e { position: relative; display: inline-block; }
.wm-accent { position: absolute; left: 0; top: 0; color: var(--rose); clip-path: polygon(-30% -80%, 130% -80%, 130% 30%, -30% 30%); }
.wm-disque { width: 0.74em; height: 0.74em; margin: 0 0.03em; align-self: center; transform: translateY(0.07em); }
.wm-slogan { font-size: 0.17em; color: var(--encre); margin-top: 0.3em; white-space: nowrap; letter-spacing: 0.01em; }
.bande-sombre .wm-slogan { color: var(--blanc); }
.logo { font-size: 40px; }
.sombre .wm-disque circle:first-child, .bande-sombre .wm-disque circle:first-child { stroke: var(--blanc); stroke-width: 3; }
