/*
Theme Name: SWAP Blog
Description: Le thème du blog SWAP : tutos pas à pas, conseils d'entretien, pièces détachées.
Author: SFBL
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: swap-blog
*/

/* Couleurs du logo SWAP : marine #3C4866, vert #4DAF7C.
   Le vert sert de signal (repères, marques), jamais de couleur de texte courant. */

:root {
  --papier: #FFFFFF;
  --fond: #F3F5F4;
  --marine: #3C4866;
  --encre: #1D2333;
  --gris: #6A7183;
  --vert: #4DAF7C;
  --vert-profond: #2A7850;   /* le même vert, assombri pour les petits textes */
  --filet: #E2E6E4;

  --titre: 'Plus Jakarta Sans', system-ui, sans-serif;
  --texte: 'Inter', system-ui, sans-serif;
  --ref: 'Inter', system-ui, sans-serif;
  --menthe: #E9F4EE;

  --large: 1200px;
  --marge: clamp(20px, 4.5vw, 56px);
  --rond: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; border-radius: 4px; }

.cadre { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }

/* ──────────────────────────────────────────────────────
   EN-TÊTE
   ────────────────────────────────────────────────────── */
.entete { border-bottom: 1px solid var(--filet); background: var(--papier); }
.entete-ligne { display: flex; align-items: center; gap: 40px; min-height: 76px; }
.logo img { height: 40px; width: auto; }
.menu { display: flex; gap: 32px; margin-right: auto; }
.menu a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 500; font-size: 0.98rem; color: var(--marine);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--vert); }
.entete-actions { display: flex; align-items: center; gap: 14px; }
.loupe {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; color: var(--marine);
}
.loupe:hover { background: var(--fond); }

.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.95rem/1 var(--texte); text-decoration: none; white-space: nowrap;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--marine);
  color: var(--marine); background: transparent; cursor: pointer;
}
.bouton:hover { background: var(--fond); }
.bouton-plein { background: var(--marine); color: #fff; }
.bouton-plein:hover { background: #2F3A55; }
.bouton svg { flex: none; }

/* ──────────────────────────────────────────────────────
   ACCUEIL : le hero, comme les bandeaux de la boutique
   ────────────────────────────────────────────────────── */
.hero { padding-top: clamp(14px, 2vw, 28px); }
.hero-panneau {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 60% 1fr; align-items: center;
  min-height: clamp(430px, 42vw, 540px); border-radius: 28px; background: var(--menthe);
}
.hero-texte { position: relative; z-index: 1; padding: clamp(28px, 5vw, 68px); padding-right: 0; }
.surtitre { font: 700 0.8rem/1 var(--titre); letter-spacing: 0.14em; text-transform: uppercase; color: var(--marine); }
.hero h1 { font: 800 clamp(2.4rem, 5.2vw, 4.4rem)/1.02 var(--titre); letter-spacing: -0.035em; color: var(--marine); margin: 0 0 18px; }
.hero h1 span { display: block; color: var(--vert); }
.hero h1 .surtitre { display: block; margin-bottom: 20px; }
.hero-sous { font-size: clamp(1.02rem, 1.35vw, 1.16rem); line-height: 1.5; color: #47506A; max-width: 27em; }
.hero-photo {
  position: absolute; right: -6%; bottom: -34%; width: 51%; aspect-ratio: 1;
  border-radius: 50%; border: 12px solid var(--vert); overflow: hidden; background: #CFE5D8;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.recherche {
  display: flex; align-items: center; margin-top: 30px;
  border: 1.5px solid var(--marine); border-radius: 999px; padding: 5px 5px 5px 22px;
  max-width: 460px; background: var(--papier);
}
.hero .recherche { border-color: transparent; box-shadow: 0 1px 2px rgba(60, 72, 102, .08), 0 10px 28px rgba(60, 72, 102, .10); }
.recherche input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 400 1rem var(--texte); color: var(--encre); padding: 10px 0;
}
.recherche input::placeholder { color: var(--gris); }
.recherche:focus-within { box-shadow: 0 0 0 3px rgba(77, 175, 124, .35); }
.recherche button {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--vert); color: var(--encre); cursor: pointer;
}

/* Les machines : des vignettes qui passent à la ligne, quel que soit leur nombre */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 30px 20px; }
.tuile { display: block; text-decoration: none; }
.tuile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--fond); transition: transform .3s ease; }
.tuile:hover img { transform: translateY(-4px); }
.tuile b { display: block; margin-top: 13px; font: 700 1.04rem/1.25 var(--titre); letter-spacing: -0.01em; color: var(--marine); }
.tuile small { display: block; margin-top: 3px; font-size: 0.85rem; color: var(--gris); }

/* Les conseils : trois cartes par ligne */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.carte { display: block; text-decoration: none; }
.carte-image { display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--fond); margin-bottom: 16px; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.carte:hover .carte-image img { transform: scale(1.04); }
.carte-titre { display: block; margin-top: 9px; font: 700 1.2rem/1.28 var(--titre); letter-spacing: -0.015em; color: var(--marine); text-wrap: balance; }

/* ──────────────────────────────────────────────────────
   BLOCS DE L'ACCUEIL
   ────────────────────────────────────────────────────── */
.bloc { position: relative; }

.bloc { padding-top: clamp(36px, 5vw, 68px); padding-bottom: clamp(8px, 1vw, 12px); }
.bloc + .piece { margin-top: clamp(56px, 7vw, 96px); }
.bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.bloc-tete h2 { font: 800 clamp(1.6rem, 2.8vw, 2.2rem)/1.1 var(--titre); letter-spacing: -0.03em; color: var(--marine); }
.lien { font-weight: 600; font-size: 0.95rem; color: var(--marine); text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lien:hover { color: var(--vert-profond); }

/* Le genre d'une page : point plein = tuto, anneau = guide */
.genre { display: inline-flex; align-items: center; font: 600 0.8rem/1 var(--texte); color: var(--marine); letter-spacing: 0.01em; }
.genre::before { content: ''; margin-right: 9px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--vert); flex: none; }
.genre.tuto::before { background: var(--vert); }
.genre span { color: var(--gris); font-weight: 500; margin-left: 0.35em; }

.vedette { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; text-decoration: none; }
.vedette-image { border-radius: var(--rond); overflow: hidden; background: var(--fond); aspect-ratio: 4 / 3; }
.vedette-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vedette:hover .vedette-image img { transform: scale(1.025); }
.vedette h3 { text-wrap: balance; font: 800 clamp(1.6rem, 3vw, 2.5rem)/1.08 var(--titre); letter-spacing: -0.03em; color: var(--marine); margin: 18px 0 20px; }
.suite { color: var(--vert-profond); }
.vedette .bouton { margin-top: 26px; }
.vedette-image { border-radius: 20px; }
.faits { display: flex; flex-wrap: wrap; gap: 6px 0; font: 400 0.84rem var(--ref); color: var(--gris); }
.faits li + li::before { content: '·'; margin: 0 10px; color: var(--vert-profond); }



/* ──────────────────────────────────────────────────────
   BANDE « PIÈCE » : la porte vers la boutique
   ────────────────────────────────────────────────────── */
.piece { background: var(--marine); color: #fff; }
.piece-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px); }
.piece h2 { font: 800 clamp(1.8rem, 3.4vw, 2.8rem)/1.05 var(--titre); letter-spacing: -0.035em; }
.piece .recherche { margin: 0; max-width: none; border-color: #fff; background: #fff; }
.piece-lien { display: inline-block; margin-top: 16px; font-size: 0.95rem; color: #fff; text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ──────────────────────────────────────────────────────
   PIED DE PAGE
   ────────────────────────────────────────────────────── */
.pied-ligne { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 36px; }
.pied .logo img { height: 30px; }
.pied nav { display: flex; gap: 26px; flex-wrap: wrap; margin-right: auto; }
.pied a { font-size: 0.92rem; color: var(--marine); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied small { font: 400 0.78rem var(--ref); color: var(--gris); }

/* ──────────────────────────────────────────────────────
   TÊTE D'UNE PAGE (tuto ou guide)
   ────────────────────────────────────────────────────── */
.tete { padding-top: clamp(14px, 2vw, 28px); }
.fil { margin-bottom: 22px; font-size: 0.86rem; color: #56607A; }
.fil a { color: inherit; text-decoration: none; }
.fil a:hover { color: var(--marine); text-decoration: underline; }
.fil span { margin: 0 8px; opacity: .5; }

.tete-page {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); gap: clamp(28px, 5vw, 72px); align-items: center;
  border-radius: 28px; background: var(--menthe); padding: clamp(26px, 4.5vw, 60px);
}
.titre-page { text-wrap: balance; font: 800 clamp(2rem, 4vw, 3.2rem)/1.05 var(--titre); letter-spacing: -0.035em; color: var(--marine); margin: 16px 0 22px; }
.chapo { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--encre); max-width: 40em; }
.tete-page .faits { margin-top: 24px; color: #56607A; }

/* La machine : sa photo, sa marque, ses références */
.machine { background: var(--papier); border-radius: 20px; padding: 24px 24px 18px; }
.machine-photo { width: 78%; margin: 0 auto 14px; mix-blend-mode: multiply; }
.machine-marque { height: 26px; width: auto; mix-blend-mode: multiply; margin-bottom: 8px; }
.machine-nom { text-wrap: balance; font: 700 1.02rem/1.3 var(--titre); color: var(--marine); letter-spacing: -0.01em; }
.plaque { margin-top: 16px; border-top: 1px solid var(--filet); }
.plaque div:last-child { border-bottom: 0; }
.plaque div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--filet); font: 400 0.8rem var(--ref); }
.plaque dt { color: var(--gris); }
.plaque dd { color: var(--encre); font-weight: 500; }

.tete-image { border-radius: 20px; overflow: hidden; background: var(--papier); }
.tete-image img { width: 100%; }

/* ──────────────────────────────────────────────────────
   CORPS : sommaire collant à gauche, colonne de lecture
   ────────────────────────────────────────────────────── */
.corps { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 5vw, 68px); padding-bottom: clamp(56px, 8vw, 112px); }
.sommaire { position: sticky; top: 28px; align-self: start; }
.sommaire p { font: 600 0.78rem var(--texte); color: var(--gris); margin-bottom: 12px; }
.sommaire a { display: block; padding: 7px 0 7px 14px; border-left: 1.5px solid var(--filet); font-size: 0.9rem; line-height: 1.35; color: var(--gris); text-decoration: none; }
.sommaire a:hover { color: var(--marine); border-left-color: var(--vert); }

.lecture > section + section { margin-top: clamp(48px, 6vw, 80px); }
.lecture h2 { font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.12 var(--titre); letter-spacing: -0.03em; color: var(--marine); margin-bottom: 20px; scroll-margin-top: 24px; }
.lecture p + p { margin-top: 0.9em; }

/* ──────────────────────────────────────────────────────
   LES GESTES : un fil, un repère par geste, et la fin
   ────────────────────────────────────────────────────── */
.gestes { margin-top: 8px; }
.geste { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 26px; padding-bottom: 44px; }
.geste::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--filet); }
.geste:last-child { padding-bottom: 0; }
.geste:last-child::before { display: none; }
.repere {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid var(--marine); background: var(--marine);
  font: 700 1.05rem/1 var(--titre); color: #fff;
}
.geste-corps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.geste-corps img { width: 100%; border-radius: 16px; background: var(--fond); border: 1px solid var(--filet); }
.geste h3 { font: 700 1.3rem/1.2 var(--titre); letter-spacing: -0.02em; color: var(--marine); margin: 8px 0 12px; }
.geste .precision { color: var(--gris); font-size: 0.98rem; }

.geste-cas { grid-template-columns: 44px 1fr; }
.geste-cas .repere { width: 16px; height: 16px; margin: 14px; border-color: var(--gris); background: var(--papier); }
.geste-cas h3 { margin-top: 8px; font-size: 1.12rem; }
.geste-cas p { color: var(--gris); font-size: 0.98rem; max-width: 36em; }

.geste-fin .repere { background: var(--vert); border-color: var(--vert); color: var(--encre); }
.regle { font: 800 clamp(1.7rem, 3vw, 2.3rem)/1.05 var(--titre); letter-spacing: -0.035em; color: var(--marine); margin-top: 3px; }
.geste-fin p + p { margin-top: 8px; color: var(--gris); }

/* La vidéo et la fiche : deux objets debout, côte à côte */
.emporter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.emporter video, .emporter .fiche-apercu { width: 100%; border-radius: var(--rond); background: var(--fond); }
.emporter video { aspect-ratio: 9 / 16; object-fit: cover; }
.fiche-apercu { display: block; border: 1px solid var(--filet); overflow: hidden; }
.fiche-apercu img { width: 100%; }
.emporter p { margin-top: 16px; font-size: 0.98rem; color: var(--gris); }
.emporter .bouton { margin-top: 18px; }

.questions div { padding: 20px 0; border-top: 1px solid var(--filet); }
.questions div:last-child { border-bottom: 1px solid var(--filet); }
.questions dt { font: 700 1.1rem/1.3 var(--titre); color: var(--marine); letter-spacing: -0.01em; }
.questions dd { margin-top: 6px; color: var(--encre); }

/* ──────────────────────────────────────────────────────
   LE TEXTE D'UN GUIDE
   ────────────────────────────────────────────────────── */
.article { max-width: 700px; }
.article h2 { font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.12 var(--titre); letter-spacing: -0.03em; color: var(--marine); margin: 2.4em 0 0.7em; scroll-margin-top: 24px; }
.article > h2:first-child { margin-top: 0; }
.article h3 { font: 700 1.22rem/1.25 var(--titre); letter-spacing: -0.015em; color: var(--marine); margin: 1.9em 0 0.5em; }
.article p, .article ul, .article ol { margin: 0 0 1.05em; }
.article ul, .article ol { padding-left: 0; }
.article li { position: relative; padding-left: 26px; margin-bottom: 0.5em; }
.article ul > li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); }
.article ol { counter-reset: n; }
.article ol > li { counter-increment: n; }
.article ol > li::before { content: counter(n); position: absolute; left: 0; top: 0.1em; font: 500 0.82rem var(--ref); color: var(--vert-profond); }
.article a { color: var(--marine); text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.article figure { margin: 1.8em 0; }
.article img { border-radius: 12px; }


/* ──────────────────────────────────────────────────────
   TÉLÉPHONE ET TABLETTE
   ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .tete-page, .piece-ligne { grid-template-columns: 1fr; }
  .cartes { grid-template-columns: 1fr 1fr; }
  .corps { grid-template-columns: 1fr; }
  .sommaire { display: none; }
  .tete-page { border-radius: 22px; }
  .machine { max-width: 440px; }
  .tete-image { max-width: 440px; }
}
/* Le hero s'empile : le texte, puis la photo qui dépasse en bas */
@media (max-width: 900px) {
  .hero-panneau { grid-template-columns: 1fr; border-radius: 22px; min-height: 0; }
  .hero-texte { padding: clamp(28px, 6vw, 48px) clamp(22px, 6vw, 48px) 0; }
  .hero-photo { position: relative; right: auto; bottom: auto; width: 104%; margin: 30px -2% -46%; border-width: 9px; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .entete-ligne { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 12px; }
  .logo img { height: 34px; }
  .entete-actions { margin-left: auto; }
  .entete .bouton { padding: 11px 16px; font-size: 0.88rem; }
  .loupe { display: none; }
  .cartes { grid-template-columns: 1fr; gap: 0; }
  .carte { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; padding: 14px 0; border-top: 1px solid var(--filet); }
  .carte-image { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; }
  .carte .genre { align-self: end; }
  .carte-titre { align-self: start; margin-top: 7px; font-size: 1.02rem; }
  .tuiles { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .recherche { padding-left: 18px; }
  .recherche input { font-size: 0.95rem; }
  /* La machine tient sur une ligne : la photo à gauche, les références à droite */
  .tete-page { padding: 24px 20px; }
  .machine { max-width: none; display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; align-items: center; padding: 18px; }
  .machine-photo { width: 100%; margin: 0; grid-row: 1 / span 2; }
  .machine-marque { height: 20px; margin-bottom: 4px; align-self: end; }
  .machine-nom { font-size: 0.95rem; align-self: start; }
  .plaque { grid-column: 1 / -1; margin-top: 14px; }
  .menu { order: 3; width: 100%; gap: 26px; margin: 10px 0 0; overflow-x: auto; }
  .menu a { padding: 10px 0 12px; }
  .vedette, .emporter { grid-template-columns: 1fr; }

  .geste { grid-template-columns: 36px 1fr; gap: 16px; padding-bottom: 36px; }
  .geste::before { left: 17px; top: 36px; }
  .repere { width: 36px; height: 36px; font-size: 0.95rem; }
  .geste-corps { grid-template-columns: 1fr; gap: 14px; }
  .geste-corps > div { order: -1; }
  .geste h3 { margin-top: 5px; }
  .geste-cas { grid-template-columns: 36px 1fr; }
  .geste-cas .repere { margin: 10px; }
  .emporter video { max-width: 300px; }
  .bloc-tete { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ──────────────────────────────────────────────────────
   COMPLÉMENTS DU THÈME (ce que la maquette n'avait pas)
   ────────────────────────────────────────────────────── */
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--papier); border-radius: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Le menu « Machines » : la liste s'ouvre au survol ou au clavier */
.menu-machines { position: relative; }
.sous-menu {
  display: none; position: absolute; z-index: 20; top: 100%; left: -14px; min-width: 250px; padding: 8px;
  background: var(--papier); border: 1px solid var(--filet); border-radius: 16px; box-shadow: 0 14px 34px rgba(60, 72, 102, .14);
}
.menu-machines:hover .sous-menu, .menu-machines:focus-within .sous-menu { display: block; }
.sous-menu a { display: flex; padding: 9px 12px; border-bottom: 0; border-radius: 10px; font-size: 0.95rem; }
.sous-menu a:hover { background: var(--fond); }

/* Têtes sans image, corps sans sommaire, listes */
.tete-seule { grid-template-columns: minmax(0, 1fr); }
.tete-seule .titre-page:last-child { margin-bottom: 0; }
.tete-seule .recherche { box-shadow: 0 1px 2px rgba(60, 72, 102, .08), 0 10px 28px rgba(60, 72, 102, .10); border-color: transparent; }
.corps-seul { grid-template-columns: minmax(0, 760px); }
.liste { padding-bottom: clamp(8px, 1vw, 12px); }
.vide { margin-bottom: 40px; font-size: 1.1rem; color: var(--gris); }
.pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.pages .page-numbers {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--filet); font-weight: 600; color: var(--marine); text-decoration: none;
}
.pages a.page-numbers:hover { border-color: var(--marine); }
.pages .current { background: var(--marine); border-color: var(--marine); color: #fff; }
.pages .dots { border-color: transparent; }

/* Les rubriques en liens, et le classement d'un article */
.rubriques { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.rubriques a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--filet); font-size: 0.92rem; font-weight: 500; color: var(--marine); text-decoration: none;
}
.rubriques a:hover { border-color: var(--marine); }
.rubriques span { font-size: 0.8rem; font-weight: 400; color: var(--gris); }
.classement { margin-top: clamp(40px, 5vw, 64px) !important; padding-top: 20px; border-top: 1px solid var(--filet); font-size: 0.88rem; line-height: 1.9; color: var(--gris); }
.classement span { display: inline-block; min-width: 6.2em; font-weight: 600; color: var(--marine); }
.classement a { color: var(--gris); text-decoration: underline; text-decoration-color: var(--filet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.classement a:hover { color: var(--marine); text-decoration-color: var(--vert); }

/* La coche du dernier geste, dessinée en CSS : rien à coller dans l'article */
.geste-fin .repere::after { content: ''; width: 13px; height: 7px; border-left: 2.6px solid currentColor; border-bottom: 2.6px solid currentColor; transform: translateY(-2px) rotate(-45deg); }

/* Ce que WordPress met dans les articles */
.article h4 { font: 700 1.05rem/1.3 var(--titre); color: var(--marine); margin: 1.6em 0 0.4em; }
.article iframe, .lecture iframe, .article video { max-width: 100%; border-radius: 12px; }
.article .wp-block-embed__wrapper iframe, .article p > iframe[src*="youtu"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.article figcaption, .article .wp-caption-text { margin-top: 8px; font-size: 0.86rem; color: var(--gris); }
.article .wp-caption { max-width: 100%; }
.article .aligncenter { margin-left: auto; margin-right: auto; }
.article .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 50%; }
.article .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 50%; }
.article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95rem; }
.article th, .article td { padding: 10px 12px; border-bottom: 1px solid var(--filet); text-align: left; vertical-align: top; }
.article th { font-weight: 600; color: var(--marine); }
.article blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--filet); color: var(--marine); }
.article::after { content: ''; display: block; clear: both; }

/* Articles montés avec Elementor : on garde le texte, pas ses colonnes ni ses marges */
.article .elementor-section, .article .elementor-container, .article .elementor-column, .article .elementor-widget-wrap, .article .elementor-element {
  display: block !important; width: 100% !important; max-width: none !important; padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important;
}
.article .elementor-widget:not(:last-child) { margin-bottom: 0 !important; }
.article .elementor-widget-image { margin: 1.8em 0 !important; text-align: left !important; }
.article .elementor-heading-title { font-family: var(--titre) !important; color: var(--marine) !important; }

/* Connecté à WordPress : la barre d'admin décale le sommaire collant */
.admin-bar .sommaire { top: 60px; }

@media (max-width: 700px) {
  .sous-menu { display: none !important; }
  .article .alignleft, .article .alignright { float: none; margin: 1.2em 0; max-width: 100%; }
}
