/* Joggeuse — feuille de style unique
   Palette : sable (fond), pêche (pastel principal), sauge (touche discrète),
   terracotta (boutons et liens), encre brune (texte). */

/* Polices hébergées sur le site, plus de requête vers Google Fonts.
   Fichiers variables : Bricolage Grotesque 700–800, Figtree 400–600.
   SIL Open Font License 1.1, voir assets/fonts/LICENCE.txt. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin.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: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sable: #FBF6F0;
  --blanc: #FFFFFF;
  --peche: #FFDFD0;
  --peche-2: #F4C7B2;
  --sauge: #DCE8DA;
  --sauge-2: #3F6B47;
  --encre: #33241F;
  --encre-2: #6B5A54;
  --ligne: #EDE1D6;
  --accent: #B84A33;
  --accent-2: #953A27;
  --font-titre: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-texte: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px;
  --max: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font-family: var(--font-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--encre-2); max-width: 40rem; }
.surtitre { font-family: var(--font-titre); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.note { font-size: 0.9rem; color: var(--encre-2); margin-top: 1.25rem; }
.centre { text-align: center; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Accessibilité */
.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: 0.5rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mot-logo : Bricolage Grotesque 800, oblique synthétique à 12° (la police n'a pas d'italique) */
.logo {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--encre);
  text-decoration: none;
  display: inline-block;
  transform: skewX(-12deg);
  padding: 0.1em 0.2em 0.1em 0.1em;
}
.logo:hover { color: var(--accent); }

/* En-tête */
.site-header { background: var(--sable); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.nav { display: flex; gap: 0.15rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--encre); font-weight: 600; font-size: 0.95rem; padding: 0.45rem 0.75rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--peche); color: var(--encre); }
/* 66rem : en dessous, les huit onglets du menu ne tiennent plus à côté du logo */
@media (max-width: 66rem) {
  .site-header .wrap { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.6rem 0.4rem; min-height: 0; }
  .nav { width: calc(100% + 2.5rem); margin-inline: -1.25rem; padding-inline: 1.25rem; padding-bottom: 0.25rem; }
}

/* Boutons et étiquettes */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  padding: 0.75rem 1.3rem; border-radius: 999px; border: 2px solid var(--accent); line-height: 1.2;
  font-family: var(--font-texte); font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-2 { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn-2:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn-s { padding: 0.55rem 1rem; font-size: 0.95rem; }
.tag { display: inline-block; background: var(--peche); color: var(--encre); font-weight: 600; font-size: 0.8rem; padding: 0.25rem 0.7rem; border-radius: 999px; letter-spacing: 0.01em; margin-bottom: 0.75rem; }
.tag-sauge { background: var(--sauge); }

/* Accueil : héro */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Photos : sous le texte sur mobile (3:2), à droite sur grand écran (4:3).
   L'accueil garde les proportions de sa photo sur mobile et passe en carré sur grand écran.
   Le cadrage se règle dans le HTML avec style="object-position: x% y%". */
.photo { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--peche); object-fit: cover; }
.page-tete-photo .wrap { display: grid; gap: 2rem; align-items: center; }
.page-tete-photo .photo, .prose .photo { aspect-ratio: 3 / 2; }
.prose .photo { margin: 1.75rem 0 2.25rem; }
@media (min-width: 56rem) {
  .hero .photo { aspect-ratio: 1; }
  .page-tete-photo .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .page-tete-photo .photo { aspect-ratio: 4 / 3; }
}

/* Sections et grilles */
.section { padding: 3.75rem 0; }
.section h2 + .lead { margin-bottom: 2rem; }
.band-peche { background: var(--peche); }
.band-peche .lead, .band-sauge .lead { color: var(--encre); }
.band-sauge { background: var(--sauge); }
.band-blanc { background: var(--blanc); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.5rem; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0.85rem; }
.card .ico { width: 3rem; height: 3rem; border-radius: 12px; background: var(--peche); display: grid; place-items: center; }
.card .ico svg { width: 28px; height: 28px; stroke: var(--encre); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--peche-2); transform: translateY(-2px); }
a.card .suite { color: var(--accent); font-weight: 600; }
.band-peche .card, .band-sauge .card { border-color: transparent; }

/* Étapes numérotées */
.etapes { counter-reset: e; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.etapes li { counter-increment: e; background: var(--blanc); border-radius: var(--r); padding: 1.25rem 1.25rem 1.25rem 4.4rem; position: relative; }
.etapes li::before {
  content: counter(e); position: absolute; left: 1.25rem; top: 1.2rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--peche);
  font-family: var(--font-titre); font-weight: 800; font-size: 1.1rem; display: grid; place-items: center;
}
.etapes h3 { margin: 0 0 0.35rem; }
.etapes p { margin: 0; }
.etapes p + p { margin-top: 0.5rem; }

/* Pages de contenu */
.page-tete { padding: 3rem 0 2rem; }
.page-tete .lead { margin-bottom: 0; }
.article { padding-bottom: 4rem; }
.article .wrap { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) { .article .wrap { grid-template-columns: minmax(0, 1fr) 15rem; } }
.prose { max-width: 44rem; min-width: 0; }
.prose h2 { margin-top: 2.75rem; padding-top: 0.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: 0.4em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose > :first-child { margin-top: 0; }
.affil { font-size: 0.9rem; color: var(--encre-2); background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; padding: 0.75rem 1rem; margin: 0 0 1.75rem; }
.sommaire { position: sticky; top: 5.5rem; font-size: 0.95rem; border-left: 2px solid var(--peche-2); padding-left: 1rem; }
.sommaire h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.sommaire ol { list-style: none; padding: 0; margin: 0; }
.sommaire li { margin-bottom: 0.5rem; }
.sommaire a { color: var(--encre); text-decoration: none; }
.sommaire a:hover { color: var(--accent); }
@media (max-width: 64rem) { .sommaire { position: static; order: -1; } }
.encadre { background: var(--peche); border-radius: var(--r); padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.encadre > :last-child { margin-bottom: 0; }
.encadre-sauge { background: var(--sauge); }
.encadre-blanc { background: var(--blanc); border: 1px solid var(--ligne); }
.encadre h3 { margin-top: 0; }
.check { list-style: none; padding: 0; }
.check li { padding-left: 1.75rem; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--sauge-2); }
.check li.non::before { background: var(--accent); }
.check li.attend::before { background: var(--peche-2); }

/* Fiches produit */
.produits { display: grid; gap: 1.25rem; margin: 1.5rem 0 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.produit { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.produit-tete { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.produit h3 { margin: 0; font-size: 1.2rem; }
.prix { white-space: nowrap; font-weight: 600; font-size: 0.85rem; background: var(--sable); border-radius: 999px; padding: 0.3rem 0.65rem; }
.pour-qui { margin: 0; color: var(--encre-2); font-size: 0.97rem; }
.pm { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.pm li { padding-left: 1.4rem; position: relative; margin-bottom: 0.3rem; }
.pm li::before { content: "+"; position: absolute; left: 0.1rem; top: 0; font-weight: 800; color: var(--sauge-2); }
.pm li.moins::before { content: "–"; color: var(--accent); }
.produit .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; padding-top: 0.5rem; }
.produit .lien { font-size: 0.95rem; }
/* Étiquette de besoin : un coin collé dans l'angle haut gauche de la fiche, d'une autre couleur que le bouton */
.produit:has(.coin) { padding-top: 2.7rem; }
.produit .coin { position: absolute; top: -1px; left: -1px; background: var(--sauge-2); color: #fff; font: 700 0.74rem/1 var(--font-texte); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.6rem 0.95rem 0.55rem 1.05rem; border-radius: var(--r) 0 12px 0; }
.produit .tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; }
.produit .tete h3 { font-size: 1.3rem; }
.produit .bon-plan, .produit .version { margin: 0; font-size: 0.93rem; }
.produit .pied { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding-top: 0.9rem; border-top: 1px solid var(--ligne); }
.produit .prix-texte { font-weight: 700; }
.produit .pied .liens { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
/* Preuves tirées des tests publiés : note en gros à droite du nom, médaille d'or pour un titre décerné */
.note-test { margin: -0.2rem 0 0; text-align: right; line-height: 1; }
.note-test b { font: 800 2.5rem/0.9 var(--font-titre); letter-spacing: -0.03em; }
.note-test span { font-weight: 700; font-size: 0.9rem; color: var(--encre-2); }
.note-test small { display: block; margin-top: 0.35rem; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--encre-2); }
.medaille { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; margin: 0.45rem 0 0; font-size: 0.92rem; line-height: 1.3; }
.medaille::before { content: ""; flex: none; width: 1.3rem; height: 1.3rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 2h6l3 9h-6z' fill='%23B84A33'/%3E%3Cpath d='M23 2h-6l-3 9h6z' fill='%23953A27'/%3E%3Ccircle cx='16' cy='20' r='10' fill='%23E2A72E' stroke='%23B8801C' stroke-width='2'/%3E%3Cpath d='M16 13.5l1.9 3.9 4.3.6-3.1 3 .7 4.3-3.8-2-3.8 2 .7-4.3-3.1-3 4.3-.6z' fill='%23FFF3D1'/%3E%3C/svg%3E") center / contain no-repeat; }
.medaille span { color: var(--encre-2); }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--ligne); border-radius: 12px; background: var(--blanc); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--peche); font-family: var(--font-titre); font-weight: 700; }
td.total, th.total { font-weight: 700; }
.table-wrap .tot td { background: var(--sable); font-weight: 600; }

/* FAQ */
details { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
summary { cursor: pointer; font-weight: 600; font-family: var(--font-titre); font-size: 1.05rem; }
details[open] summary { margin-bottom: 0.5rem; }
details p:last-child { margin-bottom: 0; }

/* Appel à l'action de fin de page */
.cta-fin { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 2rem; margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .cta-fin { grid-template-columns: 1fr auto; align-items: center; } }
.cta-fin p { margin: 0; }

/* Pied de page */
.site-footer { background: var(--encre); color: #E9DCD3; padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer a { color: #F6EBE3; }
.site-footer a:hover { color: var(--peche); }
.site-footer .logo { color: var(--sable); }
.site-footer .logo:hover { color: var(--peche); }
.site-footer h4 { color: var(--sable); margin-bottom: 0.75rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .legal { font-size: 0.85rem; color: #D2C2B8; margin-top: 2.25rem; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.25rem; }
.site-footer .legal p { margin-bottom: 0.5rem; }

/* Pages utilitaires */
.page-simple { padding: 3rem 0 4rem; }
.page-simple .prose { max-width: 44rem; }
