/* ==========================================================================
   Séjour à Lourdes — feuille de styles unique (site statique)
   Objectif : légèreté, performance (PageSpeed 100), accessibilité, responsive.
   Aucune police externe (system font stack), aucun script tiers.
   ========================================================================== */

:root {
  --bleu: #1b3a6b;          /* bleu marial profond */
  --bleu-clair: #2f5da3;
  --bleu-pale: #eef3fb;
  --or: #b8892b;            /* accent doré sobre */
  --or-clair: #d9b877;
  --texte: #1f2733;
  --texte-doux: #4a5568;
  --fond: #ffffff;
  --fond-alt: #f6f8fc;
  --bordure: #e2e8f0;
  --max: 1100px;
  --lecture: 760px;
  --radius: 10px;
  --ombre: 0 1px 3px rgba(16,32,64,.08), 0 6px 24px rgba(16,32,64,.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
  text-rendering: optimizeLegibility;
}

/* --- Accessibilité : lien d'évitement + focus visibles --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bleu); color: #fff; padding: .75rem 1rem; z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

a { color: var(--bleu-clair); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--bleu); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 3px; }

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

/* --- Conteneurs --- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }

/* --- En-tête / navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--bordure);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.15rem; color: var(--bleu);
  text-decoration: none; letter-spacing: .2px;
}
.brand .mark { color: var(--or); font-size: 1.4rem; line-height: 1; }
.brand span b { color: var(--or); font-weight: 700; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

.menu {
  list-style: none; display: flex; align-items: center; gap: .25rem;
  margin: 0; padding: 0;
}
.menu a {
  display: inline-block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--texte); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.menu a:hover, .menu a[aria-current="page"] { background: var(--bleu-pale); color: var(--bleu); }
.menu .cta a {
  background: var(--bleu); color: #fff;
}
.menu .cta a:hover { background: var(--bleu-clair); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--bleu) 0%, #24487f 60%, var(--bleu-clair) 100%);
  color: #fff; padding: 3.5rem 0 3rem;
}
.hero h1 { color: #fff; margin: 0 0 .6rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.hero p { color: #e7eefb; font-size: 1.15rem; max-width: 620px; margin: 0 auto 1.5rem; }
.hero .container { text-align: center; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 30px;
  font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--or); color: #23180a; }
.btn-primary:hover { background: var(--or-clair); color: #23180a; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

/* --- Contenu principal --- */
main { padding: 2.5rem 0 3rem; }
.article { max-width: var(--lecture); margin-inline: auto; }
.article > h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.25; margin: 0 0 .4rem; color: var(--bleu); }
.article .lede { color: var(--texte-doux); font-size: 1.15rem; margin-top: 0; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--bleu); }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; padding-top: .3rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; color: var(--bleu-clair); }
h4 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }

p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
li { margin: .35rem 0; }

/* Fil d'Ariane */
.breadcrumb { max-width: var(--lecture); margin: 0 auto 1.2rem; font-size: .9rem; color: var(--texte-doux); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "›"; margin-left: .35rem; color: var(--bordure); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { text-decoration: none; }

/* Figures / images */
figure { margin: 1.6rem 0; text-align: center; }
figure img {
  margin-inline: auto; border-radius: var(--radius); box-shadow: var(--ombre);
  width: 100%; max-width: 640px;
}
figure figcaption { font-size: .9rem; color: var(--texte-doux); margin-top: .5rem; }

/* Tableaux (charte : bordure 2px, centré) */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
table {
  border-collapse: collapse; margin: 0 auto; width: 100%; border: 2px solid var(--bleu);
  font-size: .98rem;
}
th, td { border: 1px solid var(--bordure); padding: .6rem .8rem; text-align: left; }
thead th, th[scope="col"], th[scope="row"] { background: var(--bleu-pale); color: var(--bleu); }

/* Encadrés / vidéo RGPD */
.video-facade {
  position: relative; max-width: 640px; margin: 1.6rem auto; aspect-ratio: 16/9;
  background: var(--bleu); border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.video-facade button {
  cursor: pointer; background: var(--or); color: #23180a; border: 0;
  padding: .8rem 1.4rem; border-radius: 30px; font-weight: 700; font-size: 1rem;
}
.video-facade .note { position: absolute; bottom: .6rem; left: 0; right: 0; color: #dfe8fb; font-size: .8rem; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Grille de cartes (sections / hubs) */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 1.5rem 0; }
.card {
  background: var(--fond); border: 1px solid var(--bordure); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; text-decoration: none; color: inherit; box-shadow: var(--ombre);
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--or-clair); }
.card h3 { margin: 0 0 .3rem; font-size: 1.08rem; color: var(--bleu); }
.card p { margin: 0; color: var(--texte-doux); font-size: .95rem; }

.section-title { max-width: var(--lecture); margin: 2.5rem auto 0; }

/* --- Pied de page --- */
.site-footer {
  background: var(--bleu); color: #d7e2f5; margin-top: 3rem;
  padding: 2.5rem 0 1.5rem; font-size: .95rem;
}
.site-footer a { color: #cfe0fb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h2 { color: #fff; font-size: 1rem; margin: 0 0 .7rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .3rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18); margin-top: 1.8rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; align-items: center;
  color: #aebfdd; font-size: .88rem;
}
.footer-bottom nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Responsive : menu mobile CSS-only (sans JavaScript) --- */
@media (max-width: 860px) {
  .nav-toggle-label {
    display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer;
    padding: .5rem; border: 1px solid var(--bordure); border-radius: 8px;
  }
  .nav-toggle-label span { width: 22px; height: 2px; background: var(--bleu); display: block; }
  .menu {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--bordure);
    padding: .5rem 1rem 1rem; box-shadow: var(--ombre);
    max-height: 0; overflow: hidden; visibility: hidden;
  }
  .menu a { padding: .8rem .6rem; border-radius: 8px; }
  .nav-toggle:checked ~ .menu { max-height: 80vh; visibility: visible; }
  .menu .cta a { text-align: center; margin-top: .4rem; }
}

/* Images pleine largeur sur mobile (charte de livraison) */
@media (max-width: 600px) {
  figure { margin-inline: -1.25rem; }
  figure img { max-width: 100%; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
