/* ============================================================================
   pages-legales.css — mentions légales et politique de confidentialité
   CK, 2026-11-15

   Les pages légales héritent du texte aligné à gauche du gabarit. On centre
   titres, paragraphes, listes et notes, en gardant une largeur de lecture
   raisonnable pour que les longues clauses restent lisibles.
   ============================================================================ */

/* ---------- titres et textes --------------------------------------------- */
main h1,
main h2,
main h3,
main h4,
main p,
main li,
main .lead,
main .p-note,
main figcaption,
section.hero h1,
section.hero p,
section.hero .lead{
  text-align:center !important;
}

main .lead,
main p{
  margin-inline:auto !important;
  max-width:74ch;
}

/* le kicker garde ses capitales espacées, mais se centre */
main .kicker,
section.hero .kicker{
  text-align:center !important;
  margin-inline:auto !important;
}

/* ---------- listes -------------------------------------------------------- */
main ul,
main ol{
  margin-inline:auto !important;
  padding-inline:0 !important;
  list-style-position:inside !important;
  text-align:center !important;
  max-width:74ch;
}
main ul li,
main ol li{
  text-align:center !important;
}

/* ---------- blocs et bandeaux -------------------------------------------- */
main section,
main .container{
  text-align:center !important;
}

/* rangées de boutons (héros, montants de don) : centrées, jamais collées
   au bord gauche */
main .hero-cta,
main .cta-actions,
main .btn-row,
main .card-grid{
  justify-content:center !important;
  text-align:center !important;
  flex-wrap:wrap !important;
}

/* page dons : la note « Les dons de 3,90 $… » est écrite DANS la rangée de
   boutons, elle se retrouvait donc à droite des montants. On lui donne sa
   propre ligne, sous les boutons. */
#montants .hero-cta > .p-note,
#montants .hero-cta > p{
  flex:1 0 100% !important;
  width:100% !important;
  max-width:100% !important;
  margin:16px auto 0 !important;
  padding-inline:min(10vw,240px) !important;
  text-align:center !important;
}

/* ---------- héros sans visuel ---------------------------------------------
   Les pages légales n'ont pas de .hero-media, mais .hero impose
   min-height:1136px (mesuré) : la page s'ouvrait sur un grand vide sous le
   titre. On rend au héros la hauteur de son contenu. ---------------------- */
main > section.hero:not(:has(.hero-media)){
  min-height:0 !important;
  padding-block:96px 88px !important;
  background:var(--dark-0,#0b1522) !important;
}
main > section.hero .hero-in{
  max-width:900px !important;
  margin-inline:auto !important;
  text-align:center !important;
}
main > section.hero .hero-in h1,
main > section.hero .hero-in p,
main > section.hero .hero-in .lead,
main > section.hero .hero-in .hero-kicker{
  text-align:center !important;
  margin-inline:auto !important;
}

/* ---------- mobile -------------------------------------------------------- */
@media (max-width:719px){
  main .lead,
  main p,
  main ul,
  main ol{max-width:100% !important}
}

/* ---------- liens courriel dans les notes --------------------------------
   La règle globale a[href^="mailto"]{display:inline-flex;min-height:40px}
   transforme le courriel en bloc atomique : il saute sur sa propre ligne et
   le paragraphe centré paraît décalé. On le remet dans le flux du texte. */
#montants .p-note a[href^="mailto"],
#montants .p-note .cf-mail,
main .p-note a[href^="mailto"]{
  display:inline !important;
  min-height:0 !important;
  padding:0 !important;
  vertical-align:baseline !important;
  white-space:nowrap !important;
}

/* ---------- mobile : la note n'a plus 39 px de retrait de chaque côté,
   sinon le courriel tombe seul sur sa ligne et le point final s'orpheline */
@media (max-width:768px){
  #montants .hero-cta > .p-note,
  #montants .hero-cta > p{
    padding-inline:8px !important;
  }
  #montants .p-note a[href^="mailto"],
  #montants .p-note .cf-mail{
    white-space:normal !important;
    word-break:break-word !important;
  }
}
