/* Mayo-Formation : version 2 « Épurée »
   Couleurs de la marque en touches fines : lagon #4DE4DD, corail #FE5550, ylang #FFEA5B
   Titres : Spectral (Production Type, Paris). Texte : Albert Sans. Polices hébergées sur le site. */

@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --encre: #13323A;
  --encre-douce: #4E6469;
  --sarcelle: #0C6E6A;
  --lagon: #4DE4DD;
  --lagon-voile: #EAF8F7;
  --corail: #FE5550;
  --ylang: #FFEA5B;
  --brume: #F5F8F8;
  --filet: #DCE5E5;
  --trait: #9FB3B5;
  --blanc: #FFFFFF;

  --titre: "Spectral", Georgia, "Times New Roman", serif;
  --texte: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mesure: 38em;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --largeur: 72rem;
}

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

html {
  font-size: 106.25%; /* 17 px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
  border-top: 4px solid var(--lagon);
}

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

a {
  color: var(--encre);
  text-decoration-color: var(--lagon);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-color: var(--sarcelle);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--titre);
  font-weight: 300;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 2.9rem);
  line-height: 1.12;
}

h3,
h4 {
  font-family: var(--texte);
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
  max-width: var(--mesure);
  text-wrap: pretty;
}

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

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--encre);
  color: var(--blanc);
  font-weight: 600;
}

.lien-evitement:focus {
  top: 1rem;
}

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Élément à compléter avant la mise en ligne */
.a-completer {
  background: var(--ylang);
  outline: 2px dashed var(--encre);
  outline-offset: 1px;
  padding: 0 0.35em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- En-tête ---------- */

.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--filet);
}

.entete-barre {
  display: flex;
  align-items: center;
  gap: 1rem 2.25rem;
  padding-block: 1.15rem;
}

.marque {
  display: inline-flex;
  flex-direction: column;
  margin-right: auto;
  line-height: 1.15;
  text-decoration: none;
}

.marque-nom {
  font-family: var(--titre);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.marque-logo {
  display: block;
  width: auto;
  height: 2.35rem;
  margin-bottom: 0.3rem;
}

.marque-lieu {
  font-size: 0.8rem;
  color: var(--encre-douce);
}

@media (max-width: 36em) {
  .marque-logo {
    height: 1.85rem;
  }
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding-block: 0.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--lagon);
}

.entete-tel {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.entete-tel span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--encre-douce);
}

.menu-bouton {
  display: none;
}

/* ---------- Accueil ---------- */

.accueil {
  background: var(--blanc);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 7rem);
}

.accueil-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.accueil h1 {
  font-size: clamp(2.6rem, 1.45rem + 3.9vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.chapeau {
  margin-top: 1.75rem;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.6;
  color: var(--encre-douce);
  max-width: 33em;
}

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--encre);
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
}

.bouton--plein {
  background: var(--encre);
  color: var(--blanc);
}

.bouton--plein:hover {
  background: var(--sarcelle);
  border-color: var(--sarcelle);
}

.bouton--contour {
  background: transparent;
}

.bouton--contour:hover {
  background: var(--brume);
}

.mention-qualiopi {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
  font-size: 0.9rem;
  color: var(--encre-douce);
  max-width: 34em;
}

.carte {
  margin: 0;
}

.carte svg {
  width: 100%;
  height: auto;
  max-height: 32rem;
  margin-inline: auto;
}

.carte figcaption {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--encre-douce);
  max-width: 26em;
}

.carte-lagon {
  fill: var(--lagon-voile);
}

.carte-recif {
  fill: none;
  stroke: var(--lagon);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 0.1 8;
}

.carte-ile {
  fill: var(--blanc);
  stroke: var(--encre);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.carte-repere-ext {
  fill: var(--corail);
}

.carte-repere-int {
  fill: var(--blanc);
}

.carte-etiquette {
  font-family: var(--texte);
  font-weight: 600;
  font-size: 19px;
  fill: var(--encre);
  stroke: var(--blanc);
  stroke-width: 5;
  stroke-linejoin: round;
  paint-order: stroke;
}

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

.section {
  padding-block: clamp(4rem, 2.5rem + 5vw, 7.5rem);
}

.section--ecume {
  background: var(--brume);
}

.section-intro {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--encre-douce);
  max-width: 40em;
}

.lien-suite {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
}

/* ---------- Formations ---------- */

.themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 3.5rem;
}

.theme {
  --theme: var(--lagon);
}

.theme--enfance {
  --theme: var(--ylang);
}

.theme--handicap {
  --theme: var(--corail);
}

.theme-entete {
  padding: 1.1rem 0 1.25rem;
  border-top: 4px solid var(--theme);
}

.theme-entete h3 {
  font-size: 1.05rem;
}

.theme-entete p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.formations {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--filet);
}

.formation {
  padding-block: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--filet);
}

.formation h4 {
  font-family: var(--titre);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.3;
}

.formation p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.formation .faits {
  font-size: 0.86rem;
  color: var(--encre-douce);
}

/* ---------- Parcours ---------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etape {
  position: relative;
  padding-top: 3.75rem;
  counter-increment: etape;
}

.etape::before {
  content: counter(etape);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--encre);
  border-radius: 50%;
  background: var(--brume);
  font-family: var(--titre);
  font-size: 1.15rem;
}

.etape::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 2.5rem;
  right: -2rem;
  height: 1px;
  background: var(--trait);
}

.etape:last-child::after {
  display: none;
}

.etape h3 {
  font-size: 1.02rem;
}

.etape p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--encre-douce);
}

.infos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 4rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--filet);
}

.infos dt {
  font-weight: 600;
}

.infos dd {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--encre-douce);
}

/* ---------- Financement ---------- */

.profils {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--encre);
}

.profil {
  padding-block: 1.75rem 2rem;
  border-bottom: 1px solid var(--filet);
}

.profil:nth-child(odd) {
  padding-right: 3rem;
  border-right: 1px solid var(--filet);
}

.profil:nth-child(even) {
  padding-left: 3rem;
}

.profil h3 {
  font-family: var(--titre);
  font-size: 1.4rem;
  font-weight: 400;
}

.profil p {
  margin-top: 0.6rem;
  font-size: 0.97rem;
  color: var(--encre-douce);
}

/* ---------- Qualité et résultats ---------- */

.qualiopi {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  align-items: center;
  margin-top: 2.75rem;
  padding: 1.75rem 2rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-left: 4px solid var(--lagon);
}

.qualiopi-logo {
  display: block;
  width: 12.5rem;
  max-width: 100%;
  height: auto;
}

.qualiopi-texte {
  flex: 1 1 22rem;
}

.qualiopi-texte p {
  margin-bottom: 0.5rem;
}

.qualiopi-texte .mention {
  font-weight: 600;
}

.resultats {
  margin-top: 4.5rem;
}

.resultats h3 {
  font-family: var(--titre);
  font-size: 1.9rem;
  font-weight: 300;
}

.resultats > .session {
  margin-top: 0.75rem;
  color: var(--encre-douce);
}

.legende-titre {
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--encre-douce);
}

.legende li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legende svg {
  width: 16px;
  height: 16px;
}

.resultat {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 15rem minmax(0, 1.4fr);
  gap: 1rem 2.5rem;
  align-items: start;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--filet);
}

.resultat:first-of-type {
  margin-top: 1.75rem;
  border-top: 1px solid var(--encre);
}

.resultat h4 {
  font-family: var(--titre);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
}

.resultat .session {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  color: var(--encre-douce);
}

.points {
  padding-top: 0.55rem;
}

.points svg {
  width: auto;
  height: 15px;
  max-width: 100%;
}

.points--texte p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--encre-douce);
}

.chiffres {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 2.5rem;
  margin: 0;
}

.chiffres div {
  display: flex;
  flex-direction: column-reverse;
}

.chiffres dd {
  margin: 0;
  font-size: 3.1rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.chiffres .chiffre-second dd {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.chiffres dt {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--encre-douce);
}

.resultat-texte p {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.pt-ok {
  fill: var(--corail);
}

.pt-ko {
  fill: var(--blanc);
  stroke: var(--encre);
  stroke-width: 1.6;
}

.pt-abs {
  fill: none;
  stroke: var(--encre);
  stroke-width: 1.6;
  stroke-dasharray: 2.4 2.4;
}

.methode {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.methode p {
  max-width: 50em;
}

.methode strong {
  font-weight: 600;
  color: var(--encre);
}

.signalement {
  margin-top: 4rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--filet);
}

.signalement h3 {
  font-family: var(--titre);
  font-size: 1.55rem;
  font-weight: 400;
}

.signalement p {
  margin-top: 0.75rem;
}

/* ---------- Accessibilité ---------- */

.accessibilite {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.accessibilite h2 + p {
  margin-top: 1.5rem;
}

.referent {
  padding: 2rem 2rem 2.1rem;
  background: var(--brume);
  border-top: 3px solid var(--corail);
}

.referent h3 {
  font-family: var(--titre);
  font-size: 1.45rem;
  font-weight: 400;
}

.referent p {
  margin-top: 0.6rem;
}

.tel-grand {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.tel-grand:hover {
  text-decoration: underline;
  text-decoration-color: var(--lagon);
}

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

.contacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--encre);
}

.contact h3 {
  font-size: 1rem;
}

.contact p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.contact a {
  overflow-wrap: anywhere;
}

.contact address {
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

/* ---------- Pied de page ---------- */

.pied {
  padding-block: 4rem 2.5rem;
  background: var(--encre);
  color: #CFDEDF;
  font-size: 0.88rem;
}

.pied a {
  color: var(--blanc);
  text-decoration-color: rgba(77, 228, 221, 0.6);
}

.pied-haut {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2D4D55;
}

.pied .marque-nom {
  font-weight: 400;
  color: var(--blanc);
}

.pied-liens ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 0.5rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied-legal {
  padding-top: 1.75rem;
}

.pied-legal p {
  max-width: 62em;
  margin-bottom: 0.6rem;
}

/* ---------- Écrans moyens ---------- */

@media (max-width: 66em) {
  .entete-barre {
    flex-wrap: wrap;
  }

  .js .menu-bouton {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--encre);
    border-radius: 4px;
    background: transparent;
    color: var(--encre);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .js .menu-bouton[aria-expanded="true"] {
    background: var(--encre);
    color: var(--blanc);
  }

  .entete-tel {
    order: 2;
  }

  .menu-bouton {
    order: 3;
  }

  .nav {
    order: 4;
    flex-basis: 100%;
  }

  .js .nav {
    display: none;
  }

  .js .nav.est-ouvert {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding-block: 0.5rem 0.25rem;
    border-top: 1px solid var(--filet);
  }

  .nav a {
    display: block;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--filet);
  }

  .themes {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }

  .etapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.75rem;
  }

  .etape:nth-child(3)::after {
    display: none;
  }

  .infos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 54em) {
  .accueil-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .carte svg {
    max-height: 24rem;
  }

  .etapes {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .etape {
    padding: 0 0 2rem 4rem;
  }

  .etape::after,
  .etape:nth-child(3)::after {
    display: block;
    top: 2.5rem;
    bottom: 0;
    left: 1.25rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .etape:last-child::after {
    display: none;
  }

  .etape:last-child {
    padding-bottom: 0;
  }

  .etape h3 {
    padding-top: 0.5rem;
  }

  .profils {
    grid-template-columns: minmax(0, 1fr);
  }

  .profil:nth-child(odd),
  .profil:nth-child(even) {
    padding-inline: 0;
    border-right: 0;
  }

  .resultat {
    grid-template-columns: minmax(0, 1fr);
  }

  .accessibilite {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 36em) {
  .entete-barre {
    column-gap: 0.75rem;
  }

  .marque-nom {
    font-size: 1.35rem;
  }

  .marque-lieu {
    font-size: 0.75rem;
  }

  .entete-tel {
    display: none;
  }

  .actions .bouton {
    width: 100%;
  }

  .infos {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts {
    grid-template-columns: minmax(0, 1fr);
  }

  .pied-liens ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .qualiopi {
    padding: 1.25rem;
  }

  .chiffres dd {
    font-size: 2.6rem;
  }
}

@media print {
  body {
    border-top: 0;
  }

  .nav,
  .menu-bouton,
  .actions {
    display: none;
  }
}

/* Partenaires : logos officiels sur fond blanc, couleurs et proportions d'origine
   (charte du CNFPT : pas de fond coloré, pas de déformation, 80 px de large au minimum).
   Une ligne par groupe ; les logos s'alignent sur la même grille de 4 colonnes. */
.partenaires {
  margin-top: 3rem;
  background: var(--surface, var(--blanc));
  border: 1px solid var(--filet);
  border-radius: 3px;
}

.partenaires-groupe {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  align-items: center;
  padding: 1.75rem 2rem;
}

.partenaires-groupe + .partenaires-groupe {
  border-top: 1px solid var(--filet);
}

.partenaires-groupe h3 {
  font-size: 1rem;
}

.logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-cadre {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 5.25rem;
}

.logo-cadre img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-edm { height: 3rem; }
.logo-medetram { height: 3.1rem; }
.logo-cnfpt { height: 4.1rem; }
.logo-academie { height: 4.6rem; }
.logo-france-travail { height: 2.9rem; }
.logo-camieg { height: 2.2rem; }
.logo-akto { height: 1.85rem; }
.logo-ue { height: 2.6rem; }
.logo-mlezi { height: 3.7rem; }

.logo-nom {
  margin: 0.8rem 0 0;
  max-width: 15em;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--encre-douce);
}

@media (max-width: 66em) {
  .partenaires-groupe {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 36em) {
  .partenaires-groupe {
    padding: 1.4rem 1.1rem 1.6rem;
  }

  .logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }

  /* L'emblème européen garde une mention lisible : il prend toute la largeur. */
  .logos .logo-large {
    grid-column: span 2;
  }
}

/* Résumé des résultats sur la page d'accueil : le détail et le mode de calcul sont sur chaque fiche. */
.resumes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin: 1.75rem 0 0;
  padding: 1.75rem 0 0;
  list-style: none;
  border-top: 1px solid var(--encre);
}

.resume {
  display: flex;
  flex-direction: column;
}

.resume h4 {
  font-family: var(--titre);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
}

.resume .session {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.86rem;
  color: var(--encre-douce);
}

.resume .chiffres {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: auto;
}

.resume-lien {
  margin-top: 1.1rem;
  font-size: 0.9rem;
}

@media (max-width: 66em) {
  .resumes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36em) {
  .resumes {
    grid-template-columns: minmax(0, 1fr);
  }

  .resume .chiffres {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem 2.5rem;
  }
}


/* ==========================================================
   Version 3 « Lagon pâle » : la version épurée sur fond turquoise très clair,
   les contenus posés sur des panneaux blancs. À charger après style-b.css.
   ========================================================== */

:root {
  --fond: #EAF6F5;
  --fond-alt: #DCEFED;
  --surface: #FFFFFF;
  --filet: #CBE2E0;
  --lagon-trait: #1FB2AB;
}

body {
  background: var(--fond);
}

.entete {
  background: var(--fond);
}

.accueil {
  background: var(--fond);
}

.section--ecume {
  background: var(--fond-alt);
}

.etape::before {
  background: var(--fond-alt);
}

.carte-lagon {
  fill: #D3ECEA;
}

.carte-recif {
  stroke: var(--lagon-trait);
}

.carte-ile {
  fill: var(--surface);
}

.carte-etiquette {
  stroke: var(--surface);
}

/* Panneaux blancs */

.theme {
  padding: 0.35rem 1.6rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-top: 4px solid var(--theme);
  border-radius: 3px;
}

.theme-entete {
  border-top: 0;
}

.formation:last-child {
  border-bottom: 0;
}

.profils {
  gap: 1.25rem;
  border-top: 0;
}

.profil,
.profil:nth-child(odd),
.profil:nth-child(even) {
  padding: 1.6rem 1.8rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: 3px;
}

.resultats {
  padding: 2.25rem 2.5rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: 3px;
}

.qualiopi {
  border-color: var(--filet);
  border-left-color: var(--lagon-trait);
}

.referent {
  background: var(--surface);
  border: 1px solid var(--filet);
  border-top: 3px solid var(--corail);
}

@media (max-width: 54em) {
  .resultats {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .profils {
    gap: 1rem;
  }
}


/* ==========================================================
   Version 5 « Gris perle » : la version épurée dans une palette de gris,
   les couleurs du logo gardées en touches fines (liseré, récif, repère, filets).
   À charger après style-b.css et style-c-lagon.css.
   ========================================================== */

:root {
  --encre: #26292B;
  --encre-douce: #5C6265;
  --sarcelle: #0C6E6A;
  --brume: #F1F2F2;
  --fond: #F1F2F2;
  --fond-alt: #E7E9E9;
  --surface: #FFFFFF;
  --filet: #D6DADA;
  --trait: #A3A9AB;
  --lagon-trait: #1FB2AB;
}

.carte-lagon {
  fill: #E2E5E5;
}

.bouton--plein:hover {
  background: #3E4346;
  border-color: #3E4346;
}

.pied {
  background: var(--encre);
  color: #D5D9DA;
}

.pied-haut {
  border-bottom-color: #43484B;
}


/* ==========================================================
   Fiches formations (à charger en dernier)
   ========================================================== */

.fiche-entete {
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-bottom: 1px solid var(--filet);
}

.ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--encre-douce);
}

.ariane li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--trait);
}

.ariane a {
  color: var(--encre-douce);
}

.fiche-titre {
  max-width: 50rem;
  padding-top: 1.25rem;
  border-top: 4px solid var(--theme, var(--lagon));
}

.fiche-entete h1 {
  font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.08;
}

.fiche-entete .chapeau {
  margin-top: 1.25rem;
}

.fiche-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}

.fiche-resume {
  order: 2;
  position: sticky;
  top: 1.5rem;
  padding: 1.6rem 1.75rem 1.75rem;
  background: var(--surface, var(--blanc));
  border: 1px solid var(--filet);
  border-top: 3px solid var(--theme, var(--lagon));
  border-radius: 3px;
}

.fiche-resume h2 {
  font-size: 1.55rem;
}

.fiche-resume dl {
  margin: 1rem 0 0;
}

.fiche-resume dl div {
  padding-block: 0.7rem;
  border-top: 1px solid var(--filet);
}

.fiche-resume dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--encre-douce);
}

.fiche-resume dd {
  margin: 0.15rem 0 0;
  font-size: 0.93rem;
  line-height: 1.5;
}

.fiche-contenu {
  order: 1;
}

.fiche-contenu > section + section {
  margin-top: 3.25rem;
  padding-top: 3rem;
  border-top: 1px solid var(--filet);
}

.fiche-contenu h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem);
}

.fiche-contenu h2 + p {
  margin-top: 1rem;
}

.liste {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  max-width: var(--mesure);
}

.liste li {
  margin-top: 0.45rem;
}

.liste li::marker {
  color: var(--lagon-trait, var(--sarcelle));
}

.blocs {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.bloc {
  padding: 1.35rem 1.6rem 1.5rem;
  background: var(--surface, var(--blanc));
  border: 1px solid var(--filet);
  border-left: 3px solid var(--theme, var(--lagon));
  border-radius: 3px;
}

.bloc h3 {
  font-family: var(--titre);
  font-size: 1.3rem;
  font-weight: 400;
}

.bloc-duree {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--encre-douce);
}

.bloc p:not(.bloc-duree) {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.bloc--stage {
  border-left-color: var(--trait);
}

.note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--encre-douce);
}

.parcours-numerote {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pn;
}

.parcours-numerote li {
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
  counter-increment: pn;
}

.parcours-numerote li::before {
  content: counter(pn);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--encre);
  border-radius: 50%;
  background: var(--fond, var(--blanc));
  font-family: var(--titre);
  font-size: 1rem;
}

.parcours-numerote li::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  bottom: 0;
  left: 1.05rem;
  width: 1px;
  background: var(--trait);
}

.parcours-numerote li:last-child {
  padding-bottom: 0;
}

.parcours-numerote li:last-child::after {
  display: none;
}

.parcours-numerote h3 {
  padding-top: 0.3rem;
  font-size: 1.02rem;
}

.parcours-numerote p {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

.fiche-resultats .chiffres {
  margin-top: 1.5rem;
}

.fiche-resultats .points {
  margin-top: 0.75rem;
}

.fiche-resultats > p:not(.legende-titre) {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--encre-douce);
}

.maj {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--encre-douce);
}

.fiche-contact p {
  margin-top: 1rem;
  color: var(--encre-douce);
}


.tableau-defile {
  margin-top: 1.25rem;
  overflow-x: auto;
}

.tableau {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--surface, var(--blanc));
  border: 1px solid var(--filet);
  font-size: 0.92rem;
}

.tableau th,
.tableau td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--filet);
  text-align: left;
  vertical-align: top;
}

.tableau thead th {
  background: var(--fond-alt, var(--brume));
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--encre-douce);
}

.tableau tbody th {
  font-weight: 600;
}

.tableau tbody tr:last-child th,
.tableau tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 60em) {
  .fiche-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .fiche-resume {
    position: static;
    order: 0;
  }
}


/* Pages de texte : réclamations, accessibilité, pages légales */
.page-texte {
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}

.page-texte .fiche-contenu {
  max-width: 46rem;
}

.page-texte .bloc + .bloc {
  margin-top: 1rem;
}

.page-texte .bloc .liste {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.contacts-urgence {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--filet);
}

.contacts-urgence li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--filet);
}

.contacts-urgence .numero {
  font-family: var(--titre);
  font-size: 1.6rem;
  line-height: 1.1;
}

.contacts-urgence .numero a {
  text-decoration: none;
}

@media (max-width: 36em) {
  .contacts-urgence li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.fiche-contenu .liste + p {
  margin-top: 1rem;
}

.fiche-contenu h2 + .bloc {
  margin-top: 1.25rem;
}
