/* ============================================================
   GitFit — gabarit des pages SEO
   /outils/, /modeles/, /comparatif/, /questions/

   Chargé APRÈS styles.css, dont il réutilise .wrap, .kicker, .nav, .brand,
   .footer, .checklist, .store-badge et .cta. Ici, seulement ce qui manque.

   Pourquoi ces règles :
   - <html lang="fr" data-mode="coach" data-lang="fr"> donne le thème sombre.
     Ces pages n'ont pas de bascule coach/athlète ni FR/EN.
   - Ni site.js ni boot.js : site.js plante sans le téléphone de l'accueil,
     et il n'y a pas de textes data-t à remplacer ici.
   - Pas de classe .reveal : c'est site.js qui la révèle. boot.js en moins,
     elle resterait inoffensive, mais une page copiée sur l'accueil finirait
     avec les deux et tout son contenu invisible en cas d'erreur.
   - Chemins absolus partout (/styles.css, jamais styles.css) : une page en
     sous-dossier résoudrait un chemin relatif à la mauvaise adresse.
   - Aucun script en ligne ni attribut onclick : la CSP les bloque. Seul le
     JSON-LD (un bloc de données) reste dans le HTML.

   En-tête et pied : à copier tels quels. test-site.mjs compare chaque page
   à ces deux blocs, pour qu'un lien corrigé ici le soit partout.

   <!-- GABARIT:ENTETE -->
   <header class="nav">
     <div class="wrap nav-inner">
       <a class="brand" href="/">
         <img src="/assets/icon-60.png" alt="" width="30" height="30" />
         GitFit
       </a>
       <nav class="nav-links" aria-label="Navigation principale">
         <a href="/outils/">Outils</a>
         <a href="/modeles/">Modèles Excel</a>
         <a href="/comparatif/excel/">Comparatifs</a>
         <a href="/questions/">Questions</a>
         <a class="nav-login" href="/app">Se connecter</a>
         <a class="nav-cta" href="/outils/excel/">Essayer avec mon fichier</a>
       </nav>
     </div>
   </header>
   <!-- /GABARIT:ENTETE -->

   <!-- GABARIT:PIED -->
   <footer class="footer">
     <div class="wrap">
       <div class="footer-grid">
         <div>
           <p class="wordmark">Git<span>Fit</span></p>
           <p class="footer-tag">Coaching, séances, nutrition et running, pour athlètes et coachs.</p>
           <p class="footer-made">Fait à Montréal</p>
         </div>
         <div class="footer-navs">
           <nav class="footer-links" aria-label="Liens de pied de page">
             <a href="/#features">Fonctionnalités</a>
             <a href="/#tarifs">Tarifs</a>
             <a href="/privacy.html">Confidentialité</a>
             <a href="/terms.html">CGU</a>
             <a href="/delete-account.html">Supprimer mon compte</a>
             <a href="mailto:contact@gitfitapp.com">Contact</a>
           </nav>
           <nav class="footer-links" aria-label="Ressources gratuites">
             <a href="/outils/excel/">Dépose ton Excel</a>
             <a href="/outils/">Outils gratuits</a>
             <a href="/modeles/">Modèles Excel</a>
             <a href="/comparatif/excel/">Excel ou une app</a>
             <a href="/questions/">Questions fréquentes</a>
             <a href="https://www.instagram.com/gitfitapp/" target="_blank" rel="noopener">Instagram</a>
           </nav>
         </div>
       </div>
       <p class="footer-legal">© 2026 GitFit. Tous droits réservés</p>
     </div>
   </footer>
   <!-- /GABARIT:PIED -->
   ============================================================ */

/* Listes déroulantes, cases et barres de défilement en sombre elles aussi. */
html { color-scheme: dark; }

/* Poppins pour tout sur ces pages (brief) : styles.css garde son DM Mono pour
   l'accueil, et ces pages ne chargent plus cette police. */
.kicker,
.footer-made,
.footer-legal { font-family: var(--sans); }

:root { --pg-text: #c8c8cc; }

/* ---------- Haut de page : centré, un titre, une phrase, un bouton ---------- */
.pg-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  text-align: center;
}
.pg-hero::before {
  /* Même halo que l'accueil, centré au lieu d'être derrière le téléphone. */
  content: "";
  position: absolute;
  left: 50%; top: -220px;
  width: 720px; height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 94, 26, 0.13), transparent 72%);
  pointer-events: none;
}
.pg-hero .wrap { position: relative; max-width: 820px; }
.pg-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 14px;
  overflow-wrap: break-word;
  /* Sans lui, un titre centré laisse un mot seul sur sa dernière ligne. */
  text-wrap: balance;
}
.pg-hero h1 em { font-style: normal; color: var(--accent); }
.pg-lead {
  max-width: 580px;
  margin: 18px auto 0;
  font-size: 19px;
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- Boutons ---------- */
.pg-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pg-btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.pg-btn-ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.pg-btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent-press); }

/* ---------- Sections ---------- */
.pg-section { padding: 56px 0; }
/* L'outil suit son titre de près : c'est lui que la page vient montrer. */
.pg-section.pg-outil { padding-top: 0; }
.pg-head {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}
.pg-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
/* Sans balance, ces phrases centrées laissaient un mot seul sur la ligne 2 à 400 px. */
.pg-head p { margin-top: 10px; color: var(--muted); text-wrap: balance; }

/* ---------- Cartes ---------- */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.pg-card {
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
a.pg-card { transition: border-color 0.15s ease, transform 0.15s ease; }
a.pg-card:hover { border-color: var(--accent); transform: translateY(-2px); }
/* Quatre cartes de front. En auto-fit, la quatrième tombait seule sur sa ligne
   à 1280 px : la largeur utile ne laisse pas quatre colonnes de 260 px. */
.pg-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* La carte qui passe avant les autres : l'outil Excel, le cœur du produit. */
.pg-card-large { grid-column: 1 / -1; border-color: var(--accent); text-align: center; }
@media (max-width: 1100px) {
  .pg-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pg-cards-4 { grid-template-columns: minmax(0, 1fr); }
}
.pg-card h2,
.pg-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.pg-card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.pg-card .pg-btn { margin-top: 16px; }
.pg-card .checklist { margin-top: 16px; gap: 10px; }

/* ---------- Tableaux ---------- */
/* Le défilement reste dans le cadre : un tableau trop large ne doit jamais
   élargir la page, que body rognerait sans prévenir. */
.pg-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.pg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.pg-table caption {
  padding: 16px 18px 0;
  text-align: left;
  font-size: 13.5px;
  color: var(--muted);
}
.pg-table th,
.pg-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.pg-table thead th { font-weight: 700; color: var(--ink); }
.pg-table tbody th { font-weight: 600; color: var(--ink); }
.pg-table td { color: var(--pg-text); }
.pg-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Comparatifs ---------- */
/* Largeurs fixes : en automatique, la ligne « Importer un fichier » écrasait
   les deux autres colonnes sur tout le tableau. */
.pg-compare { table-layout: fixed; }
.pg-compare thead th:first-child { width: 24%; }
/* L'orange suit GitFit, pas une position : sur /comparatif/excel/, GitFit est à
   droite et « Excel seul » ne doit pas avoir l'air de l'offre mise en avant. */
.pg-compare thead th.pg-col-gitfit { color: var(--accent-press); }
/* Quatre colonnes : le repère est la seule à porter une phrase. */
.pg-facteurs thead th:first-child { width: 16%; }
.pg-facteurs thead th:last-child { width: 46%; }
/* Un petit tableau ne s'étire pas sur toute la largeur de la page. */
.pg-table-court { max-width: 440px; margin: 0 auto; }

/* ---------- Notes, sources, rappel santé ---------- */
.pg-note {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.pg-note a,
.pg-warn a,
.pg-faq a { color: var(--accent-press); font-weight: 500; text-decoration: underline; }
/* Rappel de consulter un médecin : Apple a refusé une version sans citations,
   ce rappel doit se voir, pas se perdre en bas de page. */
.pg-warn {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--pg-text);
}

/* Dans le haut centré, ce rappel restait centré à côté de sa barre orange : partout
   ailleurs, il est calé à gauche. */
.pg-hero .pg-warn { text-align: left; }

/* ---------- Questions (<details> : aucun script, donc rien à bloquer) ---------- */
.pg-faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.pg-faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.pg-faq summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px; font-weight: 500; line-height: 1;
  color: var(--accent);
}
.pg-faq details[open] summary::after { content: "\2212"; }
.pg-faq details p { padding: 0 20px 18px; font-size: 15.5px; color: var(--pg-text); }
summary:focus-visible,
.pg-field input:focus-visible,
.pg-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Calculateurs ---------- */
.pg-form {
  display: grid; gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.pg-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.pg-field { display: grid; gap: 6px; align-content: start; font-size: 14px; font-weight: 600; }
.pg-field input,
.pg-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  /* 16 px : en dessous, iOS zoome la page à chaque champ touché. */
  font-size: 16px;
  font-weight: 400;
}
.pg-result {
  display: grid; gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.pg-result[hidden] { display: none; }
.pg-figure {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--accent);
}

/* Deux colonnes fixes : en auto-fit, le cadre en prenait trois à 1280 px et le
   champ Poids restait seul sur sa ligne. */
.pg-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Les listes d'activité et d'objectif ont des libellés trop longs pour une
   demi-colonne à 400 px : tronqués, on ne saurait plus lequel choisir. */
.pg-field-large { grid-column: 1 / -1; }
/* Une valeur et son unité (kg ou lb) dans la même colonne. */
.pg-unite { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 6px; }
.pg-form .pg-btn { width: 100%; }
.pg-astuce { font-size: 13.5px; font-weight: 400; color: var(--muted); }
.pg-astuce a { color: var(--accent-press); font-weight: 500; text-decoration: underline; }
.pg-erreur {
  padding: 12px 14px;
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink);
}
.pg-erreur[hidden] { display: none; }
/* L'en-tête reste collé en haut : sans marge, il couvrirait un résultat long. */
.pg-erreur,
.pg-result { scroll-margin-top: 84px; }
.pg-label { font-size: 14px; font-weight: 600; color: var(--muted); }
/* Trois chiffres de même importance : ils restent en colonnes jusqu'à 400 px. */
.pg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.pg-stat {
  padding: 12px 6px;
  background: var(--surface-alt);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.pg-stat b {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.pg-stat .pg-macro { display: block; font-weight: 600; color: var(--ink); }
.pg-result .pg-note { margin-top: 10px; }
.pg-result .pg-table-wrap { margin-top: 12px; background: var(--surface-alt); }
.pg-notes { display: grid; gap: 6px; margin-top: 10px; text-align: left; }
.pg-notes[hidden] { display: none; }
.pg-notes li {
  padding: 10px 12px;
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  color: var(--pg-text);
}

/* ---------- Sources : chaque référence s'ouvre d'un clic ---------- */
.pg-sources {
  display: grid; gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--muted);
}
.pg-sources a { color: var(--accent-press); font-weight: 500; text-decoration: underline; }

/* ---------- Modèles à télécharger ---------- */
/* Colonne flexible : le bouton reste en bas, quelle que soit la longueur du texte. */
.pg-card-dl { display: flex; flex-direction: column; }
.pg-card-dl .pg-btn { margin-top: auto; }
.pg-card-dl p:last-of-type { margin-bottom: 16px; }
/* 13 px : à 14, « 3 séances · 18 exercices » passait sur deux lignes en carte étroite. */
.pg-card p.pg-chiffres { font-size: 13px; color: var(--accent-press); }

/* ---------- Outil « dépose ton Excel » ---------- */
/* Le dépôt marche sur toute la page (outil.js) : le cadre montre où viser, et
   s'allume dès qu'un fichier entre dans la fenêtre. */
.pg-depot {
  display: grid; justify-items: center; gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 24px;
  background: var(--surface);
  border: 2px dashed var(--hairline-strong);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pg-depot.is-survol { border-color: var(--accent); background: var(--accent-soft); }
.pg-depot-icone { color: var(--accent); }
.pg-depot h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.pg-depot p { font-size: 15px; color: var(--muted); }
.pg-depot .pg-actions { margin-top: 14px; }
.pg-etat { margin-top: 20px; text-align: center; font-weight: 600; color: var(--accent-press); }
.pg-etat[hidden] { display: none; }
.pg-erreur-outil { max-width: 760px; margin: 20px auto 0; }

.pg-lu {
  display: grid; gap: 16px;
  max-width: 960px;
  margin: 28px auto 0;
  scroll-margin-top: 84px;
  /* Reçoit le focus après la lecture : pas de cadre pour ça, le titre suffit. */
  outline: none;
}
.pg-lu[hidden] { display: none; }
.pg-lu .pg-stats { margin-top: 0; }
.pg-lu .pg-stat { text-align: center; }
.pg-lu .pg-note { margin-top: 0; }
.pg-lu h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.pg-lu-tete { text-align: center; }
.pg-lu-tete .kicker { overflow-wrap: anywhere; }
.pg-lu-tete h2 {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.pg-lu-liste { display: grid; gap: 8px; }
.pg-lu-suite { justify-self: center; margin-top: 8px; }
.pg-lu-suite[hidden] { display: none; }

/* Deux niveaux repliables : la semaine, puis la séance à l'intérieur. */
.pg-semaine,
.pg-seance {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.pg-semaine > .pg-seance { margin: 0 12px 10px; background: var(--surface-alt); }
.pg-semaine > summary,
.pg-seance > summary {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 2px 14px;
  padding: 13px 16px;
  list-style: none;
  cursor: pointer;
}
.pg-semaine > summary::-webkit-details-marker,
.pg-seance > summary::-webkit-details-marker { display: none; }
.pg-lu-titre { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.pg-lu-titre::before {
  content: "+";
  display: inline-block;
  width: 18px;
  font-weight: 500;
  color: var(--accent);
}
details[open] > summary > .pg-lu-titre::before { content: "\2212"; }
.pg-lu-compte { font-size: 13.5px; color: var(--muted); }
.pg-lu-desc { font-size: 14px; color: var(--muted); }
.pg-lu-verif > .pg-lu-desc { text-align: center; text-wrap: balance; }
.pg-seance > .pg-lu-desc,
.pg-seance > .pg-lu-alerte { padding: 0 16px 10px; }

.pg-seance .pg-table-wrap { margin: 0 12px 12px; background: var(--surface); }
.pg-lignes { font-size: 14.5px; }
.pg-lignes th,
.pg-lignes td { padding: 10px 14px; }
.pg-lignes thead th { font-size: 13px; color: var(--muted); }
.pg-lignes tbody th { width: 46%; }
.pg-lignes td { white-space: nowrap; }
/* Une case vide se voit : rien de lu, et non une colonne oubliée. */
.pg-lignes td:empty::after { content: "–"; color: var(--muted-soft); }
.pg-lu-nom,
.pg-lu-petit,
.pg-lu-alerte { display: block; overflow-wrap: anywhere; }
.pg-lu-petit { font-size: 13px; font-weight: 400; color: var(--muted); }
.pg-lu-alerte { font-size: 13px; font-weight: 500; color: var(--accent-press); }
.pg-lu-verif { display: grid; gap: 8px; }
.pg-lu-points { display: grid; }
.pg-lu-points .pg-notes { margin-top: 2px; }
.pg-lu-points li { overflow-wrap: anywhere; }
.pg-semaine > .pg-lu-points { padding: 0 12px 12px; }
.pg-lu-rien,
.pg-lu-suite-gitfit {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-align: center;
}
.pg-lu-suite-gitfit { border-color: var(--accent); }
.pg-lu-suite-gitfit p { margin-top: 8px; }
.pg-lu-rien p,
.pg-lu-suite-gitfit p { font-size: 15px; color: var(--muted); text-wrap: balance; }
.pg-lu-suite-gitfit .pg-actions { margin-top: 16px; }

/* ---------- La mini séance ---------- */
/* Une porte fermée : la page ne s'alourdit pas pour qui vient avec son fichier. Elle
   est cachée dans le HTML (outil.js la montre) : sans JavaScript, elle mènerait à un
   bouton mort. */
.pg-mini { max-width: 600px; margin: 20px auto 0; scroll-margin: 84px 0 16px; text-align: center; }
/* balance : à 360 px, le libellé passe sur deux lignes, sans laisser un mot seul. */
.pg-mini > summary { text-wrap: balance; }
.pg-mini > summary::before { content: "+"; flex: none; margin-right: 8px; font-size: 20px; font-weight: 500; line-height: 1; color: var(--accent); }
.pg-mini[open] > summary::before { content: "\2212"; }
.pg-mini .pg-form { margin-top: 14px; }
.pg-form .pg-warn { margin: 0; text-align: left; }
.pg-mini .pg-form > .pg-note { margin: -8px 0 0; text-align: left; }
.pg-choix { min-width: 0; margin: 0; padding: 0; border: 0; }
.pg-choix legend { margin: 0 auto 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.pg-choix > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pg-choix label { position: relative; display: grid; }
/* Le vrai bouton radio reste là, transparent : le clavier et les lecteurs d'écran
   s'en servent, et aucun script ne tient l'état du choix. */
.pg-choix input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pg-choix span {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 8px;
  background: var(--surface-alt);
  border: 1.5px solid var(--hairline-strong);
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pg-choix input:hover + span { border-color: var(--accent); }
.pg-choix input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-press); }
.pg-choix input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-lu .pg-lu-telecharger { margin-top: 0; }

/* ---------- Texte long ---------- */
/* .prose écrit sa couleur en dur pour le thème clair : #3A3A3E sur le fond
   sombre de ces pages serait illisible. */
.prose p,
.prose ul li { color: var(--pg-text); }
/* Ses marges sont celles d'une page légale : dans une section, elles
   s'ajoutaient à celles de la section et collaient le texte à gauche. */
.pg-section .prose { margin: 0 auto; padding: 0; }
.pg-section .prose > :first-child { padding-top: 0; }

/* ---------- Bas de page : .cta est noir sur noir en thème sombre ---------- */
.cta { background: var(--surface); border: 1px solid var(--hairline); }

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  /* Un visiteur venu de Google n'a pas de compte : à 400 px, le seul lien de
     l'en-tête était « Se connecter ». Le bouton de l'outil prend sa place, et
     « Ouvrir GitFit » reste dans le haut de page. L'accueil garde son réglage. */
  .nav-login { display: none; }
  .nav-cta { display: inline-block; padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .pg-hero { padding: 36px 0 28px; }
  .pg-hero h1 { font-size: 29px; line-height: 1.12; margin-top: 10px; }
  .pg-lead { margin-top: 12px; font-size: 15.5px; }
  .pg-actions { margin-top: 20px; gap: 10px; }
  .pg-btn { width: 100%; font-size: 15px; }
  .pg-section { padding: 32px 0; }
  .pg-head { margin-bottom: 20px; }
  .pg-head h2 { font-size: 23px; }
  .pg-head p { font-size: 14px; margin-top: 8px; }
  .pg-cards { gap: 10px; }
  .pg-card { padding: 18px; }
  .pg-card h2,
  .pg-card h3 { font-size: 16px; }
  .pg-card p { font-size: 14px; }
  .pg-table { font-size: 13.5px; }
  .pg-table th,
  .pg-table td { padding: 10px 12px; }
  /* Trois colonnes ne tiennent pas à 400 px : chaque ligne devient un bloc, et
     data-nom redonne le nom de la colonne, que l'en-tête caché ne dit plus.
     L'en-tête reste dans le HTML pour les lecteurs d'écran. */
  .pg-compare,
  .pg-compare tbody,
  .pg-compare tr,
  .pg-compare tbody th,
  .pg-compare td { display: block; width: 100%; }
  .pg-compare caption { display: block; padding: 12px 12px 10px; border-bottom: 1px solid var(--hairline); }
  .pg-compare thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pg-compare tbody tr { padding: 10px 12px 12px; border-bottom: 1px solid var(--hairline); }
  .pg-compare tbody tr:last-child { border-bottom: 0; }
  .pg-compare tbody th,
  .pg-compare td { padding: 0; border-bottom: 0; }
  .pg-compare tbody th { padding-bottom: 6px; font-size: 14.5px; }
  .pg-compare td { padding-top: 6px; }
  .pg-compare td::before {
    content: attr(data-nom);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }
  .pg-compare td[data-nom*="GitFit"]::before { color: var(--accent-press); }
  .pg-depot { padding: 24px 16px; }
  .pg-depot h2 { font-size: 19px; }
  .pg-depot p { font-size: 14px; }
  .pg-mini { scroll-margin-top: 68px; }
  .pg-mini > summary { padding-inline: 14px; }
  .pg-lu { margin-top: 20px; scroll-margin-top: 68px; }
  .pg-semaine > .pg-seance { margin: 0 8px 8px; }
  .pg-seance .pg-table-wrap { margin: 0 8px 8px; }
  /* Six colonnes ne tiennent pas à 400 px : le nom sur sa ligne, les chiffres
     dessous, chacun avec son libellé. Une case vide disparaît. */
  .pg-lignes,
  .pg-lignes tbody { display: block; width: 100%; }
  .pg-lignes thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pg-lignes tr {
    display: flex; flex-wrap: wrap;
    gap: 2px 14px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline);
  }
  .pg-lignes tbody tr:last-child { border-bottom: 0; }
  .pg-lignes tbody th,
  .pg-lignes td { padding: 0; border-bottom: 0; }
  .pg-lignes tbody th { flex: 0 0 100%; width: 100%; font-size: 14.5px; }
  .pg-lignes td { font-size: 14px; }
  .pg-lignes td:empty { display: none; }
  .pg-lignes td::before {
    content: attr(data-nom) "\00a0";
    font-size: 12px;
    color: var(--muted);
  }
  .pg-faq summary { padding: 14px 16px; font-size: 15px; }
  .pg-faq details p { padding: 0 16px 16px; font-size: 14.5px; }
  .pg-form { padding: 18px; }
  .pg-figure { font-size: 30px; }
  .pg-stat b { font-size: 17px; }
  .pg-sources { font-size: 14px; }
}
