/* ==========================================================================
   assets/opc.css — feuille de style commune
   --------------------------------------------------------------------------
   IDENTIQUE dans les deux deploiements. Aucune couleur n'est ecrite en dur :
   tout passe par les variables CSS injectees par includes/header.php depuis
   SITE_PALETTE. Changer de palette ne demande donc aucune modification ici.

   Regle de la charte OPC Verviers respectee mecaniquement :
   --accent (bruyere claire) n'est utilise QUE sur fond sombre ;
   --accent-fonce est la seule variante employee sur fond clair.
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
}

body.menu-ouvert { overflow: hidden; }

img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-fonce); }

/* ---------- Accessibilite ---------- */

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

.saut-contenu {
  position: absolute; left: -9999px;
  z-index: 100; padding: 12px 20px;
  background: var(--fond); color: var(--craie);
  text-decoration: none;
}
.saut-contenu:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent-fonce);
  outline-offset: 3px;
  border-radius: 2px;
}
.theme-sombre :focus-visible,
.entete :focus-visible { outline-color: var(--accent); }

/* ---------- Ossature ---------- */

.enveloppe {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.principal { flex: 1 0 auto; }

/* ==========================================================================
   EN-TETE
   ========================================================================== */

.entete {
  background: var(--fond);
  background-image: linear-gradient(168deg, var(--fond-haut) 0%, var(--fond) 70%);
  color: var(--craie);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.entete__interieur {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.entete__logo { line-height: 0; flex: 0 0 auto; }
.entete__logo img { display: block; width: auto; height: 46px; }

.entete__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-liens {
  display: flex;
  gap: 24px;
  margin: 0; padding: 0;
  list-style: none;
}

.nav-liens a {
  color: var(--craie-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-liens a:hover,
.nav-liens a[aria-current="page"] {
  color: var(--craie);
  border-bottom-color: var(--accent);
}

.nav-actions { display: flex; gap: 10px; }

/* ---------- Selecteur de langue : reglette de la charte ---------- */
/* La reglette FR/DE du splashscreen devient ici l'element de bascule.
   L'ecart entre les deux codes reprend le contraste d'interlettrage du
   lockup : c'est la signature visuelle, reutilisee et non abandonnee. */

.nav-langues {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.nav-langues a {
  color: var(--sourd);
  text-decoration: none;
  transition: color .18s ease;
}
.nav-langues a:hover { color: var(--accent); }

.nav-langues__actif { color: var(--accent); }

.nav-langues--mobile {
  border-left: 0;
  padding-left: 0;
  margin-top: 28px;
  gap: 18px;
}

/* ---------- Bascule mobile ---------- */

.entete__bascule {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}

.entete__bascule-visuel,
.entete__bascule-visuel::before,
.entete__bascule-visuel::after {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--craie);
  transition: transform .2s ease;
}
.entete__bascule-visuel { margin: 0 auto; position: relative; }
.entete__bascule-visuel::before,
.entete__bascule-visuel::after { content: ''; position: absolute; left: 0; }
.entete__bascule-visuel::before { top: -7px; }
.entete__bascule-visuel::after  { top: 7px; }

.menu-mobile {
  background: var(--fond);
  color: var(--craie);
  padding: 26px 0 34px;
}
.menu-mobile .bouton { display: block; margin-bottom: 12px; text-align: center; }

.menu-mobile__liens {
  list-style: none;
  margin: 26px 0 0; padding: 0;
}
.menu-mobile__liens li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.menu-mobile__liens a {
  display: block; padding: 14px 0;
  color: var(--craie-dim);
  text-decoration: none;
  font-weight: 500;
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--police-texte);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

/* Sur fond sombre : accent clair (charte) */
.bouton--fantome {
  color: var(--craie-dim);
  border-color: rgba(255, 255, 255, 0.22);
  padding: 10px 18px;
  font-size: 14px;
}
.bouton--fantome:hover,
.bouton--fantome.est-actif {
  color: var(--fond);
  background: var(--accent);
  border-color: var(--accent);
}

/* Sur fond clair : accent fonce (charte) */
.bouton--plein {
  color: var(--craie);
  background: var(--fond);
  border-color: var(--fond);
}
.bouton--plein:hover { background: var(--fond-haut); border-color: var(--fond-haut); }

.bouton--contour {
  color: var(--encre);
  background: transparent;
  border-color: var(--bordure);
}
.bouton--contour:hover {
  border-color: var(--accent-fonce);
  color: var(--accent-fonce);
}

.bouton--large { width: 100%; }

/* ==========================================================================
   ACCUEIL
   ========================================================================== */

.heros {
  background: var(--fond);
  background-image: linear-gradient(168deg, var(--fond-haut) 0%, var(--fond) 58%);
  color: var(--craie);
  padding: 68px 0 76px;
}

.heros__surtitre {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sourd);
}

/* ---------- Bandeau a deux colonnes ---------- */
/* Le gabarit ne s'applique qu'avec .heros--illustre : sans visuel, le bandeau
   conserve exactement sa mise en page d'origine sur une colonne. */

.heros__interieur { display: block; }

.heros--illustre .heros__interieur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;

  /* La gouttiere applique la zone de protection de la charte : une marge
     egale au diametre interieur de l'anneau, soit 136/200 du signe — ici
     environ 116 px pour un lockup de 170 px de large. Un simple gap de 64 px
     laissait le texte empieter dessus. */
  gap: clamp(44px, 9vw, 116px);
}

.heros__signe { line-height: 0; }

.heros__signe img {
  display: block;
  /* Nettement plus petit que l'embleme nu qu'il remplace : le lockup porte le
     sigle, il n'a plus besoin de la taille pour se faire identifier. */
  width: clamp(118px, 13vw, 170px);
  height: auto;

  animation: signe-apparition .7s cubic-bezier(.2, .7, .2, 1) both;
}

/* Apparition sobre : le signe se pose, il ne tourne pas. Une rotation
   suggererait un chargement en cours. */
@keyframes signe-apparition {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

.heros__titre {
  max-width: 22ch;
  font-size: clamp(30px, 4.6vw, 50px);
  color: var(--craie);
}

.heros--illustre .heros__titre { max-width: 16ch; }
.heros--illustre .heros__intro { max-width: 46ch; }

.heros__intro {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: 17px;
  color: var(--craie-dim);
}

.heros__perimetre {
  margin: 30px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--craie-dim);
}
.heros__perimetre b { color: var(--accent); font-weight: 500; }

/* ---------- Les deux demarches ---------- */

.demarches { padding: 60px 0 8px; }

.demarches__titre {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-dim);
  margin-bottom: 26px;
}

.demarches__grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.carte {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  background: var(--papier);
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--accent-fonce);
  border-radius: 3px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.carte:hover {
  box-shadow: 0 10px 30px rgba(20, 49, 47, 0.10);
  transform: translateY(-2px);
}

.carte h3 { font-size: 22px; margin-bottom: 12px; }

.carte p {
  color: var(--encre-dim);
  font-size: 15.5px;
  flex: 1 0 auto;
}

.carte .bouton { margin-top: 22px; align-self: flex-start; }

/* ---------- Bandeau d'information ---------- */

.reperes { padding: 52px 0 60px; }

.reperes__interieur {
  background: var(--papier-dim);
  border-radius: 3px;
  padding: 32px 34px;
}

.reperes__titre {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-dim);
  margin-bottom: 20px;
}

.reperes__liste { margin: 0; padding: 0; list-style: none; }

.reperes__liste li {
  position: relative;
  padding: 11px 0 11px 26px;
  font-size: 15.5px;
  border-top: 1px solid var(--bordure);
}
.reperes__liste li:first-child { border-top: 0; }

.reperes__liste li::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 9px; height: 9px;
  border: 2px solid var(--accent-fonce);
  border-radius: 50%;
  /* Clin d'oeil a l'embleme : l'anneau est interrompu en haut a droite. */
  border-top-color: transparent;
}

/* ---------- Contact ---------- */

.contact { padding: 0 0 68px; }

.contact__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 40px;
  padding-top: 30px;
  border-top: 1px solid var(--bordure);
}

.contact h2 { font-size: 20px; }

.contact__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0; padding: 0;
  list-style: none;
  margin-left: auto;
}

.contact__liste a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--bordure);
}
.contact__liste a:hover { border-bottom-color: var(--accent-fonce); }

.contact__etiquette {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-dim);
  margin-bottom: 3px;
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */

.pied {
  flex: 0 0 auto;
  background: var(--fond);
  color: var(--craie-dim);
  padding: 40px 0 34px;
  font-size: 13px;
}

.pied__interieur { display: grid; gap: 28px; }

.pied__etiquette {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sourd);
  margin-bottom: 14px;
}

.pied__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.pied__logo {
  width: auto;
  /* La hauteur est posee par partenaire (attribut style), pour egaliser la
     surface d'encre plutot que la hauteur — voir la note dans site-config. */
  height: 46px;

  /* Les logos sont ramenes au blanc sur le fond ardoise. On ne restitue PAS
     leur couleur d'origine au survol : le logo Embuild est noir, il
     dispraitrait purement et simplement, et le violet de Constructiv ne
     contraste pas davantage. Seule l'opacite varie — l'effet reste lisible
     quelle que soit la couleur du logo depose. */
  filter: brightness(0) invert(1);
  opacity: 0.66;
  transition: opacity .2s ease;
}
.pied__logos a:hover .pied__logo,
.pied__logos a:focus-visible .pied__logo { opacity: 1; }

.pied__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pied__nav a {
  color: var(--craie-dim);
  text-decoration: none;
  transition: color .18s ease;
}
.pied__nav a:hover { color: var(--accent); }

.pied__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 28px;
  color: var(--sourd);
  font-size: 12px;
}
.pied__legal p { margin: 0; }

/* ==========================================================================
   ADAPTATIF
   ========================================================================== */

@media (max-width: 940px) {
  .entete__nav { display: none; }
  .entete__bascule { display: block; }
  .heros__titre { max-width: none; }

  /* En dessous de cette largeur, deux colonnes reduiraient le titre a une
     colonne trop etroite. L'embleme passe au-dessus du texte, centre : il
     ouvre la page au lieu de l'accompagner. */
  .heros--illustre .heros__interieur {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: center;
  }
  .heros--illustre .heros__signe { order: -1; }
  .heros--illustre .heros__signe img { width: clamp(96px, 22vw, 130px); }
  .heros--illustre .heros__titre,
  .heros--illustre .heros__intro { max-width: 32ch; }
  .heros--illustre .heros__propos { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 720px) {
  .enveloppe { padding: 0 22px; }
  .heros { padding: 48px 0 54px; }
  .demarches__grille { grid-template-columns: 1fr; }
  .reperes__interieur { padding: 26px 22px; }
  .contact__liste { margin-left: 0; }
  .carte { padding: 26px 22px 24px; }
}

@media (max-width: 720px) {
  .menu-mobile[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heros__signe img { animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Impression ---------- */
/* Charte : en impression, uniquement la bruyere foncee. */
@media print {
  .entete, .pied__logos, .menu-mobile, .saut-contenu { display: none; }
  body { color: #000; background: #fff; }
  a { color: var(--accent-fonce); }
}

/* ==========================================================================
   FORMULAIRES
   --------------------------------------------------------------------------
   Sur fond clair : --accent-fonce uniquement (regle de la charte).
   ========================================================================== */

.enveloppe--etroite { max-width: 780px; }

.formulaire { padding: 46px 0 72px; }

.formulaire__titre {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 20px;
}

.formulaire__note {
  font-size: 13.5px;
  color: var(--encre-dim);
  margin: 22px 0 26px;
}

.formulaire__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Encarts ---------- */

.encart {
  padding: 16px 20px;
  border-radius: 3px;
  font-size: 15px;
  border-left: 3px solid var(--accent-fonce);
  background: var(--papier-dim);
}

.encart--erreur {
  border-left-color: #B3261E;
  background: #FCEEED;
  color: #7A1B15;
  margin-bottom: 24px;
}

/* ---------- Sections ---------- */

.section {
  border: 1px solid var(--bordure);
  border-radius: 3px;
  padding: 24px 26px 10px;
  margin: 0 0 22px;
}

.section__titre {
  font-family: var(--police-titre);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-fonce);
  padding: 0 10px;
  margin-left: -10px;
}

.section__aide {
  font-size: 14px;
  color: var(--encre-dim);
  margin: 0 0 16px;
}

/* ---------- Champs ---------- */

.ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.ligne > .champ { flex: 1 1 240px; }

.champ { margin-bottom: 18px; }

.champ label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.requis { color: #B3261E; }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--police-texte);
  font-size: 15.5px;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--bordure);
  border-radius: 3px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--accent-fonce);
  box-shadow: 0 0 0 3px rgba(126, 150, 48, 0.16);
}

.champ textarea { resize: vertical; min-height: 96px; }

.champ input[type="file"] {
  padding: 9px 11px;
  font-size: 14px;
  background: var(--papier-dim);
}

.champ__aide {
  display: block;
  font-size: 12.5px;
  color: var(--encre-dim);
  margin-top: 5px;
}

.champ__erreur {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #B3261E;
}

.champ__succes {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-fonce);
}

.champ--erreur input,
.champ--erreur select,
.champ--erreur textarea { border-color: #B3261E; }

.champ--valide input,
.champ--valide select { border-color: var(--accent-fonce); }

/* ---------- Compteur de caracteres ---------- */

.champ__compteur {
  margin-top: 5px;
  font-size: 12px;
  text-align: right;
  color: var(--encre-dim);
  font-variant-numeric: tabular-nums;
}
.champ__compteur.est-proche   { color: #9A6A00; }
.champ__compteur.est-critique { color: #B3261E; font-weight: 600; }

/* ---------- Grille horaire ---------- */

.horaire {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.horaire__jour label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-dim);
  margin-bottom: 5px;
}

.horaire__jour input {
  width: 100%;
  padding: 9px 6px;
  font-size: 15px;
  text-align: center;
  border: 1px solid var(--bordure);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Consentement ---------- */

.consentement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--papier-dim);
  border-radius: 3px;
  margin-top: 8px;
}

.consentement input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-fonce);
}

.consentement label {
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 400;
}

.consentement.champ--erreur { background: #FCEEED; }

/* ---------- Piege a robots ---------- */
/* Hors ecran plutot que display:none : certains robots ignorent les champs
   masques par display, mais remplissent ceux qui restent dans le flux. */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Bouton en cours d'envoi ---------- */

.bouton:disabled,
.bouton.est-occupe {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Modale ---------- */

.modale {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modale[hidden] { display: none; }

.modale__voile {
  position: absolute;
  inset: 0;
  background: rgba(20, 49, 47, 0.55);
}

.modale__boite {
  position: relative;
  max-width: 520px;
  width: 100%;
  padding: 30px 32px 26px;
  background: var(--papier);
  border-radius: 4px;
  border-top: 4px solid var(--accent-fonce);
  box-shadow: 0 18px 60px rgba(20, 49, 47, 0.28);
}

.modale__titre { font-size: 22px; margin-bottom: 14px; }

.modale__actions { margin-top: 24px; }

body.modale-ouverte { overflow: hidden; }

/* ---------- Adaptatif ---------- */

@media (max-width: 720px) {
  .section { padding: 20px 18px 6px; }
  .ligne { gap: 0; }
  .ligne > .champ { flex: 1 1 100%; }
  .horaire { grid-template-columns: repeat(4, 1fr); }
  .formulaire__actions .bouton { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .horaire { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   PAGES DE CONTENU (mentions legales, protection des donnees)
   ========================================================================== */

.texte { padding: 46px 0 76px; }

.texte__titre {
  font-size: clamp(28px, 3.8vw, 40px);
  margin-bottom: 16px;
}

.texte__chapo {
  font-size: 17px;
  color: var(--encre-dim);
  max-width: 62ch;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bordure);
}

.texte h2 {
  font-size: 20px;
  margin: 40px 0 14px;
  padding-top: 4px;
}

.texte h2::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent-fonce);
  margin-bottom: 14px;
}

.texte p { max-width: 68ch; }

.liste {
  max-width: 68ch;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.liste li {
  position: relative;
  padding: 7px 0 7px 22px;
}

.liste li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  border: 2px solid var(--accent-fonce);
  border-radius: 50%;
  border-top-color: transparent;  /* anneau interrompu de la charte */
}

/* ---------- Fiche d'identification ---------- */

.fiche {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 0;
  margin: 0 0 20px;
  max-width: 68ch;
}

.fiche dt {
  padding: 11px 16px 11px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--encre-dim);
  border-top: 1px solid var(--bordure);
}

.fiche dd {
  padding: 11px 0;
  margin: 0;
  border-top: 1px solid var(--bordure);
}

/* Valeur manquante : visible, pas silencieuse. */
.a-completer {
  background: #FFF3CD;
  color: #7A5A00;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
}

.encart--attention {
  border-left-color: #9A6A00;
  background: #FFF8E6;
  margin: 20px 0 8px;
}

.texte__coordonnees {
  padding: 16px 20px;
  background: var(--papier-dim);
  border-radius: 3px;
  font-size: 15px;
  line-height: 1.7;
}

.texte__maj {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--bordure);
  font-size: 13px;
  color: var(--encre-dim);
}

/* ==========================================================================
   PAGES D'ETAT (merci, erreurs)
   ========================================================================== */

.etat {
  padding: 72px 0 90px;
  text-align: center;
}

.etat__marque { color: var(--accent-fonce); margin-bottom: 26px; }

.etat__code {
  font-family: var(--police-titre);
  font-size: clamp(60px, 12vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bordure);
  margin: 0 0 8px;
}

.etat__titre {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 16px;
}

.etat__texte {
  font-size: 17px;
  color: var(--encre-dim);
  max-width: 54ch;
  margin: 0 auto 32px;
}

.etat .encart { text-align: left; max-width: 560px; margin: 0 auto; }

.etat__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.etat__contact a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--bordure);
}

.etat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 720px) {
  .fiche { grid-template-columns: 1fr; }
  .fiche dt { padding-bottom: 0; border-top: 1px solid var(--bordure); }
  .fiche dd { padding-top: 4px; border-top: 0; }
  .etat__actions .bouton { flex: 1 1 100%; }
}

/* ---------- Partenaire sans logo disponible ---------- */
/* Repli en attendant les fichiers fournis par les partenaires. */

.pied__partenaire {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.pied__partenaire--texte {
  line-height: 1.4;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--craie-dim);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  transition: color .18s ease, border-color .18s ease;
}

.pied__partenaire--texte:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   COORDONNEES PROTEGEES
   --------------------------------------------------------------------------
   Les adresses et numeros ne figurent jamais en clair dans le HTML. Le
   JavaScript les reconstitue et remplace le <span> par un vrai <a>.

   .protege__repli est le repli sans JavaScript : le texte est ecrit A
   L'ENVERS dans la source et remis a l'endroit par unicode-bidi. L'humain lit
   une adresse correcte, l'aspirateur qui parcourt le HTML ne voit aucun motif
   d'adresse exploitable.
   ========================================================================== */

.protege__repli {
  unicode-bidi: bidi-override;
  direction: rtl;
  /* La selection donnerait un texte inverse : on l'evite, le lien reconstitue
     par le JavaScript etant, lui, parfaitement copiable. */
  user-select: none;
  -webkit-user-select: none;
}

/* Le lien reconstitue herite des styles du contexte ou il se trouve
   (coordonnees d'accueil, fiche des mentions legales, page d'erreur). */
a.protege {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--bordure);
  transition: color .18s ease, border-color .18s ease;
}

a.protege:hover,
a.protege:focus-visible {
  color: var(--accent-fonce);
  border-bottom-color: var(--accent-fonce);
}

.theme-sombre a.protege:hover,
.pied a.protege:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
