/* ===== Ici Grand Lieu — design system « Lac & Or » ===== */
:root {
  --fond: #F7F9FA;
  --texte: #10232E;
  --primaire: #0E5A6D;
  --primaire-fonce: #0A3542;
  --accent: #E8A33D;
  --accent-fonce: #C9841F;
  --succes: #1E8E5A;
  --muted: #5B6B76;
  --blanc: #FFFFFF;
  --bordure: #E3E9ED;
  --rayon: 14px;
  --ombre: 0 6px 24px rgba(10, 53, 66, .08);
  --ombre-forte: 0 10px 32px rgba(10, 53, 66, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fond); color: var(--texte); line-height: 1.6; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--primaire); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
/* Le reset global met tous les margin à 0 → sans ça, le bouton colle à la grille au-dessus. */
.center { text-align: center; margin-top: 30px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Header (bandeau blanc) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #ffffff;
  box-shadow: 0 1px 0 rgba(10, 53, 66, .12), 0 4px 14px rgba(10, 53, 66, .05);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 120px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--texte); font-size: 1.15rem; }
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--accent); font-size: 1.4rem; }
.logo strong { color: var(--primaire); }
/* ⚠️ Le logo livré est RECADRÉ sur son contenu (312×61 px pour 575×112 de dessin d'origine) : la
   hauteur ci-dessous est celle du DESSIN, pas du cadre d'origine. Le rendre plus grand (96 px, valeur
   d'avant le 05/10/2026) afficherait le logo trois fois trop gros. */
.logo img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--primaire-fonce); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--primaire); text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; background: none; border: 0; color: var(--primaire-fonce); font-size: 1.5rem; cursor: pointer; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 22px; border-radius: 12px; font-weight: 600;
  border: 0; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-size: .98rem; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-fonce));
  color: #241503; box-shadow: 0 4px 14px rgba(232, 163, 61, .4);
}
.btn-gold:hover { box-shadow: 0 8px 22px rgba(232, 163, 61, .5); }
/* Bouton d'action secondaire : BLEU par défaut, BLANC au survol (inversé le 10/09/2026 —
   Guillaume les voulait pleins, pas en contour). */
.btn-outline { background: var(--primaire); color: #fff; border: 2px solid var(--primaire); }
.btn-outline:hover { background: #fff; color: var(--primaire); box-shadow: var(--ombre); }
.btn-ghost { background: #EAF1F3; color: var(--primaire-fonce); cursor: default; }
.btn-ghost:hover { transform: none; }
/* ---------- Bouton WhatsApp ----------
   Le vert de la marque (#25D366) : c'est le repère que les visiteurs reconnaissent, et il se
   distingue nettement du bleu primaire et de l'or du site. Le texte est volontairement VERT TRÈS
   foncé et non blanc — sur ce vert, le blanc ne tient qu'un contraste de 1,9 (illisible en plein
   soleil) alors que #06341B monte à 7,0. C'est le seul écart de palette assumé du site, justifié
   par la reconnaissance de marque. */
.btn-wa { background: #25D366; color: #06341B; box-shadow: 0 4px 14px rgba(37, 211, 102, .38); }
.btn-wa:hover { background: #1FBF5C; box-shadow: 0 8px 22px rgba(37, 211, 102, .48); }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-big { padding: 14px 28px; font-size: 1.05rem; }
.btn-search { padding: 14px 30px; font-size: 1.05rem; }

/* ---------- Hero + recherche ---------- */
.hero {
  /* Photo d'ambiance : le lac de Grand-Lieu (Wikimedia Commons, Selbymay, CC BY-SA 3.0 —
     voir /credits-photos/). La photo est réduite dans le cadre (bords prolongés par un flou)
     pour un rendu plus large, et le voile est franchement bleuté. */
  background:
    linear-gradient(170deg, rgba(14, 76, 124, .46) 0%, rgba(8, 44, 82, .70) 100%),
    url('/assets/img/hero-lac-grand-lieu.webp') center 45% / cover no-repeat;
  background-color: var(--primaire-fonce);
  color: #fff; padding: 64px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(232,163,61,.25), transparent 70%);
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 6px 16px; font-size: .85rem; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin-bottom: 14px; text-shadow: 0 2px 14px rgba(10, 53, 66, .5); }
.hero-sub { max-width: 640px; margin: 0 auto 30px; opacity: .96; font-size: 1.05rem; text-shadow: 0 1px 10px rgba(10, 53, 66, .45); }
.search-bar {
  display: flex; gap: 10px; background: #fff; padding: 10px; border-radius: 18px;
  box-shadow: var(--ombre-forte); max-width: 860px; margin: 0 auto; text-align: left;
}
.search-field { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.search-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 2px 10px 0; }
.search-field input, .search-field select {
  border: 0; background: transparent; padding: 8px 10px; font-size: 1rem; color: var(--texte); width: 100%; outline: none; border-radius: 10px;
}
.search-field select { cursor: pointer; }
.search-examples { margin-top: 18px; font-size: .92rem; color: rgba(255,255,255,.8); }
.search-examples a { color: var(--accent); font-weight: 600; margin: 0 3px; }

/* Liste d'autocomplétion du champ « Quoi, Qui ? » (assets/js/suggest.js) */
.suggest-list {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--bordure); border-radius: 14px;
  box-shadow: var(--ombre-forte); margin: 0; padding: 6px; list-style: none;
  max-height: 330px; overflow-y: auto; text-align: left;
}
.suggest-list[hidden] { display: none; }
/* Le champ « Votre entreprise » du formulaire de contact (recherche de fiche) : la liste
   d'autocomplétion est en position absolue, il lui faut un parent positionné. */
.msg-suggest { position: relative; }
.msg-fiche[hidden] { display: none; }
/* ⚠️ Le formulaire de contact est injecté DANS le contenu rédactionnel (`.prose`), dont les listes
   portent un carré doré en `::before`. Sans cette remise à zéro, chaque résultat de recherche
   héritait d'une puce dorée (constaté en capture le 13/09/2026). La spécificité doit être au moins
   égale à celle de `.prose ul li::before`. */
.prose ul.suggest-list li::before { content: none; }
.prose ul.suggest-list li { padding-left: 12px; margin-bottom: 0; }
.suggest-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: .96rem; color: var(--texte);
}
.suggest-item strong { color: var(--primaire); font-weight: 700; }
.suggest-item .s-sous { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.suggest-item:hover, .suggest-item.sel { background: #EAF1F3; }
@media (max-width: 640px) {
  .suggest-item .s-sous { display: none; }   /* trop étroit : on ne garde que le nom */
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-label { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent-fonce); text-align: center; margin-bottom: 6px; }
.section h1, .section h2 { text-align: center; margin-bottom: 26px; }
.section h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* ---------- Tuiles familles ---------- */
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 18px; }
.tile {
  background: #fff; border-radius: var(--rayon); overflow: hidden; padding: 0;
  border: 1px solid var(--bordure); box-shadow: var(--ombre);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; align-items: stretch; text-align: left;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); text-decoration: none; }
/* Vignette photo : cadrage 3/1 (bandeau large et bas) — la hauteur ne doit pas
   écraser le titre. object-position 50% 38% : on garde le haut de la photo (les sujets),
   on rogne le bas. Le titre, lui, reste grand : c'est lui qui porte l'information. */
.tile-img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: 50% 38%; background: #E9EFF2; }
.tile-body { padding: 13px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.tile-nom { font-weight: 700; color: var(--texte); font-size: 1.17rem; line-height: 1.24; }
.tile:hover .tile-nom { color: var(--primaire); }
.tile-n { font-size: .84rem; color: var(--muted); }

/* ---------- Icônes maison (flat, monochromes) — jeu conservé, non utilisé
   aujourd'hui : les catégories sont passées en vignettes photo. ---------- */
.ico { width: 26px; height: 26px; display: block; flex: none; }
/* Icônes d'interface (boutons de contact, informations de la fiche) : SVG monochrome qui prend la
   couleur du texte — remplacent les emojis 📞 ✉️ 📍 🕐 🗺️ dont le dessin changeait selon l'appareil.
   Taille : 17 px dans le texte, 19 px dans un bouton, 20 px dans un grand bouton. */
.ico-ui { width: 17px; height: 17px; display: inline-block; vertical-align: -.22em; flex: none; }
.btn .ico-ui { width: 19px; height: 19px; display: block; }
.btn-big .ico-ui { width: 20px; height: 20px; }
.chip .ico-ui { margin-right: 5px; vertical-align: -.2em; }
.fiche-adresse .ico-ui { color: var(--primaire); margin-right: 7px; vertical-align: -.24em; }
.ico-titre { width: 36px; height: 36px; display: inline-block; vertical-align: -.18em; color: var(--primaire-fonce); margin-right: 10px; }

/* ---------- Communes ---------- */
.communes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
/* Puces cliquables (communes d'un métier, métiers d'une catégorie, filtres du bouche-à-oreille) :
   même logique que .btn-outline — BLEU au repos, BLANC au survol (10/09/2026).
   `gap` sur la puce = espace garanti entre le nom et le compteur (sinon, sur un nom long,
   le chiffre vient se coller au texte : mesuré à 3 px). */
.commune-chip {
  background: var(--primaire); border: 1px solid var(--primaire); border-radius: var(--rayon); padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--ombre);
  transition: transform .18s ease, border-color .18s ease, background .15s ease, color .15s ease;
  text-decoration: none !important; color: #fff;
}
.commune-chip strong { color: #fff; }
/* Le compteur est une vraie pastille : lisible, jamais collée au nom. */
.commune-chip span {
  background: rgba(255, 255, 255, .20); border-radius: 999px; padding: 2px 10px; min-width: 26px;
  text-align: center; font-weight: 700; font-size: .82rem; color: #fff; flex: none;
}
.commune-chip:hover { transform: translateY(-3px); background: #fff; border-color: var(--primaire); }
.commune-chip:hover strong { color: var(--primaire); }
.commune-chip:hover span { background: #EAF1F3; color: var(--primaire-fonce); }
.commune-chip.mini { padding: 8px 14px; }
/* margin-top obligatoire : le reset global (* { margin: 0 }) supprime l'espace par défaut,
   sinon les puces collent au paragraphe au-dessus. Le gap vertical (16 px) donne de l'air
   entre les rangées quand les puces passent à la ligne. */
.communes-mini { display: flex; flex-wrap: wrap; gap: 16px 12px; justify-content: center; margin-top: 26px; margin-bottom: 30px; }

/* ---------- Cartes fiches ---------- */
.fiches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card-fiche {
  background: #fff; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure);
  box-shadow: var(--ombre); transition: transform .18s ease, box-shadow .18s ease; display: block; text-decoration: none !important;
}
.card-fiche:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
/* Le lien de la fiche (vignette + nom). Depuis le 21/09/2026 la carte est un <div> et ce lien est
   un <a> À L'INTÉRIEUR : c'est ce qui permet au petit lien « réclamez votre fiche » d'être un
   FRÈRE du lien principal — deux <a> imbriqués sont du HTML invalide. Ne pas remettre la classe
   card-fiche sur le <a> (et garder le `!important` : sans lui, le `a:hover {text-decoration:
   underline}` global souligne le nom de l'entreprise au survol de la carte). */
.card-fiche-lien { display: block; color: inherit; text-decoration: none !important; }
/* « Vous êtes l'entreprise ? Réclamez votre fiche pour y mettre votre logo » — petit, vert de la
   charte, SOULIGNÉ (c'est un lien, il doit se lire comme tel) mais jamais un bouton : il n'est pas
   au même niveau que « Appeler » ou « Visiter le site ». */
.card-fiche-cta {
  display: block; margin-top: -4px; padding: 0 16px 14px;
  font-size: .78rem; line-height: 1.35; font-weight: 600; color: #1F6F4A;
  text-decoration: underline; text-underline-offset: 2px;
}
.card-fiche-cta:hover { color: var(--primaire); }
/* Le site du professionnel, sous une carte de liste (voir card_fiche_site() dans functions.php).
   Règle d'or n°2 : le site est une information GRATUITE, toujours cliquable. Le libellé est le
   domaine — neutre pour tous les pros — et la mention contextualisée (nom · métier · commune) est
   juste au-dessus dans la même carte. Posé HORS du lien principal : deux <a> imbriqués sont du
   HTML invalide, le navigateur sortirait le second de la carte. */
.card-fiche-site { margin: 0 16px 10px; font-size: .8rem; line-height: 1.3; }
.card-fiche-site a {
  color: var(--primaire); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere;
}
.card-fiche-site a:hover { text-decoration: underline; text-underline-offset: 2px; }
.card-fiche-site .ico-ui { width: 14px; height: 14px; flex: 0 0 auto; }
.card-fiche-img { aspect-ratio: 4/3; overflow: hidden; background: #EAF1F3; position: relative; }
.card-fiche-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Vignette d'un LOGO (offre premium) ----------
   Un logo n'a aucune forme imposée : bandeau très large, carré, vertical, fond transparent. Dans un
   cadre 4:3 en `object-fit: cover`, un bandeau large était massivement rogné — on n'en voyait qu'un
   fragment (le logo de test devenait une bande blanche avec un coin bleu). Ici le logo est montré
   ENTIER, jamais rogné ni déformé, et le fond est fait du logo lui-même, flouté : le cadre garde son
   4:3 (la grille reste régulière) sans laisser de grands vides.
   ⚠️ Le fond et l'image sont LA MÊME URL : le navigateur ne la télécharge qu'une fois.
   ⚠️ La vignette photo (object-fit: cover) n'est PAS touchée : une photo doit remplir son cadre. */
/* ⚠️ Fond de base NON blanc : un logo peut être entièrement blanc (texte blanc sur fond
   transparent). Sur blanc il disparaîtrait purement et simplement. Le bleu très clair de la charte
   est aussi celui des vignettes photo : la grille reste cohérente. */
.card-fiche-img.est-logo { background: #EAF1F3; }
.card-fiche-img.est-logo .card-fiche-fond {
  position: absolute; inset: -10%; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(16px) saturate(1.3);
  opacity: .55;
}
/* voile clair : le logo reste net et lisible, et la vignette garde l'allure sobre de l'annuaire */
.card-fiche-img.est-logo::after {
  content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, .34);
}
.card-fiche-img.est-logo img {
  position: relative; z-index: 2; object-fit: contain; padding: 9%;
  /* L'ombre sert aussi de recours : un logo entièrement blanc, invisible sur un fond clair, se
     détache au moins par son contour. */
  filter: drop-shadow(0 2px 5px rgba(10, 53, 66, .24));
}
.card-fiche-body { padding: 14px 16px 16px; }
.card-fiche h3 { font-size: 1.02rem; color: var(--texte); margin: 4px 0 2px; }
.card-fiche .muted { font-size: .86rem; }

/* ---------- Badges ---------- */
/* Badge « Entreprise vérifiée » : un VRAI badge, lisible au premier coup d'œil (demande de Guillaume,
   10/09/2026). Le ✓ est un médaillon blanc dessiné en CSS (::before) et non du texte, pour rester
   net à toutes les tailles ; le libellé seul reste dans le HTML (lisible par Google et les lecteurs
   d'écran). Vert plein + texte blanc : c'est ce qui le rend évident, là où le vert pâle se fondait
   dans la page. */
.badge-verif {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #1A8455, #0F6141);
  color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .01em;
  border-radius: 999px; padding: 4px 13px 4px 5px;
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: 0 2px 10px rgba(15, 97, 65, .32);
}
.badge-verif::before {
  content: '✓'; display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%; background: #fff; color: #0F6141;
  font-size: .72rem; font-weight: 900; flex: 0 0 auto;
}
.card-fiche-body .badge-verif { margin-bottom: 6px; }
.badge-lg { font-size: .98rem; padding: 7px 20px 7px 7px; box-shadow: 0 4px 16px rgba(15, 97, 65, .34); }
.badge-lg::before { width: 26px; height: 26px; font-size: .95rem; }

/* Le reset global met TOUTES les marges à 0 : il faut un espacement explicite partout où
   un élément suit un titre, une grille ou un paragraphe. Utilitaires réutilisables. */
.mt-18 { margin-top: 18px; }
.mt-26 { margin-top: 26px; }
.mb-18 { margin-bottom: 18px; }
.mb-26 { margin-bottom: 26px; }

/* ---------- Chips métiers ---------- */
/* margin-top obligatoire (reset global des marges) : les tags ne doivent pas coller au titre.
   Le gap vertical donne de l'air quand les tags passent à la ligne. */
.chips { display: flex; flex-wrap: wrap; gap: 16px 12px; justify-content: center; margin-top: 26px; margin-bottom: 32px; }
.chip {
  background: var(--primaire); border: 1px solid var(--primaire); border-radius: 999px; padding: 7px 16px;
  font-weight: 600; color: #fff; box-shadow: var(--ombre);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none !important;
}
.chip span { background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 9px; margin-left: 8px; min-width: 24px; text-align: center; display: inline-block; font-size: .8rem; font-weight: 700; color: #fff; }
.chip:hover { transform: translateY(-2px); background: #fff; color: var(--primaire); border-color: var(--primaire); }
.chip:hover span { background: #EAF1F3; color: var(--primaire-fonce); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 14px 20px; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primaire); }

/* ---------- Fiche ---------- */
.fiche { padding: 10px 0 40px; }
.fiche-grid { display: grid; grid-template-columns: 420px 1fr; gap: 36px; }
/* ⚠️ `height: auto` est INDISPENSABLE : le visuel porte des attributs `width`/`height` (ratio de
   l'image, pour éviter le décalage au chargement). Sans `height: auto`, l'attribut `height` agit
   comme une hauteur CSS fixe et l'image est ÉTIRÉE (constaté le 05/10/2026 : 372×450 au lieu de
   372×279, ratio 0,83 pour une image 1,33 — la distortion a été vue par Lighthouse, pas à l'œil). */
.fiche-media .fiche-img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; height: auto; }
.fiche-img-wrap { position: relative; }
/* Fiche dont le visuel est le LOGO : cadre 4:3 sur fond clair, logo centré, entier, jamais étiré.
   Un logo en bandeau (333×50) affiché en pleine largeur donnerait une bande énorme et floue. */
.logo-cadre {
  aspect-ratio: 4 / 3; background: #F7F9FA; border: 1px solid var(--bordure);
  border-radius: var(--rayon); display: flex; align-items: center; justify-content: center;
  padding: 26px; box-shadow: var(--ombre);
  /* Le fond flouté doit rester DANS le cadre : il est en position absolue. */
  position: relative; overflow: hidden;
}
/* Même traitement que les vignettes des listes : le logo lui-même, flouté, remplit le cadre —
   le visuel du pro est repris d'un bout à l'autre de l'annuaire, et le cadre ne laisse pas de
   grands aplats vides. */
.logo-cadre .fiche-logo-fond {
  position: absolute; inset: -12%; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(34px) saturate(1.3);
  opacity: .5;
}
.logo-cadre::after {
  content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, .42);
}
.logo-cadre .fiche-img {
  position: relative; z-index: 2;
  width: auto; max-width: 100%; max-height: 100%; box-shadow: none;
  /* le contour détache un logo très clair du fond */
  filter: drop-shadow(0 3px 10px rgba(10, 53, 66, .22));
}
/* Fiche sans vraie photo : on l'assume, plutôt que de laisser croire à une photo de l'entreprise. */
.illus-badge {
  position: absolute; left: 10px; bottom: 10px; background: rgba(10, 53, 66, .82); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(2px);
}
/* Logo : affiché à sa TAILLE NATURELLE, simplement plafonnée. Un logo en bandeau (très large et
   plat, 333×50 par ex.) ou au contraire très haut s'affiche donc ENTIÈREMENT, net, sans étirement
   ni recadrage. Ne jamais lui imposer un carré : c'est ce qui écrasait les logos larges. */
.fiche-logo {
  display: block; width: auto; height: auto; max-width: min(100%, 280px); max-height: 72px;
  object-fit: contain; background: #fff; padding: 6px; border: 1px solid var(--bordure);
  border-radius: 12px; box-shadow: var(--ombre); margin-bottom: 12px;
}
/* Galerie : chaque photo s'affiche ENTIÈREMENT dans une vignette de taille fixe (fond clair pour
   les photos non rectangulaires), plutôt que recadrée. */
.fiche-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fiche-photos img {
  width: 110px; height: 82px; object-fit: contain; background: #F2F6F8; padding: 3px;
  border-radius: 8px; border: 1px solid var(--bordure); transition: transform .15s ease;
}
.fiche-photos a:hover img { transform: translateY(-2px); }
/* Encadré « vous êtes le propriétaire » : une invitation bien visible, pas une note en bas de page.
   Les marges internes sont explicites : le reset global les supprime. */
.fiche-proprio {
  margin-top: 20px; padding: 16px 18px; background: #EAF1F3;
  border-left: 4px solid var(--primaire); border-radius: 10px;
}
.fiche-proprio p { margin: 0 0 6px; }
.fiche-proprio strong { color: var(--primaire-fonce); font-size: 1.04rem; }
.fiche-proprio .small { color: var(--muted); line-height: 1.45; }
.fiche-proprio .btn { margin-top: 10px; }
/* Deux actions distinctes côte à côte : réclamer la fiche (gold, le parcours principal) ou se
   connecter à un accès déjà activé (outline). ⚠️ Le HTML est le MÊME pour tous les visiteurs :
   la page est servie par le cache LiteSpeed, un contenu conditionné à la session se figerait
   pour tout le monde. C'est /espace-pro/ qui aiguille (tableau de bord si connecté, connexion sinon). */
.fiche-proprio-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 8px; }
.fiche-proprio-actions .btn { margin-top: 0; }

.fiche h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.fiche-adresse { margin: 10px 0; }
/* Sous l'adresse : la phrase adressée au propriétaire de la fiche (« Ajoutez votre description de
   votre fiche » + lien de réclamation). Discrète — un cadre clair, pas un bouton : elle ne doit pas
   concurrencer les boutons de contact, mais rester lisible par un pro qui découvre sa fiche. */
.fiche-completer { margin: 8px 0 12px; padding: 9px 13px; background: #F1F6F3; border-left: 3px solid #7FB69A;
border-radius: 8px; font-size: .84rem; color: #3D5A4C; line-height: 1.45; }
.fiche-completer .ico-ui { color: #1F6F4A; margin-right: 6px; vertical-align: -.2em; }
.fiche-completer a { color: #1F6F4A; font-weight: 600; text-decoration: underline; }
.fiche-completer a:hover { color: #0E5A6D; }
/* ---------- Présentation & horaires de la fiche ----------
   La présentation est ce que le pro écrit de plus personnel : elle est mise en cadre, avec un
   liseré dégradé « Lac & Or » à gauche, pour ressortir entre l'adresse et les horaires. */
.fiche-desc {
  position: relative; overflow: hidden;
  margin: 16px 0 0; padding: 16px 20px 18px;
  background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.fiche-desc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--primaire), var(--accent));
}
.fiche-desc h2, .fiche-horaires h2 {
  display: flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 0 0 8px;
}
.fiche-desc h2 { color: var(--primaire-fonce); }
.fiche-desc h2 svg, .fiche-horaires h2 svg { flex: none; }
.fiche-desc p { margin: 0 0 10px; }
.fiche-desc p:last-child { margin-bottom: 0; }

/* Horaires : une carte volontairement plus discrète que la présentation — elle ne doit pas lui
   voler la vedette — mais cadrée, pour que le visiteur trouve l'info d'un coup d'œil. */
.fiche-horaires {
  margin: 12px 0 0; padding: 14px 18px 16px;
  background: #F7F9FA; border: 1px solid var(--bordure); border-radius: var(--rayon);
}
.horaires-t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.horaires-t th {
  width: 36%; text-align: left; font-weight: 600; color: var(--texte);
  padding: 4px 0; background: none; font-size: .92rem;
  text-transform: none; letter-spacing: 0;
}
.horaires-t td { padding: 4px 0; color: var(--muted); }
.horaires-t tr.hj-ferme th, .horaires-t tr.hj-ferme td { color: #93A4AE; }
.horaires-t tr.hj-ferme td { font-style: italic; }
/* Le jour courant est posé par le navigateur (voir horaires_table) : c'est lui qui sait quel jour
   on est, la page pouvant sortir du cache plusieurs heures après avoir été générée. */
.horaires-t tr.hj-aujourdhui th { color: var(--primaire); font-weight: 800; }
.horaires-t tr.hj-aujourdhui td { color: var(--primaire-fonce); font-weight: 600; }
.horaires-t tr.hj-aujourdhui { background: rgba(232, 163, 61, .16); }

.fiche-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.stars { color: var(--accent-fonce); letter-spacing: 2px; }

/* ---------- Avis ---------- */
.avis-zone, .avis-list { max-width: 760px; margin: 0 auto; }
.avis-list { display: grid; gap: 14px; margin-top: 20px; }
.avis { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px 18px; box-shadow: var(--ombre); }
.avis-meta { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.avis-form { display: grid; gap: 12px; margin-top: 18px; }
.avis-form input, .avis-form textarea {
  border: 1px solid var(--bordure); border-radius: 12px; padding: 11px 14px; font: inherit; background: #fff;
}
.avis-form textarea { resize: vertical; }
.star-picker { font-size: 1.9rem; color: #D8E0E5; cursor: pointer; user-select: none; }
.star-picker .star.active { color: var(--accent-fonce); }

/* Photo jointe à un avis : c'est LE différenciateur (Google a la note, pas la photo du chantier
   prise par un voisin) — donc montrée en assez grand pour être regardée, pas en vignette. */
.avis-photo { display: block; margin-top: 12px; max-width: 440px; }
.avis-photo img { border-radius: 12px; border: 1px solid var(--bordure); box-shadow: var(--ombre); }

/* Champ « ajouter une photo » du formulaire d'avis (le natif est repris dans la palette). */
.avis-fichier {
  display: grid; gap: 6px; background: #F2F6F8; border: 1px dashed var(--bordure);
  border-radius: 12px; padding: 12px 14px;
}
.avis-fichier > span:first-child { font-weight: 600; font-size: .92rem; }
.avis-fichier input[type=file] {
  border: 0; background: transparent; padding: 0; font-size: .9rem;
}
.avis-fichier input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 10px; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--primaire); border-radius: 10px; background: #fff; color: var(--primaire);
}
.avis-fichier input[type=file]::file-selector-button:hover { background: #EAF1F3; }

/* Repère « Recommandé par N habitants » sur la fiche : il doit être vu sans scroller, puisque le
   bloc complet (avec les textes) est en bas de page. */
.reco-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  background: #E6F5EC; color: #14663F; border: 1px solid #BFE3CD; border-radius: 999px;
  padding: 5px 14px 5px 11px; font-size: .88rem; font-weight: 700;
}
.reco-chip:hover { background: var(--succes); color: #fff; border-color: var(--succes); text-decoration: none; }
.reco-chip .ico-ui { width: 17px; height: 17px; }

/* ---------- CTA bande + footer ---------- */
.cta-bande { background: linear-gradient(160deg, var(--primaire), var(--primaire-fonce)); color: #fff; padding: 54px 0; text-align: center; }
.cta-bande h2 { margin-bottom: 10px; }
.cta-bande p { max-width: 620px; margin: 0 auto 22px; opacity: .92; }
.site-footer { background: var(--primaire-fonce); color: rgba(255,255,255,.85); padding: 46px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-logo { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.footer-logo strong { color: var(--accent); }
.footer-logo img { display: block; max-width: 240px; }
.footer-logo-blanc { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 18px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
/* Même remarque que pour l'en-tête : l'image est recadrée sur son dessin (168×32 px), la hauteur est
   donc celle du mot-symbole (16 px), pas du cadre de 52 px d'avant le 05/10/2026. */
.footer-logo-blanc img { display: block; height: 16px; width: auto; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.site-footer a { display: block; color: rgba(255,255,255,.75); padding: 3px 0; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer .muted { color: rgba(255,255,255,.6); }

/* ---------- Prose (pages statiques) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { margin-bottom: 14px; line-height: 1.62; }
.prose h2 { text-align: left; margin: 24px 0 10px; font-size: 1.3rem; }
.prose a { color: var(--primaire); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--primaire-fonce); }
.prose strong { color: var(--primaire-fonce); }

/* ---------- Bandeau des pages intérieures (mêmes couleurs que le site) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--primaire-fonce), var(--primaire));
  color: #fff; padding: 34px 0 30px;
}
.page-hero h1 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); line-height: 1.15; margin: 0; }
.page-label {
  display: inline-block; background: rgba(255, 255, 255, .18); color: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 10px;
}
.page-sub { color: rgba(255, 255, 255, .9); margin: 10px 0 0; max-width: 700px; font-size: 1.02rem; }
.breadcrumb-clair { padding: 0; margin-bottom: 14px; color: rgba(255, 255, 255, .72); font-size: .86rem; }
.breadcrumb-clair a { color: #fff; text-decoration: none; }
.breadcrumb-clair a:hover { text-decoration: underline; }

/* ---------- Contenu des pages intérieures : une carte par section ---------- */
.prose > p:first-of-type { font-size: 1.06rem; color: var(--texte); }
.prose-bloc {
  background: #fff; border-radius: 16px; padding: 22px 26px; box-shadow: var(--ombre);
  margin-bottom: 18px; border: 1px solid #EAF0F3;
}
.prose-bloc h2 {
  font-size: 1.24rem; color: var(--primaire-fonce); margin: 0 0 14px;
  border-bottom: 1px solid var(--bordure); padding-bottom: 10px;
}
.prose-bloc h3 { font-size: 1.04rem; color: var(--primaire-fonce); margin: 18px 0 8px; }
.prose-bloc > :last-child { margin-bottom: 0; }
.prose ul { list-style: none; padding: 0; margin: 0 0 14px; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; line-height: 1.55; }
.prose ul li::before {
  content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px;
  border-radius: 3px; background: var(--accent-fonce);
}
.prose ol { padding-left: 0; list-style: none; counter-reset: etape; margin: 0 0 14px; }
.prose ol li { position: relative; padding-left: 38px; margin-bottom: 12px; line-height: 1.55; counter-increment: etape; }
.prose ol li::before {
  content: counter(etape); position: absolute; left: 0; top: -.1em; width: 26px; height: 26px;
  border-radius: 50%; background: var(--primaire); color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.prose blockquote {
  margin: 16px 0; padding: 14px 18px; background: #EAF1F3; border-left: 4px solid var(--primaire);
  border-radius: 10px;
}
.prose blockquote p { margin: 0; }

/* ---------- Formulaire de contact (pages « Réclamer une entreprise » et « Contact ») ----------
   Remplace les liens `mailto:` : le visiteur écrit dans la page, le message est enregistré puis
   envoyé par e-mail. Style repris de l'admin (champs blancs, étiquettes en bleu foncé). */
.msg-form {
  background: #fff; border: 1px solid var(--bordure); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--ombre);
}
.msg-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.msg-champ { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.msg-champ label { font-size: .82rem; font-weight: 700; color: var(--primaire-fonce); }
.msg-champ input, .msg-champ select, .msg-champ textarea {
  border: 1px solid #CFDBE2; border-radius: 9px; padding: 10px 12px; font: inherit;
  color: var(--texte); background: #fff; width: 100%;
}
.msg-champ textarea { resize: vertical; }
.msg-champ input:focus, .msg-champ select:focus, .msg-champ textarea:focus {
  outline: 2px solid var(--primaire); outline-offset: 1px; border-color: var(--primaire);
}
.msg-oblig { color: var(--accent-fonce); }
.msg-note { font-size: .82rem; color: var(--muted); line-height: 1.5; margin: 2px 0 16px; }
.msg-form .btn { cursor: pointer; }

/* ---------- Réclamation de fiche (le pro récupère la sienne) ----------
   Le formulaire est CIBLÉ sur une fiche : on affiche d'abord laquelle, dans un encadré
   discret, pour que le pro vérifie avant d'envoyer — et qu'il n'y ait pas de réclamation
   à l'aveugle. */
.claim-cible {
  background: #F4F8FA; border: 1px solid var(--bordure); border-left: 4px solid var(--primaire);
  border-radius: 12px; padding: 14px 18px; margin: 0 0 18px;
}
.claim-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 4px;
}
.claim-fiche { margin: 0 0 4px; line-height: 1.4; }
.claim-fiche strong { color: var(--primaire-fonce); font-size: 1.02rem; }
.claim-info {
  background: #FDF3E2; border: 1px solid #EBD5A8; border-radius: 12px;
  padding: 14px 18px; margin: 0 0 18px; line-height: 1.55;
}

/* ---------- Les deux formules de la page « Réclamer une entreprise » ----------
   Elles doivent se distinguer d'un coup d'œil : la fiche gratuite sobre et neutre, l'offre premium
   cadrée en bleu (bordure épaisse, ombre, pastille « Premium ») avec son prix en or.
   Les classes viennent du Markdown : `## Titre {.offre-premium}` (voir md_html()). */
.prose-bloc.offre-gratuite { background: #FBFCFD; }

.prose-bloc.offre-premium {
  position: relative; background: linear-gradient(180deg, #F1F7FA 0%, #E5EFF3 100%);
  border: 2px solid var(--primaire); box-shadow: 0 10px 28px rgba(10, 53, 66, .14);
  padding-top: 30px;
}
.prose-bloc.offre-premium h2 { border-bottom: 0; padding-bottom: 0; padding-right: 118px; }
.prose-bloc.offre-premium h2 strong { color: var(--accent-fonce); font-size: 1.45rem; }
/* pastille posée à cheval sur la bordure haute */
.prose-bloc.offre-premium::after {
  content: 'Premium'; position: absolute; top: 0; right: 20px; transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-fonce)); color: #241503;
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 15px; border-radius: 999px; box-shadow: 0 4px 14px rgba(232, 163, 61, .5);
}
/* l'offre fondatrice ressort en ambre dans la carte premium, et reste bleue dans l'autre */
.prose-bloc.offre-premium blockquote {
  background: #FFF7E8; border-left-color: var(--accent-fonce); margin-top: 4px;
}
.prose-bloc.offre-premium ul li::before { background: var(--accent-fonce); }
@media (max-width: 720px) {
  .prose-bloc.offre-premium h2 { padding-right: 0; }
  .prose-bloc.offre-premium::after { right: 14px; }
}

/* ---------- Blocs de maillage interne (cocon) ----------
   Chaque page de liste renvoie à ses pages sœurs et à sa page mère : le visiteur circule, et les
   moteurs comprennent la hiérarchie accueil › catégorie › métier › métier × commune › fiche. */
.section.maillage { padding-top: 0; }
.section.maillage h2, .maillage-titre {
  font-size: 1.12rem; color: var(--primaire-fonce); margin: 0 0 14px;
}
.maillage-titre { margin-top: 26px; }
.section.maillage { margin-top: 8px; }

/* ---------- Encadré « Ajouter mon entreprise » (pages métier et métier × commune) ----------
   Posé juste avant le pied de page. Un pro qui arrive par une page de liste est la bonne cible :
   texte à gauche, bouton à droite, et sur mobile le bouton passe en dessous sur toute la largeur. */
.bloc-ajout {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: #EAF1F3; border-left: 4px solid var(--primaire); border-radius: 14px; padding: 24px 28px;
}
.bloc-ajout-txt { flex: 1 1 420px; }
.bloc-ajout h2 { font-size: 1.24rem; color: var(--primaire-fonce); margin: 0 0 8px; }
.bloc-ajout-txt p { margin: 0; color: var(--muted); line-height: 1.6; }
.bloc-ajout-action { margin: 0; flex: none; }
.bloc-ajout .btn { white-space: nowrap; }
@media (max-width: 720px) {
  .bloc-ajout { padding: 20px; gap: 16px; }
  .bloc-ajout-action { width: 100%; }
  .bloc-ajout .btn { width: 100%; }
}

/* ---------- Le bouche-à-oreille (participatif) ---------- */
/* Bandeau du bouche-à-oreille : photo d'ambiance plein cadre + voile bleuté, MÊME PRINCIPE que le
   hero de l'accueil. La photo (des habitants qui discutent — Pexels, licence libre sans attribution
   obligatoire, trace dans assets/img/credits-bav-hero.json) est posée en CSS : on peut donc la
   changer, la recadrer ou l'assombrir sans toucher au HTML. Le texte est ombré pour rester lisible
   quelle que soit la zone de la photo qui passe derrière. */
.bav-hero {
  background:
    linear-gradient(150deg, rgba(10, 53, 66, .80) 0%, rgba(14, 90, 109, .68) 100%),
    url('/assets/img/hero-bouche-a-oreille.webp') center 36% / cover no-repeat;
  background-color: var(--primaire-fonce);
  color: #fff; padding: 54px 0 48px;
}
.bav-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 8px; text-shadow: 0 2px 14px rgba(6, 30, 42, .55); }
.bav-hero p { max-width: 760px; opacity: .97; text-shadow: 0 1px 10px rgba(6, 30, 42, .5); }
.bav-hero .hero-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.bav-intro { max-width: 720px; margin: 0 auto 22px; text-align: center; color: var(--muted); }

.bav-flash { border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-top: 16px; }
.bav-flash.ok { background: #E6F5EC; color: var(--succes); }
.bav-flash.ko { background: #FDECEA; color: #B3261E; }

.bav-poser { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px 26px; max-width: 880px; margin: 0 auto; }
.bav-poser h2 { font-size: 1.3rem; margin-bottom: 4px; }
.bav-form { display: grid; gap: 14px; margin-top: 14px; }
.bav-form-row { display: grid; gap: 6px; }
.bav-2col { grid-template-columns: 1fr 1fr; }
.bav-form label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
.bav-form input[type=text], .bav-form input[type=email], .bav-form select, .bav-form textarea {
  border: 1px solid var(--bordure); border-radius: 12px; padding: 11px 14px; font: inherit; background: #fff; width: 100%;
}
.bav-form textarea { resize: vertical; }
.bav-form input:focus, .bav-form select:focus, .bav-form textarea:focus { outline: 2px solid rgba(14, 90, 109, .3); border-color: var(--primaire); }
.bav-rules { font-size: .82rem; color: var(--muted); background: #F2F6F8; border-radius: 10px; padding: 10px 14px; }

.bav-list { display: grid; gap: 14px; margin-top: 20px; }
.bav-list-2col { grid-template-columns: 1fr 1fr; }
.bav-card { display: block; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px 18px; box-shadow: var(--ombre); transition: transform .15s ease, box-shadow .15s ease; text-decoration: none !important; color: var(--texte); }
.bav-card:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.bav-card h3 { font-size: 1.06rem; margin: 8px 0 4px; color: var(--primaire-fonce); }
.bav-card p { font-size: .92rem; }
.bav-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bav-card-top .meta, .bav-article .meta { font-size: .84rem; color: var(--muted); }
.bav-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .85rem; color: var(--muted); border-top: 1px dashed var(--bordure); padding-top: 10px; }
.bav-stats { font-weight: 600; color: var(--primaire); }
.bav-badge { display: inline-block; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-radius: 999px; padding: 3px 10px; }
.bav-badge.wait { background: #FDF3E3; color: var(--accent-fonce); }
.bav-badge.open { background: #EAF1F3; color: var(--primaire-fonce); }
.bav-badge.done { background: #E6F5EC; color: var(--succes); }
.bav-empty { background: #fff; border: 2px dashed var(--bordure); border-radius: var(--rayon); padding: 30px 24px; text-align: center; margin-top: 20px; }
.bav-empty p { margin-bottom: 10px; }

.bav-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.bav-article { background: #fff; border: 1px solid var(--bordure); border-left: 5px solid var(--accent); border-radius: var(--rayon); padding: 22px 24px; box-shadow: var(--ombre); }
.bav-article h1 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 10px 0 6px; }
.bav-texte { margin: 10px 0; }
.bav-soutien { margin: 20px 0; }
.bav-sout-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bav-sout-count { font-size: 1.02rem; }
.bav-h2 { font-size: 1.15rem; margin: 26px 0 12px; }
.bav-reponse { background: #fff; border: 1px solid var(--bordure); border-left: 4px solid var(--primaire); border-radius: var(--rayon); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--ombre); }
.bav-reco-pro { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #F2F8F5; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.bav-reco-label { background: var(--succes); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-radius: 999px; padding: 3px 9px; }
.bav-repondre { background: #F2F6F8; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px 24px; margin-top: 26px; }
.bav-repondre h2 { font-size: 1.2rem; margin-bottom: 4px; }

.bav-side { display: grid; gap: 18px; }
.bav-side-box { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); }
.bav-side-box h3 { font-size: 1rem; margin: 4px 0 12px; }
.bav-side-pro { display: block; padding: 9px 0; border-bottom: 1px dashed var(--bordure); text-decoration: none !important; color: var(--texte); }
.bav-side-pro:last-of-type { border-bottom: 0; }
.bav-side-pro strong { display: block; color: var(--primaire-fonce); }
.bav-side-pro:hover strong { color: var(--primaire); }
.bav-side-box .btn { margin-top: 12px; }
.bav-side-cta { background: linear-gradient(150deg, var(--primaire), var(--primaire-fonce)); color: #fff; border: 0; }
.bav-side-cta .section-label { color: rgba(255, 255, 255, .78); }
.bav-side-cta .small { color: rgba(255, 255, 255, .9); }
.bav-side-link { display: block; padding: 5px 0; font-size: .92rem; }
.chip-sm { padding: 3px 12px; font-size: .82rem; }

/* ---------- Signalement d'une fiche (« cette info est fausse ») ---------- */
.sig-zone { max-width: 760px; margin: 0 auto; }
.sig-bloc { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 18px; }
.sig-bloc summary { cursor: pointer; font-weight: 700; color: var(--primaire-fonce); list-style: none; }
.sig-bloc summary::-webkit-details-marker { display: none; }
.sig-bloc summary::before { content: '▸'; display: inline-block; margin-right: 8px; transition: transform .15s ease; }
.sig-bloc[open] summary::before { transform: rotate(90deg); }
.sig-ico { margin-right: 4px; display: inline-flex; align-items: center; vertical-align: -.2em; }
.sig-ico .ico-ui { width: 20px; height: 20px; color: var(--accent-fonce); }
.sig-radio .ico-ui { width: 18px; height: 18px; color: var(--primaire); }
.sig-form { display: grid; gap: 10px; margin-top: 14px; }
.sig-choix { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.sig-radio {
  display: flex; align-items: center; gap: 10px; font-size: .95rem;
  background: #F7F9FA; border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.sig-radio:hover { border-color: var(--primaire); }
.sig-form input[type=email], .sig-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--bordure); border-radius: 10px; font: inherit;
}
.sig-form textarea { resize: vertical; }
.sig-note { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }
.sig-bandeau { border-radius: var(--rayon); padding: 16px 20px; margin: 14px 0; border: 1px solid transparent; }
.sig-bandeau.fermee { background: #F2F4F5; border-color: #DDE4E7; color: #35474F; }
.sig-bandeau.verif { background: #FFF6E6; border-color: #F0D19A; color: #6B4A12; }
.sig-bandeau p { margin: 6px 0 0; font-size: .93rem; }
.sig-frais { display: inline-block; font-size: .78rem; color: var(--succes); background: #E6F5EC; border-radius: 999px; padding: 3px 10px; margin: 2px 0 8px; }
.sig-frais.vieux { color: var(--muted); background: #EEF2F4; }

/* ---------- Crédits photo ---------- */
.credit-ligne { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 20px; }
.credit-ligne a { color: var(--primaire); }
.credits-table { width: 100%; border-collapse: collapse; margin: 14px 0 28px; font-size: .9rem; }
.credits-table th {
  text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); border-bottom: 2px solid var(--bordure); padding: 8px 10px;
}
.credits-table td { border-bottom: 1px solid var(--bordure); padding: 10px; vertical-align: middle; }
.credits-table img { border-radius: 8px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .fiche-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .btn-search { width: 100%; }
  .nav { display: none; flex-direction: column; position: absolute; top: 120px; left: 0; right: 0; background: #fff; padding: 16px 20px; gap: 14px; box-shadow: 0 10px 24px rgba(10,53,66,.12); }
  body.nav-open .nav { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .header-inner { height: 96px; }
  .logo img { height: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .bav-2col, .bav-grid, .bav-list-2col { grid-template-columns: 1fr; }
  .bav-card-foot { flex-direction: column; gap: 2px; }
  .bav-sout-form { flex-direction: column; align-items: stretch; }
}
