/* ==========================================================================
   Nation Démo — feuille de style
   Principes : lisible, sobre, accessible (WCAG 2.1 AA), rapide.
   Pour changer l'identité visuelle, modifiez seulement les variables ci-dessous.
   ========================================================================== */

:root {
  --primary: #1f4e3d;        /* vert forêt : en-tête, boutons */
  --primary-dark: #163a2d;
  --primary-soft: #e8f0ec;
  --accent: #c8553d;         /* rouge saumon : petits rappels seulement */
  --link: #1a5c8a;
  --link-visited: #5a3d84;

  --ink: #1b1f23;
  --muted: #545d68;
  --line: #d5dbe0;
  --line-strong: #9aa4ae;
  --bg: #ffffff;
  --bg-soft: #f4f6f5;

  --ok: #1e6b3a;
  --ok-soft: #e4f2e8;
  --warn: #8a5a00;
  --warn-soft: #fff4d6;
  --warn-line: #e0b14a;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --focus: #ffbf47;

  --radius: 4px;
  --max: 1120px;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs: 1.0625rem;

  /* Couleurs des illustrations et des accents */
  --art-sky: #d3e6ec;
  --art-sun: #f2b544;
  --art-hill: #8fb996;
  --art-pine: #2d5a45;
  --art-lake: #3c7a96;
  --art-clay: #c8553d;
  --art-sand: #f4ecdc;
  --hero-bg: #f6f1e7;
  --c1: #c8553d; --c1-soft: #f8e3dd;
  --c2: #2f6f8f; --c2-soft: #e0eef4;
  --c3: #b7791f; --c3-soft: #fbf0d9;
  --c4: #2d6a4f; --c4-soft: #e2f0e8;
}

html.texte-grand { --fs: 1.25rem; }

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.25rem; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .25em; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: 0 0 0 5px var(--ink);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--focus); color: var(--ink); padding: .5rem 1rem; font-weight: 700;
}
.skip-link:focus { top: .5rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46em; }

/* ---------- Bandeau démo ---------- */
.demo-bar {
  background: var(--ink); color: #fff; font-size: .85rem;
}
.demo-bar .container {
  display: flex; gap: 1rem; justify-content: space-between; align-items: center;
  padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap;
}
.demo-bar a { color: #fff; }
.demo-bar button {
  background: none; border: 1px solid #fff6; color: #fff; font: inherit;
  padding: .1rem .6rem; border-radius: var(--radius); cursor: pointer;
}

/* ---------- En-tête ---------- */
.site-header { background: var(--primary); color: #fff; }
.strip {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--c1) 0 24px, var(--primary-dark) 24px 32px, var(--c3) 32px 56px, var(--primary-dark) 56px 64px,
    var(--c2) 64px 88px, var(--primary-dark) 88px 96px, var(--c4) 96px 120px, var(--primary-dark) 120px 128px);
}
.site-header .container {
  display: flex; align-items: center; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { display: block; font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .85rem; opacity: .85; }

.header-search { display: flex; min-width: 0; flex: 0 1 380px; }
.header-search input {
  flex: 1; min-width: 0; border: 2px solid #fff; border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  padding: .5rem .75rem; font: inherit; font-size: 1rem;
}
.header-search button {
  border: 2px solid #fff; background: var(--primary-dark); color: #fff; padding: 0 .9rem;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; display: flex; align-items: center;
}

.menu-toggle {
  display: none; background: none; border: 2px solid #fff; color: #fff; font: inherit; font-weight: 600;
  padding: .35rem .8rem; border-radius: var(--radius); cursor: pointer;
}

.site-nav { background: var(--primary-dark); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; color: #fff; text-decoration: none; padding: .75rem 1rem; font-weight: 600; font-size: .98rem;
  border-bottom: 4px solid transparent;
}
.site-nav a:hover { background: #ffffff14; }
.site-nav a[aria-current="page"] { border-bottom-color: #fff; }
.site-nav .nav-staff { margin-left: auto; }
.site-nav .nav-staff a { font-weight: 400; opacity: .9; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .header-search { flex-basis: 100%; order: 3; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { border-bottom: 1px solid #ffffff22; border-left: 4px solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: #fff; border-bottom-color: #ffffff22; }
  .site-nav .nav-staff { margin-left: 0; }
}

/* ---------- Alertes ---------- */
.alerts:empty { display: none; }
.alert {
  border-left: 8px solid var(--warn-line); background: var(--warn-soft); padding: .9rem 0;
}
.alert.urgent { border-left-color: var(--danger); background: var(--danger-soft); }
.alert.info { border-left-color: var(--link); background: #e8f1f8; }
.alert .container { display: flex; gap: .9rem; align-items: flex-start; }
.alert-icon { flex: none; margin-top: .1rem; }
.alert-body { flex: 1; }
.alert-title { font-weight: 700; margin: 0; }
.alert-text { margin: .15rem 0 0; }
.alert-meta { font-size: .88rem; color: var(--muted); margin: .25rem 0 0; }
.alert + .alert { border-top: 1px solid #0000001a; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .7rem 1.2rem; border-radius: var(--radius); border: 2px solid var(--primary);
  background: var(--primary); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 var(--primary-dark);
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn-secondary { background: #fff; color: var(--primary); box-shadow: 0 2px 0 var(--line-strong); }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-danger { background: var(--danger); border-color: var(--danger); box-shadow: 0 2px 0 #7a1810; }
.btn-small { padding: .4rem .75rem; font-size: .92rem; }
.btn-link {
  background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer;
}
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* ---------- Mise en page ---------- */
main { display: block; padding-bottom: 3rem; }
.section { padding: 2.5rem 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.layout-side { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .layout-side { grid-template-columns: 1fr; }
  h1 { font-size: 1.85rem; }
}

.page-head { padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.breadcrumb { font-size: .9rem; margin-bottom: .75rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
.panel-soft { background: var(--bg-soft); }
.panel h2, .panel h3 { margin-top: 0; }
.panel-ok { border-left: 6px solid var(--ok); background: var(--ok-soft); }
.panel-warn { border-left: 6px solid var(--warn-line); background: var(--warn-soft); }

/* ---------- Accueil ---------- */
.hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); padding: 2.5rem 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero h1 { font-size: 2.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--c1); margin: 0 0 .5rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } }

/* Emplacements photo (illustrations) */
.art { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: var(--art-sky); aspect-ratio: 16 / 10; }
.art svg { display: block; width: 100%; height: 100%; }
.art-hero { aspect-ratio: 4 / 3; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px #0006; }
.art-portrait { aspect-ratio: 4 / 5; }
.ph-label {
  position: absolute; left: .6rem; bottom: .6rem; background: #1b1f23cc; color: #fff; font-size: .75rem; font-weight: 600;
  padding: .15rem .55rem; border-radius: 3px; letter-spacing: .02em;
}

/* Mot du chef / du maire */
.section-mot { background: var(--primary); color: #fff; }
.section-mot a { color: #fff; }
.section-mot .eyebrow { color: var(--art-sun); }
.mot { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.mot blockquote { margin: 0 0 1rem; font-size: 1.3rem; line-height: 1.5; border-left: 4px solid var(--art-sun); padding-left: 1.25rem; }
.mot blockquote p { margin: 0; }
.mot-sign { margin-bottom: .75rem; opacity: .95; }
@media (max-width: 700px) { .mot { grid-template-columns: 1fr; } .mot .art-portrait { max-width: 200px; } }

/* Cartes de nouvelles */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 16 / 9; }
.card .thumb svg, .news-row .thumb svg { display: block; width: 100%; height: 100%; }
.card-body { padding: 1rem 1.1rem 1.25rem; }
.card h3 { font-size: 1.1rem; margin: .4rem 0; }
.card p { margin: 0; }
.card .meta .tag { margin-right: .35rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.news-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.news-row .thumb { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
@media (max-width: 600px) { .news-row { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gallery li { margin: 0; }
.gallery p { margin: .5rem 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.panel-accent { border-left: 6px solid var(--c3); background: var(--c3-soft); }

/* Silhouette au-dessus du pied de page */
.footer-scene { display: block; width: 100%; height: 60px; margin-bottom: -1px; }
.hero h1 { margin-bottom: .75rem; }
.big-search { display: flex; max-width: 680px; position: relative; }
.big-search input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; padding: .8rem 1rem;
  border: 2px solid var(--ink); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
}
.big-search button {
  border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 600;
  padding: 0 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
}
.popular { margin-top: .9rem; font-size: .95rem; color: var(--muted); }
.popular a { margin-right: .9rem; white-space: nowrap; }

.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff;
  border: 2px solid var(--ink); border-top: 0; list-style: none; margin: 0; padding: 0;
}
.suggest li { margin: 0; }
.suggest a { display: block; padding: .6rem 1rem; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.suggest a:hover, .suggest a.active { background: var(--primary-soft); }
.suggest .s-cat { font-size: .8rem; color: var(--muted); display: block; }

.tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.tasks li { margin: 0; }
.task {
  display: flex; gap: .85rem; align-items: flex-start; height: 100%;
  padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #fff;
}
.task:hover { border-color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); }
.task .ic { flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c1-soft); color: var(--c1); }
.tasks li:nth-child(4n+2) .ic { background: var(--c2-soft); color: var(--c2); }
.tasks li:nth-child(4n+3) .ic { background: var(--c3-soft); color: var(--c3); }
.tasks li:nth-child(4n+4) .ic { background: var(--c4-soft); color: var(--c4); }
.task:hover .ic { background: var(--primary); color: #fff; }
.task strong { display: block; color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
.task span { display: block; font-size: .92rem; color: var(--muted); margin-top: .15rem; }
@media (max-width: 1000px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tasks { grid-template-columns: 1fr; } }

/* Ouvert maintenant */
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .place { font-weight: 600; }
.hours-list .detail { font-size: .88rem; color: var(--muted); display: block; font-weight: 400; }

.status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.status.open { color: var(--ok); }
.status.closed { color: var(--danger); }
.status.soon { color: var(--warn); }

/* Listes de contenu */
.item-list { list-style: none; padding: 0; margin: 0; }
.item-list > li { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.item-list > li:first-child { padding-top: 0; }
.item-list h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.item-list p { margin: .25rem 0 0; }
.meta { font-size: .88rem; color: var(--muted); }

.date-box {
  flex: none; width: 3.6rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.date-box .m { display: block; background: var(--c1); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: .1rem 0; }
.date-box .d { display: block; font-size: 1.35rem; font-weight: 700; padding: .15rem 0; }
.event { display: flex; gap: 1rem; align-items: flex-start; }

.tag {
  display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 2px;
  background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #c9dbd2;
}
.tag-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.tag-danger { background: var(--danger-soft); color: var(--danger); border-color: #f1b5ae; }
.tag-ok { background: var(--ok-soft); color: var(--ok); border-color: #b5dbc1; }
.tag-grey { background: #eef0f2; color: var(--muted); border-color: var(--line); }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 1.4rem; }
label, .label { display: block; font-weight: 600; margin-bottom: .3rem; }
.hint { display: block; color: var(--muted); font-size: .92rem; margin: -.1rem 0 .4rem; font-weight: 400; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="date"],
input[type="time"], input[type="number"], select, textarea {
  font: inherit; font-size: 1rem; width: 100%; max-width: 36rem; padding: .6rem .7rem;
  border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink);
}
textarea { display: block; min-height: 7rem; resize: vertical; }
input.w-sm, select.w-sm { max-width: 14rem; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.error-msg { color: var(--danger); font-weight: 600; font-size: .95rem; margin: 0 0 .35rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: .5rem; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label {
  display: flex; gap: .6rem; align-items: center; height: 100%; margin: 0; font-weight: 600;
  padding: .75rem .9rem; border: 2px solid var(--line-strong); border-radius: var(--radius); background: #fff; cursor: pointer;
}
.choice label .hint { margin: .1rem 0 0; }
.choice input:checked + label { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); box-shadow: 0 0 0 5px var(--ink); }

.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; }
.check input { width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; accent-color: var(--primary); flex: none; }
.check label { font-weight: 400; margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}

.photo-preview { margin-top: .5rem; max-width: 240px; border: 1px solid var(--line); border-radius: var(--radius); display: block; }

/* Créneaux */
.slot-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot {
  font: inherit; font-size: .95rem; font-weight: 600; padding: .5rem .8rem; min-width: 5.5rem;
  border: 2px solid var(--line-strong); background: #fff; border-radius: var(--radius); cursor: pointer; color: var(--ink);
  text-align: center;
}
.slot small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.slot:hover { border-color: var(--primary); }
.slot[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }
.slot[aria-pressed="true"] small { color: #fff; }
.slot:disabled { border-style: dashed; color: #9aa4ae; background: var(--bg-soft); cursor: not-allowed; text-decoration: line-through; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-size: .9rem; white-space: nowrap; }
tbody tr:hover { background: var(--bg-soft); }

/* ---------- Accordéons ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 1rem 2.5rem 1rem 0; position: relative; font-weight: 600; color: var(--link);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.3rem; width: .6rem; height: .6rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s;
}
.acc details[open] summary::after { transform: rotate(-135deg); top: 1.55rem; }
.acc summary:hover { text-decoration: underline; }
.acc summary .s-desc { display: block; color: var(--muted); font-weight: 400; font-size: .92rem; text-decoration: none; }
.acc .acc-body { padding: 0 0 1.25rem; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0 0 1rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.5rem; }
.filters .form-group { margin: 0; }
.filters input, .filters select { max-width: none; }

/* ---------- Suivi d'une demande ---------- */
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 2rem; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: .35rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 50%;
  border: 2px solid var(--line-strong); background: #fff;
}
.timeline li::after { content: ""; position: absolute; left: .73rem; top: 1.25rem; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.current::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.timeline .t-label { font-weight: 600; }
.timeline .t-date { font-size: .88rem; color: var(--muted); }

.ref-number { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .03em; }

/* ---------- Pied de page de contenu ---------- */
.page-footer-meta {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
}
.feedback { background: var(--bg-soft); border: 1px solid var(--line); padding: 1rem 1.25rem; border-radius: var(--radius); flex: 1 1 340px; }
.feedback p { margin: 0 0 .5rem; font-weight: 600; }
.feedback textarea { display: block; min-height: 4.5rem; margin: .5rem 0 .75rem; }
.updated { font-size: .9rem; color: var(--muted); flex: 0 1 300px; }

/* ---------- Pied de page ---------- */
.site-footer { background: #20262b; color: #e6e9ec; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer-bottom { border-top: 1px solid #ffffff26; margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: #b8c0c7; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Messages ---------- */
.toast-region { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 200; width: min(92vw, 520px); }
.toast {
  background: var(--ink); color: #fff; padding: .85rem 1.1rem; border-radius: var(--radius); margin-top: .5rem;
  box-shadow: 0 6px 20px #0004; font-size: .97rem;
}

/* ---------- Conseil ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.people li { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.avatar {
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: .6rem;
}
.people .role { font-size: .9rem; color: var(--muted); }

/* ---------- Espace employés ---------- */
.staff-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 70vh; border-top: 1px solid var(--line); }
.staff-side { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 1.25rem 0; }
.staff-side ul { list-style: none; margin: 0; padding: 0; }
.staff-side li { margin: 0; }
.staff-side button {
  display: flex; justify-content: space-between; width: 100%; text-align: left; font: inherit; background: none; border: 0;
  padding: .65rem 1.25rem; cursor: pointer; color: var(--ink); border-left: 4px solid transparent;
}
.staff-side button:hover { background: #e7ebe9; }
.staff-side button[aria-current="true"] { border-left-color: var(--primary); background: #fff; font-weight: 700; }
.staff-side .count { align-self: center; line-height: 1.5; background: var(--danger); color: #fff; border-radius: 999px; font-size: .78rem; font-weight: 700; padding: 0 .45rem; min-width: 1.4rem; text-align: center; }
.staff-main { padding: 1.5rem 2rem 3rem; }
@media (max-width: 860px) {
  .staff-shell { grid-template-columns: 1fr; }
  .staff-side { border-right: 0; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .staff-side ul { display: flex; overflow-x: auto; }
  .staff-side button { white-space: nowrap; border-left: 0; border-bottom: 4px solid transparent; gap: .4rem; }
  .staff-side button[aria-current="true"] { border-bottom-color: var(--primary); }
  .staff-main { padding: 1.25rem; }
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.kpi .n { font-size: 2rem; font-weight: 700; line-height: 1; display: block; margin-bottom: .3rem; }
.kpi .l { font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.preview-box { border: 2px dashed var(--line-strong); padding: 1rem; border-radius: var(--radius); background: #fff; }
.preview-box .alert { padding: .75rem 0; }
.channel-note { font-size: .9rem; color: var(--muted); }

.bar-row { display: grid; grid-template-columns: 11rem 1fr 3rem; gap: .75rem; align-items: center; margin-bottom: .45rem; font-size: .95rem; }
.bar { height: .7rem; background: var(--primary); border-radius: 2px; }
.bar.warn { background: var(--accent); }

.login-box { max-width: 420px; margin: 3rem auto; }

/* ---------- Impression ---------- */
@media print {
  .demo-bar, .site-nav, .header-search, .menu-toggle, .feedback, .site-footer, .toast-region { display: none !important; }
  .site-header { background: none; color: #000; border: 0; }
  .brand { color: #000; }
  a { color: #000; }
}

.item-list li:nth-child(4n+2) .date-box .m { background: var(--c2); }
.item-list li:nth-child(4n+3) .date-box .m { background: var(--c3); }
.item-list li:nth-child(4n+4) .date-box .m { background: var(--c4); }

/* En-tête de page coloré */
.page-head { background: var(--hero-bg); }
.people li { padding: 0 0 1rem; overflow: hidden; }
.people .art-portrait { border-radius: 0; margin-bottom: .75rem; }
.people li > strong, .people li > .role, .people li > p { display: block; padding: 0 1rem; }
.people { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.leader { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.75rem; align-items: center; border: 1px solid var(--line); border-left: 6px solid var(--c3); border-radius: 8px; overflow: hidden; background: var(--hero-bg); margin-bottom: 1.25rem; }
.leader .art-portrait { border-radius: 0; height: 100%; }
.leader h3 { font-size: 1.5rem; margin: 0 0 .5rem; }
.leader > div { padding: 1.25rem 1.25rem 1.25rem 0; }
@media (max-width: 600px) { .leader { grid-template-columns: 1fr; } .leader > div { padding: 0 1.25rem 1.25rem; } }
