/* =========================================================
   Guide Pratique de Product Management — feuille de style
   Conception mobile d'abord : les règles de base visent le
   téléphone, les blocs @media élargissent pour l'ordinateur.
   ========================================================= */

/* ---------- 1. Charte : couleurs et typographie ---------- */
:root {
  /* Volets du guide */
  --vision: #9A6CB5;
  --discovery: #D37B2E;
  --delivery: #387DC9;
  --organisation: #787774;

  /* Texte et fonds */
  --texte: #37352F;
  --texte-discret: #6B6A66;   /* gris un peu plus foncé que --organisation, pour un contraste suffisant sur blanc */
  --nuit: #1F2937;
  --nuit-texte: #F3F4F6;
  --nuit-discret: #C5CAD3;
  --fond: #FFFFFF;

  /* Fonds clairs des cartes de schéma */
  --vision-clair: #F6F2F8;
  --discovery-clair: #FBF3EC;
  --delivery-clair: #EDF3FA;
  --organisation-clair: #F3F3F2;

  /* Versions foncées des couleurs de volets, pour le texte :
     même teinte, contraste d'au moins 4,5 sur les fonds clairs */
  --vision-fonce: #7D539A;
  --discovery-fonce: #A65A1B;
  --delivery-fonce: #2B66A8;
  --organisation-fonce: #64635F;

  --fleche: #9B9A97;

  /* Polices du système : aucun fichier à charger */
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur-max: 60rem;
  --marge: 1.25rem;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

img {
  max-width: 100%;
  height: auto;
}

/* Contour visible quand on navigue au clavier */
:focus-visible {
  outline: 3px solid var(--delivery);
  outline-offset: 3px;
}

/* Lien « Aller au contenu » : invisible jusqu'à ce qu'on appuie sur Tab */
.lien-evitement {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: #FFFFFF;
  color: var(--nuit);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.lien-evitement:focus {
  transform: none;
}

main:focus {
  outline: none;   /* la cible du lien d'évitement n'a pas besoin de contour */
}

.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--marge);
}

/* ---------- 3. Accroche (fond bleu nuit) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--nuit);
  color: var(--nuit-texte);
  padding: 3.5rem 0 4rem;
}

/* Les deux cercles discrets de la couverture du guide */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero::before {
  width: 22rem;
  height: 22rem;
  top: -9rem;
  right: -9rem;
}

.hero::after {
  width: 14rem;
  height: 14rem;
  bottom: -6rem;
  right: -5rem;
}

.hero .conteneur {
  position: relative; /* passe au-dessus des cercles */
}

.hero__marque {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__volets {
  display: flex;
  gap: 0.4rem;
  margin: 0.85rem 0;
}

.volet {
  display: block;
  width: 2.25rem;
  height: 0.3rem;
  border-radius: 0.15rem;
}

.volet--vision { background: var(--vision); }
.volet--discovery { background: var(--discovery); }
.volet--delivery { background: var(--delivery); }
.volet--organisation { background: var(--organisation); }

.hero__auteur {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nuit-discret);
}

.hero__titre {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 22em;
}

.hero__bandeau {
  margin: 0 0 2rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--discovery);
  color: #EC9A55;      /* orange Discovery éclairci : contraste d'environ 6 sur le bleu nuit */
  max-width: 34em;
}

/* Vitrine : captures du guide à côté du texte (téléphone : une seule, sous le bouton) */
.hero__vitrine {
  margin-top: 2.5rem;
}

/* Chaque capture est recadrée sur sa fenêtre : on retire la marge sombre et les légendes */
.hero__capture {
  overflow: hidden;
  border-radius: 0.6rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.hero__capture img {
  display: block;
  width: 117.65%;       /* la fenêtre fait 1360 px sur les 1600 de la capture */
  max-width: none;
  height: auto;
  margin: -5.15% 0 0 -8.82%;   /* décalage de la fenêtre : 70 px en haut, 120 px à gauche */
}

.hero__capture--fond {
  display: none;
}

.hero__capture--avant {
  aspect-ratio: 1360 / 860;   /* coupe sous la fenêtre, avant les légendes */
}

.intro__titre span[aria-hidden="true"] {
  margin-right: 0.3em;
}

/* ---------- Le guide en chiffres, juste sous l'accroche ---------- */
.reperes {
  position: relative;
  z-index: 1;
  margin-top: -2rem;   /* la carte chevauche le bas de l'accroche */
}

.reperes__liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 1.25rem 0.75rem;
  border-radius: 0.9rem;
  background: var(--fond);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.12);
}

.reperes__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--texte-discret);
  text-align: center;
}

.reperes__nombre {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--nuit);
}

.reperes__item--vision .reperes__nombre { color: var(--vision-fonce); }
.reperes__item--discovery .reperes__nombre { color: var(--discovery-fonce); }
.reperes__item--delivery .reperes__nombre { color: var(--delivery-fonce); }
.reperes__item--organisation .reperes__nombre { color: var(--organisation-fonce); }

/* ---------- Introduction en trois blocs ---------- */
.intro__blocs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.intro__titre {
  margin: 0 0 0.6rem;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--nuit);
}

.intro__bloc p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

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

/* Variante de la page 404 : l'accroche occupe l'écran */
.hero--court {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
}

/* ---------- 4. Bouton d'appel à l'action ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.5rem;
  background: var(--delivery);
  color: #FFFFFF;
  font-size: 1.2rem;           /* gros texte gras : contraste 4,2:1 suffisant */
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.bouton:hover {
  background: #2F6AAB;
}

/* ---------- 5. Introduction ---------- */
.intro {
  padding: 3rem 0 1rem;
}

.intro p {
  max-width: 38em;           /* environ 70 caractères par ligne */
  margin: 0 0 1.1em;
}

.intro p:first-child {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- 6. Chiffres clés ---------- */
.chiffres {
  padding: 1.5rem 0 3.5rem;
}

.chiffres__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;   /* téléphone : une carte par ligne */
  gap: 1rem;
}

.carte-chiffre {
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid #E8E8E6;
  border-radius: 0.75rem;
  background: #F7F7F5;
}

.carte-chiffre p {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.55;
}

.carte-chiffre__titre {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem !important;
  font-size: 1.0625rem !important;
  font-weight: 700;
  color: var(--nuit);
}

/* Sous-grille : titres, textes et liens des quatre cartes alignés d'une carte à l'autre */
@supports (grid-template-rows: subgrid) {
  .carte-chiffre {
    display: grid;
    grid-row: span 3;   /* titre, texte, liens */
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

.carte-chiffre__liens {
  padding-top: 0.8rem;
}

.carte-chiffre p.carte-chiffre__lien {
  font-weight: 600;
}

.carte-chiffre__lien a {
  color: var(--delivery-fonce);
}

/* Le lien vers l'exemple a exactement l'allure du lien vers la liste */
.carte-chiffre p.carte-chiffre__exemple {
  padding-top: 0.35rem;
  font-weight: 600;
}

.carte-chiffre__exemple a {
  color: var(--delivery-fonce);
}

.carte-chiffre__nombre {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- 7. Sections de contenu ---------- */
.section {
  padding: 3rem 0;
  border-top: 1px solid #EDEDEB;
}

.section__titre {
  margin: 0 0 1.25rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--nuit);
}

.section__texte {
  max-width: 38em;
  margin: 0 0 1.5rem;
}

/* Une couleur par volet : chaque carte puise dans ses variables */
.carte-volet--vision,
.famille--vision {
  --c: var(--vision);
  --c-clair: var(--vision-clair);
  --c-fonce: var(--vision-fonce);
}

.carte-volet--discovery,
.famille--discovery {
  --c: var(--discovery);
  --c-clair: var(--discovery-clair);
  --c-fonce: var(--discovery-fonce);
}

.carte-volet--delivery,
.famille--delivery {
  --c: var(--delivery);
  --c-clair: var(--delivery-clair);
  --c-fonce: var(--delivery-fonce);
}

.carte-volet--organisation,
.famille--organisation {
  --c: var(--organisation);
  --c-clair: var(--organisation-clair);
  --c-fonce: var(--organisation-fonce);
}

/* ----- Schéma 1 : structure du guide ----- */
.structure {
  margin: 0 0 3rem;
}

/* Téléphone : volets empilés, boucle de retour sur la gauche */
.structure__volets {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding-left: 2.75rem;
}

.structure__retour {
  position: absolute;
  left: 0.75rem;
  top: 3rem;
  bottom: 3rem;
  width: 1.5rem;
  border: 2.5px solid var(--fleche);
  border-right: none;
  border-radius: 1rem 0 0 1rem;
}

/* Pointe de flèche : la boucle revient vers la Vision */
.structure__retour::after {
  content: "";
  position: absolute;
  top: -7.25px;
  right: -8px;
  border-left: 9px solid var(--fleche);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.structure__retour span {
  position: absolute;
  top: 50%;
  left: -1.25px;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  padding: 0.15rem 0.6rem;
  border: 1px solid #E3E2E0;
  border-radius: 1rem;
  background: var(--fond);
  font-size: 0.8125rem;
  font-weight: 600;
  font-style: italic;
  color: var(--texte);
}

.carte-volet {
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--c);
  border-radius: 0.875rem;
  background: var(--c-clair);
  color: var(--c-fonce);
  text-align: center;
}

.carte-volet p {
  margin: 0;
}

.carte-volet__nom {
  margin: 0 0 0.3rem;
  font-size: 1.3125rem;
  line-height: 1.3;
}

.carte-volet__question {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem !important;
}

.carte-volet__contenu {
  font-size: 0.875rem;
  line-height: 1.5;
}

.carte-volet--socle {
  margin-top: 1.25rem;
}

/* Liaison entre deux volets : flèche + étiquette */
.liaison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  font-style: italic;
  color: var(--texte);
}

.liaison__fleche::before {
  content: "↓";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  color: var(--fleche);
}

/* ----- Schéma 2 : les 14 principes ----- */
.principes {
  display: grid;
  gap: 1.5rem;
}

.famille__nom {
  margin: 0 0 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 0.625rem;
  background: var(--c);
  color: #FFFFFF;
  font-size: 1.1875rem;   /* gros texte gras : contraste de 3:1 suffisant */
  line-height: 1.3;
}

.famille__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.famille__liste li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--c);
  border-radius: 0.625rem;
  background: var(--c-clair);
  color: var(--c-fonce);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.pastille {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  border-radius: 0.8rem;
  background: var(--c-fonce);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ----- Voir et manipuler : textes ----- */
.section__liste {
  max-width: 38em;
  margin: -0.75rem 0 1rem;
  padding-left: 1.25rem;
}

/* Texte lu par les lecteurs d'écran mais invisible à l'œil */
.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section__liste--exemples {
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
}

.section__liste--exemples li {
  margin-bottom: 0.3rem;
}

/* Texte qui suit une capture au sein du même exemple */
.exemple__suite {
  margin-top: 2.5rem;
}

/* Dépliant, comme un toggle Notion */
.depliant {
  margin: 0 0 2rem;
  border: 1px solid #E8E8E6;
  border-radius: 0.75rem;
  background: #FAFAF9;
}

.depliant summary {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.depliant summary::-webkit-details-marker {
  display: none;
}

.depliant summary::before {
  content: "▸";
  flex: none;
  color: var(--organisation-fonce);
  transition: transform 0.15s ease;
}

.depliant[open] summary::before {
  transform: rotate(90deg);
}

.depliant .capture {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
}

/* Encadré du cas fil rouge */
.encadre {
  margin: 0 0 3rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--nuit);
  border-radius: 0 0.75rem 0.75rem 0;
  background: #F4F5F7;
}

.encadre p {
  margin: 0;
  max-width: 44em;
}

/* Un exemple = titre + texte + capture */
.exemple {
  margin: 0 0 3.5rem;
}

.exemple__titre {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--nuit);
}

/* ----- Capture mise en scène ----- */
.capture {
  margin: 0;
}

.capture__cadre {
  position: relative;
}

.capture__cadre img {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  cursor: zoom-in;
}

.capture--schema .capture__cadre img {
  border: 1px solid #E8E8E6;
  background: #FFFFFF;
}

.capture__agrandir {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2rem;
  background: rgba(17, 24, 39, 0.82);
  color: #FFFFFF;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.capture__agrandir:hover {
  background: rgba(17, 24, 39, 0.95);
}

/* Légendes en texte : visibles sur téléphone, où celles de l'image sont trop petites */
.capture__legendes ol {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.capture__legendes li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pastille-legende {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--discovery-fonce);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ----- Visionneuse plein écran ----- */
.sans-defilement {
  overflow: hidden;
}

.visionneuse {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--nuit);
  color: #FFFFFF;
}

.visionneuse::backdrop {
  background: rgba(17, 24, 39, 0.9);
}

.visionneuse__zone {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  padding: 3.5rem 0.75rem 2.5rem;
}

.visionneuse__image {
  margin: auto;                /* centre l'image dans la zone */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

/* Zoom : l'image à sa taille réelle, on se déplace en faisant défiler */
.visionneuse--zoom .visionneuse__image {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.visionneuse__fermer {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.85);
  color: #FFFFFF;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.visionneuse__aide {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0.6rem;
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--nuit-discret);
  pointer-events: none;
}

/* L'aide s'adapte : souris et clavier, ou écran tactile */
.aide--tactile {
  display: none;
}

@media (hover: none) {
  .aide--souris { display: none; }
  .aide--tactile { display: inline; }
}

/* ----- Ce que le guide change ----- */
.benefices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.benefice {
  padding: 1.3rem 1.4rem;
  border: 1px solid #E8E8E6;
  border-top: 4px solid var(--nuit);
  border-radius: 0.75rem;
  background: #F7F7F5;
}

.benefice__titre {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--nuit);
}

.benefice p {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.55;
}

/* ----- Travailler ensemble (fond bleu nuit) ----- */
.section--nuit {
  border-top: none;
  background: var(--nuit);
  color: var(--nuit-texte);
  padding: 3.5rem 0 4rem;
}

.section--nuit .section__titre {
  color: #FFFFFF;
}

.auteur {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.auteur__photo {
  flex: none;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  object-fit: cover;
}

.auteur__nom {
  margin: 0;
  font-size: 1.375rem;
  color: #FFFFFF;
}

.auteur__role {
  margin: 0.1rem 0 0.75rem;
  color: var(--nuit-discret);
}

.auteur p:last-child {
  margin: 0;
  max-width: 40em;
}

.collaborations {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.collaboration {
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--delivery);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9688rem;
  line-height: 1.55;
  color: var(--nuit-discret);
}

.collaboration strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: #FFFFFF;
}

.appel {
  margin: 0 0 2.5rem;
}

.appel__texte {
  margin: 0 0 1rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: #FFFFFF;
}

.liens {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.liens a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2rem;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.liens a::after {
  content: " ↗";
  color: var(--nuit-discret);
}

.liens a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section--nuit :focus-visible {
  outline-color: #FFFFFF;
}

/* ----- Pages satellites : en-tête court ----- */
.entete-page {
  position: relative;
  overflow: hidden;
  background: var(--nuit);
  color: var(--nuit-texte);
  padding: 2rem 0 2.5rem;
}

.entete-page::before {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  top: -8rem;
  right: -7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.entete-page .conteneur {
  position: relative;
}

.entete-page__retour {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nuit-texte);
  text-decoration: none;
}

.entete-page__retour:hover {
  text-decoration: underline;
}

.entete-page__titre {
  margin: 1.5rem 0 0;
  font-size: 2rem;
  line-height: 1.2;
}

.section--premiere {
  border-top: none;
}

/* Variantes sur fond clair des blocs de « Travailler ensemble » */
.auteur--clair .auteur__nom {
  color: var(--nuit);
}

.auteur--clair .auteur__photo {
  border-color: #E8E8E6;
}

.auteur--clair p,
.auteur--clair p:last-child {
  margin: 0.75rem 0 0;
  max-width: 40em;
}

.collaborations--clair {
  margin-bottom: 0;
}

.collaborations--clair .collaboration {
  border: 1px solid #E8E8E6;
  border-top: 4px solid var(--delivery);
  background: #F7F7F5;
  color: var(--texte);
}

.collaborations--clair .collaboration strong {
  color: var(--nuit);
}

/* Phrase d'ouverture d'une page satellite */
.chapeau {
  max-width: 38em;
  margin: 0 0 0.75rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--nuit);
}

/* Liste à puces carrées aux couleurs du bleu Delivery */
.liste-points {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44em;
}

.liste-points li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.4rem;
  line-height: 1.55;
}

.liste-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.1rem;
  background: var(--delivery);
}

.liste-points strong {
  color: var(--nuit);
}

/* Lien interne au site : pas de flèche « site extérieur » */
.liens a.lien-interne::after {
  content: none;
}

/* ----- Page CV ----- */
/* Téléphone : une colonne, le parcours d'abord, la colonne latérale ensuite */
.cv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.cv__identite {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.cv__identite .auteur__photo {
  width: 5rem;
  height: 5rem;
  border-color: #E8E8E6;
}

.cv__nom {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--delivery-fonce);
}

.cv__nom strong {
  text-transform: uppercase;
}

.cv__accroche {
  margin: 0.3rem 0 0;
  font-weight: 700;
  color: var(--nuit);
  line-height: 1.4;
}

.cv__resume {
  margin-bottom: 2rem;
}

.cv__rubrique {
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--delivery);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--delivery-fonce);
}

.cv__principal > .cv__rubrique {
  margin-top: 0;
}

.poste {
  margin: 0 0 1.75rem;
}

.poste p {
  margin: 0 0 0.45rem;
  max-width: 44em;
  font-size: 0.9688rem;
  line-height: 1.55;
}

.poste .poste__dates {
  margin: 0;
  font-size: 0.875rem;
  color: var(--texte-discret);
}

.poste__titre {
  margin: 0.1rem 0 0.15rem;
  font-size: 1.1875rem;
  color: var(--nuit);
}

.poste .poste__societe {
  margin-bottom: 0.6rem;
  color: var(--texte-discret);
}

.cv__lateral {
  padding: 0.25rem 1.4rem 1.5rem;
  border-radius: 0.75rem;
  background: #F3F3F2;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cv__lateral > .cv__rubrique:first-child {
  margin-top: 1.25rem;
}

.cv__lateral p {
  margin: 0 0 0.5rem;
}

.cv__lateral a {
  color: var(--delivery-fonce);
  overflow-wrap: anywhere;
}

.cv__liste,
.cv__coordonnees {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv__liste li,
.cv__coordonnees li {
  margin-bottom: 0.5rem;
}

.cv__titre-bloc {
  font-weight: 700;
}

.cv__italique {
  font-style: italic;
}

.cv__discret {
  color: var(--texte-discret);
}

/* Numéro de téléphone : un faux numéro flouté, le vrai n'est pas dans la page */
.numero-masque {
  filter: blur(4px);
  user-select: none;
}

.numero-masque__note {
  margin-left: 0.4rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--texte-discret);
}

/* ----- Tableaux (issus de Notion) ----- */
/* Téléphone : chaque ligne devient une carte */
.tableau {
  width: 100%;
  border-collapse: collapse;
}

.tableau thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tableau tr {
  display: block;
  margin-bottom: 0.75rem;
  padding: 1rem 1.2rem;
  border: 1px solid #E8E8E6;
  border-radius: 0.75rem;
  background: #F7F7F5;
}

.tableau th,
.tableau td {
  display: block;
  padding: 0;
  text-align: left;
  font-size: 0.9688rem;
  line-height: 1.55;
}

.tableau tbody th {
  margin-bottom: 0.3rem;
  font-size: 1.0625rem;
  color: var(--nuit);
}

/* Libellé de colonne affiché dans la carte (tableaux à plus de 2 colonnes) */
.tableau td[data-libelle]::before {
  content: attr(data-libelle);
  display: block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texte-discret);
}

/* ---------- Formulaire de contact ---------- */
.formulaire {
  max-width: 36rem;
  margin-top: 1.5rem;
}

.formulaire__champ {
  margin-bottom: 1.25rem;
}

.formulaire label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--nuit);
}

.formulaire input,
.formulaire textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #8A8985;   /* contraste 3:1 minimum pour la bordure d'un champ */
  border-radius: 0.4rem;
  background: var(--fond);
  color: var(--texte);
  font: inherit;               /* 1,06 rem : évite le zoom automatique sur iPhone */
}

.formulaire textarea {
  resize: vertical;
  min-height: 9rem;
}

.formulaire input:focus,
.formulaire textarea:focus {
  outline: 3px solid rgba(56, 125, 201, 0.35);
  border-color: var(--delivery-fonce);
}

.formulaire__piege {
  position: absolute;
  left: -9999px;
}

.formulaire__mention {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--texte-discret);
}

.formulaire__envoyer {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.formulaire__envoyer:disabled {
  opacity: 0.7;
  cursor: wait;
}

.formulaire__statut:empty {
  display: none;
}

.formulaire__statut {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
}

.formulaire__statut--succes {
  background: #EAF5EC;
  color: #1E6B34;
}

.formulaire__statut--erreur {
  background: #FBEDEB;
  color: #A3301F;
}

/* Confirmation affichée à la place du formulaire */
.confirmation {
  max-width: 36rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #EAF5EC;
  border-left: 4px solid #1E6B34;
}

.confirmation:focus {
  outline: none;
}

.confirmation__texte {
  margin: 0 0 1rem;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #1E6B34;
}

.confirmation__retour {
  font-weight: 600;
  color: var(--delivery-fonce);
}

/* ---------- Listes des annexes : chapitres, gabarits, modèles, fiches ---------- */
.famille--metier {
  --c: #448361;          /* vert des ouvrages « métier » dans Notion */
  --c-clair: #EEF5F0;
  --c-fonce: #2F6B4C;
}

.inventaire__intro {
  font-style: italic;
  color: var(--texte-discret);
}

.inventaire {
  display: grid;
  grid-template-columns: 1fr;   /* téléphone : un volet sous l'autre */
  gap: 2rem;
}

.inventaire__titre {
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--c);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--c-fonce);
}

.inventaire__liste {
  margin: 0;
  padding-left: 1.75rem;
}

.inventaire__liste li {
  margin-bottom: 0.3rem;
  padding-left: 0.2rem;
}

.inventaire__liste li::marker {
  color: var(--c-fonce);
  font-weight: 700;
}

.inventaire__note {
  color: var(--texte-discret);
}

.inventaire__liste a,
.inventaire__exemple a {
  color: var(--delivery-fonce);
  font-weight: 600;
}

.inventaire__exemple {
  margin: 2.5rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #F7F7F5;
  border: 1px solid #E8E8E6;
  font-size: 1.0625rem;
}

/* ---------- Page Missions ---------- */
/* En-tête avec accroche et bouton */
.entete-page--accroche {
  padding-bottom: 3rem;
}

.entete-page__accroche {
  margin: 1.25rem 0 0.75rem;
  max-width: 30em;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #FFFFFF;
}

.entete-page__texte {
  margin: 0 0 1.75rem;
  max-width: 36em;
  color: var(--nuit-discret);
}

.section--grise {
  background: #F7F7F5;
}

/* Cartes avec icône : « Pour qui » et « Formats d'interventions » */
.cartes-icone {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.carte-icone {
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid #E8E8E6;
  border-radius: 0.75rem;
  background: var(--fond);
}

.carte-icone p {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.55;
}

.carte-icone__icone {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 1.5rem;     /* l'émoji seul, sans pastille de fond */
  line-height: 1;
}

.carte-icone p.carte-icone__titre {
  margin-bottom: 0.3rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nuit);
}

/* « Pour qui » : le nom de la cible à droite de l'icône, la précision dessous */
.carte-icone p.carte-icone__entete {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.carte-icone__entete .carte-icone__icone {
  flex: none;
  margin-bottom: 0;
}

.carte-icone__entete .carte-icone__titre {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nuit);
}

.carte-icone p.carte-icone__texte {
  font-size: 0.9063rem;
  font-weight: 400;
  color: var(--texte-discret);
}

/* La forme de collaboration mise en avant */
.carte-icone--vedette {
  border: 2px solid var(--delivery);
  background: var(--delivery-clair);
}

.carte-icone--vedette .carte-icone__icone {
  background: var(--fond);
}

/* Frise des 4 étapes : verticale sur téléphone, horizontale sur ordinateur */
.frise-etapes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.etape {
  --c: var(--delivery);
  --c-clair: var(--delivery-clair);
  --c-fonce: var(--delivery-fonce);
  position: relative;
  padding: 1.25rem;
  border-top: 4px solid var(--c);
  border-radius: 0.75rem;
  background: var(--fond);
  box-shadow: 0 2px 10px rgba(31, 41, 55, 0.06);
}

.etape--vision { --c: var(--vision); --c-clair: var(--vision-clair); --c-fonce: var(--vision-fonce); }
.etape--discovery { --c: var(--discovery); --c-clair: var(--discovery-clair); --c-fonce: var(--discovery-fonce); }
.etape--organisation { --c: var(--organisation); --c-clair: var(--organisation-clair); --c-fonce: var(--organisation-fonce); }

.etape p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.etape p.etape__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--c);
  color: #FFFFFF;
  font-weight: 800;
}

.etape__titre {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--c-fonce);
}

.etape p.etape__libelle {
  margin-bottom: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-discret);
}

/* Le livrable de l'étape, mis en avant */
.etape__livrable {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--c-clair);
}

.etape__livrable p {
  margin: 0;
  font-weight: 600;
  color: var(--nuit);
}

.etape__livrable p.etape__libelle {
  color: var(--c-fonce);
}

/* Résultats alignés d'une étape à l'autre : chaque carte partage les rangées de la frise */
@supports (grid-template-rows: subgrid) {
  .etape {
    display: grid;
    grid-row: span 5;   /* numéro, titre, libellé, ce que je fais, ce que vous obtenez */
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .etape__livrable {
    align-self: start;
  }
}

/* Flèche entre deux étapes : vers le bas sur téléphone */
.frise-etapes {
  gap: 1.75rem;
}

.etape:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -1.6rem;
  transform: translateX(-50%);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--organisation);
}

.etape__livrable {
  margin-bottom: 0;
}

.frise-etapes__note {
  margin: 1.75rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--fond);
  border: 1px dashed #D3D2CE;
  font-weight: 600;
  color: var(--nuit);
}

.frise-etapes__note span[aria-hidden="true"] {
  margin-right: 0.35em;
}

.etiquettes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.etiquettes li {
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  background: #F1F1EF;
  font-size: 0.8125rem;
  color: var(--texte);
}

/* ---------- Page À propos ---------- */
.entete-page--profil {
  padding-bottom: 3rem;
}

.profil {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.profil__photo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;          /* la photo carrée devient ronde */
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.profil__texte .entete-page__surtitre {
  margin: 0;
}

.profil__nom {
  margin: 0.3rem 0 0.25rem;
  font-size: 2.25rem;
  line-height: 1.15;
}

.profil__role {
  margin: 0 0 1.1rem;
  font-size: 1.125rem;
  color: #EC9A55;
}

.profil__reperes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.profil__reperes li {
  padding: 0.35rem 0.8rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--nuit-discret);
  font-size: 0.9063rem;
}

.profil__reperes strong {
  color: #FFFFFF;
}

.profil__boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Bouton secondaire : contour clair, sur fond bleu nuit */
.bouton--secondaire {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  padding: calc(0.8rem - 2px) calc(1.6rem - 2px);
}

.bouton--secondaire:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Les évolutions du métier, reliées par des flèches */
.evolutions {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0;
  margin: 0.5rem 0 1.75rem;
  padding: 0;
}

.evolutions li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  color: var(--nuit);
}

.evolutions li:not(:last-child)::after {
  content: "→";
  margin: 0 0.45rem;
  font-weight: 400;
  color: var(--fleche);
}

.evolutions__etiquette {
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  background: #F1F1EF;
}

.evolutions__actuelle .evolutions__etiquette {
  background: var(--discovery-fonce);   /* orange foncé : contraste suffisant avec le texte blanc */
  color: #FFFFFF;
}

.section__titre--phrase {
  max-width: 24em;
  font-size: 1.5rem !important;
  line-height: 1.35;
}

/* Cartes de même largeur, sans carte élargie */
.cartes-icone--egales .carte-icone--vedette {
  grid-column: auto !important;
}

/* Cartes aux couleurs des volets */
.carte-icone--volet {
  border-top: 4px solid var(--c);
}

.carte-icone--volet .carte-icone__titre {
  color: var(--c-fonce) !important;
}

.lien-suite {
  margin: 1.25rem 0 0;
  font-weight: 600;
}

.lien-suite a {
  color: var(--delivery-fonce);
}

/* ---------- Pages d'exemple : extraits du guide ---------- */
.entete-page__surtitre {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nuit-discret);
}

.entete-page__surtitre + .entete-page__titre {
  margin-top: 0.4rem;
}

/* Colonne de lecture : environ 75 caractères par ligne */
.chapitre {
  max-width: 50rem;
}

.chapitre > p,
.chapitre > ul,
.chapitre > ol {
  margin: 0 0 1.25rem;
}

.chapitre > ul,
.chapitre > ol {
  padding-left: 1.4rem;
}

.chapitre li {
  margin-bottom: 0.5rem;
}

.chapitre h2 {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid #EDEDEB;
  font-size: 1.625rem;
  line-height: 1.25;
  color: var(--nuit);
}

.chapitre h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--nuit);
}

.chapitre .tableau {
  margin: 0 0 1.5rem;
}

.chapitre__schema {
  margin: 0.5rem 0 2rem;
}

.chapitre__retour {
  margin-top: 3rem !important;
  font-weight: 600;
}

.chapitre__retour a {
  color: var(--delivery-fonce);
}

.tableau__precision {
  font-weight: 400;
  color: var(--texte-discret);
}

/* Encadrés colorés, repris des callouts Notion */
.chapitre .encadre {
  margin: 0 0 1.75rem;
}

.encadre p + p,
.encadre p + ul,
.encadre ul + p {
  margin-top: 0.75rem;
}

.encadre ul,
.encadre ol {
  margin: 0;
  padding-left: 1.25rem;
}

.encadre li {
  margin-bottom: 0.35rem;
}

.encadre li:last-child {
  margin-bottom: 0;
}

.encadre ol {
  margin-top: 0.35rem;
}

p.encadre__titre {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--nuit);
}

.encadre__precision {
  font-weight: 400;
}

.encadre--essentiel {
  border-left-color: #C9A227;
  background: #FBF6E4;
}

.encadre--exemple {
  border-left-color: #448361;
  background: #EEF5F0;
}

.encadre--alerte {
  border-left-color: #C4554D;
  background: #FBEDEB;
}

.encadre--repere {
  border-left-color: var(--delivery);
  background: var(--delivery-clair);
}

.encadre--gabarit {
  border-left-color: var(--discovery);
  background: var(--discovery-clair);
}

/* Petit espace entre un émoji décoratif et le texte qui suit */
.chapitre span[aria-hidden="true"]:not(.jauge) {
  margin-right: 0.2em;
}

.chapitre__note {
  color: var(--texte-discret);
}

.chapitre__depliant {
  margin-top: 1.5rem;
}

.depliant__contenu {
  padding: 0 1.25rem 1rem 2.4rem;
}

.depliant__contenu ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Un document du guide présenté comme une page à part */
.fiche {
  padding: 1.5rem 1.25rem;
  border: 1px solid #E8E8E6;
  border-radius: 0.75rem;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(31, 41, 55, 0.06);
}

.fiche > p,
.fiche > ul {
  margin: 0 0 0.9rem;
}

.fiche > ul {
  padding-left: 1.4rem;
}

.fiche .tableau {
  margin-bottom: 1rem;
}

.fiche h3 {
  margin-top: 1.75rem;
}

h2.fiche__titre {
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
  font-size: 1.5rem;
}

.citation {
  margin: 0 0 1.5rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--organisation);
  color: var(--texte-discret);
}

.citation p {
  margin: 0;
  font-size: 1.125rem;
  font-style: italic;
}

.citation footer {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
}

/* Deux encadrés côte à côte sur grand écran */
.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.duo .encadre {
  margin: 0;
}

/* Les moments du parcours utilisateur */
.parcours {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
}

.parcours__moment {
  margin: 0 !important;
  padding: 0.9rem 1rem;
  border: 1px solid #E8E8E6;
  border-radius: 0.6rem;
  background: #F7F7F5;
}

.parcours__moment p {
  margin: 0 0 0.35rem;
}

.parcours__titre {
  font-weight: 700;
  color: var(--nuit);
}

p.parcours__statut {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--texte-discret);
}

.parcours__statut--traite {
  color: #2F6B4C !important;
}

/* Reporting : titres de rubrique dans le document */
.chapitre h2.fiche__section {
  margin: 2rem 0 0.75rem;
  padding-top: 0;
  border-top: none;
  font-size: 1.3125rem;
}

.encadre .encadre__titre-section {
  margin: 0 0 0.6rem;
  padding: 0;
  border: none;
  font-size: 1.1875rem;
  color: var(--nuit);
}

.encadre--neutre {
  border-left-color: var(--organisation);
  background: var(--organisation-clair);
}

.texte-vert {
  color: #2F6B4C;
}

.texte-rouge {
  color: #A3301F;
}

.trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.trio .encadre {
  margin: 0;
}

.apprentissage p {
  margin: 0 0 0.6rem;
}

.apprentissage .citation {
  margin: 0.75rem 0;
}

/* Jauge d'appétit consommé */
.jauge {
  display: inline-block;
  width: 6rem;
  height: 0.6rem;
  margin-right: 0.4rem;
  border-radius: 1rem;
  background: #E3E2DE;
  vertical-align: middle;
  overflow: hidden;
}

.jauge__niveau {
  display: block;
  height: 100%;
  background: var(--delivery);
}

/* Frise des statuts d'une initiative */
.frise {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
}

.frise__etape {
  margin: 0 !important;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  background: #F1F1EF;
  color: var(--texte-discret);
  font-size: 0.9375rem;
}

.frise__etape--discovery {
  background: var(--vision-clair);
  color: var(--vision-fonce);
}

.frise__etape--delivery {
  background: var(--delivery);
  color: #FFFFFF;
  font-weight: 700;
}

/* Checklist : cases à cocher dessinées, non interactives */
.checklist {
  list-style: none;
  padding-left: 0 !important;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid var(--organisation);
  border-radius: 0.25em;
}

.lectures li {
  margin-bottom: 0.6rem;
}

/* ---------- 8. Pied de page ---------- */
.pied {
  border-top: 1px solid #E5E5E3;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--texte-discret);
}

.pied p {
  margin: 0;
}

/* ---------- 9. Adaptation tablette et ordinateur ---------- */
/* Tablette (≥ 36rem) */
@media (min-width: 36rem) {
  /* À propos : photo à gauche du nom */
  .profil {
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
  }

  .profil__photo {
    flex: none;
    width: 10.5rem;
    height: 10.5rem;
  }

  .chiffres__liste {
    grid-template-columns: repeat(2, 1fr);   /* tablette : 2 × 2 */
  }

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

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

  .auteur {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* Écran moyen (≥ 48rem) : accroche et introduction plus grandes */
@media (min-width: 48rem) {
  .intro {
    padding-top: 4.5rem;
  }

  .section__titre {
    font-size: 2.5rem;
  }

  .cartes-icone--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cartes-icone--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .frise-etapes {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Deux colonnes : les flèches n'auraient pas de sens, on les masque */
  .etape:not(:last-child)::after {
    content: none;
  }

  .cartes-icone--3 .carte-icone--vedette {
    grid-column: span 2;
  }

  .entete-page__accroche {
    font-size: 1.625rem;
  }

  .inventaire {
    grid-template-columns: repeat(2, 1fr);   /* deux volets côte à côte, comme dans Notion */
    gap: 2.5rem 3rem;
  }

  .duo {
    grid-template-columns: 1fr 1fr;
  }

  .parcours,
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }

  .fiche {
    padding: 2rem 2.25rem;
  }

  .intro p:first-child {
    font-size: 1.375rem;
  }

  .hero {
    padding: 5.5rem 0 6rem;
  }

  .hero::before {
    width: 34rem;
    height: 34rem;
    top: -13rem;
    right: -10rem;
  }

  .hero::after {
    width: 22rem;
    height: 22rem;
    bottom: -9rem;
    right: -6rem;
  }

  .hero__marque {
    font-size: 0.9375rem;
  }

  .hero__titre {
    font-size: 2.75rem;
  }

  .hero__bandeau {
    font-size: 1.125rem;
  }
}

/* Grand écran (≥ 52rem) : schémas en ligne, légendes masquées, collaborations côte à côte */
@media (min-width: 52rem) {
  /* Introduction : trois blocs côte à côte */
  .intro__blocs {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  /* Schéma de structure : les trois volets côte à côte, boucle au-dessus */
  .structure__volets {
    grid-template-columns: 1fr 6.5rem 1fr 6.5rem 1fr;
    padding-left: 0;
    padding-top: 3.25rem;
  }

  /* La boucle part du milieu de Delivery et revient au milieu de Vision */
  .structure__retour {
    left: calc((100% - 13rem) / 6);
    right: calc((100% - 13rem) / 6);
    top: 1.25rem;
    bottom: auto;
    width: auto;
    height: 1.75rem;
    border: 2.5px solid var(--fleche);
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
  }

  .structure__retour::after {
    top: auto;
    right: auto;
    bottom: -9px;
    left: -7.25px;
    border-top: 9px solid var(--fleche);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: none;
  }

  .structure__retour span {
    top: -1.25px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .liaison {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 0.25rem;
    text-align: center;
  }

  .liaison__fleche::before {
    content: "→";
  }

  /* Principes : nom de la famille à gauche, principes en ligne */
  .principes {
    gap: 0.75rem;
  }

  .famille {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 0.6rem;
  }

  .famille__nom {
    margin: 0;
    display: flex;
    align-items: center;
  }

  .famille__liste {
    grid-template-columns: repeat(4, 1fr);
  }

  .famille__liste li {
    font-size: 0.875rem;
  }

  /* Sur grand écran, les légendes de l'image sont lisibles :
     le texte reste pour les lecteurs d'écran seulement */
  .capture__legendes {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .collaborations {
    grid-template-columns: repeat(3, 1fr);   /* les trois formes à égalité */
  }

  /* Tableaux : vraie grille sur grand écran */
  .tableau thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .tableau tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
  }

  .tableau th,
  .tableau td {
    display: table-cell;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #E8E8E6;
    vertical-align: top;
  }

  .tableau thead th {
    background: #F3F3F2;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--texte-discret);
  }

  .tableau tbody th {
    margin: 0;
    width: 14rem;
    font-size: 0.9688rem;
  }

  .tableau--etapes tbody th {
    width: 10rem;
  }

  /* CV : colonne latérale à gauche, comme dans le PDF */
  .cv {
    grid-template-columns: 17rem 1fr;
    grid-template-areas: "lateral principal";
    gap: 2.5rem;
    align-items: start;
  }

  .cv__principal {
    grid-area: principal;
  }

  .cv__lateral {
    grid-area: lateral;
  }

  .tableau td[data-libelle]::before {
    content: none;
  }

  .entete-page {
    padding: 2.5rem 0 3.5rem;
  }

  .entete-page__titre {
    font-size: 2.5rem;
  }
}

/* Ordinateur (≥ 62rem) */
@media (min-width: 62rem) {
  .chiffres__liste {
    grid-template-columns: repeat(4, 1fr);   /* ordinateur : 4 côte à côte */
  }

  .carte-chiffre__titre {
    flex-direction: column;
    gap: 0.35rem;
  }

  /* Missions : frise horizontale, formats sur trois colonnes, le premier sur deux */
  .frise-etapes {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Quatre colonnes : une flèche vers la droite entre deux étapes */
  .etape:not(:last-child)::after {
    content: "→";
    left: auto;
    right: -1.45rem;
    top: 1.5rem;
    bottom: auto;
    transform: none;
  }

  .cartes-icone--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .carte-icone--vedette {
    grid-column: span 2;
  }

  /* Accroche sur deux colonnes : le texte à gauche, les captures à droite */
  .hero__grille {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero__titre {
    font-size: 2.375rem;
  }

  .hero__vitrine {
    position: relative;
    margin-top: 0;
    aspect-ratio: 1 / 0.82;
  }

  .hero__capture--fond,
  .hero__capture--avant {
    position: absolute;
    width: 88%;
  }

  .hero__capture--fond {
    display: block;
    top: 0;
    right: 0;
    aspect-ratio: 1360 / 555;
    transform: rotate(2.5deg);
    opacity: 0.9;
  }

  .hero__capture--avant {
    bottom: 0;
    left: 0;
    transform: rotate(-1.5deg);
  }

  .reperes {
    margin-top: -2.75rem;
  }

  .reperes__liste {
    justify-content: space-around;
    padding: 1.5rem 2rem;
  }

  .reperes__nombre {
    font-size: 2.75rem;
  }
}

/* Moins d'animations pour qui les a désactivées */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
