:root {
  --navy: #0b1f3a;
  --navy-800: #12284a;
  --navy-700: #1a365d;
  --navy-600: #23487c;
  --yellow: #ffd000;
  --yellow-soft: #fff4b0;
  --white: #ffffff;
  --paper: #f3f6fb;
  --ink: #142033;
  --muted: #5b6a7e;
  --line: #d7e0ec;
  --badge-ink: #0b1f3a;
  --shadow: 0 12px 32px rgba(11, 31, 58, 0.1);
  --radius: 16px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--navy-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.staging-banner {
  background: var(--yellow);
  color: var(--navy);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.staging-banner span {
  font-weight: 600;
}

header.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--yellow);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  flex: 0 1 auto;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  display: block;
  height: calc(68px + 1.7rem); /* fills former inner bar: 68px logo + 0.85rem*2 padding */
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  background: var(--white);
}

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

nav.site-nav a {
  color: #e8eef7;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

main {
  flex: 1;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(255, 208, 0, 0.18), transparent 36%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 70%, #0e2a4d 100%);
  color: var(--white);
  padding: 3.25rem 0 3.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero p.lead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 1.12rem;
  color: #d8e3f2;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 208, 0, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(255, 208, 0, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-licence {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  box-shadow: var(--shadow);
  font-weight: 800;
  margin: 0.25rem 0 1.75rem;
}

.badge-licence .mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.badge-licence small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.search-card,
.section-card,
.page-intro,
.placeholder-box,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-card {
  padding: 1.25rem;
}

.search-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.search-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

select,
input,
textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #fbfcfe;
  color: var(--ink);
  width: 100%;
}

select:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(255, 208, 0, 0.55);
  border-color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  background: var(--yellow);
  color: var(--navy);
}

.btn:hover {
  background: #ffdb3a;
  color: var(--navy);
}

.btn.secondary {
  background: var(--navy);
  color: var(--white);
}

.btn.secondary:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.section {
  padding: 2.75rem 0;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section .section-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 46rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 8.5rem;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--navy-600);
  box-shadow: var(--shadow);
  color: inherit;
}

.card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--yellow-soft);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-top: auto;
}

.page-hero {
  padding: 2.2rem 0 0.4rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}

.page-intro,
.placeholder-box,
.form-card,
.prose {
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
}

.prose p:first-child,
.page-intro p:first-child {
  margin-top: 0;
}

.prose p:last-child,
.page-intro p:last-child {
  margin-bottom: 0;
}

.placeholder-box {
  border-style: dashed;
  background: #fbfcfe;
}

.placeholder-box h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.notice {
  background: #fff8d6;
  border: 1px solid #ead56a;
  color: var(--navy);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-note {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.english-note {
  background: var(--navy-800);
  color: #dce6f3;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.english-note strong {
  color: var(--yellow);
}

footer.site-footer {
  background: var(--navy);
  color: #c9d6e8;
  margin-top: 1.5rem;
  padding: 2rem 0 1.6rem;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
}

.footer-inner a {
  color: var(--yellow);
}

.footer-meta {
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: calc(46px + 1.7rem); /* fills former inner bar: 46px logo + 0.85rem*2 padding */
    width: auto;
    max-width: 100%;
  }

  .hero {
    padding: 2.2rem 0 2.4rem;
  }
}

/* ---- Directory preview components (added 2026-12-03; header rules above unchanged) ---- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--navy-600); }
.updated { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.badge-verifie { display:inline-block; background: var(--yellow-soft); color: var(--badge-ink); border:1px solid var(--yellow); border-radius: 999px; padding: .15rem .6rem; font-weight:700; font-size:.85rem; }
.kind { font-size:.85rem; color: var(--muted); margin-left:.35rem; }
.cards.listings { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.card.listing h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card.listing ul.meta { list-style:none; padding:0; margin:.5rem 0; font-size:.92rem; }
.card.listing ul.meta li { margin:.15rem 0; }
.tags .tag { margin: 0 .25rem .25rem 0; display:inline-block; }
.featured-slot { border:2px dashed var(--yellow); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem; background: var(--white); }
.featured-slot .label { text-transform: uppercase; letter-spacing:.06em; font-size:.75rem; font-weight:800; color: var(--navy-600); margin:0 0 .3rem; }
.table-wrap { overflow-x:auto; }
.facts-table { width:100%; border-collapse: collapse; background: var(--white); font-size:.92rem; }
.facts-table th, .facts-table td { border:1px solid var(--line); padding:.5rem .6rem; text-align:left; vertical-align:top; }
.facts-table th { background: var(--paper); }
.link-list { padding-left: 1.1rem; }
.link-list li { margin: .3rem 0; }
.link-list.cols { columns: 2 260px; }
.link-list .count { color: var(--muted); font-size:.85rem; }
.letters { display:flex; flex-wrap:wrap; gap:.35rem; margin: .5rem 0 1rem; }
.letters a { display:inline-block; min-width:2rem; text-align:center; padding:.25rem .4rem; border:1px solid var(--line); border-radius:8px; background:var(--white); }
.az-list { padding-left: 1.1rem; }
.az-list li { margin:.25rem 0; }
.profile-box { background: var(--white); border:1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.facts-dl { display:grid; grid-template-columns: max-content 1fr; gap:.35rem 1rem; margin: .75rem 0; }
.facts-dl dt { font-weight:700; }
.facts-dl dd { margin:0; }
.note { font-size:.9rem; color: var(--muted); }
.checklist li { margin: .8rem 0; }
.checklist .src { display:block; font-size:.85rem; color: var(--muted); }
.sources li { margin:.25rem 0; }
fieldset { border:0; padding:0; margin:0; }
input[type="search"], input[type="text"], input[type="email"], input[type="tel"], input[type="url"] { width:100%; padding:.6rem .7rem; border:1px solid var(--line); border-radius:10px; font:inherit; }
@media (max-width:760px) { .facts-dl { grid-template-columns: 1fr; } }

/* Statistics page tables and in-page nav (directory component CSS; header rules untouched) */
.page-statistiques table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .92rem; margin: 1rem 0 1.5rem; }
.page-statistiques th, .page-statistiques td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.page-statistiques thead th, .page-statistiques tfoot th { background: var(--paper); }
.page-statistiques caption { caption-side: top; text-align: left; font-weight: 600; margin-bottom: .4rem; }
.page-statistiques nav[aria-label="Dans cette page"] ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding-left: 0; list-style: none; margin: 1rem 0 0; }
.page-statistiques .derniere-verification { font-size: .95rem; }
.page-statistiques section { margin-top: 2rem; }
