/* ============================================================
   INFO-LYON.FR | Design system
   Thème : couleurs de Lyon (bleu, blanc, rouge) + pierre dorée
   Polices : Newsreader (titres) › Figtree (corps)
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* Couleurs | bleu et rouge du blason de Lyon */
  --bleu:         #164C8C;   /* bleu du blason, couleur principale */
  --bleu-fonce:   #0F3667;
  --bleu-clair:   #3A78C4;
  --bleu-pale:    #E7EFF9;
  --rouge:        #C42032;   /* rouge du lion, accent */
  --rouge-clair:  #E04656;
  --rouge-pale:   #FBEAEC;
  --encre:        #16233A;   /* bleu nuit, texte fort */
  --encre-nuit:   #0C1626;
  --texte:        #1E2B3D;
  --texte-doux:   #6C7789;
  --fond:         #F5F7FB;   /* blanc bleuté */
  --fond-alt:     #E8EDF5;
  --blanc:        #FFFFFF;
  --bord:         rgba(22, 35, 58, 0.12);
  --ombre:        rgba(22, 35, 58, 0.10);

  /* Typographie */
  --titre: 'Newsreader', Georgia, 'Times New Roman', serif;
  --corps: 'Figtree', system-ui, -apple-system, sans-serif;

  /* Mesures */
  --arrondi:    10px;
  --arrondi-lg: 18px;
  --largeur:    1200px;
  --ecart:      1.5rem;

  --transi: 0.25s ease;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--corps);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-decoration: none; transition: color var(--transi); }
a:hover { color: var(--rouge); }
ul { list-style: none; }

/* ============================================================
   3. TYPOGRAPHIE
   ============================================================ */
h1, h2, h3 { font-family: var(--titre); line-height: 1.22; color: var(--encre); font-weight: 600; }
h4, h5, h6 { font-family: var(--corps); font-weight: 800; color: var(--encre); }

h1 { font-size: clamp(1.95rem, 4vw, 2.85rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.12rem, 2vw, 1.38rem); font-weight: 600; margin-bottom: 0.6rem; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--encre); }

/* Décoration des h2 dans le corps d'article : filet bicolore bleu + rouge */
.ly-contenu h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bleu-pale);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}
.ly-contenu h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 0.95em;
  background: linear-gradient(180deg, var(--bleu) 50%, var(--rouge) 50%);
  border-radius: 3px;
  margin-right: 0.6rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.ly-contenu h3 { margin-top: 1.75rem; color: var(--bleu); }
.ly-contenu ul, .ly-contenu ol { margin: 0 0 1.1rem 1.4rem; }
.ly-contenu li { margin-bottom: 0.35rem; }
.ly-contenu ul { list-style: disc; }
.ly-contenu ol { list-style: decimal; }
.ly-contenu a { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
.ly-contenu a:hover { color: var(--rouge); }

/* ============================================================
   4. STRUCTURE
   ============================================================ */
.ly-conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ly-section { padding: 4rem 0; }
.ly-section--claire  { background: var(--fond-alt); }
.ly-section--blanche { background: var(--blanc); }
.ly-section--bleue   { background: var(--bleu); color: var(--blanc); }

.ly-titre-section { text-align: center; margin-bottom: 2.5rem; }
.ly-titre-section h2 { display: inline-block; position: relative; }
/* Filet bicolore : moitié bleue, moitié rouge */
.ly-titre-section h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bleu) 50%, var(--rouge) 50%);
  margin: 0.55rem auto 0;
}
.ly-titre-section--gauche { text-align: left; margin-bottom: 1.75rem; }
.ly-titre-section--gauche h2::after { margin: 0.55rem 0 0; }
.ly-soustitre { color: var(--texte-doux); margin-top: 0.5rem; font-size: 0.95rem; }

/* ============================================================
   5. BANDEAU D'AVERTISSEMENT (haut de page)
   ============================================================ */
.ly-bandeau {
  position: relative;
  z-index: 1001;
  background: var(--encre-nuit);
  padding: 0.5rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  letter-spacing: 0.015em;
}
.ly-bandeau-point {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rouge);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ============================================================
   6. EN-TÊTE & MENU
   ============================================================ */
.ly-entete {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bord);
  transition: box-shadow var(--transi);
}
.ly-entete--fixee { box-shadow: 0 4px 24px rgba(22,35,58,0.14); }

.ly-entete-ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Le logo est une image : hauteur fixe, largeur automatique.
   Les attributs width/height du <img> réservent la place et évitent le saut de page. */
.ly-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.ly-logo-img { height: 50px; width: auto; display: block; }

.ly-nav { display: flex; align-items: center; margin-left: auto; }
.ly-nav-liste { display: flex; align-items: center; gap: 0.1rem; }

.ly-nav-lien {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--encre);
  border-radius: var(--arrondi);
  transition: color var(--transi), background var(--transi);
  white-space: nowrap;
}
.ly-nav-lien:hover, .ly-nav-lien.est-actif { color: var(--bleu); background: var(--bleu-pale); }
.ly-nav-fleche { font-size: 0.55rem; margin-left: 1px; opacity: 0.6; }

.ly-nav-item--deroulant { position: relative; }
.ly-sousmenu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 244px;
  background: var(--blanc);
  border-radius: var(--arrondi);
  box-shadow: 0 12px 40px rgba(22,35,58,0.20);
  border-top: 3px solid var(--rouge);
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transi), transform var(--transi);
}
.ly-nav-item--deroulant:hover .ly-sousmenu,
.ly-nav-item--deroulant:focus-within .ly-sousmenu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.ly-sousmenu li a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  color: var(--texte);
  transition: background var(--transi), color var(--transi), padding var(--transi);
}
.ly-sousmenu li a:hover { background: var(--bleu-pale); color: var(--bleu); padding-left: 1.4rem; }

.ly-cta-entete {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.85rem;
  padding: 0.55rem 0.95rem;
  background: var(--rouge);
  color: var(--blanc);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--arrondi);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(196,32,50,0.30);
  transition: background var(--transi), transform var(--transi);
  flex-shrink: 0;
}
.ly-cta-entete:hover { background: var(--bleu); color: var(--blanc); transform: translateY(-1px); }
.ly-cta-entete svg { width: 16px; height: 16px; flex-shrink: 0; }

.ly-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem;
}
.ly-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--encre); border-radius: 2px;
  transition: transform var(--transi), opacity var(--transi);
}
.ly-burger.est-ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ly-burger.est-ouvert span:nth-child(2) { opacity: 0; }
.ly-burger.est-ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   7. COUVERTURE (bandeau des pages intérieures)
   ============================================================ */
.ly-couverture {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ly-couverture-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--encre);
  transform: scale(1.03);
  transition: transform 0.6s ease;
}
.ly-couverture:hover .ly-couverture-photo { transform: scale(1); }
.ly-couverture-voile {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,22,38,0.94) 0%, rgba(22,35,58,0.68) 45%, rgba(22,35,58,0.20) 100%);
}
.ly-couverture-texte {
  position: relative; z-index: 1;
  padding: 2.5rem 1.25rem;
  width: 100%; max-width: var(--largeur);
  margin: 0 auto;
}
.ly-surtitre {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #FF9CA6;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.ly-couverture h1 { color: var(--blanc); margin-bottom: 0.75rem; }
.ly-couverture-accroche {
  color: rgba(255,255,255,0.87);
  font-size: 1.05rem; max-width: 660px; line-height: 1.65; margin-bottom: 0;
}
/* Un bandeau très large et très bas écrase la photo : on lui donne de la hauteur,
   d'autant plus que l'écran est large. */
.ly-couverture--courte { min-height: 340px; }
@media (min-width: 1100px) {
  .ly-couverture { min-height: 440px; }
  .ly-couverture--courte { min-height: 380px; }
}
@media (max-width: 600px) {
  .ly-couverture { min-height: 320px; }
  .ly-couverture--courte { min-height: 260px; }
}

/* ------------------------------------------------------------------
   Illustration en cours d'article | photo + légende + crédit
   ------------------------------------------------------------------ */
.ly-illustration { margin: 2rem 0; }
.ly-illustration img {
  width: 100%; height: auto; display: block;
  border-radius: var(--arrondi);
  border: 1px solid var(--bord);
}
.ly-illustration figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem; line-height: 1.5; color: var(--texte-doux);
}
.ly-illustration figcaption b { color: var(--encre); font-weight: 700; }
.ly-illustration-credit { display: block; font-size: 0.75rem; opacity: 0.8; margin-top: 0.15rem; }

/* Mention RGE dans une liste de professionnels */
.ly-pro-rge {
  display: inline-block; margin-top: 0.25rem;
  padding: 0.12rem 0.45rem; border-radius: 3px;
  background: #E4F3EA; color: #1F7A46;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
}

/* ------------------------------------------------------------------
   Film libre de droits, servi depuis notre serveur.
   preload="none" : rien n'est téléchargé tant que le visiteur ne lance pas
   la lecture. Aucun service tiers, donc aucun cookie.
   ------------------------------------------------------------------ */
.ly-film { margin: 2rem 0; }
.ly-film video {
  width: 100%; height: auto; display: block;
  background: #000;
  border-radius: var(--arrondi);
  border: 1px solid var(--bord);
}
.ly-film figcaption { margin-top: 0.55rem; font-size: 0.85rem; line-height: 1.5; color: var(--texte-doux); }
.ly-film figcaption b { color: var(--encre); font-weight: 700; }

/* Deux photos côte à côte (elles se remettent l'une sous l'autre sur mobile) */
.ly-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin: 2rem 0; }
.ly-duo .ly-illustration { margin: 0; }
/* Deux photos côte à côte doivent avoir la même hauteur, sinon la ligne se tord. */
.ly-duo .ly-illustration img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .ly-duo { grid-template-columns: 1fr; } }

/* ============================================================
   8. FIL D'ARIANE
   ============================================================ */
.ly-ariane-zone {
  background: var(--fond-alt);
  border-bottom: 1px solid var(--bord);
  padding: 0.6rem 0;
}
.ly-ariane ol { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; font-size: 0.8rem; }
.ly-ariane li { display: flex; align-items: center; gap: 0.25rem; color: var(--texte-doux); }
.ly-ariane li:not(:last-child)::after { content: '›'; opacity: 0.5; }
.ly-ariane li a { color: var(--texte-doux); }
.ly-ariane li a:hover { color: var(--bleu); }
.ly-ariane li:last-child { color: var(--texte); font-weight: 700; }

/* ============================================================
   9. CORPS D'ARTICLE + COLONNE LATÉRALE
   ============================================================ */
.ly-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  align-items: start;
}
/* Page sans colonne latérale (sujets courts : une enseigne, un service) */
.ly-page--simple { grid-template-columns: minmax(0, 820px); justify-content: center; }
.ly-contenu { min-width: 0; }
.ly-contenu > p:first-of-type { font-size: 1.08rem; }

/* Date de dernière mise à jour, en tête de contenu */
.ly-contenu > p.ly-maj {
  font-size: 0.82rem;
  color: var(--texte-doux);
  margin: 0 0 1.3rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--bord);
}
.ly-maj time { font-weight: 600; color: var(--texte); }

.ly-chapeau {
  font-size: 1.12rem !important;
  color: var(--texte);
  line-height: 1.7;
  border-left: 3px solid var(--rouge);
  padding-left: 1.1rem;
  margin-bottom: 1.6rem;
}

.ly-colonne { position: sticky; top: 130px; }
.ly-bloc {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--arrondi);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px var(--ombre);
}
.ly-bloc:first-child { border-top: 3px solid var(--bleu); }
.ly-bloc h4 { color: var(--bleu); margin-bottom: 0.75rem; }

.ly-bloc-liens { display: flex; flex-direction: column; gap: 0.35rem; }
.ly-bloc-liens a {
  font-size: 0.88rem; color: var(--texte);
  padding: 0.25rem 0.5rem 0.25rem 1rem;
  border-radius: 4px; display: block; position: relative;
  transition: background var(--transi), color var(--transi);
}
.ly-bloc-liens a::before { content: '›'; position: absolute; left: 0.35rem; color: var(--rouge); }
.ly-bloc-liens a:hover { background: var(--fond-alt); color: var(--bleu); }

.ly-bloc-cta {
  background: var(--encre);
  color: var(--blanc);
  border-radius: var(--arrondi);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.ly-bloc-cta h4 { color: var(--blanc); margin-bottom: 0.5rem; }
.ly-bloc-cta p { font-size: 0.88rem; opacity: 0.85; margin-bottom: 1rem; }
.ly-bloc-cta a {
  display: inline-block; background: var(--rouge); color: var(--blanc);
  padding: 0.5rem 1rem; border-radius: var(--arrondi);
  font-size: 0.85rem; font-weight: 800; transition: background var(--transi);
}
.ly-bloc-cta a:hover { background: var(--rouge-clair); color: var(--blanc); }

/* ============================================================
   10. COMPOSANTS ÉDITORIAUX
   ============================================================ */
.ly-note {
  background: var(--bleu-pale);
  border-left: 4px solid var(--bleu);
  border-radius: 0 var(--arrondi) var(--arrondi) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.ly-note h3 { color: var(--bleu); margin: 0 0 0.5rem; }

.ly-apercu {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-top: 4px solid var(--rouge);
  border-radius: var(--arrondi);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.ly-apercu h3 { color: var(--rouge); margin: 0 0 0.5rem; }

.ly-avertissement {
  background: #FFF6E5;
  border-left: 4px solid #D99400;
  border-radius: 0 var(--arrondi) var(--arrondi) 0;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  font-size: 0.88rem;
  color: var(--texte);
}
.ly-avertissement strong { color: #8A5E00; }

/* Fiche établissement */
.ly-fiche {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-left: 4px solid var(--bleu);
  border-radius: var(--arrondi);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: 0 2px 8px var(--ombre);
}
.ly-fiche h3 { color: var(--encre); margin: 0 0 0.5rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.ly-fiche-rang {
  font-family: var(--titre);
  font-size: 0.95rem; font-weight: 700;
  color: var(--blanc); background: var(--bleu);
  width: 1.7em; height: 1.7em; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.ly-fiche p { margin-bottom: 0.4rem; font-size: 0.92rem; }
.ly-fiche p:last-child { margin-bottom: 0; }
.ly-fiche-meta { color: var(--texte-doux); font-size: 0.85rem; }
.ly-fiche-etiquette {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--rouge); background: var(--rouge-pale);
  padding: 0.1rem 0.55rem; border-radius: 20px; margin-left: 0.35rem;
}

/* Cartes chiffres */
.ly-nombres { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0; }
.ly-nombre {
  flex: 1; min-width: 140px;
  background: var(--bleu-pale);
  border: 1px solid var(--bord);
  border-radius: var(--arrondi-lg);
  padding: 1.15rem 1rem; text-align: center;
}
.ly-nombre-val { display: block; font-family: var(--titre); font-size: 2rem; font-weight: 700; color: var(--bleu); line-height: 1.05; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.ly-nombre-lib { display: block; font-size: 0.8rem; color: var(--texte-doux); margin-top: 0.3rem; line-height: 1.3; }
.ly-nombre--rouge { background: var(--rouge-pale); }
.ly-nombre--rouge .ly-nombre-val { color: var(--rouge); }
.ly-nombre--neutre { background: var(--fond-alt); }
.ly-nombre--neutre .ly-nombre-val { color: var(--encre); }

/* FAQ statique */
.ly-faq {
  border: 1px solid var(--bord);
  border-radius: var(--arrondi);
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  background: var(--blanc);
}
.ly-faq h3 { color: var(--bleu); margin: 0 0 0.6rem; font-size: 1.02rem; }
.ly-faq p { margin: 0; }

/* Tableaux */
.ly-tableau-zone { overflow-x: auto; margin: 1.5rem 0; }
.ly-tableau { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ly-tableau th {
  background: var(--bleu); color: var(--blanc);
  text-align: left; padding: 0.7rem 1rem; font-weight: 700;
}
.ly-tableau td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
.ly-tableau tr:last-child td { border-bottom: none; }
.ly-tableau tr:nth-child(even) td { background: var(--fond-alt); }
/* Note sous un tableau : utilisee sur une dizaine de pages, elle n'avait aucun style
   et se lisait comme un paragraphe ordinaire. */
.ly-tableau-note { font-size: 0.82rem; color: var(--texte-doux); margin: 0.6rem 0 0; font-style: italic; }

/* Bloc Sources en bas de page : URL en clair, non cliquables */
.page-sources { font-size: 0.82rem; color: var(--texte-doux); margin: 0.6rem 0 0; padding-left: 1.1rem; }
.page-sources li { margin: 0.25rem 0; overflow-wrap: anywhere; }

/* Carte Leaflet */
.ly-carte {
  height: 420px; width: 100%;
  border-radius: var(--arrondi-lg);
  border: 1px solid var(--bord);
  box-shadow: 0 4px 18px var(--ombre);
  margin: 1.5rem 0;
  z-index: 0;
}
.ly-carte-legende { font-size: 0.82rem; color: var(--texte-doux); margin: -0.5rem 0 1.5rem; }
/* La meme legende sert de <caption> de tableau : le navigateur la place en haut et
   la centre par defaut, il faut donc la ramener sous le tableau et a gauche. */
caption.ly-carte-legende { caption-side: bottom; text-align: left; margin: 0.6rem 0 0; }

/* Cartes qui demandent plus de hauteur : reseau de metro, pharmacies, plan de ville. */
.ly-carte--haute { height: 520px; }

/* Utilitaires de mise en page, en remplacement d'attributs style dans le HTML. */
.ly-titre-espace { margin-bottom: 1.2rem; }
.ly-para-espace { margin-top: 2rem; }
.ly-mention { font-size: 0.85rem; color: var(--texte-doux); }
.ly-courriel-ligne { font-size: 1.15rem; }
.ly-champ-court { max-width: 120px; }
.ly-calc-verdict--colle { margin-top: 0; }
.ly-calc-option-nom-large { font-size: 1.05rem; line-height: 1.3; }

/* ------------------------------------------------------------------
   Pastilles de legende : la couleur porte l'information, elle doit donc
   correspondre exactement a celle du point sur la carte. On la nomme ici
   plutot que de la repeter en attribut style dans chaque page.
   ------------------------------------------------------------------ */
.ly-puce-rouge  { color: #C42032; }
.ly-puce-bleue  { color: #164C8C; }
.ly-puce-verte  { color: #1A7A3C; }
.ly-puce-orange { color: #D99400; }
/* Pharmacies : vert de garde et rouge des officines ouvertes en continu. */
.ly-puce-pharma { color: #1F7A46; }
/* Couleurs officielles des quatre lignes du metro lyonnais. */
.ly-ligne-a { color: #C42032; }
.ly-ligne-b { color: #1E58A8; }
.ly-ligne-c { color: #E88C00; }
.ly-ligne-d { color: #0F8A4D; }

/* Verdicts colores : le liseré gauche resume la conclusion d'un calculateur. */
.ly-calc-verdict--rouge  { border-left-color: #C42032; }
.ly-calc-verdict--orange { border-left-color: #D99400; }
.ly-calc-verdict--bleu   { border-left-color: #164C8C; }
.ly-calc-verdict--vert   { border-left-color: #1F7A46; }

/* Fiabilite d'une prevision meteo, de la plus sure a la plus incertaine. */
.ly-fiab-1 { color: #1F7A46; }
.ly-fiab-2 { color: #164C8C; }
.ly-fiab-3 { color: #D99400; }
.ly-fiab-4 { color: #C42032; }

/* ------------------------------------------------------------------
   Pastilles numerotees posees sur les cartes Leaflet. Elles sont creees
   en JavaScript : sans ces classes, tout leur habillage se retrouverait
   ecrit en clair dans un attribut style.
   ------------------------------------------------------------------ */
.ly-pin {
  color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ly-pin--num { background: #164C8C; min-width: 30px; height: 30px; padding: 0 5px; border-radius: 15px; font: 800 12px Figtree, sans-serif; }
.ly-pin--cp { background: #164C8C; padding: 3px 7px; border-radius: 12px; white-space: nowrap; font: 800 11px Figtree, sans-serif; }
.ly-pin--etape { background: #C42032; width: 26px; height: 26px; border-radius: 50%; font: 700 13px Figtree, sans-serif; }

/* Ligne de prevision sur 15 jours : jour, temperatures, pluie, fiabilite. */
.ly-prev-ligne { align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.ly-prev-jour { flex: 1 1 150px; text-transform: capitalize; }
.ly-prev-emoji { font-size: 1.2rem; margin-right: 0.4rem; }
.ly-prev-temp { flex: 0 0 auto; color: var(--texte); font-weight: 700; }
.ly-prev-pluie { flex: 0 0 70px; text-align: right; font-size: 0.85rem; }
.ly-prev-fiab { flex: 0 0 110px; text-align: right; font-size: 0.75rem; font-weight: 800; }
.ly-prev-liste { margin: 0; }

/* Graphiques */
.ly-graphe {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--arrondi-lg);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px var(--ombre);
}
.ly-graphe h3 { margin: 0 0 0.9rem; font-size: 1.05rem; color: var(--bleu); }
/* Chart.js en maintainAspectRatio:false prend la hauteur de son parent :
   le canvas DOIT être enveloppé dans .ly-graphe-toile, sinon il s'étire à l'infini. */
.ly-graphe-toile { position: relative; height: 340px; width: 100%; }
@media (max-width: 768px) { .ly-graphe-toile { height: 280px; } }

/* Barres comparatives (CSS pur) */
.ly-barres { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.5rem 0; }
.ly-barre-ligne { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.ly-barre-piste { background: var(--fond-alt); border-radius: 20px; height: 22px; overflow: hidden; }
.ly-barre-jauge { display: block; min-width: 3px; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--bleu-fonce), var(--bleu-clair)); }
.ly-barre-jauge--rouge { background: linear-gradient(90deg, var(--rouge), var(--rouge-clair)); }
.ly-barre-val { font-weight: 800; color: var(--encre); white-space: nowrap; }

/* Liste à coches */
.ly-coches { list-style: none !important; margin-left: 0 !important; }
.ly-coches li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.ly-coches li::before {
  content: ''; position: absolute; left: 0.15rem; top: 0.42em;
  width: 15px; height: 8px;
  border-left: 2px solid var(--rouge); border-bottom: 2px solid var(--rouge);
  transform: rotate(-45deg);
}

/* ---- Calculateur / simulateur interactif (réutilisable) ---- */
.ly-calc {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-top: 4px solid var(--rouge);
  border-radius: var(--arrondi-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 4px 18px var(--ombre);
}
.ly-calc h3 { margin: 0 0 0.35rem; color: var(--encre); }
.ly-calc-intro { font-size: 0.88rem; color: var(--texte-doux); margin-bottom: 1.25rem; }
.ly-calc-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.ly-calc-champ label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--encre); margin-bottom: 0.4rem; }
.ly-calc-champ select,
.ly-calc-champ input[type="number"],
.ly-calc-champ input[type="search"],
.ly-calc-champ input[type="date"],
.ly-calc-champ input[type="text"] {
  width: 100%; font-family: var(--corps); font-size: 0.95rem; color: var(--texte);
  background: var(--fond); border: 1px solid var(--bord); border-radius: var(--arrondi);
  padding: 0.6rem 0.75rem; cursor: pointer;
}
/* Safari et iOS ignorent la hauteur d'un champ date et le laissent depasser sa boite. */
.ly-calc-champ input[type="date"] {
  -webkit-appearance: none; appearance: none;
  min-height: 2.6rem; line-height: 1.35;
}
.ly-calc-champ select:focus, .ly-calc-champ input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-pale); }
/* Un champ texte n'est pas un menu deroulant : curseur de saisie, pas de main. */
.ly-calc-champ input[type="search"], .ly-calc-champ input[type="text"] { cursor: text; -webkit-appearance: none; appearance: none; }
.ly-calc-champ input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.ly-calc-curseur { display: flex; align-items: center; gap: 0.75rem; }
.ly-calc-curseur input[type="range"] { flex: 1; accent-color: var(--rouge); cursor: pointer; }
.ly-calc-valeur {
  font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: var(--bleu);
  min-width: 2.4em; text-align: center;
}

.ly-calc-sortie { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.ly-calc-option {
  border: 1px solid var(--bord); border-radius: var(--arrondi);
  padding: 0.9rem 1rem; text-align: center; background: var(--fond);
  transition: background var(--transi), border-color var(--transi), transform var(--transi);
}
.ly-calc-option.est-conseille {
  background: var(--rouge-pale); border-color: var(--rouge); border-width: 2px;
  transform: translateY(-3px);
}
/* Variante cliquable : l'option est un bouton, elle doit inviter au clic. */
.ly-calc-option.est-clic { cursor: pointer; text-align: left; }
.ly-calc-option.est-clic:hover { border-color: var(--bleu); background: var(--blanc); transform: translateY(-2px); }
.ly-calc-option.est-clic:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
/* Chaque élément d'une option occupe sa propre ligne : sans cela, le libellé
   et sa description se collent l'un à l'autre ("En trainJ'arrive à la gare"). */
.ly-calc-option > strong,
.ly-calc-option > span { display: block; }
.ly-calc-option-nom { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); }
.ly-calc-option.est-conseille .ly-calc-option-nom { color: var(--rouge); }
.ly-calc-option-prix { font-family: var(--titre); font-size: 1.7rem; font-weight: 700; color: var(--encre); line-height: 1.2; margin: 0.25rem 0 0.1rem; }
.ly-calc-option-detail { font-size: 0.78rem; color: var(--texte-doux); }
.ly-calc-verdict {
  margin-top: 1.25rem; padding: 0.9rem 1.1rem;
  background: var(--bleu-pale); border-left: 4px solid var(--bleu);
  border-radius: 0 var(--arrondi) var(--arrondi) 0;
  font-size: 0.92rem;
}
.ly-calc-verdict strong { color: var(--bleu); }
.ly-calc-note { font-size: 0.78rem; color: var(--texte-doux); margin-top: 1rem; font-style: italic; }

/* Liste a cocher dans un bloc outil : une ligne cliquable par item. */
.ly-calc-coches { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: 0.55rem; }
.ly-calc-coches li { margin: 0; }
.ly-calc-coches label {
  display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer;
  background: var(--fond); border: 1px solid var(--bord); border-radius: var(--arrondi);
  padding: 0.7rem 0.85rem; font-size: 0.94rem; line-height: 1.45;
  transition: background var(--transi), border-color var(--transi);
}
.ly-calc-coches label:hover { border-color: var(--bleu); }
.ly-calc-coches input[type="checkbox"] {
  flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem;
  accent-color: var(--rouge); cursor: pointer;
}
.ly-calc-coches input[type="checkbox"]:checked + span { font-weight: 700; color: var(--encre); }
.ly-calc-coches label:has(input:checked) { background: var(--rouge-pale); border-color: var(--rouge); }
.ly-calc-verdict--alerte { background: var(--rouge-pale); border-left-color: var(--rouge); }
.ly-calc-verdict--alerte strong { color: var(--rouge); }

/* Pastilles lettrees sur une carte : la lettre du pavillon se lit sans cliquer. */
.ly-pav {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bleu); color: #fff; border: 2px solid #fff;
  font-family: var(--titre); font-weight: 700; font-size: 0.82rem; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.ly-pav--urgence { background: var(--rouge); width: 30px; height: 30px; font-size: 0.9rem; }
.ly-pav--repere { background: var(--encre); }

/* ---- Frise chronologique (réutilisable) ---- */
.ly-frise { position: relative; margin: 1.75rem 0 2rem; padding-left: 1.9rem; }
.ly-frise::before {
  content: ''; position: absolute; left: 6px; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: linear-gradient(180deg, var(--bleu), var(--rouge));
  border-radius: 2px;
}
.ly-frise-etape { position: relative; padding-bottom: 1.35rem; }
.ly-frise-etape:last-child { padding-bottom: 0; }
.ly-frise-etape::before {
  content: ''; position: absolute; left: -1.9rem; top: 0.45rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blanc); border: 3px solid var(--bleu);
  box-shadow: 0 0 0 3px var(--fond);
}
.ly-frise-etape--fort::before { border-color: var(--rouge); background: var(--rouge); }
.ly-frise-date {
  display: inline-block; font-family: var(--titre); font-weight: 700;
  font-size: 1.05rem; color: var(--bleu); margin-right: 0.5rem;
}
.ly-frise-etape--fort .ly-frise-date { color: var(--rouge); }
.ly-frise-texte { font-size: 0.93rem; line-height: 1.6; }
.ly-frise-texte strong { color: var(--encre); }

/* ---- Test interactif à cocher (réutilisable) ---- */
.ly-test-liste { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.4rem; }
.ly-test-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--fond); border: 1px solid var(--bord);
  border-radius: var(--arrondi); cursor: pointer;
  transition: background var(--transi), border-color var(--transi);
}
.ly-test-item:hover { background: var(--bleu-pale); border-color: var(--bleu-clair); }
.ly-test-item input { margin-top: 0.28rem; width: 17px; height: 17px; accent-color: var(--bleu); cursor: pointer; flex-shrink: 0; }
.ly-test-item.est-coche { background: var(--bleu-pale); border-color: var(--bleu); }
.ly-test-item.est-coche.est-rouge { background: var(--rouge-pale); border-color: var(--rouge); }
.ly-test-texte { font-size: 0.92rem; line-height: 1.5; }
.ly-test-texte strong { display: block; }
.ly-test-texte small { color: var(--texte-doux); font-size: 0.82rem; }
.ly-test-score {
  text-align: center; padding: 1.1rem;
  border-radius: var(--arrondi); background: var(--fond-alt);
  transition: background var(--transi);
}
.ly-test-jauge { height: 10px; border-radius: 20px; background: var(--bord); overflow: hidden; margin: 0.75rem 0 1rem; }
.ly-test-jauge span { display: block; height: 100%; border-radius: 20px; background: var(--bleu); transition: width 0.35s ease, background 0.35s ease; }
.ly-test-verdict { font-family: var(--titre); font-size: 1.25rem; font-weight: 600; color: var(--encre); }
.ly-test-detail { font-size: 0.9rem; color: var(--texte-doux); margin-top: 0.35rem; }

/* ---- Bulletin météo en direct (Open-Meteo) ---- */
.ly-meteo {
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu-clair));
  border-radius: var(--arrondi-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
  color: var(--blanc);
  box-shadow: 0 10px 30px rgba(22,35,58,0.22);
}
.ly-meteo-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.ly-meteo-tete h2 { color: var(--blanc); font-size: 1.25rem; margin: 0; padding: 0; border: none; }
.ly-meteo-tete h2::before { display: none; }
.ly-meteo-maj { font-size: 0.78rem; opacity: 0.8; }

.ly-meteo-maintenant { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.22); margin-bottom: 1.1rem; }
.ly-meteo-emoji { font-size: 3.4rem; line-height: 1; }
.ly-meteo-temp { font-family: var(--titre); font-size: 3.2rem; font-weight: 700; line-height: 1; }
.ly-meteo-desc { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.ly-meteo-detail { font-size: 0.85rem; opacity: 0.85; }
.ly-meteo-bloc { min-width: 0; }

.ly-meteo-jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.ly-meteo-jour {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--arrondi);
  padding: 0.75rem 0.35rem;
  text-align: center;
}
.ly-meteo-jour-nom { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; opacity: 0.85; }
.ly-meteo-jour-ico { font-size: 1.5rem; margin: 0.3rem 0; line-height: 1; }
.ly-meteo-jour-max { font-weight: 800; font-size: 0.95rem; }
.ly-meteo-jour-min { font-size: 0.8rem; opacity: 0.75; }
.ly-meteo-note { font-size: 0.78rem; opacity: 0.8; margin: 1rem 0 0; }
.ly-meteo-note a { color: var(--blanc); text-decoration: underline; }
/* Le message d'erreur remplace la grille entiere des jours : il doit donc
   occuper toute la largeur de la grille, sinon il se loge dans une colonne. */
.ly-meteo-erreur { font-size: 0.9rem; opacity: 0.9; grid-column: 1 / -1; }
/* Les jours se partagent la largeur a parts egales. */
.ly-meteo-jour--souple { flex: 1; }

@media (max-width: 768px) {
  .ly-meteo-jours { grid-template-columns: repeat(4, 1fr); }
  .ly-meteo-temp { font-size: 2.6rem; }
  .ly-meteo-emoji { font-size: 2.8rem; }
}
@media (max-width: 420px) {
  .ly-meteo-jours { grid-template-columns: repeat(3, 1fr); }
}

/* Encadré horaires / infos pratiques */
.ly-horaires {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--arrondi);
  overflow: hidden;
  margin: 1.5rem 0;
}
.ly-horaires-ligne { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.ly-horaires-ligne:nth-child(even) { background: var(--fond-alt); }
.ly-horaires-ligne strong { color: var(--encre); }
.ly-horaires-ligne span { color: var(--texte-doux); }

/* ============================================================
   11. BOUTONS
   ============================================================ */
.ly-bouton {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  border-radius: var(--arrondi);
  font-weight: 800; font-size: 0.92rem;
  transition: background var(--transi), color var(--transi), transform var(--transi);
  cursor: pointer; border: none;
}
.ly-bouton--bleu { background: var(--bleu); color: var(--blanc); }
.ly-bouton--bleu:hover { background: var(--bleu-fonce); color: var(--blanc); transform: translateY(-1px); }
.ly-bouton--rouge { background: var(--rouge); color: var(--blanc); }
.ly-bouton--rouge:hover { background: var(--bleu); color: var(--blanc); transform: translateY(-1px); }
.ly-bouton--transparent { background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.6); color: var(--blanc); backdrop-filter: blur(4px); }
.ly-bouton--transparent:hover { background: var(--blanc); border-color: var(--blanc); color: var(--encre); transform: translateY(-1px); }
.ly-bouton--grand { padding: 0.95rem 2rem; font-size: 1rem; }

/* Boutons dans le corps d'article : neutraliser le style de lien souligné */
.ly-contenu a.ly-bouton { color: var(--blanc); text-decoration: none; }
.ly-contenu a.ly-bouton:hover { color: var(--blanc); text-decoration: none; }
.ly-contenu a.ly-bouton--transparent { color: var(--blanc); }
.ly-contenu a.ly-bouton--transparent:hover { color: var(--encre); }

/* ============================================================
   12. APPARITION AU SCROLL
   ============================================================ */
.ly-apparait { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.ly-apparait.est-visible { opacity: 1; transform: translateY(0); }
.ly-apparait--d1 { transition-delay: 0.1s; }
.ly-apparait--d2 { transition-delay: 0.2s; }
.ly-apparait--d3 { transition-delay: 0.3s; }

/* ============================================================
   13. ACCUEIL
   ============================================================ */
.ly-ouverture {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center; overflow: hidden;
}
.ly-ouverture-photo { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--encre); }
.ly-ouverture-voile { position: absolute; inset: 0; background: linear-gradient(102deg, rgba(12,22,38,0.90) 0%, rgba(22,35,58,0.62) 46%, rgba(22,35,58,0.14) 100%); }
.ly-ouverture-ligne {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; width: 100%;
  padding-top: 3.5rem; padding-bottom: 3.5rem;
}
.ly-ouverture-texte { max-width: 610px; }
.ly-ouverture-surtitre {
  display: inline-block; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: #FF9CA6; font-weight: 800; margin-bottom: 1rem;
}
.ly-ouverture-titre { color: var(--blanc); font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.03; margin-bottom: 1.25rem; }
.ly-ouverture-titre b { color: #FF8494; font-weight: 600; }
.ly-ouverture-accroche { color: rgba(255,255,255,0.9); font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.75rem; max-width: 540px; }
.ly-ouverture-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.ly-chiffres {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-radius: var(--arrondi-lg);
  box-shadow: 0 24px 60px rgba(12,22,38,0.42);
  padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  min-width: 258px; flex-shrink: 0;
  border-top: 4px solid var(--rouge);
}
.ly-chiffre { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.ly-chiffre-ico {
  grid-row: span 2; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bleu); background: var(--bleu-pale); border-radius: 50%;
}
.ly-chiffre-ico svg { width: 22px; height: 22px; }
.ly-chiffre-val { font-family: var(--titre); font-size: 1.55rem; font-weight: 700; color: var(--encre); line-height: 1.1; }
.ly-chiffre-val a { color: var(--encre); }
.ly-chiffre-val a:hover { color: var(--rouge); }
.ly-chiffre-lib { font-size: 0.8rem; color: var(--texte-doux); }
.ly-chiffre + .ly-chiffre { border-top: 1px solid var(--bord); padding-top: 1.25rem; }

/* Barre d'accès rapides : icônes en pastilles rondes */
.ly-acces { background: var(--blanc); border-bottom: 1px solid var(--bord); }
.ly-acces-ligne { display: grid; grid-template-columns: repeat(4, 1fr); }
.ly-acces-item { display: flex; align-items: center; gap: 0.9rem; padding: 1.4rem 1rem; color: var(--texte); transition: background var(--transi), color var(--transi); }
.ly-acces-item + .ly-acces-item { border-left: 1px solid var(--bord); }
.ly-acces-item:hover { background: var(--fond); color: var(--bleu); }
.ly-acces-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--bleu); background: var(--bleu-pale); flex-shrink: 0;
  transition: color var(--transi), background var(--transi), transform var(--transi);
}
.ly-acces-item:hover .ly-acces-ico { color: var(--blanc); background: var(--rouge); transform: translateY(-2px); }
.ly-acces-ico svg { width: 24px; height: 24px; }
.ly-acces-texte { display: flex; flex-direction: column; line-height: 1.25; }
.ly-acces-texte strong { font-size: 1rem; color: var(--encre); font-family: var(--titre); font-weight: 600; }
.ly-acces-item:hover .ly-acces-texte strong { color: var(--bleu); }
.ly-acces-texte small { font-size: 0.78rem; color: var(--texte-doux); }

/* Cartes à la une : liseré rouge qui apparaît en haut au survol */
.ly-vedettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ecart); }
.ly-vedette {
  position: relative;
  background: var(--blanc); border-radius: var(--arrondi-lg); overflow: hidden;
  box-shadow: 0 4px 18px var(--ombre);
  transition: transform var(--transi), box-shadow var(--transi);
  display: flex; flex-direction: column;
}
.ly-vedette::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2;
  background: var(--rouge);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.ly-vedette:hover { transform: translateY(-5px); box-shadow: 0 16px 38px var(--ombre); }
.ly-vedette:hover::before { transform: scaleX(1); }
.ly-vedette-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--fond-alt); }
.ly-vedette-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ly-vedette:hover .ly-vedette-photo img { transform: scale(1.06); }
.ly-vedette-corps { padding: 1.25rem 1.35rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.ly-vedette-etiquette {
  align-self: flex-start; font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 800; color: var(--bleu);
  background: var(--bleu-pale); padding: 0.25rem 0.6rem; border-radius: 100px; margin-bottom: 0.7rem;
}
.ly-vedette-titre { font-family: var(--titre); font-size: 1.18rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
.ly-vedette-desc { font-size: 0.86rem; color: var(--texte-doux); line-height: 1.6; flex: 1; }
.ly-vedette-suite { margin-top: 0.9rem; font-size: 0.84rem; font-weight: 800; color: var(--rouge); transition: color var(--transi); }
.ly-vedette:hover .ly-vedette-suite { color: var(--bleu); }

/* Bloc pratique (tuiles + encart pro) */
.ly-pratique { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.5rem; align-items: stretch; }
.ly-tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ly-tuile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; text-align: center;
  background: var(--fond); border: 1px solid var(--bord); border-radius: var(--arrondi);
  padding: 1.25rem 0.5rem; color: var(--texte);
  transition: transform var(--transi), box-shadow var(--transi), border-color var(--transi), background var(--transi), color var(--transi);
}
.ly-tuile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px var(--ombre); border-color: var(--bleu); background: var(--blanc); color: var(--bleu); }
.ly-tuile-ico { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--bleu); }
.ly-tuile-ico svg { width: 30px; height: 30px; }
.ly-tuile:hover .ly-tuile-ico { color: var(--rouge); }
.ly-tuile-lib { font-size: 0.82rem; font-weight: 700; }

.ly-encart-pro {
  position: relative; border-radius: var(--arrondi-lg); overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; min-height: 260px; color: var(--blanc);
}
.ly-encart-pro::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,22,38,0.94) 0%, rgba(12,22,38,0.48) 60%, rgba(12,22,38,0.15) 100%); }
.ly-encart-pro-corps { position: relative; z-index: 1; padding: 1.75rem; }
.ly-encart-pro-corps h3 { color: var(--blanc); margin-bottom: 0.5rem; }
.ly-encart-pro-corps p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-bottom: 0.9rem; }
.ly-encart-pro-suite { font-weight: 800; color: #FF9CA6; }
.ly-encart-pro:hover .ly-encart-pro-suite { color: var(--blanc); }

/* Bandeau "vivre à Lyon" */
.ly-vivre { background: var(--bleu); color: var(--blanc); padding: 3.5rem 0; }
.ly-vivre-ligne { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.ly-vivre-intro h2 { color: var(--blanc); }
.ly-vivre-intro h2::after { display: none; }
.ly-vivre-intro p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.ly-vivre-cartes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.ly-vivre-carte {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; text-align: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--arrondi); padding: 1.4rem 0.5rem;
  color: var(--blanc); font-size: 0.85rem; font-weight: 700;
  transition: background var(--transi), transform var(--transi), color var(--transi);
}
.ly-vivre-carte:hover { background: var(--blanc); color: var(--bleu); transform: translateY(-3px); }
.ly-vivre-carte-ico { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: #FF9CA6; }
.ly-vivre-carte-ico svg { width: 30px; height: 30px; }
.ly-vivre-carte:hover .ly-vivre-carte-ico { color: var(--rouge); }

/* Puces de liens rapides */
.ly-puces { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 0.75rem; }
.ly-puce {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--arrondi);
  padding: 0.75rem 1rem; font-size: 0.88rem; font-weight: 700; color: var(--texte);
  transition: background var(--transi), color var(--transi), border-color var(--transi);
  box-shadow: 0 1px 4px var(--ombre);
}
.ly-puce:hover { background: var(--bleu-pale); border-color: var(--bleu); color: var(--bleu); }
.ly-puce::before { content: '→'; color: var(--rouge); font-weight: 900; }

/* Bloc alentours (Beaujolais, Alpes) */
.ly-alentours { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.ly-alentours-photo { background-size: cover; background-position: center; min-height: 440px; }
.ly-alentours-corps { position: relative; background: var(--fond-alt); padding: 4rem clamp(1.5rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.ly-alentours-deco { position: absolute; top: -10px; right: -10px; width: 170px; height: 170px; color: var(--bleu-clair); opacity: 0.25; }
.ly-alentours-corps h2 { max-width: 400px; }
.ly-alentours-corps > p { color: var(--texte-doux); max-width: 460px; margin-bottom: 1.5rem; }
.ly-alentours-liens { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
.ly-alentours-liens a { font-size: 0.9rem; font-weight: 700; color: var(--bleu); }
.ly-alentours-liens a:hover { color: var(--rouge); }

/* Bandeau d'appel (partenaire) */
.ly-appel { background: var(--encre); color: var(--blanc); padding: 3rem 0; }
.ly-appel-ligne { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ly-appel-texte { max-width: 640px; }
.ly-appel-texte h2 { color: var(--blanc); margin-bottom: 0.6rem; }
.ly-appel-texte h2::after { display: none; }
.ly-appel-texte p { color: rgba(255,255,255,0.82); margin-bottom: 0; }

/* Bloc agenda sur l'accueil */
.ly-agenda-accueil { padding: 2.8rem 0 0.5rem; }
.ly-agenda-accueil-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.ly-agenda-accueil-tete h2 { margin: 0; }
.ly-agenda-accueil-tout { font-size: 0.9rem; font-weight: 800; color: var(--bleu); white-space: nowrap; }
.ly-agenda-accueil-tout:hover { color: var(--rouge); }

/* Agenda : liste d'événements */
.ly-agenda-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.ly-evenement {
  display: flex; gap: 1rem; background: var(--blanc);
  border: 1px solid var(--bord); border-radius: var(--arrondi);
  padding: 0.9rem 1rem; box-shadow: 0 4px 18px var(--ombre);
  transition: box-shadow var(--transi), transform var(--transi);
}
.ly-evenement:hover { box-shadow: 0 8px 28px rgba(22,35,58,0.16); transform: translateY(-2px); }
.ly-evenement-date {
  flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu-clair)); color: var(--blanc);
  border-radius: var(--arrondi); height: 58px; align-self: center;
}
.ly-evenement-jour { font-family: var(--titre); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.ly-evenement-mois { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; margin-top: 2px; }
.ly-evenement-corps { flex: 1; min-width: 0; }
.ly-evenement-etiquette { display: inline-block; font-size: 0.68rem; font-weight: 800; color: var(--rouge); background: var(--rouge-pale); padding: 0.1rem 0.6rem; border-radius: 20px; margin-bottom: 0.3rem; }
.ly-evenement-titre { font-size: 1rem; margin: 0 0 0.3rem; line-height: 1.3; font-family: var(--corps); font-weight: 800; }
.ly-evenement-titre a { color: var(--encre); }
.ly-evenement-titre a:hover { color: var(--rouge); }
.ly-evenement-meta { font-size: 0.85rem; color: var(--texte-doux); margin: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; align-items: center; }
.ly-evenement-quand { font-weight: 800; color: var(--bleu); }
.ly-evenement-prix { color: #1F7A46; font-weight: 800; background: #E5F3EA; padding: 0 0.5rem; border-radius: 12px; }

/* Agenda dynamique (DATAtourisme) */
.ly-agenda-live { margin: 0 0 2rem; }
.ly-agenda-live-tete { margin-bottom: 1rem; }
.ly-agenda-live-tete h2 { margin-bottom: 0.2rem; }
.ly-agenda-maj { font-size: 0.82rem; color: var(--texte-doux); margin: 0; }
.ly-agenda-maj a { color: var(--texte-doux); text-decoration: underline; }
.ly-agenda-mois {
  font-family: var(--titre); font-size: 1.2rem; color: var(--encre);
  margin: 1.6rem 0 0.75rem; padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--rouge); display: inline-block;
}
.ly-agenda-note {
  font-size: 0.8rem; color: var(--texte-doux); font-style: italic;
  margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--bord);
}

/* ============================================================
   14. PIED DE PAGE
   ============================================================ */
.ly-pied { background: var(--encre-nuit); color: rgba(255,255,255,0.75); }
.ly-pied-haut { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ly-pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr; gap: 2rem; align-items: start; }
.ly-pied-logo { display: inline-block; margin-bottom: 0.9rem; }
.ly-pied-logo img { height: 38px; width: auto; display: block; }
.ly-pied-desc { font-size: 0.85rem; line-height: 1.7; opacity: 0.75; margin-bottom: 1rem; }
.ly-pied-cta { display: inline-block; background: var(--rouge); color: var(--blanc); font-size: 0.82rem; font-weight: 800; padding: 0.45rem 0.9rem; border-radius: var(--arrondi); transition: background var(--transi); }
.ly-pied-cta:hover { background: var(--rouge-clair); color: var(--blanc); }
.ly-pied-titre { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #FF9CA6; margin-bottom: 1rem; }
.ly-pied-liens { display: flex; flex-direction: column; gap: 0.4rem; }
.ly-pied-liens a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: color var(--transi), padding-left var(--transi); }
.ly-pied-liens a:hover { color: var(--blanc); padding-left: 4px; }
.ly-pied-bas { padding: 1.25rem 0; }
.ly-pied-bas-ligne { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.ly-pied-copy { font-size: 0.78rem; opacity: 0.5; }
.ly-pied-credit { font-size: 0.78rem; opacity: 0.65; }
.ly-pied-credit a { color: #FF9CA6; }
.ly-pied-credit a:hover { color: var(--blanc); }

/* Adresse e-mail protégée du copier-coller */
.ly-courriel { unicode-bidi: bidi-override; direction: rtl; white-space: nowrap; }

/* ============================================================
   15. FORMULAIRE
   ============================================================ */
.ly-form { margin: 1.5rem 0; }
.ly-champ { margin-bottom: 1.1rem; }
.ly-champ label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--encre); margin-bottom: 0.35rem; }
.ly-champ input, .ly-champ textarea {
  width: 100%; font-family: var(--corps); font-size: 1rem; color: var(--texte);
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--arrondi);
  padding: 0.65rem 0.85rem; transition: border-color var(--transi), box-shadow var(--transi);
}
.ly-champ input:focus, .ly-champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-pale); }
.ly-champ textarea { min-height: 150px; resize: vertical; }
.ly-champ--piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ly-form-note { font-size: 0.82rem; color: var(--texte-doux); margin-top: 0.5rem; }
.ly-form-msg { border-radius: var(--arrondi); padding: 0.9rem 1.1rem; margin: 1.25rem 0; font-size: 0.92rem; }
.ly-form-msg--ok { background: #E5F3EA; border-left: 4px solid #1F7A46; color: #1B5C36; }
.ly-form-msg--ko { background: #FFF6E5; border-left: 4px solid #D99400; color: #8A5E00; }

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
/* Sous 1500 px, le menu complet ne laisse plus la place au libellé du bouton :
   on garde le bouton en pastille ronde avec sa seule icône. */
@media (max-width: 1500px) {
  .ly-cta-entete { padding: 0.55rem; border-radius: 50%; margin-left: 0.5rem; }
  .ly-cta-entete-texte { display: none; }
  .ly-cta-entete svg { width: 18px; height: 18px; }
}

@media (max-width: 1024px) {
  .ly-page { grid-template-columns: 1fr; }
  .ly-colonne { position: static; }
  .ly-pied-grille { grid-template-columns: repeat(3, 1fr); }
  .ly-ouverture-ligne { flex-direction: column; align-items: stretch; }
  .ly-ouverture-texte { width: 100%; max-width: 100%; }
  .ly-ouverture-accroche { max-width: 100%; }
  .ly-chiffres { flex-direction: row; flex-wrap: wrap; align-self: stretch; min-width: 0; gap: 1.25rem 2rem; }
  .ly-chiffre { flex: 1; min-width: 140px; }
  .ly-chiffre + .ly-chiffre { border-top: none; padding-top: 0; }
  .ly-vedettes { grid-template-columns: repeat(2, 1fr); }
  .ly-pratique { grid-template-columns: 1fr; }
  .ly-vivre-ligne { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Menu en burger dès 1199 px : au-delà de 9 rubriques, la barre complète ne tient plus. */
@media (max-width: 1199px) {
  .ly-burger { display: flex; }
  .ly-cta-entete { margin-left: auto; margin-right: 0.25rem; }
  .ly-logo-img { height: 40px; }
  .ly-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--encre); border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0; flex-direction: column;
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  .ly-nav.est-ouvert { display: flex; }
  .ly-nav-liste { flex-direction: column; width: 100%; gap: 0; }
  .ly-nav-item { width: 100%; }
  .ly-nav-lien { padding: 0.75rem 1.25rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
  .ly-nav-lien:hover, .ly-nav-lien.est-actif { background: rgba(255,255,255,0.1); color: #FF9CA6; }
  .ly-sousmenu {
    position: static !important; transform: none !important; left: auto !important; top: auto !important;
    opacity: 0; pointer-events: none; max-height: 0; overflow: hidden;
    box-shadow: none; border: none; border-radius: 0;
    background: rgba(255,255,255,0.07);
    transition: max-height 0.3s ease, opacity 0.3s ease; min-width: 0; width: 100%;
  }
  .ly-nav-item--deroulant:hover .ly-sousmenu,
  .ly-nav-item--deroulant:focus-within .ly-sousmenu { opacity: 0; pointer-events: none; transform: none !important; }
  .ly-nav-item--deroulant.est-ouvert .ly-sousmenu { opacity: 1 !important; pointer-events: auto; max-height: 900px; transform: none !important; }
  .ly-sousmenu li a { padding: 0.6rem 1.25rem 0.6rem 2rem; color: rgba(255,255,255,0.85) !important; font-size: 0.9rem; }
  .ly-sousmenu li a:hover { background: rgba(255,255,255,0.1); padding-left: 2.25rem; color: var(--blanc) !important; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .ly-bandeau { position: static; padding: 0.5rem 1rem; font-size: 0.8rem; }

  .ly-puces { grid-template-columns: repeat(2, 1fr); }
  .ly-pied-grille { grid-template-columns: 1fr; gap: 1.5rem; }
  .ly-pied-bas-ligne { flex-direction: column; text-align: center; }
  .ly-ouverture { min-height: 0; }
  .ly-ouverture-ligne { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .ly-acces-ligne { grid-template-columns: repeat(2, 1fr); }
  .ly-acces-item:nth-child(odd) { border-left: none; }
  .ly-acces-item:nth-child(n+3) { border-top: 1px solid var(--bord); }
  .ly-vedettes { grid-template-columns: 1fr; }
  .ly-tuiles { grid-template-columns: repeat(3, 1fr); }
  .ly-vivre-cartes { grid-template-columns: repeat(2, 1fr); }
  .ly-alentours { grid-template-columns: 1fr; }
  .ly-alentours-photo { min-height: 240px; }
  .ly-alentours-corps { padding: 2.5rem 1.5rem; }
  .ly-alentours-liens { grid-template-columns: 1fr; }
  .ly-appel-ligne { flex-direction: column; align-items: flex-start; }
  .ly-couverture { min-height: 300px; }
  .ly-section { padding: 2.5rem 0; }
  .ly-agenda-liste { grid-template-columns: 1fr; }
  .ly-barre-ligne { grid-template-columns: 90px 1fr auto; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .ly-pied-grille { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* Chiffres clés : empilés sur petit écran (sinon débordement horizontal) */
@media (max-width: 600px) {
  .ly-chiffres { flex-direction: column; padding: 1.5rem; min-width: 0; width: 100%; }
  .ly-chiffre { flex: none; min-width: 0; width: 100%; }
  .ly-chiffre + .ly-chiffre { border-top: 1px solid var(--bord); padding-top: 1rem; }
}

@media (max-width: 480px) {
  .ly-puces { grid-template-columns: 1fr; }
  .ly-tuiles { grid-template-columns: repeat(2, 1fr); }
  .ly-vivre-cartes { grid-template-columns: 1fr 1fr; }
  .ly-ouverture-titre { font-size: 2.4rem; }
}

/* Très petits écrans : les accès rapides passent sur une seule colonne */
@media (max-width: 420px) {
  .ly-acces-ligne { grid-template-columns: 1fr; }
  .ly-acces-item + .ly-acces-item { border-left: none; border-top: 1px solid var(--bord); }
  .ly-acces-item:nth-child(n+3) { border-top: 1px solid var(--bord); }
  .ly-acces-texte { min-width: 0; }
}

/* ------------------------------------------------------------------
   Sélecteur de mois | comparateur des saisons
   ------------------------------------------------------------------ */
.ly-mois-grille {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem;
}
.ly-mois-bouton {
  cursor: pointer; padding: 0.65rem 0.2rem;
  border: 1px solid var(--bord); border-radius: var(--arrondi);
  background: var(--fond); color: var(--encre);
  font-family: var(--corps); font-size: 0.86rem; font-weight: 600;
  transition: background var(--transi), border-color var(--transi), transform var(--transi);
}
.ly-mois-bouton:hover { background: var(--blanc); border-color: var(--bleu); transform: translateY(-2px); }
.ly-mois-bouton.est-top { border-color: var(--rouge); color: var(--rouge); font-weight: 800; }
.ly-mois-bouton.est-choisi {
  background: var(--bleu); border-color: var(--bleu); color: #fff;
}
.ly-mois-bouton.est-top.est-choisi { background: var(--rouge); border-color: var(--rouge); color: #fff; }
@media (max-width: 560px) { .ly-mois-grille { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 360px) { .ly-mois-grille { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------
   Vérificateur d'artisan | interroge l'annuaire officiel des entreprises
   ------------------------------------------------------------------ */
.ly-verif {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-top: 4px solid var(--bleu);
  border-radius: var(--arrondi);
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
}
.ly-verif h3 { margin: 0 0 0.4rem; color: var(--bleu); }
.ly-verif-intro { font-size: 0.94rem; color: var(--texte-doux); margin: 0 0 1rem; }
.ly-verif-ligne { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ly-verif-saisie {
  flex: 1 1 240px; min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--bord); border-radius: var(--arrondi);
  font-family: var(--corps); font-size: 1rem; color: var(--encre); background: var(--fond);
}
.ly-verif-saisie:focus { outline: 3px solid var(--bleu); outline-offset: 1px; background: var(--blanc); }
.ly-verif-bouton {
  flex: 0 0 auto; cursor: pointer;
  padding: 0.7rem 1.4rem; border: 0; border-radius: var(--arrondi);
  background: var(--bleu); color: #fff;
  font-family: var(--corps); font-size: 0.95rem; font-weight: 700;
  transition: background var(--transi), transform var(--transi);
}
.ly-verif-bouton:hover { background: var(--rouge); transform: translateY(-2px); }
.ly-verif-sortie { margin-top: 1.1rem; }
.ly-verif-carte {
  border: 1px solid var(--bord); border-left: 4px solid #1F7A46;
  border-radius: 0 var(--arrondi) var(--arrondi) 0;
  padding: 0.9rem 1.1rem; margin-bottom: 0.8rem; background: var(--fond);
}
.ly-verif-carte.est-ferme { border-left-color: var(--rouge); }
.ly-verif-carte h4 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.ly-verif-champs { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.ly-verif-champs li { padding: 0.22rem 0; border-bottom: 1px dashed var(--bord); }
.ly-verif-champs li:last-child { border-bottom: 0; }
.ly-verif-champs span {
  display: inline-block; min-width: 130px;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--texte-doux);
}
.ly-verif-alerte {
  margin: 0.7rem 0 0; padding: 0.7rem 0.9rem;
  background: var(--rouge-pale); border-left: 4px solid var(--rouge);
  border-radius: 0 var(--arrondi) var(--arrondi) 0; font-size: 0.9rem;
}
.ly-verif-prudence {
  margin: 0.7rem 0 0; padding: 0.7rem 0.9rem;
  background: #FFF6E5; border-left: 4px solid #D99400;
  border-radius: 0 var(--arrondi) var(--arrondi) 0; font-size: 0.9rem;
}
.ly-verif-vide { font-size: 0.9rem; color: var(--texte-doux); margin: 0.5rem 0 0; }
.ly-verif-source { margin: 1rem 0 0; font-size: 0.8rem; color: var(--texte-doux); }
@media (max-width: 520px) {
  .ly-verif-bouton { flex: 1 1 100%; }
  .ly-verif-champs span { min-width: 100%; }
}

/* ------------------------------------------------------------------
   Vidéo | façade cliquable
   L'iframe YouTube n'est chargée qu'au clic (elle pèse très lourd) et
   pointe sur youtube-nocookie.com : aucun cookie avant l'action du visiteur.
   ------------------------------------------------------------------ */
.ly-video {
  position: relative; margin: 2rem 0;
  border-radius: var(--arrondi); overflow: hidden;
  border: 1px solid var(--bord);
}
.ly-video-cadre {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--encre); border: 0; padding: 0; display: block;
  cursor: pointer; overflow: hidden;
}
.ly-video-cadre img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transi); }
.ly-video-cadre:hover img { transform: scale(1.03); }
.ly-video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ly-video-voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,35,58,0.12) 0%, rgba(22,35,58,0.62) 100%);
}
.ly-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--rouge); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform var(--transi), background var(--transi);
}
.ly-video-play::after {
  content: ''; display: block;
  border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.ly-video-cadre:hover .ly-video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--bleu); }
.ly-video-titre {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem; color: #fff; text-align: left;
  font-family: var(--titre); font-size: 1.15rem; font-weight: 600; line-height: 1.3;
}
.ly-video-legende {
  margin: -1.4rem 0 2rem; font-size: 0.85rem; color: var(--texte-doux);
}
@media (max-width: 600px) {
  .ly-video-play { width: 58px; height: 58px; }
  .ly-video-titre { font-size: 0.98rem; padding: 0.8rem 1rem; }
}

/* ------------------------------------------------------------------
   Cibles tactiles | sur écran tactile, un lien de liste doit être
   assez haut pour être touché sans viser (minimum 24 px, WCAG 2.5.8).
   Les liens au fil du texte en sont exemptés : les espacer casserait
   la lecture du paragraphe.
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .ly-pied-liens a,
  .ly-bloc-liens a,
  .ly-evenement-titre a,
  .ly-coches > li > a:only-child {
    display: inline-block;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .ly-pied-liens li + li,
  .ly-bloc-liens li + li { margin-top: 0.15rem; }
  .ly-ariane a { display: inline-block; padding-top: 3px; padding-bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ly-apparait { opacity: 1; transform: none; }
  .ly-couverture-photo { transition: none; transform: none; }
}

:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 3px; }
.ly-nav-lien:focus-visible { outline-color: var(--bleu); }
a:focus-visible { outline-color: var(--rouge); }

/* Page métro : pastilles de ligne aux couleurs du réseau, et index filtrable des stations (29 septembre 2026) */
.ly-metro-pastille {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.55em; height: 1.55em; border-radius: 50%;
  font-weight: 800; font-size: 0.82rem; line-height: 1; color: #fff;
  vertical-align: middle;
}
.ly-metro-pastille--a { background: #C42032; }
.ly-metro-pastille--b { background: #1E58A8; }
.ly-metro-pastille--c { background: #E88C00; }
.ly-metro-pastille--d { background: #0F8A4D; }
.ly-metro-recherche { max-width: 340px; margin-bottom: 0.4rem; }
.ly-metro-compte { font-size: 0.82rem; color: var(--texte-doux); margin: 0 0 0.8rem; }
.ly-metro-index td:nth-child(2) { white-space: nowrap; }
.ly-metro-index td a { font-weight: 700; }
.ly-horaires-ligne .ly-metro-pastille { color: #fff; }
.ly-puce-gris   { color: #8A8F98; }
.ly-depliant { border: 1px solid var(--bordure, #ddd); border-radius: 6px; margin: 0.5rem 0; padding: 0.2rem 0.8rem; }
.ly-depliant summary { cursor: pointer; font-weight: 700; padding: 0.4rem 0; }
.ly-depliant[open] summary { margin-bottom: 0.4rem; }
.ly-verif-quand { display: flex; align-items: center; gap: 0.6rem; margin: 0.8rem 0 0; flex-wrap: wrap; }
.ly-verif-quand label { font-weight: 700; color: var(--encre); }
.ly-verif-quand select.ly-verif-saisie { flex: 0 1 260px; cursor: pointer; }
