/* ==========================================================================
   SPC — Feuille de styles unique
   Direction visuelle : « Losanges » aux couleurs du logo SPC
   (bleu marine, magenta, violet ; mosaïque de photos en losanges)
   Mobile d'abord. Aucune dépendance externe. Polices auto-hébergées.
   Sommaire :
     1. Variables (couleurs, typographies, espacements)
     2. Polices
     3. Base et accessibilité
     4. Mise en page (conteneurs, sections)
     5. En-tête et navigation
     6. Boutons et liens
     7. Composants de l'accueil (hero, cartes, étapes, références, témoignage)
     8. Pages Services et Recrutement
     9. Formulaires
    10. Contact, pages légales, pages simples
    11. Pied de page
    12. Utilitaires et préférences utilisateur
   ========================================================================== */


/* ==========================================================================
   1. Variables
   Tous les contrastes texte/fond indiqués ont été vérifiés (WCAG 2.2 AA).
   ========================================================================== */
:root {
  /* Couleurs principales */
  --encre: #0C3182;          /* Bleu marine du logo : titres, boutons, fonds sombres (11,8:1 sur blanc) */
  --encre-fonce: #08215A;    /* Pied de page, survol des boutons (15,3:1) */
  --encre-moyen: #8C4490;    /* Violet du logo : survol des liens, aplats (6,3:1 sur blanc) */
  --surligneur: #E41170;     /* Magenta du logo : accent (blanc sur magenta 4,55:1 ; jamais en petit texte) */
  --papier: #F3F4F8;         /* Fond général, gris très clair bleuté */
  --blanc: #FFFFFF;          /* Cartes et champs */
  --bleu-pale: #E7EBF5;      /* Bleu pâle : sections alternées, pastilles */

  /* Texte */
  --texte: #1A1F33;          /* Texte courant (14,8:1 sur papier) */
  --texte-doux: #4A5068;     /* Texte secondaire (7,2:1 sur papier) */
  --texte-inverse: #FFFFFF;
  --texte-inverse-doux: #C9D2EA; /* Texte secondaire sur marine (7,8:1) */

  /* Traits */
  --trait: #D7DBE6;          /* Séparateurs décoratifs */
  --trait-champ: #6B7186;    /* Bordure des champs (4,9:1, > 3:1 requis) */

  /* États */
  --erreur: #B3261E;
  --erreur-fond: #FBEAE8;
  --succes: #1D6B3C;
  --succes-fond: #EAF4EE;
  --a-completer: #7A5300;    /* Texte des emplacements « à compléter » */
  --a-completer-fond: #FDF3DC;

  /* Focus : anneau bien visible sur fond clair ; redéfini sur fond sombre */
  --focus: #0C3182;
  --focus-halo: #F7C6DB;

  /* Typographies */
  --police-titre: "Outfit", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --police-texte: "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif;

  /* Tailles de texte (fluides, base 18 px minimum) */
  --taille-xs: 0.9375rem;                          /* 15 px : mentions */
  --taille-s: 1rem;                                /* 16 px */
  --taille-base: 1.125rem;                         /* 18 px : texte courant */
  --taille-l: clamp(1.25rem, 1.1rem + 0.6vw, 1.4rem);
  --taille-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.5rem);
  --taille-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --taille-h1: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);

  /* Espacements (échelle de 4 px) */
  --esp-1: 0.25rem;
  --esp-2: 0.5rem;
  --esp-3: 0.75rem;
  --esp-4: 1rem;
  --esp-5: 1.5rem;
  --esp-6: 2rem;
  --esp-7: 3rem;
  --esp-8: 4rem;
  --esp-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* Formes */
  --rayon: 8px;
  --rayon-l: 16px;
  --ombre: 0 1px 2px rgba(8, 33, 90, 0.06), 0 4px 16px rgba(8, 33, 90, 0.06);
  --largeur-max: 72rem;
  --largeur-texte: 40rem;
  --hauteur-entete: 4.5rem;
}


/* ==========================================================================
   2. Polices (fichiers .woff2 dans /fonts, licence SIL OFL)
   Outfit (titres, géométrique) + Atkinson Hyperlegible (texte, dessinée
   par le Braille Institute pour les lecteurs malvoyants).
   ========================================================================== */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2");
}


/* ==========================================================================
   3. Base et accessibilité
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hauteur-entete) + 1rem); /* les ancres ne passent pas sous l'en-tête */
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: var(--taille-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--esp-4);
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.2;
  color: var(--encre);
  text-wrap: balance;
}
h1 { font-size: var(--taille-h1); letter-spacing: -0.015em; }
h2 { font-size: var(--taille-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--taille-h3); }
h4 { font-size: var(--taille-l); }

p, ul, ol, dl, blockquote, figure {
  margin: 0 0 var(--esp-4);
}
p { text-wrap: pretty; }

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

a {
  color: var(--encre);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--encre-moyen);
  text-decoration-thickness: 2px;
}

/* Focus visible : anneau encre + halo surligneur, lisible sur tous les fonds clairs */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-halo);
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Lien d'évitement : premier élément focalisable de chaque page */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--esp-4);
  z-index: 100;
  padding: var(--esp-3) var(--esp-4);
  background: var(--encre);
  color: var(--blanc);
  font-weight: 700;
  border-radius: var(--rayon);
}
.skip-link:focus {
  top: var(--esp-4);
  color: var(--blanc);
  --focus: var(--surligneur);
}

/* L'attribut hidden l'emporte toujours (formulaire remplacé par le message de succès, etc.) */
[hidden] {
  display: none !important;
}

/* Texte réservé aux lecteurs d'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Icônes SVG du sprite */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   4. Mise en page
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--esp-4);
}
@media (min-width: 48em) {
  .container { padding-inline: var(--esp-6); }
}

.section {
  padding-block: var(--esp-section);
}
.section--alt {
  background: var(--bleu-pale);
}
.section--blanc {
  background: var(--blanc);
}
/* Section sombre : on inverse les couleurs et le focus */
.section--sombre {
  background: var(--encre);
  color: var(--texte-inverse);
  --focus: var(--surligneur);
  --focus-halo: transparent;
}
.section--sombre h2,
.section--sombre h3 {
  color: var(--texte-inverse);
}
.section--sombre a:not(.btn) {
  color: var(--texte-inverse);
}

.section-head {
  max-width: var(--largeur-texte);
  margin-bottom: var(--esp-7);
}
.section-head p {
  color: var(--texte-doux);
  font-size: var(--taille-l);
}
.section--sombre .section-head p {
  color: var(--texte-inverse-doux);
}

/* Surtitre : petite capitale précédée d'un trait surligneur */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--esp-3);
  margin-bottom: var(--esp-4);
  font-size: var(--taille-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 4px;
  background: var(--surligneur);
  border-radius: 2px;
}
.section--sombre .eyebrow {
  color: var(--texte-inverse-doux);
}

.lede {
  font-size: var(--taille-l);
  color: var(--texte-doux);
  max-width: var(--largeur-texte);
}

/* Mot « surligné » dans les grands titres (signature visuelle) */
.surligne {
  background-image: linear-gradient(transparent 62%, var(--surligneur) 62%, var(--surligneur) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
}

/* Grilles réutilisables : 1 colonne sur mobile */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--esp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56em) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-7); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 70em) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ==========================================================================
   5. En-tête et navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-4);
  min-height: var(--hauteur-entete);
}

/* Logo typographique : pastille « SPC » + intitulé */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-3);
  text-decoration: none;
  color: var(--encre);
}
.logo:hover { color: var(--encre); }
.logo-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--encre);
  color: var(--blanc);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  border-radius: var(--rayon);
  box-shadow: inset 0 -4px 0 var(--surligneur);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.25rem;
}
.logo-tagline {
  font-size: 0.8125rem;   /* 13 px, contraste 7:1 : reste lisible */
  color: var(--texte-doux);
}

/* Bouton du menu mobile */
.nav-toggle {
  display: none;            /* visible seulement si JavaScript est actif (voir .js) */
  align-items: center;
  gap: var(--esp-2);
  min-height: 2.75rem;      /* cible tactile de 44 px */
  padding: var(--esp-2) var(--esp-3);
  background: transparent;
  color: var(--encre);
  font: inherit;
  font-weight: 700;
  font-size: var(--taille-s);
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Navigation : sans JavaScript, elle s'affiche en entier sous le logo */
.site-nav {
  width: 100%;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-1) var(--esp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: var(--esp-1);
  color: var(--texte);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover {
  color: var(--encre);
  border-bottom-color: var(--trait-champ);
}
.nav-list a[aria-current="page"] {
  color: var(--encre);
  border-bottom-color: var(--surligneur);
}
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-3);
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Bouton « Appeler » toujours visible sur mobile (le menu est replié) */
.header-call {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  color: var(--encre);
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
}
.header-call:hover { background: var(--bleu-pale); }

/* Sans JS : en-tête sur plusieurs lignes */
.header-inner { flex-wrap: wrap; padding-block: var(--esp-3); }

/* Avec JS, sur mobile : menu replié derrière le bouton */
@media (max-width: 63.99em) {
  .js .header-inner { flex-wrap: nowrap; padding-block: 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .header-call { display: grid; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--hauteur-entete));
    overflow-y: auto;
    padding: var(--esp-4) var(--esp-4) var(--esp-6);
    background: var(--papier);
    border-bottom: 1px solid var(--trait);
    box-shadow: 0 12px 24px rgba(8, 33, 90, 0.12);
  }
  .js .site-nav.is-open { display: block; }
  .js .nav-list {
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--esp-5);
  }
  .js .nav-list a {
    width: 100%;
    min-height: 3rem;
    font-size: var(--taille-l);
    border-bottom: 1px solid var(--trait);
  }
  .js .nav-list a[aria-current="page"] {
    border-bottom: 1px solid var(--trait);
    box-shadow: inset 4px 0 0 var(--surligneur);
    padding-left: var(--esp-4);
  }
  .js .nav-actions { flex-direction: column; align-items: stretch; }
  .js .nav-actions .btn { width: 100%; }
}

/* Grand écran : tout sur une ligne */
@media (min-width: 64em) {
  .header-inner { flex-wrap: nowrap; padding-block: 0; }
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--esp-6);
    width: auto;
  }
  .nav-list { flex-wrap: nowrap; gap: var(--esp-5); }
}


/* ==========================================================================
   6. Boutons et liens
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-2);
  min-height: 3rem;                 /* 48 px */
  padding: var(--esp-3) var(--esp-5);
  font: inherit;
  font-weight: 700;
  font-size: var(--taille-s);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* Principal : encre sur fond clair */
.btn--primary {
  background: var(--encre);
  color: var(--blanc);
}
.btn--primary:hover {
  background: var(--encre-fonce);
  color: var(--blanc);
}
/* Secondaire : contour */
.btn--secondary {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre);
}
.btn--secondary:hover {
  background: var(--encre);
  color: var(--blanc);
}
/* Accent : surligneur, réservé aux fonds sombres */
.btn--accent {
  background: var(--surligneur);
  color: var(--encre);
}
.btn--accent:hover {
  background: var(--blanc);
  color: var(--encre);
}
/* Contour clair, pour fonds sombres */
.btn--inverse {
  background: transparent;
  color: var(--blanc);
  border-color: var(--blanc);
}
.btn--inverse:hover {
  background: var(--blanc);
  color: var(--encre);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn .icon { width: 1.125em; height: 1.125em; }

/* Lien fléché (« En savoir plus ») */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  font-weight: 700;
}
.link-arrow .icon {
  transition: transform 0.15s ease;
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-3);
  align-items: center;
}


/* ==========================================================================
   7. Composants de l'accueil
   ========================================================================== */

/* --- Haut de page (hero) --- */
.hero {
  padding-block: var(--esp-7) var(--esp-section);
}
.hero-grid {
  display: grid;
  gap: var(--esp-6);
  align-items: center;
}
@media (min-width: 56em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--esp-8);
  }
}
.hero h1 {
  margin-bottom: var(--esp-5);
}
.hero .lede {
  margin-bottom: var(--esp-6);
}
.hero-trust {
  margin-top: var(--esp-6);
  padding-top: var(--esp-4);
  border-top: 1px solid var(--trait);
  font-size: var(--taille-s);
  color: var(--texte-doux);
}
.hero-trust strong {
  color: var(--texte);
}

/* --- Emplacements photo ---
   Chaque <img> pointe vers un fichier nommé dans /images.
   Remplacez simplement le fichier par la vraie photo (même nom, même ratio). */
.photo {
  margin: 0;
  position: relative;
}
.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio, 4 / 3);
  object-fit: cover;
  background: var(--bleu-pale);
  border-radius: var(--rayon-l);
}
.photo--portrait { --ratio: 4 / 5; }
.photo--large { --ratio: 16 / 10; }
/* Légère « fiche » décalée derrière la photo du hero : rappel du papier d'examen */
.photo--hero::before {
  content: "";
  position: absolute;
  inset: var(--esp-4) calc(var(--esp-4) * -1) calc(var(--esp-4) * -1) var(--esp-4);
  border: 2px solid var(--encre);
  border-radius: var(--rayon-l);
  z-index: -1;
}
.photo--hero { z-index: 0; margin-right: var(--esp-4); margin-bottom: var(--esp-4); }

/* --- Emplacements « à compléter » ---
   Repérables d'un coup d'œil : fond sable, bordure pointillée, mention explicite. */
.todo {
  display: inline;
  padding: 0.05em 0.35em;
  background: var(--a-completer-fond);
  color: var(--a-completer);
  font-weight: 700;
  border: 1px dashed var(--a-completer);
  border-radius: 3px;
}
.todo-block {
  padding: var(--esp-4);
  background: var(--a-completer-fond);
  color: var(--a-completer);
  border: 2px dashed var(--a-completer);
  border-radius: var(--rayon);
}

/* --- Bandeau de chiffres clés (valeurs à compléter) --- */
.key-figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--esp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) {
  .key-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.key-figure {
  padding: var(--esp-5);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}
.key-figure-value {
  display: block;
  margin-bottom: var(--esp-1);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: var(--taille-h2);
  line-height: 1.1;
  color: var(--encre);
}
.key-figure-value .todo { font-family: var(--police-texte); font-size: var(--taille-base); }
.key-figure-label { color: var(--texte-doux); }

/* --- Cartes de services --- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
  height: 100%;
  padding: var(--esp-5);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card h3 {
  margin: 0;
}
.card p {
  margin: 0;
  color: var(--texte-doux);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--esp-2);
  background: var(--bleu-pale);
  color: var(--encre);
  border-radius: 50%;
}
.card-icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}
/* Toute la carte est cliquable grâce au lien du titre (pas de lien imbriqué) */
.card-link {
  color: var(--encre);
  text-decoration: none;
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--rayon-l);
}
.card-link:focus-visible {
  outline: none;
  box-shadow: none;
}
.card:has(.card-link:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.card:hover {
  border-color: var(--encre);
}
.card-more {
  margin-top: auto;
  padding-top: var(--esp-3);
  font-weight: 700;
  color: var(--encre);
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
}

/* --- Étapes de la prise en charge d'un examen ---
   Liste ordonnée façon « procès-verbal » : numéros dans des pastilles */
.steps {
  display: grid;
  gap: var(--esp-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
@media (min-width: 40em) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--esp-5); }
}
.step {
  counter-increment: etape;
  position: relative;
  padding: var(--esp-5);
  padding-top: var(--esp-7);
  background: var(--blanc);
  border-top: 4px solid var(--encre);
  border-radius: 0 0 var(--rayon) var(--rayon);
}
.step::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  top: var(--esp-4);
  left: var(--esp-5);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: var(--taille-l);
  color: var(--encre);
  background: var(--surligneur);
  padding: 0 var(--esp-2);
  border-radius: 3px;
  line-height: 1.4;
}
.step h3 {
  margin-bottom: var(--esp-2);
  font-size: var(--taille-l);
}
.step p {
  margin: 0;
  color: var(--texte-doux);
}

/* --- Valeurs --- */
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--esp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) {
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.values li {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
  padding: var(--esp-3) var(--esp-4);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  font-weight: 700;
  color: var(--encre);
}
.values .icon { color: var(--encre); }

/* --- Bandeau des références --- */
.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--esp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) {
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* En attendant les logos : le nom en toutes lettres, sobre et lisible.
   Pour un logo : <li class="logo-tile"><img src="images/logos/icp.svg" alt="Institut Catholique de Paris"></li> */
.logo-tile {
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  padding: var(--esp-3);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  font-weight: 700;
  font-size: var(--taille-s);
  line-height: 1.25;
  text-align: center;
  color: var(--texte-doux);
}
.logo-tile img {
  max-height: 3rem;
  width: auto;
  filter: grayscale(1);
}
.logo-tile--main {
  color: var(--encre);
  font-family: var(--police-titre);
  font-size: var(--taille-l);
}

/* --- Témoignage --- */
.testimonial {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--esp-6) var(--esp-5);
  background: var(--blanc);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
}
@media (min-width: 48em) {
  .testimonial { padding: var(--esp-7) var(--esp-8); }
}
.testimonial-mark {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--esp-4);
  color: var(--surligneur);
}
.testimonial blockquote {
  margin: 0 0 var(--esp-5);
}
.testimonial blockquote p {
  font-family: var(--police-titre);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.45;
  color: var(--encre);
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  padding-top: var(--esp-4);
  border-top: 1px solid var(--trait);
}
.testimonial figcaption strong {
  font-size: var(--taille-base);
}
.testimonial figcaption span {
  color: var(--texte-doux);
  font-size: var(--taille-s);
}

/* --- Bandeau final d'appel à l'action --- */
.cta-band {
  display: grid;
  gap: var(--esp-5);
  align-items: center;
}
@media (min-width: 56em) {
  .cta-band { grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--esp-7); }
}
.cta-band h2 { margin-bottom: var(--esp-3); }
.cta-band p { margin: 0; color: var(--texte-inverse-doux); font-size: var(--taille-l); }

.cross-link {
  margin-top: var(--esp-7);
  padding-top: var(--esp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--texte-inverse-doux);
}


/* ==========================================================================
   8. Pages Services et Recrutement
   ========================================================================== */

/* En-tête de page intérieure */
.page-head {
  padding-block: var(--esp-7);
  border-bottom: 1px solid var(--trait);
}
.page-head h1 { max-width: 48rem; }
.page-head .lede { margin-bottom: 0; }

/* Fil d'Ariane */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
  margin: 0 0 var(--esp-4);
  padding: 0;
  list-style: none;
  font-size: var(--taille-s);
  color: var(--texte-doux);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--esp-2);
  color: var(--trait-champ);
}

/* Sommaire des services (ancres) */
.anchor-nav {
  margin-top: var(--esp-6);
}
.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  min-height: 2.75rem;
  padding: var(--esp-2) var(--esp-4);
  background: var(--blanc);
  border: 1px solid var(--trait-champ);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--taille-s);
  text-decoration: none;
}
.anchor-nav a:hover {
  border-color: var(--encre);
  background: var(--bleu-pale);
}

/* Bloc d'un service */
.service {
  display: grid;
  gap: var(--esp-6);
  align-items: start;
}
@media (min-width: 56em) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--esp-8); }
  .service--reverse .service-media { order: 2; }
}
.service-number {
  display: inline-block;
  margin-bottom: var(--esp-3);
  font-family: var(--police-titre);
  font-weight: 600;
  color: var(--encre);
  background: var(--surligneur);
  padding: 0 var(--esp-2);
  border-radius: 3px;
}
.service-lists {
  display: grid;
  gap: var(--esp-5);
  margin-block: var(--esp-5);
}
.service-lists h3 {
  font-size: var(--taille-l);
  margin-bottom: var(--esp-3);
}

/* Liste à coches */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--esp-2);
}
.checklist li {
  display: flex;
  gap: var(--esp-3);
  align-items: flex-start;
}
.checklist .icon {
  margin-top: 0.2em;
  color: var(--succes);
  stroke-width: 2.25;
}

/* Encadré « pour qui » */
.for-whom {
  padding: var(--esp-4) var(--esp-5);
  background: var(--bleu-pale);
  border-radius: var(--rayon);
}
.for-whom h3 { margin-bottom: var(--esp-2); }
.for-whom p { margin: 0; }
.service-media .photo + .note {
  margin-top: var(--esp-3);
  font-size: var(--taille-s);
  color: var(--texte-doux);
}
.service + .service {
  margin-top: var(--esp-section);
  padding-top: var(--esp-section);
  border-top: 1px solid var(--trait);
}

/* Profils de recrutement */
.profile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--esp-6) var(--esp-5);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-top: 6px solid var(--encre);
  border-radius: 0 0 var(--rayon-l) var(--rayon-l);
  box-shadow: var(--ombre);
}
.profile .card-icon { margin-bottom: var(--esp-4); }
.profile h3 { margin-bottom: var(--esp-3); }
.profile h4 {
  margin: var(--esp-5) 0 var(--esp-3);
  font-family: var(--police-texte);
  font-size: var(--taille-s);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.profile .actions { margin-top: auto; padding-top: var(--esp-5); }

/* Étiquettes (matières, qualités) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: var(--esp-1) var(--esp-3);
  background: var(--bleu-pale);
  color: var(--encre);
  font-size: var(--taille-s);
  font-weight: 700;
  border-radius: 999px;
}


/* ==========================================================================
   9. Formulaires
   ========================================================================== */
.form-card {
  padding: var(--esp-5);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
}
@media (min-width: 48em) {
  .form-card { padding: var(--esp-7); }
}

.form-intro {
  color: var(--texte-doux);
  font-size: var(--taille-s);
}

.form {
  display: grid;
  gap: var(--esp-5);
}
.form-row {
  display: grid;
  gap: var(--esp-5);
}
@media (min-width: 40em) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--esp-2);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field[hidden] { display: none; }

.field label,
.field legend {
  padding: 0;
  font-weight: 700;
  color: var(--texte);
}
/* Mention « obligatoire » écrite en toutes lettres (pas seulement un astérisque) */
.req {
  font-weight: 400;
  color: var(--texte-doux);
  font-size: var(--taille-s);
}
.hint {
  margin: 0;
  font-size: var(--taille-s);
  color: var(--texte-doux);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--esp-3) var(--esp-4);
  background: var(--blanc);
  color: var(--texte);
  font: inherit;
  font-size: var(--taille-base);     /* ≥ 16 px : pas de zoom automatique sur iOS */
  border: 2px solid var(--trait-champ);
  border-radius: var(--rayon);
}
textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}
select {
  appearance: none;
  padding-right: var(--esp-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316294D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
}
input[type="file"] {
  padding: var(--esp-2);
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: var(--esp-3);
  padding: var(--esp-2) var(--esp-4);
  background: var(--bleu-pale);
  color: var(--encre);
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--encre);
  border-radius: var(--rayon);
  cursor: pointer;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--encre);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--encre);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-halo);
}

/* Champ en erreur : bordure rouge + message + icône (pas seulement la couleur) */
[aria-invalid="true"] {
  border-color: var(--erreur) !important;
  background-color: var(--erreur-fond);
}
.field-error {
  display: flex;
  align-items: flex-start;
  gap: var(--esp-2);
  margin: 0;
  font-size: var(--taille-s);
  font-weight: 700;
  color: var(--erreur);
}
.field-error:empty { display: none; }
.field-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1em;
  background: var(--erreur);
  color: var(--blanc);
  font-size: 0.8rem;
  border-radius: 50%;
}

/* Boutons radio et cases à cocher agrandis */
.choices {
  display: grid;
  gap: var(--esp-2);
}
@media (min-width: 40em) {
  .choices--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--esp-3);
  padding: var(--esp-3) var(--esp-4);
  background: var(--blanc);
  border: 2px solid var(--trait);
  border-radius: var(--rayon);
  cursor: pointer;
}
.choice:hover { border-color: var(--encre); }
.choice:has(input:checked) {
  border-color: var(--encre);
  background: var(--bleu-pale);
}
.choice input,
.consent input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.15em 0 0;
  accent-color: var(--encre);
  cursor: pointer;
}
.choice label,
.choice span { font-weight: 400; cursor: pointer; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--esp-3);
}
.consent label { font-weight: 400; font-size: var(--taille-s); }

/* Piège anti-spam (honeypot) : invisible pour tout le monde,
   y compris les lecteurs d'écran (display: none). Les robots le remplissent. */
.honeypot {
  display: none !important;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-4);
}
.form-footer .hint { flex: 1 1 14rem; }

/* Indicateur d'envoi dans le bouton */
.spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--blanc);
  border-radius: 50%;
  animation: tourne 0.8s linear infinite;
}
.is-sending .spinner { display: inline-block; }
@keyframes tourne {
  to { transform: rotate(360deg); }
}

/* Messages globaux du formulaire */
.form-alert {
  display: flex;
  gap: var(--esp-3);
  padding: var(--esp-4) var(--esp-5);
  border-radius: var(--rayon);
  border: 2px solid currentColor;
}
.form-alert[hidden] { display: none; }
.form-alert p { margin: 0; color: var(--texte); }
.form-alert p + p { margin-top: var(--esp-2); }
.form-alert strong { display: block; margin-bottom: var(--esp-1); }
.form-alert--error {
  background: var(--erreur-fond);
  color: var(--erreur);
}
.form-alert--success {
  background: var(--succes-fond);
  color: var(--succes);
}
.form-alert .icon { width: 1.5rem; height: 1.5rem; margin-top: 0.15em; }
.form-success h2,
.form-success h3 { color: var(--succes); }


/* ==========================================================================
   10. Contact, pages légales, pages simples
   ========================================================================== */
.contact-layout {
  display: grid;
  gap: var(--esp-6);
  align-items: start;
}
@media (min-width: 64em) {
  .contact-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--esp-7); }
  .contact-aside { position: sticky; top: calc(var(--hauteur-entete) + var(--esp-5)); }
}
.contact-aside {
  display: grid;
  gap: var(--esp-5);
}
.info-card {
  padding: var(--esp-5);
  background: var(--encre);
  color: var(--texte-inverse);
  border-radius: var(--rayon-l);
  --focus: var(--surligneur);
  --focus-halo: transparent;
}
.info-card h2 {
  color: var(--texte-inverse);
  font-size: var(--taille-h3);
}
.info-card a { color: var(--texte-inverse); }
.info-list {
  display: grid;
  gap: var(--esp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-list li {
  display: flex;
  gap: var(--esp-3);
  align-items: flex-start;
}
.info-list .icon {
  margin-top: 0.2em;
  color: var(--surligneur);
}
.info-list small {
  display: block;
  color: var(--texte-inverse-doux);
  font-size: var(--taille-s);
}
.info-list a {
  font-weight: 700;
  font-size: var(--taille-l);
}
.info-card--light {
  background: var(--blanc);
  color: var(--texte);
  border: 1px solid var(--trait);
  --focus: var(--encre);
  --focus-halo: var(--surligneur);
}
.info-card--light h2 { color: var(--encre); }
.info-card--light a { color: var(--encre); }

/* Pages légales : texte long, largeur de lecture confortable */
.prose {
  max-width: 46rem;
}
.prose h2 {
  margin-top: var(--esp-7);
  font-size: var(--taille-h3);
}
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: var(--esp-2); }
.prose dl {
  display: grid;
  gap: var(--esp-2) var(--esp-5);
}
@media (min-width: 40em) {
  .prose dl { grid-template-columns: max-content 1fr; }
}
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }

/* Pages simples (merci, 404) */
.simple-page {
  min-height: 60vh;
  display: grid;
  align-items: center;
}
.simple-page .big-number {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  line-height: 1;
  color: var(--encre);
  margin-bottom: var(--esp-4);
}
.simple-page .big-number span { background: var(--surligneur); padding: 0 0.1em; }


/* ==========================================================================
   11. Pied de page
   ========================================================================== */
.site-footer {
  padding-block: var(--esp-8) var(--esp-6);
  background: var(--encre-fonce);
  color: var(--texte-inverse-doux);
  font-size: var(--taille-s);
  --focus: var(--surligneur);
  --focus-halo: transparent;
}
.site-footer a {
  color: var(--texte-inverse);
}
.site-footer a:hover {
  color: var(--surligneur);
}
.footer-grid {
  display: grid;
  gap: var(--esp-6);
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer .logo { color: var(--texte-inverse); margin-bottom: var(--esp-4); }
.site-footer .logo-tagline { color: var(--texte-inverse-doux); }
.site-footer .logo-mark { background: var(--blanc); color: var(--encre); }
.footer-title {
  margin-bottom: var(--esp-3);
  font-family: var(--police-texte);
  font-size: var(--taille-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-inverse);
}
.footer-list {
  display: grid;
  gap: var(--esp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  min-height: 2.25rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--esp-3);
  margin-top: var(--esp-7);
  padding-top: var(--esp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2) var(--esp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}


/* ==========================================================================
   12. Utilitaires et préférences utilisateur
   ========================================================================== */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--esp-6); }
.text-center { text-align: center; }
.center { margin-inline: auto; }

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mode contraste élevé de Windows : on garde des bordures visibles */
@media (forced-colors: active) {
  .btn, .card, .choice, .logo-tile, .step { border: 1px solid CanvasText; }
  .surligne { background: none; text-decoration: underline; }
}

/* Impression : on masque la navigation */
@media print {
  .site-header, .site-footer, .skip-link, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* Listes utilisées comme grilles de cartes */
ul.grid-4,
ul.grid-3,
ul.grid-2 {
  list-style: none;
  padding: 0;
}

/* Section resserrée (bandeau de chiffres) */
.section--tight {
  padding-block: var(--esp-6);
}

/* Adresses : pas d'italique par défaut */
address {
  font-style: normal;
}

/* Petits écrans : logo compact pour laisser la place au bouton d'appel et au menu */
.logo-name { white-space: nowrap; }
@media (max-width: 29.99em) {
  .logo { gap: var(--esp-2); }
  .logo-mark { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
  .logo-name { font-size: 1rem; }
  .site-header .logo-tagline { display: none; }
  .header-inner { gap: var(--esp-2); }
}

/* Photo du haut de page : paysage sur mobile, portrait sur grand écran */
@media (max-width: 55.99em) {
  .photo--hero { --ratio: 4 / 3; }
}

/* Deux champs côte à côte : les zones de saisie restent alignées même si un seul a une aide */
@media (min-width: 40em) {
  .form-row { align-items: end; }
}


/* ==========================================================================
   13. Motif « Losanges »
   Signature de cette direction : mosaïque de photos découpées en losanges,
   aplats vert sapin, angles coupés à 45°. Tout repose sur clip-path,
   sans image décorative supplémentaire.
   ========================================================================== */

/* Formes réutilisables */
:root {
  --losange: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --coin: 48px;  /* taille des angles coupés des photos */
}

/* Grand titre de l'accueil : capitales grasses, comme une couverture */
.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1 { font-weight: 800; }

/* « Surligné » : simple bande vert d'eau sous le mot */
.surligne {
  background-image: linear-gradient(transparent 70%, var(--surligneur) 70%, var(--surligneur) 94%, transparent 94%);
}

/* Surtitre : un petit losange plein à la place du trait */
.eyebrow::before {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--encre);
  border-radius: 0;
  clip-path: var(--losange);
}
.section--sombre .eyebrow::before { background: var(--surligneur); }

/* Logo : pastille vert sapin + losange vert d'eau en coin */
.logo-mark {
  position: relative;
  font-family: var(--police-titre);
  font-weight: 800;
  border-radius: var(--rayon);
  box-shadow: none;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--surligneur);
  clip-path: var(--losange);
}
.logo-name { font-weight: 700; }

/* --- Haut de page : panneau blanc arrondi + mosaïque qui déborde --- */
.hero {
  padding-block: var(--esp-5) var(--esp-section);
}
.hero-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--blanc);
  border-radius: 24px;
  box-shadow: var(--ombre);
}
.hero-panel > div:first-child {
  position: relative;
  z-index: 1;
  padding: var(--esp-6) var(--esp-5) var(--esp-5);
}
@media (min-width: 64em) {
  .hero-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: 38rem;
  }
  .hero-panel > div:first-child {
    align-self: center;
    padding: var(--esp-8) var(--esp-6) var(--esp-8) var(--esp-8);
  }
}

/* Mosaïque : losanges posés sur une trame dont le pas (u) vaut 1/4 de la
   hauteur de la mosaïque. Les unités cqh (hauteur du conteneur) gardent
   la même composition quelle que soit la hauteur du panneau. */
.mosaic {
  position: relative;
  container-type: size;
  height: 22rem;
  overflow: hidden;
}
@media (min-width: 64em) {
  .mosaic { height: auto; min-height: 100%; overflow: visible; }
}
.mosaic-inner {
  position: absolute;
  inset: 0;
  /* Mobile : composition centrée ; grand écran : calée sur le bord gauche de la colonne */
  --ox: calc(50cqw - 50cqh);
}
@media (min-width: 64em) {
  .mosaic-inner { --ox: 0px; }
}
.tile {
  position: absolute;
  width: 50cqh;
  height: 50cqh;
  /* l'espace blanc entre les losanges vient du léger retrait de la forme */
  clip-path: polygon(50% 1.8%, 98.2% 50%, 50% 98.2%, 1.8% 50%);
  background: var(--bleu-pale);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile--plein { background: var(--encre); }
/* Position de chaque losange (coin haut gauche = centre - 1 pas).
   La photo principale est sur la première colonne de losanges, pour rester entière. */
.tile--c  { left: calc(var(--ox) + 0cqh);  top: 25cqh; }   /* centre (1u, 2u) : photo principale */
.tile--ne { left: calc(var(--ox) + 0cqh);  top: -25cqh; }  /* centre (1u, 0) : aplat coupé en haut */
.tile--se { left: calc(var(--ox) + 0cqh);  top: 75cqh; }   /* centre (1u, 4u) : aplat coupé en bas */
.tile--n  { left: calc(var(--ox) + 25cqh); top: 0; }       /* centre (2u, 1u) */
.tile--w  { left: calc(var(--ox) + 25cqh); top: 50cqh; }   /* centre (2u, 3u) */
.tile--e  { left: calc(var(--ox) + 50cqh); top: 25cqh; }   /* centre (3u, 2u) */
.tile--s  { left: calc(var(--ox) + 50cqh); top: 75cqh; }   /* centre (3u, 4u) */

/* --- Photos : deux angles coupés à 45° (écho aux losanges) --- */
.photo img {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% 100%, var(--coin) 100%, 0 calc(100% - var(--coin)));
}

/* --- Pictogrammes de cartes dans un losange --- */
.card-icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0;
  clip-path: var(--losange);
  background: var(--bleu-pale);
}
.card-icon .icon { width: 1.5rem; height: 1.5rem; }
.card { border-radius: var(--rayon-l); }

/* --- Étapes : numéro blanc dans un losange vert --- */
.step {
  border-top: 0;
  border-radius: var(--rayon-l);
  padding-top: calc(var(--esp-4) + 3.5rem + var(--esp-4));
}
.step::before {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  background: var(--encre);
  color: var(--blanc);
  font-weight: 800;
  font-size: var(--taille-s);
  border-radius: 0;
  clip-path: var(--losange);
}

/* Numéro de service (page Services) */
.service-number {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  background: var(--encre);
  color: var(--blanc);
  font-weight: 800;
  border-radius: 0;
  clip-path: var(--losange);
}

/* Profils de recrutement : filet supérieur remplacé par un losange */
.profile {
  border-top: 1px solid var(--trait);
  border-radius: var(--rayon-l);
}

/* Référence principale */
.logo-tile--main { font-weight: 700; }

/* Témoignage : guillemets vert sapin, citation en italique hyperlisible */
.testimonial-mark { color: var(--encre); }
.testimonial blockquote p {
  font-family: var(--police-texte);
  font-style: italic;
}

/* --- Bandeau final : aplats en triangles dans les angles --- */
.section--sombre {
  position: relative;
  overflow: hidden;
}
.section--sombre > .container { position: relative; z-index: 1; }
.section--sombre::before,
.section--sombre::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  background: var(--encre-moyen);
  clip-path: var(--losange);
  opacity: 0.55;
}
.section--sombre::before { right: -9rem; top: -9rem; }
.section--sombre::after { right: 6rem; bottom: -12rem; width: 14rem; height: 14rem; opacity: 0.35; }
.btn--accent:hover { background: var(--blanc); }

/* Page 404 */
.simple-page .big-number { font-weight: 800; }
.simple-page .big-number span { background: none; color: var(--encre-moyen); }

/* Contraste élevé : les aplats décoratifs disparaissent proprement */
@media (forced-colors: active) {
  .tile--plein, .section--sombre::before, .section--sombre::after { display: none; }
}


/* ==========================================================================
   14. Couleurs du logo SPC
   Marine #0C3182, magenta #E41170, violet #8C4490. Le violet naît de la
   superposition du marine et du magenta dans le logo : on reprend cette
   idée de transparence dans les aplats décoratifs.
   ========================================================================== */
:root {
  --rose: #E41170;
  --rose-fonce: #B80E5B;     /* survol du bouton magenta (blanc : 6,5:1) */
  --rose-pale: #F7C6DB;      /* focus sur fond sombre, bande sous les mots soulignés */
  --violet: #8C4490;
}

/* Logo officiel (image PNG transparente) */
.logo-img {
  display: block;
  width: auto;
  height: 3.75rem;
}
@media (max-width: 29.99em) {
  .logo-img { height: 3rem; }
}
.site-footer .logo {
  padding: var(--esp-3) var(--esp-4);
  background: var(--blanc);
  border-radius: var(--rayon);
}

/* Mot souligné : bande rose pâle */
.surligne {
  background-image: linear-gradient(transparent 68%, var(--rose-pale) 68%, var(--rose-pale) 94%, transparent 94%);
}

/* Puces losanges en magenta */
.eyebrow::before { background: var(--rose); }
.section--sombre .eyebrow::before { background: var(--rose); }

/* Navigation : page active soulignée en magenta */
.nav-list a[aria-current="page"] { border-bottom-color: var(--rose); }

/* Bouton d'accent (sur fond marine) : magenta, texte blanc */
.btn--accent {
  background: var(--rose);
  color: var(--blanc);
}
.btn--accent:hover {
  background: var(--rose-fonce);
  color: var(--blanc);
}

/* Focus sur fonds sombres : rose pâle (7,9:1 sur marine) */
.section--sombre,
.info-card,
.site-footer {
  --focus: var(--rose-pale);
}
.skip-link:focus { --focus: var(--rose-pale); }

/* Mosaïque : un aplat marine, un aplat magenta */
.tile--ne { background: var(--encre); }
.tile--se { background: var(--rose); }

/* Numéros d'étapes et de services : alternance marine / violet / magenta */
.step:nth-child(3n+2)::before { background: var(--violet); }
.step:nth-child(3n)::before { background: var(--rose-fonce); }
#secretariat-handicap .service-number { background: var(--violet); }
#soutien-scolaire .service-number { background: var(--rose-fonce); }

/* Pictogrammes : losange bleu pâle, trait marine */
.card-icon { color: var(--encre); }

/* Coches des listes en violet (6,3:1) */
.checklist .icon { color: var(--violet); }

/* Témoignage : guillemets magenta */
.testimonial-mark { color: var(--rose); }

/* Bandeau final : deux losanges translucides qui se superposent,
   comme les deux flèches du logo */
.section--sombre::before {
  background: var(--rose);
  opacity: 0.55;
}
.section--sombre::after {
  right: 4rem;
  bottom: auto;
  top: -2rem;
  width: 16rem;
  height: 16rem;
  background: var(--violet);
  opacity: 0.45;
}

/* Page 404 */
.simple-page .big-number span { color: var(--rose-fonce); }


/* ==========================================================================
   15. Animations des en-têtes et bandeau de logos
   - Accueil : apparition du texte et des losanges, puis les photos changent
     dans les losanges, les aplats changent de couleur et la photo centrale
     zoome lentement. Bouton pause (critère WCAG 2.2.2).
   - Pages intérieures : losanges aux couleurs du logo qui entrent en scène
     (le marine et le magenta se superposent en violet, comme dans le logo).
   - Références : deux rangées de logos qui défilent en sens inverse.
   Tout est coupé si le visiteur a demandé de limiter les animations.
   Les animations continues ne démarrent qu'avec JavaScript (classe .js),
   pour que le bouton pause soit toujours disponible.
   ========================================================================== */

/* --- Bouton pause / lecture (accueil et logos) --- */
.anim-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: var(--esp-2) var(--esp-3);
  font: inherit;
  font-size: var(--taille-xs);
  font-weight: 700;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--trait-champ);
  border-radius: 999px;
  cursor: pointer;
}
.anim-toggle:hover { border-color: var(--encre); }
.anim-toggle[hidden] { display: none; }
/* Icône pause (deux barres) ; devient un triangle « lecture » une fois en pause */
.anim-toggle-icon {
  position: relative;
  width: 0.75rem;
  height: 0.875rem;
  border-left: 0.25rem solid currentColor;
  border-right: 0.25rem solid currentColor;
}
.anim-toggle.is-paused .anim-toggle-icon {
  width: 0;
  height: 0;
  border-right: 0;
  border-left: 0.75rem solid currentColor;
  border-top: 0.4375rem solid transparent;
  border-bottom: 0.4375rem solid transparent;
}

/* Bouton de la mosaïque : rond, posé dans le coin bas de la mosaïque */
.hero-toggle {
  position: absolute;
  z-index: 2;
  right: var(--esp-4);
  bottom: var(--esp-4);
  justify-content: center;
  padding: 0;
  box-shadow: var(--ombre);
}

/* --- Accueil : photos superposées dans les losanges pour le fondu --- */
.tile img {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s ease;
}
.tile img.tile-next { opacity: 0; }
.tile.show-next img.tile-next { opacity: 1; }
.tile--plein { transition: background-color 1.2s ease; }
.hero.couleur-2 .tile--ne { background: var(--rose); }
.hero.couleur-2 .tile--se { background: var(--violet); }
.hero.couleur-3 .tile--ne { background: var(--violet); }
.hero.couleur-3 .tile--se { background: var(--rose); }

/* --- Pages intérieures : décor de losanges --- */
.page-head {
  position: relative;
  overflow: hidden;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-head-deco span {
  position: absolute;
  clip-path: var(--losange);
}
.page-head-deco span:nth-child(1) {
  width: 22rem; height: 22rem;
  right: -6rem; top: -7rem;
  background: var(--encre);
  opacity: 0.9;
}
.page-head-deco span:nth-child(2) {
  width: 15rem; height: 15rem;
  right: 8rem; top: 2rem;
  background: var(--rose);
  opacity: 0.8;
  mix-blend-mode: multiply;   /* superposé au marine : violet, comme dans le logo */
}
.page-head-deco span:nth-child(3) {
  width: 7rem; height: 7rem;
  right: 4rem; bottom: -2.5rem;
  background: var(--bleu-pale);
}
/* Petits écrans : décor discret pour ne pas gêner la lecture */
@media (max-width: 47.99em) {
  .page-head-deco span:nth-child(1) { width: 12rem; height: 12rem; right: -6rem; top: -6rem; }
  .page-head-deco span:nth-child(2) { width: 7rem; height: 7rem; right: 1rem; top: -2.5rem; }
  .page-head-deco span:nth-child(3) { display: none; }
}
/* Recrutement : le décor passe derrière la photo */
.page-head .hero-grid .photo { position: relative; z-index: 1; }

/* --- Références : bandeau défilant --- */
.marquee { position: relative; }
.marquee-toggle { margin: 0 0 var(--esp-4) auto; }
.marquee-toggle:not([hidden]) { display: flex; }
/* Sans défilement (pas de JavaScript ou animations réduites) : une seule grille pour les deux rangées */
.marquee:not(.is-animated) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--esp-3);
}
@media (min-width: 40em) { .marquee:not(.is-animated) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .marquee:not(.is-animated) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.marquee:not(.is-animated) .marquee-row { display: contents; }
.marquee.is-animated .marquee-row + .marquee-row { margin-top: var(--esp-3); }
.logo-tile img { max-width: 100%; height: auto; max-height: 3rem; }
/* Logos en couleur ; ils passent en gris au survol de la souris */
.logo-tile img { filter: none; transition: filter 0.3s ease; }
.logo-tile:hover img { filter: grayscale(1); }

/* Bandeau actif (ajouté par le JavaScript) : une ligne par rangée, en boucle */
.marquee.is-animated {
  /* fondu sur les bords gauche et droit */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  overflow: hidden;
}
.marquee.is-animated .marquee-row {
  display: flex;
  gap: var(--esp-3);
  width: max-content;
  animation: defile 70s linear infinite;
}
.marquee.is-animated .marquee-row--inverse { animation-direction: reverse; animation-duration: 80s; }
.marquee.is-animated .logo-tile {
  flex: 0 0 13rem;
  min-height: 6rem;
}
/* Pause : au survol, au clavier (focus dans le bandeau) ou avec le bouton */
.marquee.is-animated:hover .marquee-row,
.marquee.is-animated:focus-within .marquee-row,
.marquee.is-paused .marquee-row { animation-play-state: paused; }

@keyframes defile {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--esp-3) / 2)); }
}

/* --- Animations, seulement si le visiteur ne les a pas limitées --- */
@media (prefers-reduced-motion: no-preference) {

  /* Accueil : le texte apparaît par étapes */
  .hero-panel > div:first-child > * {
    animation: monte 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-panel > div:first-child > :nth-child(2) { animation-delay: 0.08s; }
  .hero-panel > div:first-child > :nth-child(3) { animation-delay: 0.2s; }
  .hero-panel > div:first-child > :nth-child(4) { animation-delay: 0.32s; }
  .hero-panel > div:first-child > :nth-child(5) { animation-delay: 0.44s; }

  /* Le mot souligné se surligne de gauche à droite */
  .hero .surligne {
    background-size: 0% 100%;
    background-repeat: no-repeat;
    animation: surligne 0.8s 0.7s ease-out forwards;
  }

  /* Les losanges s'ouvrent les uns après les autres */
  .tile { animation: losange 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .tile--c  { animation-delay: 0.15s; }
  .tile--n  { animation-delay: 0.3s; }
  .tile--ne { animation-delay: 0.4s; }
  .tile--w  { animation-delay: 0.45s; }
  .tile--e  { animation-delay: 0.6s; }
  .tile--s  { animation-delay: 0.7s; }
  .tile--se { animation-delay: 0.8s; }

  /* Photo centrale : zoom très lent et continu */
  .js .tile--c img { animation: zoom-lent 16s ease-in-out 1.5s infinite alternate; }
  .js .hero.is-paused .tile--c img { animation-play-state: paused; }

  /* Pages intérieures : texte qui monte, losanges qui entrent en tournant */
  .page-head > .container > *,
  .page-head .hero-grid > div > * {
    animation: monte 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .page-head > .container > :nth-child(2),
  .page-head .hero-grid > div > :nth-child(2) { animation-delay: 0.08s; }
  .page-head > .container > :nth-child(3),
  .page-head .hero-grid > div > :nth-child(3) { animation-delay: 0.16s; }
  .page-head > .container > :nth-child(4),
  .page-head .hero-grid > div > :nth-child(4) { animation-delay: 0.24s; }
  .page-head > .container > :nth-child(5),
  .page-head .hero-grid > div > :nth-child(5) { animation-delay: 0.32s; }
  .page-head .hero-grid > .photo { animation: devoile 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-head .hero-grid > div { animation: none; }

  .page-head-deco span { animation: losange-entre 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-head-deco span:nth-child(2) { animation-delay: 0.2s; }
  .page-head-deco span:nth-child(3) { animation-delay: 0.35s; }

  /* Pages Merci et 404 */
  .simple-page .container > * { animation: monte 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .simple-page .container > :nth-child(2) { animation-delay: 0.1s; }
  .simple-page .container > :nth-child(3) { animation-delay: 0.2s; }
  .simple-page .container > :nth-child(4) { animation-delay: 0.3s; }
}

@keyframes monte {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}
@keyframes surligne {
  to { background-size: 100% 100%; }
}
@keyframes losange {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}
@keyframes zoom-lent {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
@keyframes losange-entre {
  from { opacity: 0; transform: translateX(4rem) rotate(45deg) scale(0.7); }
  to { transform: none; }
}
@keyframes devoile {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}


/* ==========================================================================
   16. Photos des cartes métiers et des étapes, petit bouton pause des logos
   ========================================================================== */

/* Cartes « Quatre métiers » : photo pleine largeur en haut, losange de l'icône à cheval */
.card--media { overflow: hidden; }
.card-media {
  margin: calc(-1 * var(--esp-5)) calc(-1 * var(--esp-5)) 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media + .card-icon {
  position: relative;
  z-index: 1;
  margin-top: calc(-1.875rem - var(--esp-3));
  background: var(--blanc);
}

/* Étapes : photo en haut, numéro en losange posé sur la photo */
.step { padding-top: var(--esp-5); overflow: hidden; }
.step::before { z-index: 1; }
.step-media {
  margin: calc(-1 * var(--esp-5)) calc(-1 * var(--esp-5)) var(--esp-4);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Léger zoom des photos au survol des cartes */
@media (prefers-reduced-motion: no-preference) {
  .card-media img { transition: transform 0.5s ease; }
  .card:hover .card-media img { transform: scale(1.05); }
}

/* Bandeau de logos : petit bouton rond, icône seule (le texte reste lu par les lecteurs d'écran) */
.marquee-toggle {
  justify-content: center;
  padding: 0;
}
.marquee-toggle:not([hidden]) { display: flex; }

/* Photo centrale : seule la photo affichée zoome (pas celle qui arrive en fondu) */
.js .tile--c img.tile-next { animation: none; }


/* ==========================================================================
   17. Pages intérieures : losanges qui flottent en continu sur la hauteur
   Chaque losange monte et descend à son propre rythme : la zone où le
   marine et le magenta se superposent (violet) change en permanence.
   Bouton pause ajouté par le JavaScript (critère WCAG 2.2.2).
   ========================================================================== */
.deco-toggle {
  position: absolute;
  z-index: 2;
  right: var(--esp-4);
  bottom: var(--esp-4);
  justify-content: center;
  padding: 0;
  box-shadow: var(--ombre);
}
.deco-toggle:not([hidden]) { display: flex; }

@media (prefers-reduced-motion: no-preference) {
  .js .page-head-deco span:nth-child(1) {
    animation: losange-entre 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both,
               flotte-1 9s ease-in-out 1.1s infinite alternate;
  }
  .js .page-head-deco span:nth-child(2) {
    animation: losange-entre 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both,
               flotte-2 6.5s ease-in-out 1.3s infinite alternate;
  }
  .js .page-head-deco span:nth-child(3) {
    animation: losange-entre 1.1s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both,
               flotte-3 7.5s ease-in-out 1.45s infinite alternate;
  }
  .js .page-head.is-paused .page-head-deco span { animation-play-state: paused; }
}

@keyframes flotte-1 {
  from { transform: translateY(0); }
  to { transform: translateY(9rem); }
}
@keyframes flotte-2 {
  from { transform: translateY(0); }
  to { transform: translateY(-6rem); }
}
@keyframes flotte-3 {
  from { transform: translateY(0); }
  to { transform: translateY(-8rem); }
}


/* ==========================================================================
   18. Accueil : bandeau du haut de page sur toute la largeur
   Comme l'en-tête des autres pages : plus de carte arrondie. Le texte reste
   aligné sur le contenu de la page, la mosaïque va jusqu'au bord droit.
   ========================================================================== */
.hero {
  padding-block: 0;
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
}
.hero > .container {
  max-width: none;
  padding-inline: 0;
}
.hero-panel {
  border-radius: 0;
  box-shadow: none;
}
@media (min-width: 64em) {
  .hero-panel {
    /* la mosaïque grandit avec l'écran pour remplir sa colonne */
    min-height: clamp(38rem, 42vw, 50rem);
  }
  .hero-panel > div:first-child {
    /* aligne le texte sur le bord gauche du contenu des autres sections */
    padding-left: max(var(--esp-6), calc((100vw - var(--largeur-max)) / 2 + var(--esp-6)));
  }
  /* mosaïque calée sur le bord droit de l'écran ; si elle est plus large que sa colonne,
     elle ne déborde jamais sur le texte : elle est coupée au bord droit */
  .mosaic-inner { --ox: max(0px, calc(100cqw - 100cqh)); }
}


/* ==========================================================================
   19. Photos dans l'en-tête de Services et Contact, et dans les blocs profils
   ========================================================================== */
/* Services : le sommaire des services passe sous le texte et la photo, sur toute la largeur */
.hero-grid-full { grid-column: 1 / -1; }
.hero-grid-full .anchor-nav { margin-top: 0; }

/* Recrutement : photo pleine largeur en haut des blocs « Quel poste vous correspond ? » */
.profile--media { overflow: hidden; }
.profile-media {
  margin: calc(-1 * var(--esp-6)) calc(-1 * var(--esp-5)) 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-media + .card-icon {
  position: relative;
  z-index: 1;
  margin-top: -1.875rem;  /* le losange (3,75 rem) chevauche à moitié la photo */
  background: var(--blanc);
}


/* ==========================================================================
   20. En-tête du site : légère ombre portée, il « flotte » au-dessus de la page
   (il reste collé en haut de l'écran au défilement)
   ========================================================================== */
.site-header {
  border-bottom-color: transparent;
  box-shadow: 0 1px 2px rgba(8, 33, 90, 0.06), 0 6px 18px rgba(8, 33, 90, 0.10);
}
@media (forced-colors: active) {
  .site-header { border-bottom-color: CanvasText; }
}

/* 21. Conditions de travail (page Recrutement) */
.conditions .condition-value {
  display: block;
  margin-top: var(--esp-1);
  font-weight: 700;
  color: var(--encre);
}

/* ==========================================================================
   22. Losanges des pages intérieures dessinés sans clip-path
   Avec clip-path + mix-blend-mode + animation, Chrome laissait apparaître
   une fine ligne sur les bords haut et bas du losange rose. Le losange est
   maintenant un carré tourné de 45° (pseudo-élément), même rendu.
   ========================================================================== */
.page-head-deco span { clip-path: none; }
.page-head-deco span:nth-child(1) { --deco: var(--encre); background: transparent; }
.page-head-deco span:nth-child(2) { --deco: var(--rose); background: transparent; }
.page-head-deco span:nth-child(3) { --deco: var(--bleu-pale); background: transparent; }
.page-head-deco span::before {
  content: "";
  position: absolute;
  inset: 14.645%;            /* carré de côté largeur ÷ √2 : sa diagonale = la largeur */
  background: var(--deco);
  transform: rotate(45deg);
}

/* 23. Accueil : « Ils nous font confiance » : sigles des établissements en grand,
   le reste du nom à la taille du texte */
.hero-trust-noms { color: var(--texte); }
.hero-trust-sigle {
  font-size: 1.3rem;               /* environ 21 px */
  font-weight: 800;
  color: var(--encre);
  vertical-align: -0.1em;
}

/* ==========================================================================
   24. Références : tous les logos affichés en même temps (plus de bandeau défilant)
   Grille compacte : 3 colonnes sur téléphone, 5 sur tablette, 7 sur ordinateur.
   ========================================================================== */
.logos--grille {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--esp-2);
}
@media (min-width: 40em) { .logos--grille { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 64em) { .logos--grille { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.logos--grille .logo-tile {
  min-height: 4rem;
  padding: var(--esp-2);
}
.logos--grille .logo-tile img { max-height: 2.25rem; }

/* ==========================================================================
   25. Accueil : bandeau « 1 minute pour découvrir SPC » et fenêtre de la vidéo
   ========================================================================== */
.video-bandeau { padding-top: 0; }   /* prolonge le bandeau des chiffres clés */
.video-vignette {
  display: flex;
  align-items: center;
  justify-content: center;          /* contenu centré dans le bandeau */
  gap: var(--esp-4);
  padding: 0.5rem var(--esp-5);     /* marge réduite en haut et en bas : la miniature est plus grande */
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  color: var(--encre);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.video-vignette:hover,
.video-vignette:focus-visible { border-color: var(--rose); box-shadow: var(--ombre); }
.video-vignette-image {
  position: relative;
  flex: 0 0 auto;
  width: 12.1rem;                   /* 109 px de haut : bandeau de même hauteur que les chiffres clés (127 px) */
  border-radius: calc(var(--rayon) - 2px);
  overflow: hidden;
}
.video-vignette-image img { display: block; width: 100%; height: auto; }
.video-vignette-texte {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: var(--taille-l);
  line-height: 1.2;
}
/* Bouton lecture rond, centré sur la vignette */
.video-play-icone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blanc);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.video-play-icone::after {          /* triangle lecture */
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.8rem;
  border-color: transparent transparent transparent var(--encre);
}
.video-vignette:hover .video-play-icone,
.video-vignette:focus-visible .video-play-icone { background: var(--rose); transform: translate(-50%, -50%) scale(1.08); }
.video-vignette:hover .video-play-icone::after,
.video-vignette:focus-visible .video-play-icone::after { border-left-color: var(--blanc); }

/* Fenêtre de la vidéo */
.video-dialog {
  width: min(56rem, calc(100vw - 2rem));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--rayon-l);
  background: #000;
  overflow: visible;
}
.video-dialog::backdrop { background: rgba(8, 20, 50, 0.8); }
.video-dialog .video-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--rayon-l);
}
.video-fermer {
  position: absolute;
  top: -3.25rem;
  right: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--encre);
  cursor: pointer;
}
.video-fermer:hover,
.video-fermer:focus-visible { background: var(--rose); color: var(--blanc); }
.video-fermer .icon { width: 1.25rem; height: 1.25rem; }

/* 25 bis. Bandeau vidéo : fond bleu-gris clair (--bleu-pale, le même que la section Services
   juste en dessous), texte en bleu marine. Le fond ne change pas au survol. */
.video-vignette {
  background: var(--bleu-pale);
  border-color: transparent;
  color: #782E7D;                    /* texte et liseré violet (celui des losanges de l’accueil), y compris au survol */
}
/* Effet « bouton » : au repos, le bloc est en relief (ombre franche en dessous) ;
   au survol, il s'enfonce comme une touche sur laquelle on appuie, et la miniature
   s'enfonce avec lui (léger rétrécissement). Au clic, il descend jusqu'au bout. */
.video-vignette {
  box-shadow: 0 2px 0 #782E7D, 0 6px 14px rgba(12, 49, 130, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.video-vignette .video-vignette-image,
.video-vignette .video-vignette-texte { transition: transform 0.15s ease; }
.video-vignette:hover,
.video-vignette:focus-visible {
  border-color: transparent;
  transform: translateY(1px);
  box-shadow: 0 1px 0 #782E7D, 0 2px 6px rgba(12, 49, 130, 0.12);   /* liseré très fin au survol */
}
.video-vignette:hover .video-vignette-image,
.video-vignette:focus-visible .video-vignette-image { transform: scale(0.96); }
/* Le texte s'enfonce avec la miniature (même léger rétrécissement), sans changer de couleur */
.video-vignette:hover .video-vignette-texte,
.video-vignette:focus-visible .video-vignette-texte { transform: scale(0.96); }
.video-vignette:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #782E7D, 0 1px 3px rgba(12, 49, 130, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .video-vignette, .video-vignette .video-vignette-image, .video-vignette .video-vignette-texte { transition: none; }
}
.video-vignette:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
/* Au survol, le bouton lecture reste blanc avec le triangle marine (il ressort sur le fond marine) */
.video-vignette:hover .video-play-icone,
.video-vignette:focus-visible .video-play-icone { background: var(--blanc); }
.video-vignette:hover .video-play-icone::after,
.video-vignette:focus-visible .video-play-icone::after { border-left-color: var(--encre); }

/* 26. Références : ligne de séparation entre les logos et le bloc d'avis */
.separateur-refs {
  height: 0;
  margin: var(--esp-8) 0 0;
  border: 0;
  border-top: 1px solid #C9CFE0;
}
.separateur-refs + .testimonial { margin-top: var(--esp-8); }

/* 27. Mentions « (obligatoire) » et « (facultatif) » des formulaires
   Ajoutées par le CSS et non écrites dans le libellé : Netlify reprend le texte des
   libellés dans l'e-mail de notification, qui reste ainsi sans ces mentions.
   Les lecteurs d'écran lisent ce texte, et les champs obligatoires ont aussi l'attribut required. */
.lbl-oblig::after,
.lbl-facult::after {
  font-weight: 400;
  color: var(--texte-doux);
  font-size: var(--taille-s);
}
.lbl-oblig::after { content: " (obligatoire)"; }
.lbl-facult::after { content: " (facultatif)"; }
