/* ==========================================================================
   HMD Additive - feuille de style unique
   Charte : marine #012544, cuivre #EC7D1F.
   Contraintes : aucun chevauchement, aucun debordement horizontal,
   aucune image etiree, de 320 a 1440 px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */

:root {
  --marine: #012544;
  --marine-clair: #0a3a63;
  --marine-voile: rgba(1, 37, 68, 0.82);
  --cuivre: #ec7d1f;
  --cuivre-sombre: #a84b00;
  --blanc: #ffffff;
  --gris-clair: #f3f5f7;
  --gris-bordure: #dde3e8;
  --graphite: #48596a;

  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, sans-serif;

  --hauteur-entete: 68px;
  --rayon: 10px;
  --ombre: 0 1px 2px rgba(1, 37, 68, 0.06), 0 8px 24px rgba(1, 37, 68, 0.07);
  --ombre-forte: 0 2px 4px rgba(1, 37, 68, 0.08), 0 16px 40px rgba(1, 37, 68, 0.13);
  --transition: 180ms ease;
}

@media (min-width: 1024px) {
  :root { --hauteur-entete: 84px; }
}

/* --------------------------------------------------------------------------
   2. Socle
   -------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  /* Filet de securite contre tout debordement lateral accidentel. */
  overflow-x: hidden;
  font-family: var(--police);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--marine);
  background: var(--blanc);
  overflow-wrap: break-word;
  padding-top: var(--hauteur-entete);
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 1.35rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.12rem, 1.05rem + 0.4vw, 1.3rem); }

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

a { color: var(--marine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cuivre-sombre); }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }

:focus-visible {
  outline: 3px solid var(--cuivre);
  outline-offset: 3px;
  border-radius: 3px;
}

.lien-evitement {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--blanc);
  color: var(--marine);
  font-weight: 600;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
  transition: top var(--transition);
}
.lien-evitement:focus { top: 0.5rem; }

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

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */

.conteneur {
  width: min(100% - 2.25rem, 1180px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .conteneur { width: min(100% - 4rem, 1180px); }
}

.section {
  padding-block: clamp(3.25rem, 2.2rem + 4.4vw, 6rem);
  /* Compense l'en-tete fixe pour les ancres du menu. */
  scroll-margin-top: calc(var(--hauteur-entete) + 0.75rem);
}

.section--gris { background: var(--gris-clair); }
.section--marine { background: var(--marine); color: var(--blanc); }
.section--marine h2, .section--marine h3 { color: var(--blanc); }
.section--marine a { color: var(--blanc); }

.entete-section {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: center;
}
/* Conserve pour compatibilite : le centrage est desormais la regle. */
.entete-section--centre { margin-inline: auto; text-align: center; }

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  font-size: 0.815rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cuivre);
}
/* La charte visuelle admet un trait cuivre avant et apres le titre,
   a condition qu'il reste discret et constant. En composition centree,
   les deux traits equilibrent le bloc. */
.surtitre::before,
.surtitre::after {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--cuivre);
  flex: none;
}

/* Sur ecran etroit, un surtitre long passe sur deux lignes et les traits se
   retrouvent flottants a mi-hauteur. On les retire plutot que de laisser un
   decor casse ; le libelle cuivre en capitales suffit a marquer la section. */
@media (max-width: 639px) {
  .surtitre::before,
  .surtitre::after { display: none; }
  .surtitre { gap: 0; }
}

.chapo {
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  color: var(--graphite);
  max-width: 42rem;
  margin-inline: auto;
}
.section--marine .chapo { color: rgba(255, 255, 255, 0.82); }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}
.bouton:hover { transform: translateY(-1px); }
.bouton:active { transform: translateY(0); }

.bouton--principal {
  background: var(--cuivre);
  border-color: var(--cuivre);
  color: #ffffff;
}
.bouton--principal:hover {
  background: var(--cuivre-sombre);
  border-color: var(--cuivre-sombre);
  color: #ffffff;
}

.bouton--secondaire {
  background: transparent;
  border-color: currentColor;
  color: var(--marine);
}
.bouton--secondaire:hover { background: var(--marine); border-color: var(--marine); color: var(--blanc); }

.bouton--sur-photo { color: #ffffff; }
.bouton--sur-photo:hover { background: #ffffff; border-color: #ffffff; color: var(--marine); }

.groupe-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Sur les plus petits ecrans, les actions occupent toute la largeur :
   pas de bouton comprime ni de texte coupe. */
@media (max-width: 400px) {
  .groupe-boutons { flex-direction: column; align-items: stretch; }
  .groupe-boutons .bouton { width: 100%; }
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  color: var(--cuivre-sombre);
  text-decoration: none;
}
.lien-fleche::after {
  content: "";
  width: 0.55rem; height: 0.55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.lien-fleche:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* --------------------------------------------------------------------------
   5. En-tete
   -------------------------------------------------------------------------- */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--hauteur-entete);
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-bordure);
}

.entete__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.entete__logo { display: flex; align-items: center; flex: none; }
.entete__logo img {
  height: clamp(30px, 5.4vw, 44px);
  width: auto;
}

.nav-bureau { display: none; }

@media (min-width: 900px) {
  .nav-bureau {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .nav-bureau a {
    padding: 0.6rem 0.95rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: var(--marine);
  }
  .nav-bureau a:hover { background: var(--gris-clair); color: var(--marine); }
  .nav-bureau .bouton { margin-left: 0.6rem; }
  .nav-bureau .bouton:hover { background: var(--cuivre-sombre); color: #fff; }
}

/* Bouton d'ouverture du menu mobile */
.bouton-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--gris-bordure);
  border-radius: 8px;
  cursor: pointer;
  flex: none;
}
.bouton-menu span {
  display: block;
  height: 2px;
  background: var(--marine);
  border-radius: 2px;
}
@media (min-width: 900px) { .bouton-menu { display: none; } }

/* --------------------------------------------------------------------------
   6. Menu mobile
   Il doit passer devant toute la page et bloquer le defilement arriere.
   -------------------------------------------------------------------------- */

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: var(--marine);
  color: var(--blanc);
  /* Hors ecran tant qu'il est ferme : jamais derriere la page. */
  transform: translateX(100%);
  visibility: hidden;
  /* `visibility` est volontairement absente de la transition : tant qu'elle
     est animee, meme sur une duree nulle, sa valeur calculee reste `hidden`
     pendant le premier rendu. Un focus() place juste apres l'ouverture serait
     alors ignore par le navigateur. Ici le basculement est immediat.
     La classe `est-en-fermeture` maintient le panneau visible le temps qu'il
     sorte de l'ecran. */
  transition: transform 240ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-mobile.est-ouvert,
.menu-mobile.est-en-fermeture { visibility: visible; }
.menu-mobile.est-ouvert { transform: translateX(0); }

.menu-mobile__barre {
  height: var(--hauteur-entete);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  flex: none;
}
.menu-mobile__barre img { height: 32px; width: auto; }

.bouton-fermer {
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--blanc);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.menu-mobile__liens {
  padding: 1.5rem 1.125rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.menu-mobile__liens a {
  padding: 0.95rem 0.5rem;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--blanc);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.menu-mobile__liens .bouton {
  margin-top: 1.25rem;
  border-bottom: none;
  font-size: 1.05rem;
}

body.menu-ouvert { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Premier ecran
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(78vh, 680px);
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
  background: var(--marine);
  color: var(--blanc);
  overflow: hidden;
}

/* Photographie en filigrane : elle couvre la zone sans deformation. */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0.60;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 37, 68, 0.65) 0%, rgba(1, 37, 68, 0.74) 55%, rgba(1, 37, 68, 0.80) 100%);
}

.hero__contenu {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.hero .groupe-boutons { justify-content: center; }

.hero h1 { color: var(--blanc); margin-bottom: 0.5em; }

.hero__accroche {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 34rem;
  margin-inline: auto;
}

.hero .surtitre { color: var(--cuivre); }

/* --------------------------------------------------------------------------
   8. Grilles
   Les colonnes changent a des seuils explicites : jamais de colonne
   orpheline ni de carte ecrasee.
   -------------------------------------------------------------------------- */

.grille { display: grid; gap: 1.15rem; }
.grille > * { min-width: 0; }

.grille--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grille--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grille--4 { grid-template-columns: repeat(4, 1fr); gap: 1.35rem; } }

.grille--2 { grid-template-columns: 1fr; gap: 1.35rem; }
@media (min-width: 840px) { .grille--2 { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }

/* --------------------------------------------------------------------------
   9. Acces rapides
   -------------------------------------------------------------------------- */

.acces {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.4rem;
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  /* En composition centree, l'accent se place en haut : un filet lateral
     tirerait le regard vers la gauche et casserait la symetrie. */
  border-top: 4px solid var(--cuivre);
  border-radius: var(--rayon);
  text-align: center;
  text-decoration: none;
  color: var(--marine);
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.acces:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-forte);
  color: var(--marine);
}
.acces__titre { font-size: 1.09rem; font-weight: 700; line-height: 1.3; }
.acces__detail { font-size: 0.94rem; color: var(--graphite); }

/* --------------------------------------------------------------------------
   10. Cartes de service
   -------------------------------------------------------------------------- */

.carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  height: 100%;
}

.carte__texte { color: var(--graphite); }
.carte .lien-fleche { margin-top: auto; padding-top: 1.1rem; }

/* Pictogrammes : grands, filaires, sans legende necessaire. */
.ico {
  display: block;
  margin-inline: auto;
  width: 60px;
  height: 60px;
  margin-bottom: 1.05rem;
  color: var(--marine);
  flex: none;
}
.ico-accent { stroke: var(--cuivre); }

@media (min-width: 840px) {
  .ico { width: 68px; height: 68px; }
}

/* --------------------------------------------------------------------------
   11. Preuves d'atelier
   -------------------------------------------------------------------------- */

.preuves { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .preuves { grid-template-columns: repeat(3, 1fr); } }

.preuve {
  margin: 0;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--marine-clair);
  box-shadow: var(--ombre);
}
.preuve img {
  width: 100%;
  /* Rapport impose : l'image est recadree, jamais etiree. */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.preuve figcaption {
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  background: var(--marine);
}

/* --------------------------------------------------------------------------
   12. Methode
   -------------------------------------------------------------------------- */

.etape {
  text-align: center;
  padding: 1.5rem 1.4rem;
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  height: 100%;
}
.etape__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  margin-bottom: 0.9rem;
  border: 2px solid var(--cuivre);
  border-radius: 50%;
  font-weight: 700;
  color: var(--cuivre-sombre);
}
.etape p { color: var(--graphite); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   13. Materiaux
   -------------------------------------------------------------------------- */

.materiau {
  text-align: center;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--rayon);
  height: 100%;
}
.materiau h3 { color: var(--cuivre); margin-bottom: 0.35em; }
.materiau p { color: rgba(255, 255, 255, 0.82); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   14. Appel a l'action final
   -------------------------------------------------------------------------- */

.appel {
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background: var(--marine);
  color: var(--blanc);
  border-radius: var(--rayon);
  text-align: center;
}
.appel h2 { color: var(--blanc); }
.appel .chapo { color: rgba(255, 255, 255, 0.85); margin-inline: auto; }
.appel .groupe-boutons { justify-content: center; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   15. Formulaire
   -------------------------------------------------------------------------- */

.bloc-formulaire {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 940px) {
  .bloc-formulaire { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; }
}

.formulaire {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.25rem);
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.champs-deux { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .champs-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.champ { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }

.champ label { font-weight: 650; font-size: 0.95rem; }

.champ__obligatoire { color: var(--cuivre-sombre); }
.champ__aide { font-size: 0.86rem; color: var(--graphite); }

.champ input[type="text"],
.champ input[type="email"],
.champ input[type="tel"],
.champ select,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--marine);
  background: var(--blanc);
  border: 1px solid #738291;
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { min-height: 9rem; resize: vertical; }

.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--cuivre);
  box-shadow: 0 0 0 3px rgba(236, 125, 31, 0.22);
}

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

.message-erreur {
  font-size: 0.88rem;
  font-weight: 600;
  color: #b3261e;
}

.champ--case { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.champ--case input { margin-top: 0.28rem; width: 1.15rem; height: 1.15rem; flex: none; }
.champ--case label { font-weight: 400; font-size: 0.94rem; }

/* Champ leurre : invisible pour l'humain, atteignable par un robot. */
.leurre {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.zone-fichier {
  padding: 1.1rem;
  border: 2px dashed #738291;
  border-radius: 8px;
  background: var(--gris-clair);
}
.zone-fichier input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  /* Le champ natif ne fait qu'une vingtaine de pixels de haut : sans cette
     reprise, la cible tactile est trop petite sur telephone. */
  min-height: 44px;
  line-height: 44px;
}

.zone-fichier input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 0.75rem;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  color: var(--marine);
  background: var(--blanc);
  border: 1px solid #738291;
  border-radius: 8px;
  cursor: pointer;
}
.zone-fichier input[type="file"]::file-selector-button:hover {
  border-color: var(--cuivre);
  color: var(--cuivre-sombre);
}

.fichier-resume {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-radius: 8px;
  font-size: 0.9rem;
}
.fichier-resume.est-visible { display: flex; }
.fichier-resume__nom { min-width: 0; overflow-wrap: anywhere; }
.fichier-resume__retirer {
  flex: none;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  color: #b3261e;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   16. Messages
   -------------------------------------------------------------------------- */

.message {
  padding: 1.1rem 1.25rem;
  border-radius: var(--rayon);
  border-left: 4px solid;
}
.message p:last-child { margin-bottom: 0; }
.message--succes { background: #eaf5ee; border-color: #1e7b45; color: #11492a; }
.message--echec  { background: #fdecea; border-color: #b3261e; color: #7d1a15; }
.message--info   { background: #eef3f8; border-color: var(--marine); color: var(--marine); }

.encart-contact {
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  background: var(--gris-clair);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
}
.encart-contact h3 { margin-bottom: 0.5em; }
.encart-contact dl { margin: 0; display: grid; gap: 0.9rem; }
.encart-contact dt { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--graphite); }
.encart-contact dd { margin: 0.1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   17. Bandeau de travaux
   -------------------------------------------------------------------------- */

.bandeau-prive {
  padding: 0.6rem 1rem;
  background: var(--cuivre);
  color: #23180c;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: center;
}

/* --------------------------------------------------------------------------
   18. Pages de texte
   -------------------------------------------------------------------------- */

/* Le bloc de titre est centre comme partout ailleurs ; le corps reste
   aligne a gauche, un texte juridique long centre etant illisible. */
.page-texte { max-width: 48rem; margin-inline: auto; }
.page-texte > .surtitre { display: flex; justify-content: center; }
.page-texte > h1 { text-align: center; }
.page-texte h2 { margin-top: 2.2rem; }
.page-texte h2:first-of-type { margin-top: 0; }
.page-texte li { margin-bottom: 0.35em; }

.a-completer {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background: #fff3e3;
  border: 1px dashed var(--cuivre);
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 650;
  color: var(--cuivre-sombre);
}

/* --------------------------------------------------------------------------
   19. Pied de page
   -------------------------------------------------------------------------- */

.pied {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem) 1.75rem;
  background: var(--marine);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}
.pied a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }

.pied__grille {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}
@media (min-width: 700px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; } }

.pied__logo { height: 40px; width: auto; margin-bottom: 1rem; }
.pied h3 {
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 0.9rem;
}
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }

.pied__bas {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   20. Utilitaires d'espacement
   Aucun attribut `style` n'est utilisé dans les pages : la politique de
   sécurité du contenu interdit les styles en ligne.
   -------------------------------------------------------------------------- */

.marge-haut { margin-top: 1.5rem; }
.marge-bas { margin-bottom: 1.5rem; }
.sans-marge-bas { margin-bottom: 0; }
.aide-fichier { margin-top: 0.6rem; margin-bottom: 0; }

/* Demandes longues et navigation accessible. */
.message, .fichier-resume__nom { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }

/* Choix du profil et contact secondaire. */
.profil-client { border: 0; padding: 0; min-width: 0; }
.profil-client label { display: inline-flex; align-items: center; gap: .5rem; margin-right: 1.5rem; }
.profil-client input[type="radio"] { width: auto; min-height: auto; }
.encart-contact summary { cursor: pointer; text-decoration: underline; }

/* Accessibilité : focus contrasté, cibles tactiles, redistribution du contenu. */
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--hauteur-entete) + 1rem); }
[id], input, select, textarea, button { scroll-margin-top: calc(var(--hauteur-entete) + 1rem); }
:focus-visible, .champ input:focus-visible, .champ select:focus-visible,
.champ textarea:focus-visible {
  outline: 3px solid var(--marine); outline-offset: 3px;
  box-shadow: 0 0 0 6px white;
}
.menu-mobile :focus-visible, .pied :focus-visible { outline-color: white; box-shadow: 0 0 0 6px var(--marine); }
.profil-client label { min-height: 44px; cursor: pointer; }
.profil-client input[type="radio"] { width: 20px; height: 20px; flex: none; accent-color: var(--marine); }
.fichier-resume__retirer, .encart-contact summary { min-height: 44px; }
.fichier-resume { flex-wrap: wrap; }
.formulaire button[type="submit"] { width: 100%; }
.formulaire :disabled { cursor: wait; }
.bloc-formulaire { max-width: 46rem; margin-inline: auto; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.encart-contact { padding: 1rem 1.25rem; }
.page-texte { overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .formulaire { padding: 1rem; }
  .bloc-formulaire .champs-deux { gap: 1rem; }
  .zone-fichier { padding: .65rem; }
}

.navigation-sans-script { display: flex; flex-wrap: wrap; gap: 1rem; padding-block: 1rem; }
.navigation-sans-script a { min-height: 44px; display: inline-flex; align-items: center; }
