/*
 * Ajustements propres au site Wagtail, chargés APRÈS style.css (maquette).
 * Règle : on ne modifie jamais style.css (copie conforme de la maquette
 * validée) ; toute adaptation se fait ici.
 */

/* Cartes cliquables : la maquette utilise <article class="card">, on en fait des liens <a> */
a.card { display: block; }

/* Logo dans le pied de page sombre : pastille claire pour garder le brun lisible */
.foot img.logo-pied { background: #fff; padding: 8px 12px; border-radius: 10px; box-sizing: content-box; }

/* Corps d'article (texte riche Wagtail) */
.post .bd ul, .post .bd ol { margin: 0 0 20px 22px; font-size: 17px; line-height: 1.8; }
.post .bd a { color: var(--wood); text-decoration: underline; }
.post .bd img { border-radius: 12px; margin: 10px 0 24px; height: auto; }
.post .bd .encadre { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r-sm); padding: 18px 22px; margin: 26px 0; }
.post .bd .encadre p:last-child { margin-bottom: 0; }
/* Vidéos intégrées (YouTube…) : largeur fluide */
.post .bd .video { position: relative; aspect-ratio: 16/9; margin: 26px 0; }
.post .bd .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* Liens de partage (vrais liens au lieu de simples pastilles) */
/* Boutons de partage : pastilles aux couleurs du logo (brun-bois, orange au survol) */
.post .byline .share { align-items: center; flex-wrap: wrap; gap: 8px; }
/* (la maquette stylait tout « span » de .share en pastille : on l'annule pour le libellé) */
.post .byline .share .share-libelle { width: auto; height: auto; background: none; border: 0; border-radius: 0;
  cursor: default; font-family: var(--disp); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #601800; margin-right: 2px; }
/* Téléphone : la rangée de partage passe sous l'auteur, sur toute la largeur */
@media (max-width: 600px) {
  .post .byline { flex-wrap: wrap; }
  .post .byline .share { margin-left: 0; width: 100%; }
}
.post .byline .share a { width: 36px; height: 36px; border-radius: 999px; background: #601800; color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, transform .15s; }
.post .byline .share a svg { width: 17px; height: 17px; fill: currentColor; }
.post .byline .share a svg.trait { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.post .byline .share a:hover, .post .byline .share a:focus-visible { background: var(--amber); color: #601800; transform: translateY(-2px); }
.post .byline .share a:focus-visible { outline: 3px solid #601800; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .post .byline .share a { transition: none; } .post .byline .share a:hover { transform: none; } }

/* Message quand il n'y a encore aucun article */
.vide { padding: 60px 0; text-align: center; color: var(--muted); }

/* ===== Régie publicitaire ===== */
/* Créations par appareil : le navigateur n'affiche que la bonne (même seuil que la maquette) */
@media (max-width: 600px) { .pub-ordi { display: none !important; } }
@media (min-width: 601px) { .pub-mobile { display: none !important; } }

.pub { position: relative; text-align: center; }
.pub img { margin: 0 auto; max-width: 100%; height: auto; }
.pub-label { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pub-grand-format { background: var(--soft); border-bottom: 1px solid var(--line); padding: 14px 16px 8px; }
.pub-pave { margin-bottom: 22px; }
.pub-in-article { margin: 28px 0; }
/* Grand encart centré de l'accueil (970×250) : aligné sur la largeur du contenu */
.pub-accueil-centre { max-width: 970px; margin: 32px auto 0; padding: 0 16px; }
.billboard.autopromo { padding-top: 32px; }

/* Encart « Votre publicité ici » : cadre de la maquette + lien commercial */
.autopromo .z-s a { color: inherit; text-decoration: underline; }

/* --- Page de rubrique (/category/<slug>/) --- */
.rubrique-page { padding: 34px 22px 40px; }
.rubrique-page .sh h1 { font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.rubrique-page .sh h1::before { content: ""; width: 9px; height: 28px; border-radius: 3px; background: var(--amber); display: inline-block; }
.rubrique-page .total { color: var(--muted); font-size: 14px; margin: -10px 0 24px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 36px; font-family: var(--disp); font-size: 14px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .courante { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 700; }

/* --- Bandeau de consentement aux cookies (app statistiques) --- */
.choix-mesure { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 760px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; line-height: 1.5; }
.choix-mesure[hidden] { display: none; }
.choix-mesure p { flex: 1 1 320px; margin: 0; }
.choix-mesure .choix-actuel { flex-basis: 100%; order: -1; font-weight: 700; color: var(--amber); }
.choix-mesure-boutons { display: flex; gap: 10px; }
.choix-mesure button { font-family: var(--disp); font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 999px; cursor: pointer; border: 1px solid #fff; }
.choix-mesure .refuser { background: transparent; color: #fff; }
.choix-mesure .accepter { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* ===== Page de recherche (/search/) ===== */
.recherche { display: flex; gap: 10px; max-width: 640px; margin: 0 0 24px; }
.recherche input { flex: 1; min-width: 0; padding: 12px 16px; font-size: 16px; border: 1px solid var(--line); border-radius: 999px; }
.recherche input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.recherche button { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--disp); font-weight: 600; cursor: pointer; }
.recherche button:hover { background: var(--amber); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== En-tête : panneaux de la loupe et du menu ☰ (js/letamtamparleur.js) ===== */
.icon-btn { font: inherit; font-size: 15px; }
.icon-btn.ouvert { background: var(--amber); color: #141414; border-color: var(--amber); }
.panneau-entete { border-top: 1px solid var(--line); background: #fff; padding: 18px 0 20px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.panneau-entete[hidden] { display: none; }
/* .head .wrap (style.css) est une ligne flexible de 76 px : on l'annule dans les panneaux */
.head .panneau-entete .wrap { display: block; height: auto; }
.panneau-entete .recherche { margin: 0 auto; }
.menu-complet { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; }
.menu-complet a { font-family: var(--disp); font-weight: 600; font-size: 15px; color: #2a2620; padding: 10px 14px; border-radius: 10px; }
.menu-complet a:hover { background: var(--soft); color: var(--ink); }
.menu-reseaux { margin-top: 14px; padding: 12px 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.menu-reseaux a { color: var(--ink); font-weight: 600; }
.menu-reseaux a:hover { color: var(--amber); }
/* Pied de page : pastilles des réseaux, devenues des liens */
.foot .soc a { width: 38px; height: 38px; border-radius: 999px; background: #241f1a; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #c7c0b4; }
.foot .soc a:hover { background: var(--amber); color: #141414; }

/* ===== Newsletter (page d'accueil) ===== */
.newsletter { position: relative; z-index: 2; }
/* Champ piège à robots : hors de l'écran pour les humains (bandeau et fenêtre) */
.piege { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.newsletter .cta-form button:disabled { opacity: .6; cursor: wait; }
.newsletter-message { min-height: 1.4em; margin-top: 12px; font-size: 14px; color: #fff; }
.newsletter-message:empty { display: none; }
.newsletter-message[data-etat="ok"] { color: #9BE3A8; }
.newsletter-message[data-etat="erreur"] { color: #FFB4A8; }
.newsletter-mention { margin-top: 8px; font-size: 12px; color: #9f978a; }

/* Bandeau « Inscription confirmée » (retour du lien de confirmation de la newsletter) */
.bandeau-confirmation { display: flex; align-items: center; gap: 18px; margin: 24px 0 4px; padding: 20px 24px; border-radius: 16px; background: #E8F7EC; border: 2px solid #2E9B4F; box-shadow: 0 8px 24px rgba(46,155,79,.18); animation: apparition .4s ease-out; }
.bandeau-confirmation .coche { flex: none; width: 48px; height: 48px; border-radius: 999px; background: #2E9B4F; color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bandeau-confirmation p { flex: 1; margin: 0; color: #1B4D2B; font-size: 15px; line-height: 1.45; }
.bandeau-confirmation strong { font-family: var(--disp); font-size: 20px; color: #145A2C; }
.bandeau-confirmation button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: #1B4D2B; font-size: 26px; line-height: 1; cursor: pointer; }
.bandeau-confirmation button:hover { background: rgba(46,155,79,.15); }
@keyframes apparition { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ===== Fenêtre d'inscription à la newsletter (<dialog>) ===== */
/* margin/inset : le « reset » de style.css annule le centrage natif du <dialog> */
.fenetre-newsletter { margin: auto; inset: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 40px 40px 32px; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: auto; }
/* Entrée animée : le script ajoute .visible juste après l'ouverture (fonctionne
   aussi dans Safari, qui n'anime pas toujours l'apparition d'un <dialog>). */
.fenetre-newsletter { opacity: 0; transform: translateY(40px) scale(.9); transition: opacity .4s ease-out, transform .45s cubic-bezier(.2,.9,.3,1.25); }
.fenetre-newsletter.visible { opacity: 1; transform: none; }
.fenetre-newsletter::backdrop { background: rgba(26,20,14,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fond-entree .35s ease-out; }
@keyframes fond-entree { from { opacity: 0; } to { opacity: 1; } }
/* Pastille ✉ / ✓ : petit rebond à l'arrivée */
.fenetre-newsletter.visible .pastille { animation: rebond .6s .15s both; }
@keyframes rebond { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .fenetre-newsletter { transition: none; transform: none; }
  .fenetre-newsletter.visible .pastille { animation: none; }
}
.fenetre-newsletter .fermer { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--soft); font-size: 24px; line-height: 1; cursor: pointer; color: #555; }
.fenetre-newsletter .fermer:hover { background: var(--amber); color: #141414; }
.fenetre-newsletter .pastille { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 999px; background: var(--amber); color: #141414; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.fenetre-newsletter .pastille.ok { background: #2E9B4F; color: #fff; }
.fenetre-newsletter h2 { text-align: center; font-size: 26px; line-height: 1.2; }
.fenetre-newsletter .intro, .fenetre-newsletter .texte-merci { text-align: center; color: var(--muted); margin: 8px 0 24px; font-size: 15px; }
.fenetre-newsletter form { display: flex; flex-direction: column; gap: 14px; }
.fenetre-newsletter .ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fenetre-newsletter label { display: flex; flex-direction: column; gap: 6px; font-family: var(--disp); font-weight: 600; font-size: 14px; }
.fenetre-newsletter .facultatif { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 12.5px; }
.fenetre-newsletter .obligatoire { color: #C0261B; }
.fenetre-newsletter input[type=text], .fenetre-newsletter input[type=email] { width: 100%; padding: 13px 16px; font-size: 16px; font-family: var(--sans); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.fenetre-newsletter input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,168,24,.25); }
/* Contrôle de l'adresse pendant la saisie */
.champ-email { position: relative; display: block; }
.champ-email input { padding-right: 44px !important; }
.champ-email .etat-email { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; }
.champ-email[data-etat="ok"] input { border-color: #2E9B4F; }
.champ-email[data-etat="ok"] .etat-email::after { content: "✓"; color: #2E9B4F; }
.champ-email[data-etat="erreur"] input { border-color: #C0261B; box-shadow: 0 0 0 3px rgba(192,38,27,.15); }
.champ-email[data-etat="erreur"] .etat-email::after { content: "!"; color: #C0261B; }
.aide-email { min-height: 1.2em; margin: -6px 0 0; font-size: 13px; color: #C0261B; }
.fenetre-newsletter .envoyer { margin-top: 6px; padding: 15px 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--disp); font-weight: 700; font-size: 16px; cursor: pointer; transition: background .15s, transform .1s; }
.fenetre-newsletter .envoyer:hover { background: var(--amber); color: #141414; }
.fenetre-newsletter .envoyer:active { transform: scale(.98); }
.fenetre-newsletter .envoyer:disabled { opacity: .6; cursor: wait; }
.fenetre-newsletter .newsletter-message { color: #C0261B; text-align: center; margin: 0; font-size: 14px; }
.fenetre-newsletter .mention { text-align: center; font-size: 12px; color: var(--muted); margin: 0; }
.fenetre-newsletter .etape-merci { text-align: center; }
.fenetre-newsletter .etape-merci .envoyer { width: 100%; }
@media (max-width: 600px) {
  .fenetre-newsletter { padding: 32px 20px 24px; }
  .fenetre-newsletter .ligne { grid-template-columns: 1fr; }
  .fenetre-newsletter h2 { font-size: 22px; }
}

/* Menu ☰ : bouton « Administration », même style que « Rédiger Article » de l'admin */
/* Lien « Administration » du pied de page : discret, même couleur que le texte du bas */
.subfoot .lien-admin { opacity: .7; }
.subfoot .lien-admin:hover { opacity: 1; }
/* Pastille de la fenêtre newsletter : le tam-tam du logo sur fond crème */
.fenetre-newsletter .pastille-tamtam { width: 84px; height: 84px; background: #FFF3E6; box-shadow: 0 0 0 3px #F3913F; }
.fenetre-newsletter .pastille-tamtam img { width: 62px; height: 62px; object-fit: contain; }

/* Bandeau newsletter : carte d'état à la place du champ, une fois le formulaire envoyé */
.newsletter-etat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); animation: apparition .5s ease-out; }
.newsletter-etat[hidden] { display: none; }
.newsletter-etat .etat-icone { flex: none; width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.newsletter-etat[data-etat="attente"] .etat-icone { background: var(--amber); color: #141414; animation: pulsation 2s ease-in-out infinite; }
.newsletter-etat[data-etat="attente"] .etat-icone::after { content: "✉"; }
.newsletter-etat[data-etat="confirme"] .etat-icone { background: #2E9B4F; color: #fff; }
.newsletter-etat[data-etat="confirme"] .etat-icone::after { content: "✓"; }
.newsletter-etat .etat-titre { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 17px; color: #fff; }
.newsletter-etat .etat-texte { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #c9c2b6; }
.newsletter-etat .etat-recommencer { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--amber); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes pulsation { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,168,24,.55); } 50% { box-shadow: 0 0 0 10px rgba(240,168,24,0); } }
@media (prefers-reduced-motion: reduce) { .newsletter-etat[data-etat="attente"] .etat-icone { animation: none; } }
/* Un élément masqué par le script (attribut hidden) le reste, même si un style
   de la maquette lui impose un affichage (ex. .cta-form { display: flex }) */
[hidden] { display: none !important; }

/* ===== Page simple (mentions légales, confidentialité) ===== */
.page-simple { max-width: 780px; padding-top: 10px; padding-bottom: 50px; }
.page-simple h1 { font-family: var(--disp); font-size: 34px; line-height: 1.2; margin-bottom: 6px; }
.page-simple .maj { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.page-simple .texte h2 { font-family: var(--disp); font-size: 20px; margin: 28px 0 10px; }
.page-simple .texte p { font-size: 16px; line-height: 1.7; color: #3a352d; margin-bottom: 12px; }
.page-simple .texte a { color: var(--amber-d); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Pied de page : toutes les rubriques sur 2 colonnes ; liens ===== */
.pied-rubriques ul { columns: 2; column-gap: 24px; }
.pied-rubriques li { break-inside: avoid; white-space: nowrap; }   /* un nom de rubrique tient sur une ligne */
/* Ordinateur : la colonne « Rubriques » prend la largeur de son contenu (2 sous-colonnes) */
@media (min-width: 981px) { .foot { grid-template-columns: 1.6fr auto 1fr 1fr; } }
/* Très petits écrans : une seule sous-colonne, pour ne pas déborder */
@media (max-width: 360px) { .pied-rubriques ul { columns: 1; } }
.foot li a:hover, .subfoot a:hover { color: var(--amber); }

/* ===== Mobile ===== */
@media (max-width: 600px) {
  /* Section Économie : image en pleine largeur, puis le texte (comme les autres cartes) */
  .list-item { grid-template-columns: 1fr; gap: 12px; padding: 12px 0; }
  .list-item .im { height: auto; aspect-ratio: 16 / 10; }
  .list-item h3 { font-size: 19px; }
  .list-item p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Carte d'état de la newsletter : pastille au-dessus, texte sur toute la largeur */
  .newsletter-etat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .newsletter-etat .etat-icone { width: 40px; height: 40px; font-size: 18px; }
  .newsletter-etat .etat-texte { overflow-wrap: anywhere; }
  .newsletter-etat .etat-recommencer { text-align: left; }

  .page-simple h1 { font-size: 27px; }
}

/* Bandeau newsletter sur mobile : marges intérieures réduites, et le champ peut
   rétrécir (sinon champ + bouton débordent à droite sur les petits écrans) */
@media (max-width: 600px) {
  .cta-card { padding: 28px 20px; grid-template-columns: minmax(0, 1fr); }
  .cta-card > * { min-width: 0; }
  .cta-form input { min-width: 0; }
  .cta-form button { padding: 14px 18px; }
}

/* --- Tailles réglables (Paramètres > Apparence du site, variables posées dans base.html) --- */
.menu a { font-size: var(--taille-menu, 14.5px); }
.pill { font-size: var(--taille-pastille, 11.5px); }
/* Petites pastilles des listes : même proportion que la maquette (10 / 11,5) */
.mini .pill, .list-item .pill { font-size: calc(var(--taille-pastille, 11.5px) * .87); }

/* --- Fenêtre newsletter : logo entier du journal --- */
.fenetre-newsletter .logo-fenetre { display: block; width: min(260px, 70%); height: auto; margin: 0 auto 18px; }
.fenetre-newsletter.visible .logo-fenetre { animation: rebond .6s .15s both; }
@media (prefers-reduced-motion: reduce) { .fenetre-newsletter.visible .logo-fenetre { animation: none; } }

/* --- Bandeau « Flash / Urgent » de l'accueil (Paramètres > Bandeau Flash) --- */
.flash { border-bottom: 1px solid var(--line); background: var(--paper); }
.flash-in { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.flash-titre { flex: none; background: var(--flash-couleur, #DD3333); color: #fff; font-family: var(--disp);
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; }
.flash-zone { flex: 1; min-width: 0; position: relative; overflow: hidden; height: 26px; margin: 0; padding: 0; list-style: none; }
.flash-zone a { font-family: var(--disp); font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
.flash-zone a:hover { color: var(--amber-d); }
/* Fondu : titres superposés, seul « .actif » est visible */
.flash-fondu .flash-zone li { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 26px; }
.flash-fondu .flash-zone li.actif { opacity: 1; z-index: 1; }
.flash-fleches { flex: none; display: flex; gap: 6px; }
.flash-fleches button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--ink); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.flash-fleches button:hover { background: var(--ink); color: #fff; }
/* Défilement : bande continue (titres écrits deux fois → boucle sans à-coup) */
.flash-piste { display: inline-flex; gap: 48px; padding-left: 100%; line-height: 26px; animation: flash-defile var(--flash-tour, 15s) linear infinite; }
.flash-defilement .flash-zone:hover .flash-piste { animation-play-state: paused; }
.flash-piste a + a::before { content: "•"; color: var(--flash-couleur, #DD3333); margin-right: 48px; margin-left: -24px; }
@keyframes flash-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .flash-piste { animation: none; padding-left: 0; }
  .flash-fondu .flash-zone li { transition: none; }
}
@media (max-width: 600px) {
  .flash-titre { font-size: 11px; padding: 4px 8px; }
  .flash-zone a { font-size: 14px; }
  .flash-fleches { display: none; }
}

/* --- Régie : défilement quand plusieurs publicités se partagent une zone ---
   Les publicités sont empilées dans la même case de grille (la zone prend la
   hauteur de la plus grande) ; seule « .actif » est visible et cliquable. */
.pub-defilement { display: grid; overflow: hidden; }
.pub-defilement > .pub { grid-area: 1 / 1; pointer-events: none; }
.pub-defilement > .pub.actif { pointer-events: auto; z-index: 1; }
/* Fondu enchaîné */
.pub-defilement-fondu > .pub { opacity: 0; visibility: hidden; transition: opacity var(--pub-transition, .8s) ease, visibility var(--pub-transition, .8s); }
.pub-defilement-fondu > .pub.actif { opacity: 1; visibility: visible; }
/* Glissement de droite à gauche */
.pub-defilement-glissement > .pub { transform: translateX(100%); visibility: hidden; transition: transform var(--pub-transition, .8s) ease, visibility var(--pub-transition, .8s); }
.pub-defilement-glissement > .pub.actif { transform: none; visibility: visible; }
.pub-defilement-glissement > .pub.sortant { transform: translateX(-100%); }
@media (prefers-reduced-motion: reduce) { .pub-defilement > .pub { transition: none; } }

/* --- Fenêtre « Nous contacter » (app contact) : reprend le style de la fenêtre newsletter --- */
.fenetre-newsletter textarea { width: 100%; padding: 13px 16px; font-size: 16px; font-family: var(--sans); border: 1.5px solid var(--line);
  border-radius: 12px; resize: vertical; min-height: 120px; transition: border-color .15s, box-shadow .15s; }
.fenetre-newsletter textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,168,24,.25); }
.fenetre-newsletter input[type=tel] { width: 100%; padding: 13px 16px; font-size: 16px; font-family: var(--sans); border: 1.5px solid var(--line); border-radius: 12px; }
.fenetre-newsletter input[type=tel]:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,168,24,.25); }
.fenetre-contact { width: min(620px, calc(100vw - 32px)); }
.fenetre-contact .erreur-champ { color: #C0261B; font-family: var(--sans); font-weight: 400; font-size: 13px; min-height: 0; }
.fenetre-contact .erreur-champ:empty { display: none; }
.fenetre-contact .champ-invalide { border-color: #C0261B !important; }
.page-contact .fenetre-newsletter h1 { text-align: center; font-size: 26px; line-height: 1.2; }
.page-contact .envoyer { display: inline-block; text-align: center; }
.menu-contact { margin-top: 14px; padding: 12px 14px 0; border-top: 1px solid var(--line); }
.menu-contact a { font-family: var(--disp); font-weight: 600; color: var(--ink); }
.menu-contact a:hover { color: var(--amber-d); }
.fenetre-contact .accuse { text-align: center; color: #2E9B4F; font-size: 13.5px; font-weight: 500; margin: -12px 0 20px; overflow-wrap: anywhere; }

/* --- Alignement des paragraphes choisi dans l'éditeur (classes posées par Wagtail) --- */
.texte-centre { text-align: center; }
.texte-droite { text-align: right; }
/* Justifié : césure automatique en français pour éviter les grands blancs entre les mots */
.texte-justifie { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* --- Étiquettes (18/10/2026) --- */
/* Bandeau « Tendances » sous le menu : une ligne qui défile au doigt sur mobile,
   sans élargir la page */
.tendances { background: var(--soft); border-bottom: 1px solid var(--line); }
.tendances .wrap { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.tendances-titre { flex: none; font-family: var(--disp); font-weight: 700; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--wood); }
.tendances-titre::before { content: "↗ "; color: var(--amber-d); }
.tendances-liste { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tendances-liste::-webkit-scrollbar { display: none; }
.tendances-liste a { flex: none; font-size: 13.5px; font-weight: 500; color: #2a2620; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); transition: .15s; }
.tendances-liste a:hover { border-color: var(--amber); color: var(--ink); }

/* Étiquettes en bas d'un article */
.etiquettes-article { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 8px;
  padding-top: 20px; border-top: 1px solid var(--line); }
.etiquettes-article span { font-family: var(--disp); font-weight: 600; font-size: 14px; color: var(--muted); margin-right: 4px; }
.etiquettes-article a { font-size: 14px; padding: 5px 13px; border-radius: 999px; background: var(--soft);
  border: 1px solid var(--line); color: #2a2620; transition: .15s; }
.etiquettes-article a:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* Page d'une étiquette : petit surtitre « Sujet » au-dessus du nom */
.surtitre-liste { font-family: var(--disp); font-weight: 600; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--wood); margin-bottom: 4px; }
