/* site.css — feuille unique du site CÔTE BELGE. Polices système, aucune ressource externe. */
:root {
  --mer: #0b4f6c;
  --mer-clair: #e6f2f7;
  --sable: #f6efe2;
  --sable-fonce: #d9c7a3;
  --texte: #1c2a33;
  --texte-doux: #4a5a64;
  --fond: #ffffff;
  --accent: #c2462e;
  --rayon: 12px;
  --largeur: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mer: #7cc4e4;
    --mer-clair: #12303d;
    --sable: #2a261f;
    --sable-fonce: #5b4f3a;
    --texte: #e8eef1;
    --texte-doux: #b3c1c8;
    --fond: #0f1a20;
    --accent: #f08a72;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte);
  background: var(--fond);
}
a { color: var(--mer); }
img { max-width: 100%; height: auto; }

.saut { position: absolute; left: -999px; }
.saut:focus { left: 1rem; top: 1rem; background: var(--fond); padding: .5rem 1rem; z-index: 10; }

.entete {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .75rem 1rem; background: #0b4f6c; color: #fff;
}
.entete a { color: #fff; text-decoration: none; }
.logo { font-weight: 800; font-size: 1.2rem; }
.menu ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
.menu a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
.menu { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.langues a { font-weight: 700; font-size: .9rem; opacity: .8; }
.langues a[aria-current] { opacity: 1; text-decoration: underline; }
.menu-bouton { display: none; background: none; border: 1px solid #fff; color: #fff; border-radius: 6px; padding: .35rem .75rem; font: inherit; }
@media (max-width: 48rem) {
  .js .menu-bouton { display: block; }
  .js .menu { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .js .menu.ouvert { display: flex; }
  .menu ul { flex-direction: column; }
}

.ariane { max-width: var(--largeur); margin: .75rem auto 0; padding: 0 1rem; font-size: .9rem; color: var(--texte-doux); }
.ariane ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.ariane li + li::before { content: "›"; margin: 0 .4rem; }

main { max-width: var(--largeur); margin: 0 auto; padding: 1rem 1rem 3rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; color: var(--mer); margin: 1rem 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.chapo { font-size: 1.15rem; color: var(--texte-doux); max-width: 48rem; }

.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1rem 0; }
.carte { background: var(--sable); border-radius: var(--rayon); padding: 1rem 1.1rem; }
.carte a { text-decoration: none; font-size: 1.05rem; }
.carte p { margin: .4rem 0 0; font-size: .95rem; color: var(--texte-doux); }

.a-rediger { margin: 2rem 0; padding: 1rem 1.25rem; border: 2px dashed var(--sable-fonce); border-radius: var(--rayon); color: var(--texte-doux); }

.mer { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.mer caption { text-align: left; color: var(--texte-doux); font-size: .9rem; padding-bottom: .5rem; }
.mer th, .mer td { padding: .5rem .75rem; border-bottom: 1px solid var(--mer-clair); text-align: left; }
.vide { padding: 1rem; background: var(--mer-clair); border-radius: var(--rayon); }

.pied { background: var(--mer-clair); padding: 2rem 1rem; font-size: .95rem; }
.pied-colonnes { max-width: var(--largeur); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.pied h2 { font-size: 1rem; margin: 0 0 .5rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: .2rem 0; }
.pied li strong { font-weight: 400; }
.pied-legal, .pied-sources { max-width: var(--largeur); margin: 1.5rem auto 0; color: var(--texte-doux); }

.page-404 { text-align: center; padding-top: 4rem; }
.page-404 ul { list-style: none; padding: 0; }
.code-404 { font-size: 4rem; font-weight: 900; color: var(--mer); margin: 0; }

/* Lecture, navigation clavier et accueil ; aucun asset externe. */
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.page p, .page > ul, .page > ol { max-width: 75ch; }
.sources { margin-top: 2rem; font-size: .9rem; color: var(--texte-doux); border-top: 1px solid var(--sable-fonce); padding-top: 1rem; overflow-wrap: anywhere; }
.accueil-intro { padding: clamp(1.25rem, 5vw, 3rem); margin: 1.5rem 0; border-radius: 18px; background: linear-gradient(130deg, var(--mer-clair), var(--sable)); border: 1px solid var(--sable-fonce); }
.accueil-intro h2 { font-size: clamp(1.65rem, 4vw, 2.8rem); line-height: 1.15; margin-top: .5rem; max-width: 22ch; color: var(--mer); }
.surtitre { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; }
.choix-rapides { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.choix-rapides a { padding: .75rem 1rem; border-radius: 8px; background: var(--fond); border: 1px solid var(--mer); text-decoration: none; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.menu a, .langues a, .menu-bouton { display: inline-block; min-height: 44px; padding-top: .5rem; padding-bottom: .5rem; }
.pied li a { display: inline-block; padding: .2rem 0; }
@media (max-width: 30rem) { .cartes { grid-template-columns: minmax(0, 1fr); } .choix-rapides { flex-direction: column; } .langues { flex-direction: row !important; } .mer th, .mer td { padding: .4rem; } }
/* Photos (images/photos/, outils/images-commons.php) : ratio réservé par width/height, crédit sous l'image. */
.photo { margin: 1.25rem 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); background: var(--mer-clair); }
.photo-contenu { max-width: 48rem; }
.credits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.credits img { display: block; width: 100%; height: auto; border-radius: var(--rayon); background: var(--mer-clair); }
.credits p { margin: .4rem 0 0; font-size: .85rem; color: var(--texte-doux); }
