/* =========================================================
   MUSE — design du site public (lot 16)
   Mobile-first. Les variables sont posées par /assets/theme.css
   (généré depuis le pack) ; les valeurs ci-dessous servent de repli.
   ========================================================= */

:root {
  --primaire: #c2185b;
  --primaire-fonce: #8e1243;
  --secondaire: #f8bbd0;
  --accent: #8e24aa;
  --texte: #1f1f1f;
  --texte-doux: #6d5561;
  --texte-inverse: #ffffff;
  --fond: #ffffff;
  --fond-doux: #fdf6f8;
  --bordure: #f0dfe7;
  --ombre: 0 10px 30px rgb(194 24 91 / 8%);
  --typo-titre: "Fraunces", georgia, "Times New Roman", serif;
  --typo-corps: "Inter", system-ui, -apple-system, "Segoe UI", roboto, sans-serif;
  --taille-corps: 17px;
  --rayon-carte: 14px;
  --rayon-bouton: 999px;
  --espace-base: 8px;
  --espace-section: 48px;
  --largeur: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--typo-corps);
  font-size: var(--taille-corps, 17px);
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
}

a {
  color: var(--primaire);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primaire-fonce);
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Lien d'évitement ---------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primaire);
  color: var(--texte-inverse);
  padding: 10px 16px;
  border-radius: 0 0 var(--rayon-carte) 0;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* --- En-tête ------------------------------------------------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 60px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  font-family: var(--typo-titre);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--texte);
  text-decoration: none;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.logo-nom {
  white-space: nowrap;
}

.logo-slogan {
  font-family: var(--typo-corps);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--primaire);
  white-space: nowrap;
}

/* Bouton hamburger : masqué en grand écran, affiché sous 900 px (le menu et la recherche
   se déploient alors en panneau sous l'en-tête). */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-bouton);
  background: var(--fond);
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--texte);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: relative;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 4px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  transform: translateY(-4px) rotate(-45deg);
}

.rubriques {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.rubriques::-webkit-scrollbar {
  display: none;
}

.rubriques a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: var(--rayon-bouton);
  font-size: 0.92rem;
  color: var(--texte-doux);
  text-decoration: none;
}

.rubriques a:hover {
  background: var(--fond-doux);
  color: var(--primaire);
}

/* --- Structure ----------------------------------------------------------- */

.wrap {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 16px;
}

main.wrap {
  padding-top: 20px;
  padding-bottom: var(--espace-section);
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--typo-titre);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
}

h2.section-titre {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  margin-top: var(--espace-section);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bordure);
  position: relative;
}

h2.section-titre::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: var(--primaire);
}

.meta {
  color: var(--texte-doux);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- Présentation d'accueil (entre la une et « Nouveautés » — encadré arrondi, texte
       justifié ; même habillage que la une) --------------------------------------------- */

.accueil-intro {
  background: linear-gradient(160deg, var(--fond-doux), #fff);
  border: 1px solid var(--bordure);
  border-radius: calc(var(--rayon-carte) + 6px);
  box-shadow: var(--ombre);
  margin: 12px 0 4px;
  padding: 20px;
}

/* H1 conservé dans la page (référencement, lecteurs d'écran) mais masqué à l'écran :
   le texte de présentation commence déjà par le nom du magazine. */
.accueil-intro h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.accueil-intro p {
  margin: 0 0 10px;
  color: var(--texte-doux);
  font-size: 0.99rem;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
}

/* Phrase d'accroche (1er paragraphe) mise en avant. */
.accueil-intro p:first-of-type {
  color: inherit;
  font-weight: 600;
}

.accueil-intro p:last-child {
  margin-bottom: 0;
}

/* --- Page rubrique : H1 conservé mais masqué (la une passe en H2 — audit du 12/10) ------ */

/* Le libellé de la rubrique reste dans la page (référencement, lecteurs d'écran) mais ne
   s'affiche pas : il ouvre le texte de présentation, en gras (mise en page du 12/10 soir). */
.rubrique-titre {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Variante rubrique de l'encart de présentation : seul le libellé (en <strong>) est mis en
   avant ; le reste du texte reste doux (l'accueil met tout le 1er paragraphe en gras). */
.accueil-intro.rubrique-encart p:first-of-type {
  color: var(--texte-doux);
  font-weight: 400;
}

.accueil-intro.rubrique-encart p strong {
  color: var(--texte);
  font-weight: 700;
}

/* --- Partage social (fin d'article — 12/10) ------------------------------------------ */

.partage {
  margin: 26px 0 8px;
}

.partage-titre {
  display: block;
  color: var(--texte-doux);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.partage-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pastille-partage {
  font: inherit;
  font-size: 0.9rem;
  padding: 6px 14px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-bouton);
  background: var(--fond);
  color: var(--texte);
  text-decoration: none;
  cursor: pointer;
}

.pastille-partage:hover,
.pastille-partage:focus-visible,
.pastille-partage.copie {
  border-color: var(--primaire);
  color: var(--primaire);
}

/* --- À la une ------------------------------------------------------------ */

.hero {
  background: linear-gradient(160deg, var(--fond-doux), #fff);
  border: 1px solid var(--bordure);
  border-radius: calc(var(--rayon-carte) + 6px);
  overflow: hidden;
  margin: 8px 0 4px;
  box-shadow: var(--ombre);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  /* 0.22s (au lieu de 0.35s) : le zoom au survol ET le suivi du doigt pendant le balayage. */
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

/* Image à la une cliquable : mène à l'article (léger zoom pour le faire savoir). */
.hero-media a {
  display: block;
}

.hero-media a:hover img,
.hero-media a:focus-visible img {
  transform: scale(1.02);
}

.hero-corps {
  padding: 20px;
  transition: transform 0.22s ease-out;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primaire);
  margin: 0 0 6px;
}

.hero h2 {
  margin: 0 0 10px;
}

.hero h2 a {
  color: inherit;
  text-decoration: none;
}

.hero h2 a:hover {
  color: var(--primaire);
}

.hero .dek {
  margin: 0 0 14px;
  color: var(--texte-doux);
  font-size: 1.02rem;
}

/* Revue de une (balayage) : le mouvement est mis en valeur — la une suit le doigt
   (transform posée en style inline par le script) puis le nouvel article entre en glissé,
   dans le sens du geste : balayage-suivant = article suivant, entre par la droite ;
   balayage-precedent = article précédent, entre par la gauche. */
@keyframes hero-entree-droite {
  from {
    opacity: 0.15;
    transform: translateX(46px);
  }
}

@keyframes hero-entree-gauche {
  from {
    opacity: 0.15;
    transform: translateX(-46px);
  }
}

.hero.balayage-suivant .hero-media img {
  animation: hero-entree-droite 0.28s ease-out both;
}

.hero.balayage-precedent .hero-media img {
  animation: hero-entree-gauche 0.28s ease-out both;
}

.hero.balayage-suivant .hero-corps {
  animation: hero-entree-droite 0.3s ease-out 40ms both;
}

.hero.balayage-precedent .hero-corps {
  animation: hero-entree-gauche 0.3s ease-out 40ms both;
}

/* Même effet sur la carte balayée dans une liste : son contenu se remplace en place. */
.carte.balayage-suivant .carte-media img,
.carte.balayage-suivant .carte-media video {
  animation: hero-entree-droite 0.28s ease-out both;
}

.carte.balayage-precedent .carte-media img,
.carte.balayage-precedent .carte-media video {
  animation: hero-entree-gauche 0.28s ease-out both;
}

.carte.balayage-suivant .carte-corps {
  animation: hero-entree-droite 0.3s ease-out 40ms both;
}

.carte.balayage-precedent .carte-corps {
  animation: hero-entree-gauche 0.3s ease-out 40ms both;
}

@media (prefers-reduced-motion: reduce) {
  .hero.balayage-suivant .hero-media img,
  .hero.balayage-precedent .hero-media img,
  .hero.balayage-suivant .hero-corps,
  .hero.balayage-precedent .hero-corps,
  .carte.balayage-suivant .carte-media img,
  .carte.balayage-precedent .carte-media img,
  .carte.balayage-suivant .carte-corps,
  .carte.balayage-precedent .carte-corps {
    animation: none;
  }
}

/* --- Cartes -------------------------------------------------------------- */

.grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.carte {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
  background: var(--fond);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.carte:hover {
  box-shadow: var(--ombre);
  transform: translateY(-2px);
}

.carte-media img,
.carte-media video {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Balayage d'une carte : le visuel suit le doigt puis entre en glissé (comme la une). */
.carte-media img,
.carte-media video {
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

/* Pastille « contient une vidéo » sur les cartes (la vidéo se joue sur la page article,
   les listes n'affichent que l'image : charger 200 vidéos plomberait l'accueil). */
.carte-media {
  position: relative;
}

.badge-video {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
}

/* Chargement progressif des listes (« Charger la suite » + défilement). */
.charger-plus {
  display: flex;
  justify-content: center;
  margin: 22px 0 6px;
}

.charger-plus button {
  padding: 10px 20px;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: var(--fond);
  font: inherit;
  cursor: pointer;
}

.charger-plus button:hover {
  box-shadow: var(--ombre);
}

.carte-corps {
  padding: 14px 16px 16px;
  transition: transform 0.22s ease-out;
}

.carte-corps h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.carte-corps p {
  margin: 0 0 10px;
  color: var(--texte-doux);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carte-corps .meta {
  margin: 0;
}

/* Bandeau de suggestion de langue : discret, en haut de page, visible seulement si la
   langue du navigateur correspond à une version réellement existante de la page. */
.bandeau-langue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: var(--fond-doux);
  border-bottom: 1px solid var(--bordure);
  font-size: 0.92rem;
  text-align: center;
}

.bandeau-langue[hidden] {
  display: none;
}

.bandeau-langue-lien {
  color: var(--primaire);
  font-weight: 600;
}

.bandeau-langue-fermer {
  border: 0;
  background: none;
  color: var(--texte-doux);
  font: inherit;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

/* --- Page article -------------------------------------------------------- */

.article-head {
  width: 100%;
  margin: 0 0 4px;
}

.fil {
  font-size: 0.85rem;
  margin: 4px 0 10px;
}

.fil a {
  color: var(--primaire);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.article-titre {
  margin: 0 0 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 18px;
}

.article-meta span {
  color: var(--texte-doux);
  font-size: 0.85rem;
}

.article-cover {
  margin: 8px 0 24px;
}

.article-cover img,
.article-cover video {
  width: 100%;
  border-radius: var(--rayon-carte);
  display: block;
}

.article-cover figcaption {
  margin-top: 6px;
  color: var(--texte-doux);
  font-size: 0.82rem;
}

.article-body {
  font-size: 1.2rem;
  line-height: 1.75;
}

.article-body > p:first-of-type {
  color: #3c2b33;
}

.article-body h2 {
  font-size: var(--taille-h2, 1.5rem);
  margin: 1.8em 0 0.6em;
  padding-left: 14px;
  border-left: 4px solid var(--primaire);
}

.article-body h3 {
  font-size: var(--taille-h3, 1.2rem);
  margin: 1.5em 0 0.5em;
}

.article-body blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  background: var(--fond-doux);
  border-left: 4px solid var(--secondaire);
  border-radius: 0 var(--rayon-carte) var(--rayon-carte) 0;
  color: #4d3742;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li {
  margin: 0.35em 0;
}

.article-body img {
  border-radius: var(--rayon-carte);
  cursor: pointer;
  max-width: 100%;
  max-height: 82vh;
  height: auto;
}

/* Figures d'article : coins arrondis, légende sous l'image. Les visuels s'alignent
   sur la largeur de la colonne, SAUF les portraits très hauts (constat du 03/10 :
   des images 880×1776 prenaient tout l'écran) : plafonnés à 82 % de la hauteur de vue.
   Légende (constat du 08/10 : les images ne font pas toute la largeur de la colonne,
   la légende débordait de part et d'autre) : la figure épouse la largeur de l'image et
   se centre comme un bloc — la légende reste en fer à gauche, calée sur le bord gauche
   de l'image (et sur sa largeur quand elle est plus étroite que la colonne). */
.article-figure {
  margin: 1.6em 0;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.article-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  margin-inline: auto;
  border-radius: var(--rayon-carte);
}

.article-figure figcaption {
  margin-top: 6px;
  color: var(--texte-doux);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
}

.langues {
  margin: 0 0 14px;
}

/* Encadrés produits par le Markdown (:::tips, :::important…) */
.muse-encadre {
  border-radius: var(--rayon-carte);
  padding: 14px 16px;
  margin: 1.5em 0;
  background: #f3f6ff;
  border-left: 4px solid #5c6bc0;
}

.muse-encadre--tips {
  background: #fff8e1;
  border-color: #f9a825;
}

.muse-encadre--important {
  background: #fdebee;
  border-color: var(--primaire);
}

.muse-encadre--produit {
  background: #f1f8e9;
  border-color: #7cb342;
}

.disclosure {
  margin: 28px 0 8px;
  padding: 12px 16px;
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--rayon-carte) var(--rayon-carte) 0;
  font-size: 0.88rem;
  color: #5a3d50;
}

.sources {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--fond-doux);
  border-radius: var(--rayon-carte);
}

.sources h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.sources ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.88rem;
  color: #555;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
}

.tag {
  display: inline-block;
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-bouton);
  padding: 3px 12px;
  font-size: 0.8rem;
  color: var(--texte-doux);
}

/* --- Où acheter (références produits) ------------------------------------- */

.ou-acheter {
  max-width: 760px;
  margin: var(--espace-section) auto 0;
  border-top: 1px solid var(--bordure);
  padding-top: 24px;
}

.ou-acheter h2 {
  font-size: 1.3rem;
}

.ou-acheter .produits {
  list-style: none;
  padding: 0;
  margin: 14px 0 10px;
  display: grid;
  gap: 10px;
}

.ou-acheter .produits li {
  background: #faf6f8;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
  padding: 12px 14px;
}

/* Pochette réelle en vignette (document du marchand, téléchargé en local). */
.ou-acheter .produits li.avec-vignette {
  display: flex;
  gap: 12px;
  align-items: center;
}

.produit-vignette {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--bordure);
  background: #fff;
}

.produit-texte {
  min-width: 0;
}

.produit-ref {
  font-weight: 600;
}

.lien-achat {
  font-weight: 600;
  color: var(--primaire);
  text-decoration: none;
  white-space: nowrap;
}

.lien-achat:hover {
  text-decoration: underline;
}

/* --- Carte produit dans le corps (articles « Notre sélection écoute ») --- */

.produit-selection {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #faf6f8;
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--primaire);
  border-radius: var(--rayon-carte);
  padding: 12px 14px;
  margin: 1em 0 1.8em;
}

/* Photo réelle du produit (téléchargée chez le marchand, servie en local). */
.produit-visuel {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  flex: 0 0 auto;
}

.produit-selection-corps {
  flex: 1 1 auto;
  min-width: 0;
}

.produit-selection-ligne {
  margin: 0 0 4px;
}

.produit-selection-ligne:last-child {
  margin-bottom: 0;
}

.produit-prix {
  font-weight: 600;
}

/* --- Commentaires ---------------------------------------------------------
   Engagement : fil hiérarchisé, réactions émoji, note de l'article (étoiles). */

.comments {
  width: 100%;
  margin: var(--espace-section) 0 0;
  border-top: 1px solid var(--bordure);
  padding-top: 24px;
  /* Section mise en valeur (03/10) : le fil des commentaires se lit comme le corps
     du site — 1rem, au lieu du 0,85rem hérité de la classe .meta du conteneur. */
  font-size: 1rem;
}

/* Boutons flottants (toutes les pages) : « page précédente » + « retour en haut »,
   discrets, centrés en bas de l'écran. */
.boutons-flottants {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 12px;
}

.bouton-flottant {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primaire);
  color: var(--texte-inverse);
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgb(0 0 0 / 24%);
  cursor: pointer;
  opacity: 0.92;
}

.bouton-flottant:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Flèches SVG : trait franc (lisibilité sur téléphone). */
.bouton-flottant svg {
  display: block;
}

/* Icône d'état du bouton d'écoute (haut-parleur / stop) : sans cette règle, le
   « display: block » ci-dessus afficherait les DEUX icônes malgré l'attribut hidden
   (carré blanc en plus du haut-parleur — constat cliente du 08/10). */
.bouton-flottant svg[hidden] {
  display: none;
}

/* Lecture à voix haute : bouton flottant haut-parleur (à droite du « remonter »), dans la
   couleur d'accent du thème pour se distinguer — état lecture = icône « arrêter ». */
.bouton-lecture {
  background: var(--accent, #8e24aa);
}

/* Zones de balayage : l'axe horizontal appartient à la page (pas de geste de navigation du
   navigateur) — le défilement vertical et le pincement-zoom restent natifs. Les cartes des
   listes s'ajoutent à la une et aux articles : le geste « article suivant » fonctionne
   quand le doigt part de n'importe quelle carte (08/10). */
.hero,
.article,
.grille .carte {
  touch-action: pan-y pinch-zoom;
}

/* Le geste horizontal appartient au balayage (une, photos) : pas de navigation « retour »
   du navigateur par balayage latéral sur la page (Chromium). */
html,
body {
  overscroll-behavior-x: none;
}

.bouton-flottant[hidden] {
  display: none;
}

.comments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comments h2 {
  font-size: 1.3rem;
  margin: 0;
}

.compteur {
  color: var(--texte-doux);
  font-weight: 400;
}

/* Note de l'article (étoiles 1..5) */
.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.etoiles {
  display: inline-flex;
  gap: 2px;
}

.etoile {
  background: none;
  border: 0;
  color: #d8cdd3;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.etoile:hover,
.etoile.pleine {
  color: #e0a63a;
}

.etoile.mienne {
  transform: scale(1.1);
}

/* Fil des commentaires */
#comments-list {
  margin: 16px 0 22px;
  display: grid;
  gap: 14px;
  /* La liste porte la classe .meta (0,85rem) : le texte des commentaires reprend 1rem. */
  font-size: 1rem;
}

.commentaire {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(60, 20, 40, 0.05);
}

.commentaire-tete {
  display: flex;
  align-items: center;
  gap: 10px;
}

.commentaire .qui {
  font-size: 1rem;
}

.commentaire-texte {
  margin: 8px 0 10px;
  white-space: pre-line;
}

.commentaire-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.reactions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reaction {
  background: #faf6f8;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  color: var(--texte);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 3px 10px;
  cursor: pointer;
}

.reaction:hover {
  background: #fff;
  border-color: var(--primaire);
  color: var(--texte);
}

.reaction.actif {
  background: var(--primaire);
  border-color: var(--primaire);
  color: var(--texte-inverse);
}

.reaction.actif:hover {
  background: var(--primaire-fonce);
  color: var(--texte-inverse);
}

.reaction[disabled] {
  opacity: 0.6;
  cursor: wait;
}

button.repondre,
button.secondaire {
  background: none;
  border: 0;
  color: var(--primaire);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 3px 6px;
  cursor: pointer;
}

button.repondre:hover,
button.secondaire:hover {
  background: none;
  color: var(--primaire-fonce);
  text-decoration: underline;
}

/* Réponses : indentées sous le commentaire parent */
.commentaire-reponses {
  margin: 14px 0 0 38px;
  display: grid;
  gap: 12px;
  border-left: 2px solid var(--bordure);
  padding-left: 14px;
}

.commentaire-reponse {
  background: #fdfbfc;
}

.reply-form {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.reply-form textarea {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  background: #fff;
  resize: vertical;
}

.reply-actions {
  display: flex;
  gap: 10px;
}

/* Palette d'émoticônes du formulaire */
.emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.emoji-bar .emoji {
  background: #faf6f8;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  padding: 5px 7px;
  cursor: pointer;
}

.emoji-bar .emoji:hover {
  background: #fff;
  border-color: var(--primaire);
}

#comment-form {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 12px 0;
}

#comment-form label {
  font-size: 0.85rem;
  color: var(--texte-doux);
}

#comment-form input,
#comment-form textarea {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  background: #fff;
}

#comment-form textarea {
  resize: vertical;
}

button,
.bouton {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--texte-inverse);
  background: var(--primaire);
  border: 0;
  border-radius: var(--rayon-bouton);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.bouton:hover {
  background: var(--primaire-fonce);
  color: var(--texte-inverse);
}

/* --- Recherche ------------------------------------------------------------ */

.champ-recherche {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 10px 0 18px;
}

.champ-recherche label {
  font-size: 0.85rem;
  color: var(--texte-doux);
}

#search-input {
  font: inherit;
  font-size: 1.05rem;
  padding: 12px 16px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-bouton);
  background: var(--fond-doux);
}

#search-rubrique {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  background: #fff;
  max-width: 280px;
}

#search-results {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 12px;
}

#search-results li {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
  padding: 14px 16px;
}

#search-results a {
  font-family: var(--typo-titre);
  font-size: 1.05rem;
  text-decoration: none;
}

/* --- Rubriques (pastilles) ------------------------------------------------ */

.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.pastilles a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-bouton);
  background: var(--fond-doux);
  text-decoration: none;
  color: var(--primaire);
  font-size: 0.92rem;
}

.pastilles a:hover {
  background: var(--secondaire);
  color: var(--primaire-fonce);
}

/* --- Pied de page --------------------------------------------------------- */

footer.site {
  margin-top: var(--espace-section);
  background: #2a1721;
  color: #f3dfe9;
  font-size: 0.8rem;
  padding: 10px 0;
  text-align: center;
}

footer.site a {
  color: #f8bbd0;
}

footer.site .pied {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.pied-liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
}

.pied-liens a {
  font-size: 0.85rem;
}

/* Éditions linguistiques du pied de page — liens HTML crawlables (13/10) : visibles pour
   les visiteurs ET pour les moteurs (le sélecteur du menu est en JavaScript). */
.pied-langues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  margin-top: 4px;
}

.pied-langues a,
.pied-langues .langue-actuelle {
  font-size: 0.8rem;
}

.pied-langues .langue-actuelle {
  color: #cfa8ba;
}

.pied-mentions {
  margin: 0;
  color: #cfa8ba;
  font-size: 0.72rem;
  line-height: 1.4;
}

/* --- Formulaire de contact (page /contact/) ------------------------------ */

#contact-form {
  max-width: 640px;
}

#contact-form p {
  margin: 0 0 12px;
}

#contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

#contact-form .requis,
.requis {
  color: var(--primaire);
}

/* Message de retour du formulaire (envoi réussi / refus). */
.message-formulaire {
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 14px;
  font-weight: 600;
  border: 1px solid;
  max-width: 640px;
}

.message-formulaire.ok {
  background: #e9f7ef;
  border-color: #9fd8b7;
  color: #17643a;
}

.message-formulaire.ko {
  background: #fdeceb;
  border-color: #f0b4ae;
  color: #a02c20;
}

.captcha-question {
  display: block;
  font-weight: 600;
  margin: 2px 0 6px;
}

/* --- Grands écrans -------------------------------------------------------- */

@media (min-width: 640px) {
  .grille {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-corps,
  .accueil-intro {
    padding: 28px 32px;
  }
}

@media (min-width: 900px) {
  header.site .bar {
    flex-wrap: wrap;
    padding: 4px 0;
  }

  .rubriques {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }

  .burger {
    display: none;
  }
}

@media (max-width: 899px) {
  header.site .bar {
    position: relative;
    flex-wrap: wrap;
  }

  .burger {
    display: inline-flex;
  }

  .rubriques {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow: visible;
    margin: 4px 0 10px;
    padding: 6px 0 2px;
    border-top: 1px solid var(--bordure);
  }

  .rubriques.ouvert {
    display: flex;
  }

  .rubriques a {
    padding: 10px 4px;
    font-size: 0.98rem;
  }

  .rubriques .lien-recherche {
    font-weight: 600;
    color: var(--primaire);
  }
}

@media (min-width: 1000px) {
  .grille {
    grid-template-columns: repeat(3, 1fr);
  }

  .grille--une {
    grid-template-columns: 2fr 1fr 1fr;
  }

  main.wrap {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* =========================================================
   Plan du site (04/10) : listes compactes de tous les articles.
   ========================================================= */
.plan-site h2 {
  margin: 1.6rem 0 0;
  font-size: 1.05rem;
}

.plan-site ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 2rem;
}

.plan-site li {
  margin: 0.15rem 0;
  break-inside: avoid;
}

@media (max-width: 640px) {
  .plan-site ul {
    columns: 1;
  }
}

/* Selecteur de langue (barre de menu, apres Recherche) - discret. */
.sel-langue{margin-left:10px;padding:2px 6px;font:inherit;font-size:.8rem;color:inherit;background:transparent;border:1px solid rgba(0,0,0,.18);border-radius:6px;cursor:pointer}
.sel-langue:hover{border-color:currentColor}

/* =========================================================
   Coups de cœur (❤) sur les médias — photos et vidéos (09/10).
   Le cœur flotte en bas à droite du média ; pop + gerbe de
   mini-cœurs au clic (coupés si prefers-reduced-motion).
   ========================================================= */
.coeur-boite {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.article-cover .coeur-boite {
  width: 100%;
}

.coeur-media {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 34px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 18, 26, 0.42);
  color: #fff;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.12s ease;
}

.coeur-media:hover {
  background: rgba(24, 18, 26, 0.62);
}

.coeur-media:active {
  transform: scale(0.94);
}

.coeur-media svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.coeur-media.actif svg {
  fill: #ff4d6d;
  stroke: #ff4d6d;
}

.coeur-media .coeur-compte {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.coeur-media.pop svg {
  animation: coeur-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes coeur-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.coeur-media .particule {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: coeur-particule 0.7s ease-out forwards;
}

@keyframes coeur-particule {
  to {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -40px))) rotate(var(--rot, 0deg)) scale(0.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coeur-media.pop svg { animation: none; }
  .coeur-media .particule { display: none; }
}

/* Cœurs des cartes de liste (accueil, rubriques, articles liés) : plus petits, coin
   haut droit (le badge vidéo occupe le coin bas droit). */
.coeur-carte {
  top: 10px;
  right: 10px;
  bottom: auto;
  min-width: 34px;
  min-height: 30px;
  padding: 5px 10px;
}

.coeur-carte svg {
  width: 16px;
  height: 16px;
}

/* Total « N coups de cœur » sous l'article (dans l'en-tête des commentaires). */
.coeurs-article {
  margin: 6px 0 0;
  color: var(--texte-doux);
  font-size: 0.9rem;
}

