/* Section 404 — styles communs à toutes les pages. Les styles propres à une page restent dans cette page. */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/barlow-semi-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("polices/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("polices/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
/* Police de secours calée sur les dimensions de Barlow : évite que la page saute quand Barlow arrive */
@font-face { font-family: "Barlow Secours"; font-weight: 400; src: local("Arial"), local("Roboto"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 75%; ascent-override: 100%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Secours"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Liberation Sans Bold"), local("Arial");
  size-adjust: 77%; ascent-override: 100%; descent-override: 20%; line-gap-override: 0%; }
:root {
  --noir: #0A0A0A;
  --braise-fond: #C8171D; /* rouge de fond sous du texte blanc : contraste 5,8 */
  --gunmetal: #2B2F36;
  --anthracite: #474B52;
  --cendre: #D9D9DD;
  --cramoisi: #8B0F14;
  --braise: #FF2B2B;
  --titres: "Barlow Semi Condensed", "Barlow Secours", "Bahnschrift", "DIN Alternate", "Oswald", "Arial Narrow", Arial, sans-serif;
  --texte: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--braise-fond); color: #fff;
  font-family: var(--titres); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.evitement:focus { top: 12px; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--cendre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--braise); }
.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,10,10,.92);
  border-bottom: 1px solid var(--cramoisi);
  backdrop-filter: blur(6px);
}
header .conteneur {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.marque {
  font-family: var(--titres); font-weight: 700; font-size: 1.25rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cendre); text-decoration: none;
}
.marque span { color: var(--braise); }
header .conteneur { max-width: 1500px; padding-left: 28px; padding-right: 28px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
nav a {
  font-family: var(--titres); font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cendre); text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav a[aria-current] { color: var(--braise); border-bottom-color: var(--braise); }
nav a:hover, nav a:focus { color: var(--braise); border-bottom-color: var(--braise); }
.accueil {
  position: relative; overflow: hidden; text-align: center;
  padding: 70px 0 90px;
  background:
    linear-gradient(180deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.55) 45%, var(--noir) 100%),
    url("fond.webp") center / cover no-repeat,
    var(--noir);
  border-bottom: 1px solid var(--gunmetal);
}
@media (max-width: 700px) {
  .accueil { background-image: linear-gradient(180deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.55) 45%, var(--noir) 100%), url("fond-900.webp"); }
}
.accueil .sur-titre {
  font-family: var(--titres); letter-spacing: .35em; text-transform: uppercase;
  font-size: .8rem; color: var(--braise); margin: 0 0 14px;
}
.accueil h1 {
  font-family: var(--titres); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1; letter-spacing: .06em;
  margin: 0; color: var(--cendre);
  text-shadow: 0 2px 0 #000, 0 0 30px rgba(0,0,0,.9);
}
.accueil h1 span {
  color: var(--braise);
  text-shadow: 0 0 18px rgba(255,43,43,.65), 0 0 50px rgba(255,43,43,.35);
}
.accueil .sous-titre {
  font-size: 1.15rem; margin: 18px auto 0; max-width: 620px;
  text-shadow: 0 1px 6px #000;
}
.puces {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; padding: 0; margin: 30px 0 0;
}
.puces li {
  font-family: var(--titres); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 7px 16px;
  border: 1px solid var(--anthracite); background: rgba(20,21,24,.8);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.bouton {
  display: inline-block; margin-top: 34px; padding: 14px 34px;
  font-family: var(--titres); font-weight: 700; font-size: 1rem;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--cramoisi); border: 1px solid var(--braise);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background .15s;
}
.bouton:hover, .bouton:focus { background: var(--braise-fond); }
.devise {
  margin: 36px 0 0; font-family: var(--titres); font-size: .85rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--cendre);
  text-shadow: 0 1px 6px #000;
}
.devise::before, .devise::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 46px; height: 2px; margin: 0 14px; background: var(--braise);
}
section { padding: 70px 0; border-bottom: 1px solid var(--gunmetal); }
section:nth-of-type(even) { background: #101113; }
h2 {
  font-family: var(--titres); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: .1em;
  margin: 0 0 8px; color: #fff;
}
h2 small {
  display: block; font-size: .75rem; letter-spacing: .3em;
  color: var(--braise); margin-bottom: 6px; font-weight: 400;
}
h2::after {
  content: ""; display: block; width: 70px; height: 3px;
  background: var(--braise); margin-top: 14px;
  box-shadow: 0 0 12px rgba(255,43,43,.6);
}
.intro { max-width: 760px; margin: 22px 0 0; }
.grille {
  display: grid; gap: 18px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.carte {
  background: linear-gradient(160deg, var(--gunmetal), #1a1c20);
  border: 1px solid var(--anthracite); border-left: 3px solid var(--cramoisi);
  padding: 22px;
}
.carte h3 {
  font-family: var(--titres); text-transform: uppercase; letter-spacing: .1em;
  font-size: 1.05rem; margin: 0 0 8px; color: #fff;
}
.carte p { margin: 0; font-size: .95rem; }
.carte .etiquette {
  display: inline-block; margin-bottom: 10px; font-family: var(--titres);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--braise);
}
.carte a { font-size: .9rem; word-break: break-word; }
.fiches {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-top: 34px;
}
.fiche {
  flex: 0 0 auto; width: max(180px, calc((100% - 56px) / 5)); display: flex; flex-direction: column;
  background: #15161a; border: 1px solid var(--anthracite); border-top: 3px solid var(--cramoisi);
  text-align: center;
}
.fiche-tete {
  background: var(--cramoisi); color: #fff; padding: 6px 8px;
  font-family: var(--titres); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.fiche-portrait { display: block; width: 100%; height: auto; padding: 14px 14px 0; }
.fiche h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fiche-corps { flex: 1; display: flex; flex-direction: column; padding: 8px 12px 14px; }
.fiche h3 {
  font-family: var(--titres); text-transform: uppercase;
  font-size: 1rem; letter-spacing: .06em; margin: 0; color: #fff;
}
.fiche-role {
  margin: 4px 0 12px !important; font-family: var(--titres); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--braise);
}
.fiche-corps p { font-size: .88rem; line-height: 1.5; margin: 0; }
.fiche-corps .fiche-desc { flex: 1; }
.fiche-corps .fiche-citation {
  margin-top: 12px; min-height: 3em; font-style: italic; color: #b9bcc2;
  display: flex; align-items: center; justify-content: center;
}
.fiche-statut {
  padding: 9px 8px 10px; border-top: 1px solid var(--gunmetal); line-height: 1.5;
  font-family: var(--titres); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: #a3a6ac;
}
.fiche-statut button { display: block; width: 100%; margin: 0; padding: 0; background: none; border: 0; font: inherit; letter-spacing: inherit;
  text-transform: inherit; text-align: inherit; line-height: inherit; color: var(--braise); cursor: pointer; }
.fiche-statut button:focus-visible { outline: 1px solid var(--braise); outline-offset: 3px; }
@media (max-width: 600px) {
  .fiche { width: 100%; max-width: 300px; }
}
ol.regles { counter-reset: regle; list-style: none; padding: 0; margin: 32px 0 0; max-width: 820px; }
ol.regles li {
  counter-increment: regle; position: relative;
  padding: 16px 0 16px 64px; border-bottom: 1px solid var(--gunmetal);
}
ol.regles li::before {
  content: "0" counter(regle); position: absolute; left: 0; top: 14px;
  font-family: var(--titres); font-size: 1.5rem; font-weight: 700;
  color: var(--braise);
}
ol.regles strong { color: #fff; }
.rejoindre { text-align: center; background:
    radial-gradient(ellipse at 50% 100%, rgba(139,15,20,.5), transparent 65%), var(--noir) !important; }
.rejoindre h2::after { margin-left: auto; margin-right: auto; }
.rejoindre .intro { margin-left: auto; margin-right: auto; }
.etapes {
  display: grid; gap: 18px; margin: 34px auto 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  max-width: 860px; counter-reset: etape; text-align: left;
}
.etapes li {
  counter-increment: etape; position: relative;
  background: rgba(21,22,26,.9); border: 1px solid var(--anthracite);
  border-top: 3px solid var(--cramoisi); padding: 20px 18px 18px;
  font-size: .92rem; line-height: 1.5;
}
.etapes li::before {
  content: "0" counter(etape); display: block;
  font-family: var(--titres); font-weight: 700; font-size: 1.6rem;
  color: var(--braise); line-height: 1; margin-bottom: 8px;
}
.etapes strong {
  display: block; font-family: var(--titres); text-transform: uppercase;
  letter-spacing: .08em; color: #fff; margin-bottom: 4px;
}
.banniere { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--cramoisi); }
.marque { display: inline-flex; align-items: center; gap: 10px; }
.marque img { width: 38px; height: 38px; }
.embleme {
  display: block; width: min(210px, 46vw); height: auto; margin: 0 auto 18px;
  filter: drop-shadow(0 0 26px rgba(255,43,43,.45));
}
.slogans { background: var(--cramoisi); border-bottom: 1px solid var(--braise); padding: 12px 0; }
.slogans ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 34px;
  list-style: none; margin: 0; padding: 0 20px;
  font-family: var(--titres); font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: #fff; text-align: center;
}
.vedette {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; margin-top: 32px;
  background: #15161a; border: 1px solid var(--anthracite); border-top: 3px solid var(--cramoisi);
}
.vedette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vedette-texte { padding: 26px; }
.vedette h3 {
  font-family: var(--titres); text-transform: uppercase; letter-spacing: .1em;
  font-size: 1.3rem; margin: 0 0 10px; color: #fff;
}
.vedette p { margin: 0 0 14px; font-size: .95rem; }
.etiquette-v {
  display: block; margin-bottom: 8px; font-family: var(--titres); font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--braise);
}
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.pastilles li {
  font-family: var(--titres); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--anthracite); background: rgba(43,47,54,.6);
}
.moment {
  display: block; margin: 16px 0 8px; font-family: var(--titres); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: #a3a6ac;
}
.carte .pastilles { margin: 0; }
.carte .pastilles li { border-color: var(--cramoisi); color: #fff; }
.bouton.petit { margin-top: 4px; padding: 10px 24px; font-size: .82rem; }
.duo { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 28px; margin-top: 32px; align-items: start; }
.duo img { display: block; width: 100%; height: auto; border: 1px solid var(--anthracite); }
.duo .grille { margin-top: 20px; }
.duo h3.sous { font-family: var(--titres); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--braise); margin: 0 0 12px; }
.faq { max-width: 820px; margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--gunmetal); }
.faq summary {
  cursor: pointer; padding: 16px 30px 16px 0; position: relative; list-style: none;
  font-family: var(--titres); letter-spacing: .05em; color: #fff; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--braise); font-size: 1.5rem; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--braise); }
.faq details p { margin: 0 0 18px; font-size: .95rem; }
.liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 14px; }
.liens a { font-family: var(--titres); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.liens a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .vedette, .duo { grid-template-columns: 1fr; }
  .duo img { max-width: 420px; margin: 0 auto; }
}
.origine {
  max-width: 760px; margin-top: 32px; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--braise);
}
.origine h3 {
  font-family: var(--titres); text-transform: uppercase; letter-spacing: .14em;
  font-size: .85rem; color: var(--braise); margin: 0 0 10px;
}
.origine p { margin: 0 0 12px; }
.origine p:last-child { margin: 0; }
.agenda { margin-top: 32px; }
.agenda[hidden] { display: none; }
.agenda h3.sous { font-family: var(--titres); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--braise); margin: 0 0 12px; }
.agenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.agenda a {
  display: flex; gap: 16px; align-items: center; height: 100%; padding: 14px 16px;
  background: #15161a; border: 1px solid var(--anthracite); border-left: 3px solid var(--cramoisi);
  color: var(--cendre); text-decoration: none; transition: border-color .15s;
}
.agenda a:hover, .agenda a:focus { border-color: var(--braise); }
.agenda .jour {
  flex: 0 0 62px; text-align: center; font-family: var(--titres); text-transform: uppercase;
  letter-spacing: .1em; font-size: .7rem; color: var(--braise); line-height: 1.3;
}
.agenda .jour b { display: block; font-size: 1.7rem; line-height: 1; color: #fff; letter-spacing: 0; }
.agenda .infos { min-width: 0; }
.agenda .nom { display: block; font-family: var(--titres); text-transform: uppercase; letter-spacing: .06em; color: #fff; font-size: .98rem; }
.agenda .detail { display: block; font-size: .85rem; color: #a3a6ac; margin-top: 2px; }
.agenda .direct { color: var(--braise); }
nav a.lien-bot { color: var(--braise); border: 1px solid var(--cramoisi); padding: 4px 12px; margin-left: 22px; }
nav a.lien-bot:hover, nav a.lien-bot:focus { background: var(--cramoisi); color: #fff; border-color: var(--braise); }
@media (max-width: 940px) { .js nav a.lien-bot { border: 0; border-bottom: 1px solid var(--gunmetal); padding: 12px 0; margin-left: 0; } }
.bouton-menu {
  display: none; background: none; border: 1px solid var(--anthracite); color: var(--cendre);
  font-family: var(--titres); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; cursor: pointer;
}
.bouton-menu:hover, .bouton-menu:focus { border-color: var(--braise); color: var(--braise); }
@media (max-width: 940px) {
  header .conteneur { padding-left: 20px; padding-right: 20px; }
  .js .bouton-menu { display: block; }
  .js nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-top: 6px; }
  .js nav.ouvert { display: flex; }
  .js nav a { padding: 12px 0; border-bottom: 1px solid var(--gunmetal); }
}
.compteur {
  margin: 16px 0 0; font-family: var(--titres); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cendre); text-shadow: 0 1px 6px #000;
}
.compteur[hidden] { display: none; }
.compteur .point {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px;
  background: #3ad26b; box-shadow: 0 0 8px rgba(58,210,107,.8);
}
.signal {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 50;
  max-width: min(520px, calc(100vw - 32px)); padding: 16px 22px;
  background: rgba(10,10,10,.96); border: 1px solid var(--braise); border-left-width: 4px;
  box-shadow: 0 0 30px rgba(255,43,43,.35); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; font-size: .95rem;
}
.signal.visible { opacity: 1; transform: translate(-50%, 0); }
.signal b {
  display: block; margin-bottom: 4px; font-family: var(--titres); font-weight: 400;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--braise);
}
@keyframes brouillage {
  0%, 100% { transform: none; filter: none; }
  15% { transform: translate(-6px, 2px) skewX(-2deg); filter: hue-rotate(40deg) saturate(2); }
  30% { transform: translate(5px, -3px); filter: invert(.12); }
  45% { transform: translate(-3px, 1px) skewX(3deg); filter: hue-rotate(-30deg) contrast(1.4); }
  60% { transform: translate(4px, 2px); filter: saturate(3); }
  80% { transform: translate(-2px, -1px); filter: none; }
}
@media (prefers-reduced-motion: no-preference) {
  main.brouillage { animation: brouillage .7s steps(2, end); }
}
footer { padding: 28px 0; text-align: center; font-size: .82rem; color: #8a8d93; }
footer p { margin: 4px 0; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .accueil { padding: 70px 0 60px; }
  .devise::before, .devise::after { display: none; }
  section { padding: 50px 0; }
}

/* Fond allégé pour les téléphones sur les bandeaux des pages internes */
@media (max-width: 700px) {
  :root .guide-tete, :root .recrut-tete, :root .cmd-tete { background-image: linear-gradient(180deg, rgba(10,10,10,.78), var(--noir)), url("fond-900.webp"); }
  :root .dossier-tete { background-image: linear-gradient(180deg, rgba(10,10,10,.8), var(--noir)), url("fond-900.webp"); }
}
