/* My Team Office — charte graphique v1.1 (24/08/2026)
   Midnight Navy #081B2A · Champagne Gold #B78A4A · Warm Ivory #F6F1E8
   Graphite #25313B · Platinum #D2CCC2
   Répartition : 60 % ivoire · 25 % bleu nuit · 10 % graphite/platinum · 5 % or
   v1.1 : EB Garamond (titres) auto-hébergée ; plus aucune ressource externe. */

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-var-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-var-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-var-italic-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #081B2A;
  --gold: #B78A4A;          /* accent : réservé aux fonds sombres et aux éléments non textuels */
  --gold-texte: #8A6534;    /* champagne assombri : 4,7:1 sur ivoire, lisible en corps de texte */
  --ivory: #F6F1E8;
  --graphite: #25313B;
  --platinum: #D2CCC2;
  --paper: #FFFFFF;

  /* EB Garamond, la police de la charte, est auto-hébergée (latin + latin-ext,
     variable 400-800). Derrière elle, la pile choisit le serif le plus proche
     parmi les polices standard : Georgia sur Mac, iPhone, iPad et Windows ;
     Noto Serif sur Android. */
  --serif: 'EB Garamond', Georgia, 'Iowan Old Style', Palatino, 'Palatino Linotype',
           'Book Antiqua', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
          Arial, sans-serif;

  /* x = hauteur de l'étoile : unité de la zone de protection */
  --x: 1.5rem;
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

/* ---- Accès clavier ---------------------------------------------------- */

.saut-au-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.saut-au-contenu:focus { left: 0; }

/* La cible du lien d'évitement reçoit le focus, sans dessiner d'anneau à la souris. */
main:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--gold-texte);   /* 4,68:1 sur ivoire — WCAG 1.4.11 */
  outline-offset: 3px;
}
/* Sur fond bleu nuit, c'est l'or pur qui tient le contraste (5,62:1). */
.principe :focus-visible,
.pied :focus-visible { outline-color: var(--gold); }

/* ---- Trame ------------------------------------------------------------ */

.enveloppe {
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
}
.enveloppe--etroite { width: min(100% - 2.5rem, 44rem); }

section { padding-block: clamp(3.5rem, 9vw, 7rem); }

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

.entete {
  padding-block: calc(var(--x) * 1.5);
  border-bottom: 1px solid var(--platinum);
  text-align: center;
}
.entete__logo { display: inline-block; line-height: 0; }
.entete__logo img { width: 220px; height: auto; } /* taille minimale charte : 220 px */

/* ---- Titres ----------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

/* EB Garamond a l'œil plus petit que Georgia : les corps serif montent d'un cran
   pour garder la même présence optique. */
h1 {
  font-size: clamp(2.5rem, 6.5vw, 3.9rem);
  line-height: 1.14;
  margin: 0 0 1.5rem;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 1.25rem;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

/* Le saut de ligne dessiné pour le grand écran gêne le repli naturel sur mobile.
   ⚠️ L'espace avant la balise est indispensable : `display:none` supprime le saut,
   pas l'espace — sans lui les deux mots se collent. */
@media (max-width: 40rem) { .saut-large { display: none; } }

p { margin: 0 0 1.25rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-texte); }

strong { color: var(--navy); font-weight: 600; }

/* ---- Ouverture -------------------------------------------------------- */

/* ---- Axe central ------------------------------------------------------
   Le cerveau « aime les choses simples » : moins de charge cognitive, plus de
   fluidité, plus de confiance (corpus neuromarketing, module 1). Un seul axe,
   tout aligné dessus, blocs de texte à mesure constante. */

.centre { text-align: center; }
.centre p { margin-inline: auto; }

/* La prose longue reste alignée à gauche — du texte centré sur plusieurs lignes
   fatigue la lecture — mais sa colonne est, elle, centrée dans la page. */
.colonne {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
/* Au-delà de quatre lignes, du texte centré fatigue : on repasse à gauche. */
.colonne--longue { text-align: left; max-width: var(--measure); }

.ouverture { padding-block: clamp(5rem, 13vw, 10rem) clamp(4rem, 10vw, 8rem); }

.chapeau {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 33rem;
}
.chapeau--court { max-width: 30rem; margin-bottom: calc(var(--x) * 2.25); }

.etoile {
  display: block;
  width: 38px;
  height: auto;
  margin: 0 auto calc(var(--x) * 1.5);
}

/* ---- Signature de marque, rendue saillante --------------------------- */

.signature-cle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: calc(var(--x) * 2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}
.signature-cle i { font-style: normal; color: var(--gold); font-size: 0.7rem; }

/* ---- Les trois bénéfices --------------------------------------------- */

.benefices__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem calc(var(--x) * 2.5);
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  text-align: center;
}
.benefices__liste > li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  justify-items: center;
  align-content: start;
}
/* Repli pour les moteurs sans `subgrid` : une hauteur de titre commune suffit
   à faire démarrer les trois paragraphes sur la même ligne. */
@supports not (grid-template-rows: subgrid) {
  .benefices__liste > li { display: flex; flex-direction: column; align-items: center; }
  .benefices__liste h3 { min-height: 3.4em; display: flex; align-items: center; }
}
.benefices__liste p { font-size: 0.9688rem; max-width: 20rem; }
.benefices__liste h3 { margin-bottom: 0; }

.benefices__mot {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-texte);
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--platinum);
  width: 3.5rem;
}

@media (max-width: 52rem) {
  .benefices__liste { grid-template-columns: 1fr; gap: calc(var(--x) * 2); }
  .benefices__liste > li {
    grid-row: auto;
    grid-template-rows: auto;   /* ⚠️ indispensable : sans cette ligne, `subgrid`
                                   survit avec UNE seule rangée et les trois enfants
                                   s'empilent au même pixel (constaté le 23/08). */
  }
}

/* ---- Le panneau de vérification -------------------------------------
   Raison d'être première de la page : rassurer qui reçoit un message de
   l'équipe. Traitement distinct du reste, pour se trouver sans se chercher. */

.verifier { padding-block: 0 clamp(3.5rem, 9vw, 7rem); }

.panneau {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  background: var(--paper);
  border: 1px solid var(--graphite);
  text-align: center;
}
.panneau__intro {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--graphite);
  margin: 0 auto;
}
.panneau__pied {
  margin: calc(var(--x) * 1.5) auto 0;
  padding-top: calc(var(--x) * 1.25);
  border-top: 1px solid var(--platinum);
  font-size: 0.9375rem;
}
.panneau__pied a { display: inline-block; padding-block: 4px; }

.verifier__liste {
  margin: calc(var(--x) * 1.75) auto 0;
  max-width: 34rem;
  text-align: left;
}
.verifier__liste dt {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: calc(var(--x) * 1.25);
}
.verifier__liste dt:first-child { margin-top: 0; }
.verifier__liste dd { margin: 0.35rem 0 0; font-size: 0.9688rem; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--navy);
}

/* ---- L'exigence : quatre engagements, deux par deux ------------------- */

.exigence { border-top: 1px solid var(--platinum); }

.engagements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--x) * 2.25) calc(var(--x) * 3);
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.engagements h3 { margin-bottom: 0.6rem; }
.engagements p { font-size: 0.9688rem; max-width: 24rem; }
.engagements > li::before {
  content: "\2726" / "";
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 46rem) {
  .engagements { grid-template-columns: 1fr; gap: calc(var(--x) * 2); }
}

/* ---- Le principe ----------------------------------------------------- */

.principe { background: var(--navy); color: var(--platinum); }
.principe .colonne p:last-child { margin-bottom: 0; }
.principe h2, .principe h3 { color: var(--ivory); }
.principe p { color: var(--platinum); }
.principe strong { color: var(--ivory); }
.principe a { color: var(--ivory); }
.principe a:hover { color: var(--gold); }


/* ---- La marche à suivre ----------------------------------------------- */

.etapes {
  list-style: none;
  counter-reset: etape;
  margin: calc(var(--x) * 2) auto 0;
  padding: 0;
  max-width: var(--measure);
  text-align: left;
}
.etapes > li {
  counter-increment: etape;
  padding-left: 3.25rem;
  position: relative;
  margin-bottom: calc(var(--x) * 1.5);
}
.etapes > li:last-child { margin-bottom: 0; }
.etapes > li::before {
  content: counter(etape) ".";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-texte);
}

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

.pied {
  background: var(--navy);
  color: var(--platinum);
  padding-block: calc(var(--x) * 2.5);
  font-size: 0.9375rem;
}
.pied a { color: var(--platinum); }
.pied a:hover { color: var(--gold); }
.pied__logo { width: 180px; height: auto; margin-bottom: calc(var(--x) * 1.5); } /* taille minimale charte : 180 px */
.pied { text-align: center; }
.pied__grille {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--x) * 1.25);
}
.pied__logo { margin-inline: auto; }
.pied__liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.25rem 1.5rem; }

/* WCAG 2.2 — 2.5.8 Taille de cible (minimum) : 24 px. Les liens isolés d'un pied de page
   ne bénéficient pas de l'exception « lien dans une phrase ». */
.pied__liens a,
.pied__mention a { display: inline-block; padding-block: 4px; }
.pied__signature {
  display: flex; justify-content: center; gap: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.5rem 0 0;
}
.pied__mention { margin: 0; color: rgba(210, 204, 194, 0.75); }

/* ---- Pages de texte long ---------------------------------------------- */

.cloture { border-top: 1px solid var(--platinum); }

.contact { margin-top: calc(var(--x) * 2.25); font-size: 0.9375rem; }
.contact a { display: inline-block; padding-block: 4px; }
.contact a { color: var(--navy); }

.pied .pied__mention a { color: var(--ivory); }

.texte h2 { margin-top: calc(var(--x) * 2.25); }
.texte h2:first-of-type { margin-top: 0; }
.texte ul { max-width: var(--measure); padding-left: 1.25rem; }
.texte li { margin-bottom: 0.5rem; }
.texte__date { color: var(--graphite); font-size: 0.9375rem; }

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