@charset "UTF-8";
/* ==========================================================================
   UDSP 51 — Feuille de style principale
   Direction : civique française, grille rigoureuse, rouge structurel.
   Palette   : blanc / gris froid / bleu ardoise / rouge pompier
   Typo      : Archivo (titres, plaques) + Source Sans 3 (texte)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body { margin: 0; }
img, svg, video, iframe { max-width: 100%; display: block; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--rouge); color: #fff; }

:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:      #ffffff;
  --surface:    #f2f4f6;
  --surface-2:  #e8ebef;

  /* Encre */
  --ink:        #16202e;
  --ink-2:      #454f5c;
  --ink-3:      #6d7784;
  --ink-inv:    #ffffff;

  /* Accent */
  --rouge:      #e1000f;
  --rouge-deep: #a3000b;
  --rouge-wash: #fdeced;

  /* Traits */
  --line:       #dde1e6;
  --line-2:     #c6ccd4;
  --line-dark:  rgba(255,255,255,.16);

  /* Réservé « mémoire & patrimoine » */
  --laiton:     #96703a;

  /* Typographie */
  --font-title: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text:  "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --shell:      1280px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --header-h:   72px;
  --section-y:  clamp(4rem, 8vw, 7rem);

  /* Rayons différenciés selon la nature de l'objet */
  --r-control:  2px;
  --r-panel:    4px;

  --lift:       0 12px 34px -14px rgba(22,32,46,.30);
  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------------------
   3. Base typographique
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.25; }
h4 { font-size: 1rem; line-height: 1.3; }

strong, b { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Alias historique — le contenu déjà enregistré en base utilise .container */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Boutons et liens
   -------------------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-ghost,
.btn-small,
.article-btn,
.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: .975rem;
  line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  text-align: center;
}

.btn-primary {
  background: var(--rouge);
  color: #fff;
}
.btn-primary:hover { background: var(--rouge-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0d1622; }

/* Variantes sur fond sombre */
.on-dark .btn-ghost,
.btn-ghost.light {
  color: #fff;
  border-color: var(--line-dark);
}
.on-dark .btn-ghost:hover,
.btn-ghost.light:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.4); }
.btn-primary.light { background: #fff; color: var(--ink); }
.btn-primary.light:hover { background: var(--surface-2); }

.btn-small { padding: .65rem 1.1rem; font-size: .9rem; }

/* Lien de rebond, souligné à l'apparition */
.link-more {
  display: inline-block;
  font-weight: 600;
  color: var(--rouge-deep);
  border-bottom: 2px solid var(--rouge-wash);
  padding-bottom: 2px;
  transition: border-color .18s var(--ease);
}
.link-more:hover { border-color: var(--rouge); }

/* --------------------------------------------------------------------------
   5. Barre utilitaire
   -------------------------------------------------------------------------- */
.utility {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  font-size: .845rem;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.utility a { transition: color .15s var(--ease); }
.utility a:hover { color: #fff; }
.utility-list { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.utility-list i { color: var(--rouge); margin-right: .4rem; }
.utility-urgence { color: #fff; font-weight: 600; }
.utility-urgence b { color: var(--rouge); font-weight: 700; }

@media (max-width: 720px) {
  .utility-secondary { display: none; }
  .utility-inner { justify-content: center; }
}
@media (max-width: 520px) {
  .utility-list > :first-child { display: none; }
  .utility { font-size: .8rem; }
}

/* --------------------------------------------------------------------------
   6. En-tête et navigation
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.masthead.is-stuck { box-shadow: 0 1px 16px rgba(22,32,46,.10); }

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Signature */
.signature { display: flex; align-items: center; gap: .85rem; margin-right: auto; }
.signature-mark {
  width: 42px;
  height: 46px;
  flex: none;
  color: var(--rouge);
}
.signature-mark svg { width: 100%; height: 100%; }
.signature-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.signature-role {
  display: block;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-3);
  margin-top: .3rem;
  line-height: 1.2;
}

/* Navigation principale */
.mainnav > ul { display: flex; align-items: center; gap: .15rem; }
.mainnav a {
  display: block;
  padding: .6rem .72rem;
  font-size: .955rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-control);
  transition: color .15s var(--ease), background-color .15s var(--ease);
  white-space: nowrap;
}
.mainnav a:hover { color: var(--ink); background: var(--surface); }

.mainnav .is-current > a {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--rouge);
  border-radius: 0;
}

.nav-caret { font-size: .6rem; margin-left: .3rem; opacity: .55; }

/* Sous-menu */
.has-drop { position: relative; }
.drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rouge);
  border-radius: var(--r-panel);
  box-shadow: var(--lift);
  padding: .4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.has-drop:hover > .drop,
.has-drop:focus-within > .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drop a { padding: .6rem .8rem; font-size: .93rem; }
.drop a:hover { background: var(--rouge-wash); color: var(--rouge-deep); }

/* Appel à l'action de l'en-tête */
.masthead-cta { flex: none; }

/* Éléments réservés au tiroir mobile */
.nav-close, .nav-foot { display: none; }

/* Bouton menu mobile */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background-color .15s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.nav-veil {
  position: fixed;
  inset: 0;
  background: rgba(22,32,46,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s;
  z-index: 98;
}
.nav-veil.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 1140px) {
  .burger { display: inline-flex; }
  .masthead-cta { display: none; }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    color: var(--ink);
    font-size: 1.05rem;
  }
  .nav-close:hover { background: var(--surface); }

  .nav-foot { display: block; margin-top: 1.75rem; }
  .mainnav .nav-foot a {
    border-bottom: 0;
    padding: 0;
    font-size: 1rem;
  }
  .mainnav .nav-foot .btn-primary {
    width: 100%;
    color: #fff;
    background: var(--rouge);
    padding: .95rem 1.5rem;
    border-radius: var(--r-control);
  }
  .mainnav .nav-foot .btn-primary:hover { background: var(--rouge-deep); color: #fff; }
  .nav-foot-mail { display: block; margin-top: 1.25rem; font-weight: 600; color: var(--ink); }
  .nav-foot-urgence { margin-top: .35rem; font-size: .9rem; color: var(--ink-3); }

  .mainnav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 88vw);
    background: var(--paper);
    border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + 1.5rem) 1.25rem 2.5rem;
    overflow-y: auto;
    transform: translateX(101%);
    transition: transform .28s var(--ease);
    z-index: 99;
    box-shadow: var(--lift);
  }
  .mainnav.is-open { transform: translateX(0); }
  .mainnav > ul { display: block; }
  .mainnav a {
    padding: .9rem .5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .mainnav .is-current > a { box-shadow: inset 3px 0 0 var(--rouge); padding-left: 1rem; }
  .nav-caret { float: right; margin-top: .35rem; transition: transform .2s var(--ease); }
  .has-drop.is-open .nav-caret { transform: rotate(180deg); }

  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--rouge);
    border-radius: 0;
    margin: 0 0 .5rem .5rem;
    padding: 0 0 0 .75rem;
    display: none;
  }
  .has-drop.is-open > .drop { display: block; }
  .drop a { border-bottom: 0; font-size: .98rem; padding: .7rem .5rem; }
}

/* --------------------------------------------------------------------------
   7. Hero — panneau ardoise + photographie, séparés par un filet rouge
   -------------------------------------------------------------------------- */
.hero { background: var(--ink); position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: min(620px, 78vh);
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
  padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  color: rgba(255,255,255,.78);
}
.hero-panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 5px;
  background: var(--rouge);
  z-index: 3;
}

.hero-stack { position: relative; display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; }

.hero-kicker {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
  border-left: 3px solid var(--rouge);
  padding-left: .7rem;
  margin-bottom: 1.4rem;
}
.hero-slide h1 { color: #fff; max-width: 15ch; }
.hero-slide p {
  margin-top: 1.35rem;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  max-width: 44ch;
  color: rgba(255,255,255,.76);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }

/* Contrôles du diaporama : segments de progression, pas de pastilles */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
.hero-track { display: flex; gap: .5rem; }
.hero-seg {
  width: 46px;
  height: 3px;
  background: rgba(255,255,255,.22);
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.hero-seg span {
  position: absolute;
  inset: 0;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-seg.is-done span { transform: scaleX(1); }
.hero-seg.is-active span { animation: heroFill 7s linear forwards; }
@keyframes heroFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-arrows { display: flex; gap: .4rem; }
.hero-arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  border-radius: var(--r-control);
  font-size: .8rem;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.hero-arrow:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

/* Volet photographique */
.hero-visual { position: relative; overflow: hidden; background: #0d1622; }
.hero-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.hero-shot.is-active { opacity: 1; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(22,32,46,.75) 0%, rgba(22,32,46,.18) 45%, rgba(22,32,46,.05) 100%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { order: -1; aspect-ratio: 16 / 10; position: relative; }
  .hero-shot::after { background: linear-gradient(180deg, rgba(22,32,46,.15), rgba(22,32,46,.55)); }
  .hero-panel { padding-left: var(--gutter); padding-right: var(--gutter); padding-top: 2.75rem; }
  .hero-panel::after { top: auto; bottom: auto; right: 0; left: 0; height: 4px; width: auto; top: 0; }
  .hero-slide h1 { max-width: 20ch; }
}

/* --------------------------------------------------------------------------
   8. Le « guichet » : quatre entrées de service, à cheval sur le hero
   -------------------------------------------------------------------------- */
.desk { background: var(--paper); }
.desk-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  margin-top: -52px;
  position: relative;
  z-index: 5;
  box-shadow: var(--lift);
  overflow: hidden;
}
.desk-item {
  display: block;
  padding: 1.7rem 1.5rem 1.6rem;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background-color .18s var(--ease);
}
.desk-item:last-child { border-right: 0; }
.desk-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.desk-item:hover { background: var(--surface); }
.desk-item:hover::before { transform: scaleX(1); }
.desk-item i { color: var(--rouge); font-size: 1.15rem; }
.desk-item h3 { margin: .85rem 0 .3rem; font-size: 1.08rem; }
.desk-item p { font-size: .925rem; color: var(--ink-3); line-height: 1.5; }

@media (max-width: 980px) {
  .desk-inner { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .desk-item:nth-child(2) { border-right: 0; }
  .desk-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .desk-inner { grid-template-columns: 1fr; margin-top: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .desk-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .desk-item:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   9. Sections génériques
   -------------------------------------------------------------------------- */
.band { padding-block: var(--section-y); }
.band-grey { background: var(--surface); }
.band-dark { background: var(--ink); color: rgba(255,255,255,.75); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

.band-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.band-head p { margin-top: 1rem; font-size: 1.08rem; }

/* Titre marqué par un filet rouge, à gauche */
.ruled {
  border-left: 4px solid var(--rouge);
  padding-left: 1.15rem;
}

/* --------------------------------------------------------------------------
   10. Chiffres clés
   -------------------------------------------------------------------------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.figure {
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.figure-num {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.figure-num sup { color: var(--rouge); font-size: .45em; top: -.75em; }
.figure-label { display: block; margin-top: .6rem; font-size: .95rem; color: var(--ink-3); max-width: 22ch; }

@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .figures { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   11. Missions — titre collant à gauche, liste à droite
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.split-aside p { margin-top: 1rem; }
.split-aside .btn-ghost { margin-top: 1.75rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .split-aside { position: static; }
}

.ledger { border-top: 1px solid var(--line); }

/* Disposition en flux plutôt qu'en grille à colonnes fixes : si l'icône a été
   supprimée du contenu enregistré, le texte occupe simplement toute la largeur
   au lieu de se retrouver coincé dans la colonne de l'icône. */
.ledger-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .25rem 1.25rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.ledger-item > i {
  flex: 0 0 auto;
  width: 28px;
  color: var(--rouge);
  font-size: 1.3rem;
  padding-top: .15rem;
}
.ledger-item > div {
  flex: 1 1 280px;
  min-width: 0;
}
/* Repli : titre et paragraphe remontés en enfants directs */
.ledger-item > h3,
.ledger-item > p { flex: 1 1 100%; min-width: 0; }

@media (max-width: 560px) {
  .ledger-item { gap: .25rem .9rem; }
  .ledger-item > i { width: 24px; font-size: 1.1rem; }
}

.ledger-item h3 { margin-bottom: .4rem; }
.ledger-item p { font-size: .99rem; max-width: 64ch; }
.band-dark .ledger,
.band-dark .ledger-item { border-color: var(--line-dark); }

/* --------------------------------------------------------------------------
   12. Actualités
   -------------------------------------------------------------------------- */
.news-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.news-card,
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  transition: border-color .18s var(--ease);
}
.news-card:hover,
.article-card:hover { border-color: var(--line-2); }

.news-media,
.article-card > img {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  background: var(--surface-2);
}
.news-media { position: relative; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; }

.news-body,
.article-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

.news-meta {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-size: .84rem;
  margin-bottom: .75rem;
}
.news-cat { color: var(--rouge-deep); font-weight: 700; }
.news-date { color: var(--ink-3); }

.news-card h3,
.article-content h3 { margin-bottom: .55rem; }
.news-card p,
.article-content p { font-size: .97rem; color: var(--ink-2); }
.news-body .link-more,
.article-btn { margin-top: auto; padding-top: 1.1rem; align-self: flex-start; }

.article-btn {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rouge-deep);
  font-weight: 600;
  border-bottom: 2px solid var(--rouge-wash);
}
.article-btn:hover { border-color: var(--rouge); background: none; }

/* --------------------------------------------------------------------------
   13. Bandeau d'adhésion
   -------------------------------------------------------------------------- */
.enlist {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  position: relative;
  overflow: hidden;
}
.enlist::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--rouge);
}
.enlist-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.enlist h2 { color: #fff; max-width: 26ch; }
.enlist p { margin-top: 1rem; max-width: 62ch; }
.enlist-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 860px) {
  .enlist-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* --------------------------------------------------------------------------
   14. En-tête de page intérieure
   -------------------------------------------------------------------------- */
.pagehead,
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.pagehead .shell,
.page-header .container { position: relative; }

.crumbs,
.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .875rem;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}
.crumbs a:hover,
.page-breadcrumb a:hover { color: var(--rouge-deep); }
.crumbs i,
.page-breadcrumb i { font-size: .6rem; opacity: .5; }
.crumbs .current,
.page-breadcrumb .current { color: var(--ink); font-weight: 600; }

.pagehead h1,
.page-header h1 {
  border-left: 4px solid var(--rouge);
  padding-left: 1.15rem;
  max-width: 20ch;
}
.pagehead > .shell > p,
.page-header > .container > p {
  margin-top: 1.25rem;
  margin-left: calc(4px + 1.15rem);
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   15. Corps de page éditorial
   -------------------------------------------------------------------------- */
.pagebody,
.page-content { padding-block: clamp(2.75rem, 4.5vw, 4rem) var(--section-y); }

.pagebody > .shell > *,
.page-content > .container > *,
.prose > * { max-width: 72ch; }

.pagebody h2,
.page-content h2,
.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--rouge);
  padding-left: 1.05rem;
}
.pagebody > .shell > *:first-child,
.page-content > .container > *:first-child { margin-top: 0; }

.pagebody h3,
.page-content h3,
.prose h3 { margin-top: 2rem; margin-bottom: .6rem; }

.pagebody p,
.page-content p,
.prose p { margin-bottom: 1.15rem; }

.pagebody a:not([class]),
.page-content a:not([class]),
.prose a:not([class]) {
  color: var(--rouge-deep);
  border-bottom: 1px solid var(--rouge-wash);
}
.pagebody a:not([class]):hover,
.page-content a:not([class]):hover { border-color: var(--rouge); }

.pagebody ul:not([class]),
.page-content ul:not([class]),
.prose ul:not([class]) { margin-bottom: 1.25rem; }
.pagebody ul:not([class]) li,
.page-content ul:not([class]) li,
.prose ul:not([class]) li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .55rem;
}
.pagebody ul:not([class]) li::before,
.page-content ul:not([class]) li::before,
.prose ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 2px;
  background: var(--rouge);
}

/* Les grilles occupent toute la largeur, elles ne sont pas du texte courant */
.pagebody .info-grid, .page-content .info-grid,
.pagebody .missions-grid, .page-content .missions-grid,
.pagebody .articles-grid, .page-content .articles-grid,
.pagebody .news-grid, .page-content .news-grid,
.pagebody .team-grid, .page-content .team-grid,
.pagebody .products-grid, .page-content .products-grid,
.pagebody .gallery-grid, .page-content .gallery-grid,
.pagebody .figures, .page-content .figures,
.pagebody .ledger, .page-content .ledger,
.pagebody .split, .page-content .split,
.pagebody .callout, .page-content .callout,
.pagebody .actions-row, .page-content .actions-row,
.pagebody hr, .page-content hr { max-width: none; }

.actions-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Liste des composantes (SPV, SPP, JSP…) */
.membership-list {
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.membership-list li {
  background: var(--paper);
  padding: .95rem 1.15rem;
  font-size: .99rem;
  border-bottom: 1px solid var(--line);
}
.membership-list li:last-child { border-bottom: 0; }
.membership-list li strong { display: inline-block; min-width: 4.5rem; color: var(--rouge-deep); }

/* Encadré d'information */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--rouge);
  background: var(--surface);
  border-radius: var(--r-panel);
  padding: 1.5rem 1.75rem;
  margin: 2.25rem 0;
}
.callout h3 { margin-bottom: .5rem; }
.callout p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   16. Grilles de contenu réutilisées par l'administration
   -------------------------------------------------------------------------- */
.info-grid,
.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  margin: 2rem 0;
}
@media (max-width: 1000px) { .info-grid, .missions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .info-grid, .missions-grid { grid-template-columns: 1fr; } }

.info-card,
.mission-block {
  background: var(--paper);
  padding: 1.9rem 1.75rem;
  /* Les filets sont portés par les cellules : une rangée incomplète
     ne laisse donc jamais de bloc gris. */
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .18s var(--ease);
}
.info-card:hover,
.mission-block:hover { background: var(--surface); }
.info-icon,
.mission-icon { color: var(--rouge); font-size: 1.4rem; margin-bottom: 1rem; }
.info-card h3,
.mission-block h3 { margin-bottom: .5rem; }
.info-card p,
.mission-block p { font-size: .96rem; color: var(--ink-2); margin: 0; }

/* Trombinoscope */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.team-card { text-align: left; }
.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: var(--r-panel);
  filter: grayscale(1);
}
.team-name { margin-top: .9rem; font-weight: 700; color: var(--ink); font-family: var(--font-title); letter-spacing: -0.02em; }
.team-role { font-size: .9rem; color: var(--ink-3); }

/* Boutique */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 2rem 0;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--paper);
}
.product-card > img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--surface); }
.product-card h3 { font-size: 1.02rem; padding: 1.1rem 1.15rem 0; }
.product-card .price {
  padding: .35rem 1.15rem 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.product-btn { margin: 1.1rem 1.15rem 1.15rem; }

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
  margin: 2rem 0;
}
.gallery-item { display: block; overflow: hidden; background: var(--surface-2); }
.gallery-item img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease), filter .3s var(--ease);
  filter: saturate(.9);
}
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1.1); }

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-layout,
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
@media (max-width: 900px) {
  .contact-layout, .contact-wrap { grid-template-columns: 1fr; }
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-details {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-icon { color: var(--rouge); font-size: 1.05rem; padding-top: .15rem; width: 1.4rem; flex: none; }
.contact-label { font-size: .82rem; color: var(--ink-3); }
.contact-value { font-weight: 600; color: var(--ink); }

.contact-form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.contact-form label,
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-control);
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px var(--rouge-wash);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-3); opacity: .8; }
.form-hint { font-size: .85rem; color: var(--ink-3); }
.form-hp { position: absolute; left: -9999px; }

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--rouge);
  background: var(--surface);
  border-radius: var(--r-panel);
  padding: 1rem 1.25rem;
  font-size: .97rem;
}
.notice-ok { border-left-color: #14804a; background: #eff8f2; color: #10603a; }
.notice-ko { border-left-color: var(--rouge); background: var(--rouge-wash); color: var(--rouge-deep); }

/* --------------------------------------------------------------------------
   18. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.66);
  font-size: .95rem;
  border-top: 5px solid var(--rouge);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 2.25rem; } }

.footer-brand .signature-name { color: #fff; }
.footer-brand .signature-role { color: rgba(255,255,255,.55); }
.footer-about { margin-top: 1.25rem; max-width: 38ch; }

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-col a { display: block; padding: .35rem 0; transition: color .15s var(--ease); }
.footer-col a:hover { color: #fff; }

.social { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-control);
  color: rgba(255,255,255,.8);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.social-link:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }

.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .875rem;
}
.footer-legal nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   19. Page 404
   -------------------------------------------------------------------------- */
.notfound { padding-block: clamp(5rem, 12vw, 9rem); }
.notfound-code {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: .9;
  letter-spacing: -0.05em;
  color: var(--rouge);
}
.notfound h1 { margin-top: 1.5rem; }
.notfound p { margin-top: 1rem; max-width: 52ch; }

/* --------------------------------------------------------------------------
   20. Accessibilité et impression
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-slide { transform: none; }
}

@media print {
  .utility, .masthead, .site-footer, .hero-controls, .desk { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; }
}
