/* Le blog (05/10/2026). Pages ecrites par le moteur Quentyx Edition, qui ne porte
   aucune identite : la peau est ici. Jetons de main.css, Playfair pour les titres,
   Inter pour le texte. Pas d or sur du blanc : l or n apparait qu en sombre. */

.edition {
  max-width: calc(50rem + 2 * var(--edge));
  margin: 0 auto;
  padding: calc(2.75rem + 2 * var(--space-sm) + var(--space-lg)) var(--edge) var(--space-lg);
  min-width: 0;
}
/* main.css a deja une classe .doc (la feuille A4 des scenes de la home) : on la neutralise ici. */
.edition .doc {
  display: block; min-width: 0; position: static; width: auto; aspect-ratio: auto;
  margin: 0; border-radius: 0; overflow: visible; box-shadow: none; background: none;
}
/* Le sommaire lateral du moteur est fait pour une documentation : un blog se lit d un trait. */
.edition .doc-nav { display: none; }
.edition .doc-corps { min-width: 0; }

.edition .section-kicker {
  margin: 0 0 0.9rem;
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
html[data-theme="dark"] .edition .section-kicker { color: var(--gold-2); }

.edition h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  overflow-wrap: anywhere;
}
.edition .doc-entete { margin-bottom: var(--space-lg); }
.edition .doc-entete > p:not(.section-kicker) { margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; max-width: 44rem; }
.edition .doc-maj { font-size: var(--fs-small) !important; }
.edition .doc-maj a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--ink-faint); }

/* L index : un sommaire de revue, une ligne par article. */
.edition .doc-sommaire { border-top: 1px solid var(--ink-faint); }
.edition .doc-sommaire a {
  display: block; padding: var(--space-md) 0;
  border-bottom: 1px solid var(--ink-faint);
  color: inherit; text-decoration: none;
}
.edition .doc-sommaire strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 700; line-height: 1.25;
  transition: transform 0.4s var(--ease-out-expo);
}
.edition .doc-sommaire span { display: block; margin-top: 0.45rem; color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .edition .doc-sommaire a:hover strong { transform: translateX(4px); }
}

/* Le texte d un article */
.edition .doc-corps > p,
.edition .doc-corps > ul,
.edition .doc-corps > ol,
.edition .doc-corps > blockquote { font-size: var(--fs-body); line-height: 1.75; max-width: 46rem; }
.edition .doc-corps p { margin: 0 0 1.15em; overflow-wrap: anywhere; }
/* Le chapô (07/10, Anthony) : le premier paragraphe d un article, juste sous le titre. Une phrase qui frappe :
   Playfair, plus grand, pas plus large que le texte. Taille en clamp, donc rien a reprendre dans les paliers. */
.edition .doc-corps > .doc-entete + p {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.4; margin-bottom: 1.4em;
}
.edition .doc-corps h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem); line-height: 1.25;
  margin: 2.2em 0 0.7em;
}
.edition .doc-corps h3 { font-size: 1.1rem; font-weight: 700; margin: 1.8em 0 0.5em; }
.edition .doc-corps ul, .edition .doc-corps ol { margin: 0 0 1.2em; padding-left: 1.25rem; }
.edition .doc-corps li { margin: 0.4em 0; }
.edition .doc-corps strong { font-weight: 700; }
.edition .doc-corps blockquote {
  margin: 1.8em 0; padding: 0.2em 0 0.2em 1.2rem;
  border-left: 2px solid var(--ink);
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; line-height: 1.6;
}
html[data-theme="dark"] .edition .doc-corps blockquote { border-left-color: var(--gold-2); }
.edition .doc-corps :is(p, li, td) a:not(.doc-maj a) { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.edition .doc-corps code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 0.3rem; background: var(--ink-faint); }
/* Le tableau : une fiche posee sur la page. Les chiffres alignes a droite, en chiffres
   de meme largeur, pour se comparer d un coup d oeil. En sombre, la fiche s eclaire d un filet or. */
.edition .doc-table {
  width: 100%; max-width: 46rem; overflow-x: auto; margin: 1.6em 0 0.8em;
  border: 1px solid var(--ink-faint); border-radius: 1rem;
  background: var(--off-white);
  box-shadow: 0 1px 2px rgba(11, 5, 47, 0.04), 0 12px 32px -18px rgba(11, 5, 47, 0.25);
}
.edition .doc-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.edition .doc-table th {
  text-align: left; padding: 1rem 1.25rem 0.75rem;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid var(--ink-faint);
}
.edition .doc-table td { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--ink-faint); vertical-align: baseline; }
.edition .doc-table tr:last-child td { border-bottom: 0; }
/* Les colonnes de CHIFFRES (classe posee par le moteur, `colonnes_nombres`) : a droite, en gros. Une colonne de
   texte reste un texte : elle se coupe, a gauche (05/10, le tableau de l article sur les equipements d hiver). */
.edition .doc-table th.nombre, .edition .doc-table td.nombre { text-align: right; white-space: nowrap; }
.edition .doc-table td { line-height: 1.55; }
.edition .doc-table td:first-child:not(.nombre) { font-weight: 600; min-width: 8rem; }
.edition .doc-table td.nombre {
  font-weight: 700; font-variant-numeric: tabular-nums;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem;
}
@media (hover: hover) and (pointer: fine) {
  .edition .doc-table tbody tr { transition: background 0.3s ease; }
  .edition .doc-table tbody tr:hover { background: rgba(11, 5, 47, 0.03); }
}
html[data-theme="dark"] .edition .doc-table { background: rgba(252, 252, 252, 0.03); border-color: rgba(196, 184, 118, 0.3); box-shadow: none; }
html[data-theme="dark"] .edition .doc-table td.nombre { color: var(--gold-1); }
html[data-theme="dark"] .edition .doc-table tbody tr:hover { background: rgba(252, 252, 252, 0.04); }
/* La ligne de source juste sous le tableau */
.edition .doc-table + p { font-size: var(--fs-small); color: var(--ink-soft); }
@media (max-width: 36rem) {
  .edition .doc-table th, .edition .doc-table td { padding-left: 0.9rem; padding-right: 0.9rem; }
  .edition .doc-table th.nombre { white-space: normal; }
  .edition .doc-table td:first-child:not(.nombre) { min-width: 6.5rem; }
}

/* La liste a cocher : une case dessinee, pas un caractere qui depend de la police. */
.edition .doc-corps ul.a-cocher { list-style: none; padding-left: 0; }
.edition .doc-corps li.a-cocher { position: relative; padding-left: 2rem; }
.edition .doc-corps li.a-cocher::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 1.1rem; height: 1.1rem; border-radius: 0.3rem;
  border: 1.5px solid var(--ink-soft);
}
html[data-theme="dark"] .edition .doc-corps li.a-cocher::before { border-color: var(--gold-2); }

/* Article suivant et precedent */
.edition .doc-suite {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md);
  margin-top: var(--space-lg); padding-top: var(--space-md);
  border-top: 1px solid var(--ink-faint);
}
.edition .doc-suite a { color: inherit; text-decoration: none; font-weight: 600; line-height: 1.4; }
.edition .doc-suite a:last-child:not(:first-child) { text-align: right; }
.edition .doc-suite a span { display: block; margin-bottom: 0.3rem; font-size: var(--fs-small); font-weight: 400; color: var(--ink-soft); }
@media (max-width: 36rem) {
  .edition .doc-suite { grid-template-columns: minmax(0, 1fr); }
  .edition .doc-suite a:last-child:not(:first-child) { text-align: left; }
}

/* Titres du blog en thème clair : #1A1140, un navy un peu plus bleu que --navy (demande d’Anthony, 05/10).
   Le sombre garde ses titres clairs. */
html:not([data-theme="dark"]) .edition h1,
html:not([data-theme="dark"]) .edition .doc-corps h2,
html:not([data-theme="dark"]) .edition .doc-corps h3,
html:not([data-theme="dark"]) .edition .doc-sommaire strong { color: #1A1140; }

/* Pied toujours en bas de l’écran (05/10) : avec un seul article, la page était plus courte que la fenêtre
   et une bande blanche apparaissait SOUS le pied. Le contenu prend la place qui reste. */
body.page-blog { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.page-blog > .edition { flex: 1 0 auto; width: 100%; }
body.page-blog > .pied { flex-shrink: 0; }

/* L image d un article, sous le titre (05/10). Ses coins sont deja arrondis et transparents. */
.edition .doc-couverture { margin: 0 0 var(--space-lg); max-width: 50rem; }
.edition .doc-couverture img { display: block; width: 100%; height: auto; border-radius: 1.25rem; }
