/* ──────────────────────────────────────────────────────────────────────────
   habillage-site.css — la feuille propre à www.sillage-evaluation.com
   ──────────────────────────────────────────────────────────────────────────

   Déposée par `deployer.py` en `mu-habillage-site.css` et chargée par le
   mu-plugin APRÈS la feuille commune : elle ne redéfinit que ce qui distingue
   ce site, jamais ne recopie la commune.

   Le parti pris (cabinet.json, `site.gabarit` et `marque.ton`) : deux colonnes
   quand la page s'y prête, des filets fins entre les sections, des titres en
   Source Serif 4 sur fond bleu nuit en en-tête, un texte en Source Sans 3 sur
   fond froid. Les offres sont des listes descriptives, pas des cartes. Rien ne
   brille : c'est un cabinet qui cite la mesure et assume la limite, et la
   feuille doit le dire avant le texte.

   Les trois couleurs viennent de `apparence` et sont déjà substituées dans la
   feuille commune : --td-orange = bleu nuit #16324F, --td-orange-clair =
   cuivre #C2703D, --td-orange-sombre = texte #101D28. On les réexprime ici
   sous leur vrai nom pour que les règles se lisent.

   ⚠ Aucun sélecteur de thème. Rien que les classes `.td-*` produites par
   `outils/publier.py`, plus body et les titres pour la typographie. Changer de
   thème ne doit rien déshabiller.
   ────────────────────────────────────────────────────────────────────────── */

/* Polices servies par le site lui-même (2026-10-28) : l'@import vers Google Fonts envoyait
   l'adresse IP du visiteur à Google avant tout choix. Sous-ensembles latin et latin-ext,
   fichiers dans mu-plugins/polices/ (licence OFL) — outil 06-METHODE-SITE/outils/polices_locales.py. */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-sans-3-italic-latin-ext-0.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-sans-3-italic-latin-1.woff2) format('woff2');
  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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-sans-3-normal-latin-ext-2.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-sans-3-normal-latin-3.woff2) format('woff2');
  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: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-sans-3-normal-latin-ext-2.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-sans-3-normal-latin-3.woff2) format('woff2');
  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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-serif-4-italic-latin-ext-4.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-serif-4-italic-latin-5.woff2) format('woff2');
  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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-serif-4-normal-latin-ext-6.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-serif-4-normal-latin-7.woff2) format('woff2');
  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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-serif-4-normal-latin-ext-6.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/mu-plugins/polices/source-serif-4-normal-latin-7.woff2) format('woff2');
  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;
}

:root {
  --se-nuit:        var(--td-orange);          /* #16324F */
  --se-cuivre:      var(--td-orange-clair);    /* #C2703D */
  --se-encre:       var(--td-orange-sombre);   /* #101D28 */
  --se-fond:        #F2F5F8;                   /* le fond froid de la marque */
  --se-fond-2:      #E6EBF1;
  --se-filet:       #C9D2DC;
  --se-pierre:      #EEF2F6;                   /* le texte sur la nuit */
  --se-pierre-mate: #B5C1CE;

  --se-serif: "Source Serif 4", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --se-sans:  "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Le texte lit à 46rem dans la feuille commune ; les zigzags (offres,
     équipe) ont droit à deux colonnes, donc à une mesure plus large. */
  --se-largeur-deux-colonnes: 64rem;
}

/* ───────────── typographie ─────────────────────────────────────────────── */

body {
  font-family: var(--se-sans);
  background: var(--se-fond);
  color: var(--se-encre);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--se-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--se-nuit);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }

.td-page a { color: var(--se-nuit); text-decoration-color: var(--se-cuivre); text-underline-offset: 0.15em; }
.td-page a:hover { color: var(--se-cuivre); }

/* ───────────── le héros : bleu nuit, titre serif, pas de dégradé ─────── */

.td-hero {
  background: var(--se-nuit);
  color: var(--se-pierre);
  border-bottom: 3px solid var(--se-cuivre);
}
.td-hero h1, .td-hero h2, .td-hero .td-hero__titre { color: var(--se-pierre); font-weight: 400; }
.td-hero .td-chapeau, .td-hero p { color: var(--se-pierre-mate); font-size: 1.1rem; }
.td-hero .td-chapeau strong { color: var(--se-pierre); }
.td-hero .td-hero__surtitre, .td-hero [class*="surtitre"] {
  font-family: var(--se-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--se-cuivre);
}

/* ───────────── les boutons : un plein cuivre, un creux pierre ─────────── */

.td-boutons a { border-radius: 2px; font-family: var(--se-sans); font-weight: 600; letter-spacing: 0.02em; }
.td-boutons a[class*="plein"], .td-boutons .td-bouton--plein { background: var(--se-cuivre); color: #fff; border-color: var(--se-cuivre); }
.td-boutons a[class*="plein"]:hover { background: #A85C2E; border-color: #A85C2E; }
.td-hero .td-boutons a[class*="creux"], .td-hero .td-bouton--creux { color: var(--se-pierre); border-color: var(--se-pierre-mate); background: transparent; }
.td-page .td-boutons a[class*="creux"] { color: var(--se-nuit); border-color: var(--se-nuit); background: transparent; }

/* ───────────── les filets fins entre sections ─────────────────────────── */

.td-page h2 {
  border-top: 1px solid var(--se-filet);
  padding-top: 1.6rem;
  margin-top: 2.4rem;
}
.td-hero h2, .td-bandeau h2, .td-cta h2, .td-zigzag h2 { border-top: 0; padding-top: 0; margin-top: 0; }

/* ───────────── les offres et l'équipe : une liste descriptive ──────────
   Le zigzag est la forme « deux colonnes » du site : un titre serif et un
   texte à gauche, le portrait ou rien à droite, un filet entre chaque rangée.
   Sans image, la rangée garde ses deux colonnes : titre d'un côté, texte de
   l'autre — c'est ce que « liste descriptive » veut dire ici. */

.td-zigzag-bloc .td-inner { max-width: var(--se-largeur-deux-colonnes); }
.td-zigzag__ligne {
  border-top: 1px solid var(--se-filet);
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
}
.td-zigzag__ligne:first-child { border-top: 0; }
.td-zigzag__media { grid-column: 1; }
.td-zigzag__media img { border-radius: 2px; border: 1px solid var(--se-filet); background: var(--se-fond-2); }
.td-zigzag__texte { grid-column: 2; }
.td-zigzag__ligne:not(:has(.td-zigzag__media)) .td-zigzag__texte { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
.td-zigzag__ligne:not(:has(.td-zigzag__media)) .td-zigzag__titre { grid-column: 1; margin: 0; }
.td-zigzag__ligne:not(:has(.td-zigzag__media)) .td-zigzag__texte > :not(.td-zigzag__titre) { grid-column: 2; }
.td-zigzag__titre { font-size: 1.35rem; margin-top: 0; }
.td-zigzag__texte em { color: var(--se-cuivre); font-style: normal; font-weight: 600; }

@media (max-width: 720px) {
  .td-zigzag__ligne, .td-zigzag__ligne:not(:has(.td-zigzag__media)) .td-zigzag__texte { grid-template-columns: 1fr; gap: 0.8rem; }
  .td-zigzag__media, .td-zigzag__texte,
  .td-zigzag__ligne:not(:has(.td-zigzag__media)) .td-zigzag__titre,
  .td-zigzag__ligne:not(:has(.td-zigzag__media)) .td-zigzag__texte > :not(.td-zigzag__titre) { grid-column: 1; }
}

/* ───────────── cartes et étapes : sobres, filets, pas d'ombre ─────────── */

.td-carte, .td-etape {
  background: #fff;
  border: 1px solid var(--se-filet);
  border-radius: 2px;
  box-shadow: none;
}
.td-carte--accent { border-top: 3px solid var(--se-cuivre); background: #fff; color: var(--se-encre); }
.td-carte--accent h3 { color: var(--se-nuit); }
.td-etape { border-left: 3px solid var(--se-nuit); }
.td-etape h3::before, .td-etape [class*="numero"] { color: var(--se-cuivre); font-family: var(--se-serif); }

/* ───────────── bandeau et appel : la nuit, puis le fond froid ─────────── */

.td-bandeau {
  background: var(--se-fond-2);
  color: var(--se-encre);
  border-top: 1px solid var(--se-filet);
  border-bottom: 1px solid var(--se-filet);
}
.td-bandeau h3 { color: var(--se-nuit); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--se-sans); }
.td-bandeau strong { color: var(--se-nuit); }

.td-cta { background: var(--se-nuit); color: var(--se-pierre); }
.td-cta h2 { color: var(--se-pierre); font-weight: 400; }
.td-cta p { color: var(--se-pierre-mate); }

/* ───────────── le blog : vignettes sobres, titres serif ───────────────── */

.td-articles .wp-block-post-title, .td-articles h3 { font-family: var(--se-serif); font-weight: 600; }
.td-articles .wp-block-post-date, .td-articles .wp-block-post-terms { font-family: var(--se-sans); color: var(--se-cuivre); }
.td-articles img { border-radius: 2px; }

/* ───────────── tableaux (contact) ─────────────────────────────────────── */

.td-page table { border-collapse: collapse; width: 100%; }
.td-page th, .td-page td { border-top: 1px solid var(--se-filet); padding: 0.7rem 0.5rem; vertical-align: top; text-align: left; }
.td-page th { font-family: var(--se-sans); font-weight: 600; color: var(--se-nuit); border-top: 0; }

/* ───────────── portraits de l'équipe (2026-10-26) ─────────────
   Les monogrammes des consultants : ronds, à la même taille, quel que soit le
   bloc qui les porte. Ciblés par leur dossier de versement, pour laisser les
   autres images du site tranquilles. */
.td-page img[src*="/wp-content/uploads/sillage-evaluation/"] {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 0 1rem;
}
.td-carte img[src*="/wp-content/uploads/sillage-evaluation/"] { width: 120px; height: 120px; }
