/* ── Polices auto-hébergées (variables, sous-ensemble latin) ── */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --teal: #2e7d74;
  --teal-dark: #24635c;
  --teal-deep: #17423d;
  --slate: #1f3a46;
  --ink: #26323a;
  --muted: #6f7b82;
  --wash: #eef3f2;
  --paper: #ffffff;
  --line: #dde5e3;
  --shadow: 0 1px 2px rgba(31, 58, 70, .06), 0 8px 24px rgba(31, 58, 70, .08);
  --shadow-lift: 0 2px 4px rgba(31, 58, 70, .08), 0 14px 34px rgba(31, 58, 70, .14);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; color: var(--slate); line-height: 1.25; }

a { color: var(--teal-dark); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

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

.topbar { background: var(--teal); height: 5px; }

/* ── Header ── */
.header {
  max-width: 980px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-size: 21px; color: var(--slate); font-weight: 700; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--teal); }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.nav a {
  font-size: 14px; font-weight: 600; color: var(--slate); text-decoration: none;
  padding: 4px 2px; border-bottom: 2px solid transparent; transition: border-color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--teal); }

/* ── Hero photo ── */
.hero {
  position: relative;
  background: var(--teal-deep);
  color: #fff;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 45, 52, .25) 0%, rgba(23, 45, 52, .55) 70%, rgba(23, 45, 52, .72) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto; padding: 96px 20px 88px;
}
.hero--compact .hero-inner { padding: 56px 20px 48px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 44px); margin: 0 0 14px; color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero p { max-width: 640px; margin: 0 0 10px; font-size: 18px; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.hero .tagline { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 17px; color: #d7ebe8; }
.hero .btn { margin-top: 14px; }

/* ── Sections ── */
.main { max-width: 980px; margin: 0 auto; padding: 12px 20px 40px; }
.section { padding: 34px 0 10px; }
.section h2 {
  font-size: 26px; margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.section p { max-width: 700px; }
.section-lead { color: var(--muted); margin-top: -8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 10px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { font-size: 14px; margin: 0; color: var(--ink); }

/* ── Bande chiffres ── */
.stats {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-deep));
  color: #fff; border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px; padding: 26px 24px; margin: 26px 0 6px;
  box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat .num { font-family: 'Fraunces', Georgia, serif; font-size: 34px; font-weight: 700; display: block; }
.stat .lbl { font-size: 13px; color: #cde7e3; }

/* ── Actualités avec vignettes ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.news-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.news-card img { height: 165px; width: 100%; object-fit: cover; }
.news-card .body { padding: 14px 18px 18px; }
.news-card .date { display: block; font-size: 12px; color: var(--teal-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.news-card h3 { font-size: 16px; margin: 0 0 6px; }
.news-card p { font-size: 14px; margin: 0; color: var(--ink); }

.news { list-style: none; margin: 14px 0 0; padding: 0; max-width: 700px; }
.news li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.news .date { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.notice {
  background: var(--wash); border-left: 4px solid var(--teal);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 700px; margin: 10px 0;
}
.notice p { margin: 6px 0; }

.btn {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 7px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; font-family: 'Inter', Helvetica, Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(36, 99, 92, .35); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }

/* ── Bureau / infos pratiques ── */
.bureau { display: flex; gap: 14px 34px; flex-wrap: wrap; padding: 0; margin: 8px 0 0; list-style: none; }
.bureau li { font-size: 14px; }
.bureau .role { display: block; font-size: 12px; color: var(--muted); }
.pratique { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 14px; max-width: 700px; }
.pratique .card p { font-size: 14px; }

/* ── Formulaire d'enquête ── */
.form-wrap { max-width: 640px; }
fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px 18px; margin: 0 0 18px;
  background: var(--paper); box-shadow: var(--shadow);
}
legend { font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--slate); padding: 0 6px; font-size: 15.5px; }
.opt { display: block; margin: 7px 0; font-size: 15px; }
.opt input { margin-right: 9px; accent-color: var(--teal); }
textarea, input[type="email"] {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px;
  font-family: inherit; font-size: 15px; color: var(--ink);
}
textarea:focus, input[type="email"]:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.success { display: none; }
.success.visible { display: block; }
.form-hidden { display: none; }

/* ── 404 ── */
.err { text-align: center; padding: 70px 20px 30px; }
.err h1 { font-size: 40px; margin: 0 0 10px; }
.err p { max-width: 460px; margin: 0 auto 20px; }

/* ── Footer ── */
.footer { background: var(--slate); color: #c7d2d6; margin-top: 40px; }
.footer-inner { max-width: 980px; margin: 0 auto; padding: 28px 20px; font-size: 13px; line-height: 1.8; }
.footer a { color: #dfe8ea; }
.footer .fine { color: #92a3aa; font-size: 12px; margin-top: 10px; }

@media (max-width: 560px) {
  .hero-inner { padding: 64px 20px 56px; }
  .header { justify-content: center; text-align: center; }
  .news-card img { height: 150px; }
}
