:root {
  --marine: #1F3864;
  --marine-fonce: #152a4d;
  --ambre: #E8A33D;
  --ambre-clair: #fdf3e2;
  --texte: #1c2330;
  --texte-doux: #4a5568;
  --fond: #ffffff;
  --fond-alt: #f4f6fa;
  --bord: #dde3ec;
  --rayon: 12px;
  --largeur: 68rem;
}

*,
*::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.6;
  color: var(--texte);
  background: var(--fond);
}

h1, h2, h3 { line-height: 1.2; color: var(--marine); margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 5vw + .5rem, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.5vw + .6rem, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: .3em; }
a { color: var(--marine); text-underline-offset: .15em; }
a:hover { color: var(--marine-fonce); }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1rem; }

.evitement {
  position: absolute; left: -999px; top: 0;
  background: var(--marine); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.evitement:focus { left: 0; }

/* ---------- Bandeau « en développement » ---------- */
.bandeau-dev {
  background: var(--ambre);
  color: #2a1c05;
  font-size: .95rem;
  text-align: center;
  padding: .5rem 1rem;
}
.bandeau-dev strong { font-weight: 700; }

/* ---------- En-tête ---------- */
.entete { background: var(--marine); color: #fff; }
.entete .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; padding-top: .75rem; padding-bottom: .75rem;
}
.marque { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.marque:hover { color: #fff; }
.marque img { width: 40px; height: 40px; }
.marque span { font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.actions-entete { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
}
.btn-ambre { background: var(--ambre); color: #2a1c05; }
.btn-ambre:hover { background: #f0b456; color: #2a1c05; }
.btn-contour { border-color: #fff; color: #fff; }
.btn-contour:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-marine { background: var(--marine); color: #fff; }
.btn-marine:hover { background: var(--marine-fonce); color: #fff; }
.btn-contour-marine { border-color: var(--marine); color: var(--marine); }
.btn-contour-marine:hover { background: var(--fond-alt); }

/* ---------- Accroche ---------- */
.accroche { background: linear-gradient(180deg, var(--marine) 0%, var(--marine-fonce) 100%); color: #e8edf5; }
.accroche .conteneur { padding-top: 2.5rem; padding-bottom: 3rem; }
.accroche h1 { color: #fff; max-width: 22ch; }
.accroche .chapeau { font-size: 1.15rem; max-width: 40rem; }
.accroche .lieu { color: var(--ambre); font-weight: 600; margin-bottom: .5rem; }

/* ---------- Sections ---------- */
section { padding: 3rem 0; }
.section-alt { background: var(--fond-alt); }
.intro-section { color: var(--texte-doux); max-width: 44rem; margin-bottom: 1.75rem; }

.grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.carte {
  background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 1.5rem; border-top: 5px solid var(--marine);
}
.carte .etiquette {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--marine); background: #e3e9f3; border-radius: 999px; padding: .15rem .65rem; margin-bottom: .75rem;
}
.carte p:last-child, .carte ul:last-child { margin-bottom: 0; }

.a-venir {
  border: 2px dashed var(--ambre); background: var(--ambre-clair); border-radius: var(--rayon);
  padding: 1.5rem; margin-top: 1.75rem;
}
.a-venir h3 { margin-bottom: .4rem; }
.a-venir p:last-child { margin-bottom: 0; }
.a-venir .etiquette { background: var(--ambre); color: #2a1c05; }

.parcours { columns: 2 18rem; column-gap: 2rem; padding-left: 1.2em; }
.parcours li { break-inside: avoid; }

.communes { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.communes li { margin: 0; background: var(--fond); border: 1px solid var(--bord); border-radius: 999px; padding: .25rem .8rem; font-size: .95rem; }

.contact-liste { list-style: none; padding: 0; display: grid; gap: .75rem; }
.contact-liste li { margin: 0; }
.contact-liste .libelle { display: block; font-size: .85rem; color: var(--texte-doux); }
.contact-liste a { font-weight: 600; font-size: 1.1rem; word-break: break-word; }
.actions-contact { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

.note { font-size: .95rem; color: var(--texte-doux); }

/* ---------- Pied de page ---------- */
.pied { background: var(--marine-fonce); color: #c9d3e3; font-size: .95rem; padding: 2rem 0; }
.pied a { color: #fff; }
.pied p { margin-bottom: .4rem; }

/* ---------- Page texte (mentions légales) ---------- */
.page-texte { max-width: 46rem; }
.page-texte h2 { margin-top: 2rem; font-size: 1.35rem; }
