/* Vivement — pages secondaires (support, cgu, confidentialité, mentions, presse).
   Même DA que la home immersive (home.css) en version lecture : mêmes variables,
   même header/footer, typo affiche sur les titres, colonne confortable pour le corps. */

:root {
  --prune: #4A1D66;
  --accent: #7A2FB5;
  --accent-doux: #F3EAFB;
  --fond: #FAF4E9;
  --carte: #FFFFFF;
  --texte: #211829;
  --texte2: #6F6678;
  --bordure: #E9DFCF;

  /* Palette des 8 accents de l'app (DESIGN.md) */
  --bleuet: #3560B0;
  --sarcelle: #10707A;
  --foret: #2F6B3C;
  --framboise: #AD2E66;
  --encre: #3C3B42;
  --ocre: #8C5A10;
  --brique: #AD3D2B;
}

@media (prefers-color-scheme: dark) {
  :root {
    --prune: #D9BCF2;
    --accent: #C79BF0;
    --accent-doux: #2A1D38;
    --fond: #15101D;
    --carte: #1D1526;
    --texte: #F3EEF8;
    --texte2: #A79DB3;
    --bordure: #2E2340;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ---- En-tête fixe (identique à la home) ---- */

header.haut {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: color-mix(in srgb, var(--fond) 70%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--prune);
}

.marque img { display: block; }

header.haut nav { display: flex; gap: 18px; }

header.haut nav a {
  color: var(--texte2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

header.haut nav a:hover { color: var(--accent); }

/* ---- Colonne de lecture ---- */

main {
  max-width: 68ch;
  margin: 0 auto;
  padding: 120px 20px 64px;
}

/* Presse : plus large pour les galeries, paragraphes quand même capés */
main.large { max-width: 1060px; }
main.large p, main.large li { max-width: 68ch; }

/* ---- Titres ---- */

.surtitre {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0 0 12px;
}

.sous-titre {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--texte2);
  margin: 0 0 32px;
}

h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 40px 0 12px;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Cartes ---- */

.carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 16px;
}

.carte h2 { margin-top: 0; }
.carte > :last-child { margin-bottom: 0; }

/* ---- Bouton (repris de la home) ---- */

.bouton {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), var(--prune));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
}

@media (prefers-color-scheme: dark) {
  .bouton { color: #1A1022; }
}

/* ---- Galeries presse ---- */

.galerie-titre { margin-top: 28px; }

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.galerie a { display: block; line-height: 0; }

.galerie img {
  border-radius: 12px;
  border: 1px solid var(--bordure);
  transition: transform 0.2s ease;
}

.galerie a:hover img { transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .galerie img { transition: none; }
  .galerie a:hover img { transform: none; }
}

.galerie-icone { grid-template-columns: minmax(120px, 180px); }
.galerie-icone img { border-radius: 22%; border: none; }

.galerie-large { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---- Pied de page (identique à la home) ---- */

footer.site {
  width: 100%;
  border-top: 1px solid var(--bordure);
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--texte2);
  font-size: 0.9rem;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 10px;
}

footer.site a { color: var(--texte2); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site p { margin: 0; }
