/* ================================================================
   Mairie de Navacelles — Pages « Vivre à Navacelles »
   (commerces-et-entreprises.php, se-loger.php)
   Styles propres aux fiches de l'annuaire. Couleurs du site :
   bleu République #144F8A / #1A63A8, or #D4A520, encre #041A33.
================================================================ */

.font-display { font-family: 'Spectral', Georgia, serif; }
.max-w-5xl { max-width: 64rem; } /* absente de tailwind.css compilé */
.info-card { background: #fff; border: 1px solid #E7E9EC; border-radius: 14px; }

/* Sommaire de page (ancres) */
/* Sommaire collant (sous l'en-tête fixe de 64 px) */
.vl-toc-repere { display: block; height: 0; }
.vl-toc-bar { position: sticky; top: 64px; z-index: 30; margin: 0 -16px 32px; padding: 10px 16px; background: rgba(255,255,255,.96);
              -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.vl-toc-bar.is-colle { box-shadow: 0 6px 14px -8px rgba(8,43,80,.25); border-bottom: 1px solid #E2EAF4; }
.vl-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vl-toc a.is-actif { background: #144F8A; border-color: #144F8A; color: #fff; }
.vl-intro-court { display: none; }
.vl-toc a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid #A9C8EA; background: #fff; color: #144F8A;
  font-size: .86rem; font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.vl-toc a:hover { background: #EEF4FB; border-color: #1A63A8; }
.vl-toc a:focus-visible { outline: 3px solid #D4A520; outline-offset: 2px; }

/* Titres de section */
.vl-section { margin-bottom: 48px; scroll-margin-top: 132px; }   /* en-tête fixe + sommaire collant */
.vl-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.vl-section-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #EEF4FB; color: #144F8A; font-size: 1.05rem;
}
.vl-section h2 { font-family: 'Spectral', Georgia, serif; font-size: 1.6rem; font-weight: 700; color: #041A33; margin: 0; line-height: 1.2; }
.vl-section-intro { color: #4B5563; line-height: 1.65; margin: 0 0 20px; max-width: 46rem; }
.vl-group-title {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Spectral', Georgia, serif; font-size: .95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: #144F8A;
  margin: 26px 0 12px;
}

/* ── Fiche ─────────────────────────────────────────────── */
.fiches { display: grid; gap: 20px; }
.fiches-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

.fiche {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #E7E9EC; border-radius: 16px;
  overflow: hidden; scroll-margin-top: 90px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.fiche-media {
  aspect-ratio: 16 / 9; max-height: 260px; background: #EEF4FB;   /* mobile, tablette et petites fiches : bandeau paysage */
  display: flex; align-items: center; justify-content: center;
}
.fiche-media { position: relative; overflow: hidden; }
/* L'image remplit son cadre sans jamais imposer sa propre hauteur (photo en hauteur → recadrée) */
.fiche-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.fiche-media.is-empty {
  color: #1A63A8; font-size: 2.2rem;
  background-color: #EEF4FB;
  background-image: radial-gradient(circle at 20% 30%, rgba(212,165,32,.16), transparent 45%),
                    radial-gradient(circle at 85% 80%, rgba(26,99,168,.12), transparent 50%);
}
.fiche-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
/* Sans photo, sur mobile et tablette : simple bandeau décoratif au lieu d'un grand cadre vide */
@media (max-width: 899px) {
  .fiche-media.is-empty { aspect-ratio: auto; height: 64px; font-size: 1.5rem; }
}
.fiche-type {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin: 0 0 8px; padding: 3px 10px; border-radius: 999px;
  background: #FBF3DC; color: #7A5A0C;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.fiche-nom { font-family: 'Spectral', Georgia, serif; font-size: 1.4rem; font-weight: 700; color: #041A33; line-height: 1.2; margin: 0 0 8px; }
.fiche-sous-titre { display: block; font-family: 'Noto Sans', sans-serif; font-size: .92rem; font-weight: 500; color: #64748B; margin-top: 2px; }
.fiche-desc { color: #374151; line-height: 1.65; margin: 0 0 14px; }

.fiche-infos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.fiche-infos li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 8px;
  background: #F1F5F9; color: #334155; font-size: .82rem; font-weight: 500;
}
.fiche-infos i { color: #16A34A; font-size: .72rem; }

.fiche-grid { display: grid; gap: 18px; margin-top: auto; }
.fiche-contact { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: .92rem; color: #374151; }
.fiche-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.fiche-contact i { width: 16px; text-align: center; color: #1A63A8; margin-top: 4px; flex-shrink: 0; }
.fiche-contact a { color: #144F8A; font-weight: 600; text-decoration: underline; text-decoration-color: #A9C8EA; text-underline-offset: 3px; overflow-wrap: anywhere; }
.fiche-contact a:hover { text-decoration-color: #144F8A; }

.fiche-label { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748B; }
.fiche-label i { color: #1A63A8; }
.fiche-horaires table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fiche-horaires th, .fiche-horaires td { padding: 5px 8px; border-bottom: 1px solid #EEF1F4; text-align: left; vertical-align: top; }
.fiche-horaires th { font-weight: 500; color: #4B5563; white-space: nowrap; width: 1%; padding-left: 0; padding-right: 14px; }
.fiche-horaires td { color: #1F2937; font-variant-numeric: tabular-nums; }
/* Les deux plages (matin · après-midi) sur une ligne ; retour à la ligne seulement entre elles si la place manque */
.fiche-horaires .plage { white-space: nowrap; }
.fiche-horaires .plage-sep { color: #94A3B8; }
@media (max-width: 480px) {
  .fiche-body { padding: 18px 16px 16px; }
  .fiche-horaires table { font-size: .84rem; }
  .fiche-horaires th, .fiche-horaires td { padding: 5px 5px; }
  .fiche-horaires th { padding-left: 0; }
}
.fiche-horaires td.is-closed { color: #9A3412; font-weight: 600; }
.fiche-horaires tr:last-child th, .fiche-horaires tr:last-child td { border-bottom: 0; }
.fiche-horaires tr.is-today th, .fiche-horaires tr.is-today td { background: #EEF4FB; font-weight: 700; color: #041A33; }
.fiche-horaires tr.is-today th { padding-left: 8px; border-radius: 6px 0 0 6px; }
.fiche-horaires tr.is-today td { border-radius: 0 6px 6px 0; }
.fiche-horaires tr.is-today td.is-closed { color: #9A3412; }
.today-tag { display: block; width: fit-content; margin-top: 4px; padding: 1px 8px; line-height: 1.5; border-radius: 999px; background: #1A63A8; color: #fff; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.fiche-note { display: flex; gap: 7px; margin: 0; padding: 9px 11px; border-radius: 8px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; font-size: .82rem; line-height: 1.5; }
.fiche-note i { margin-top: 3px; }
.fiche-maj { margin: 14px 0 0; font-size: .75rem; color: #64748B; }

/* Fiche mise en avant (commerces de proximité) : photo à gauche sur grand écran */
@media (min-width: 900px) {
  .fiche-big { flex-direction: row; }
  /* Photo en vignette paysage 4:3, en haut à gauche : elle garde son format
     quelle que soit la hauteur du contenu (une photo en hauteur est recadrée) */
  .fiche-big .fiche-media {
    width: 260px; aspect-ratio: 4 / 3; flex-shrink: 0; align-self: flex-start;
    margin: 24px 0 24px 24px; border-radius: 12px; overflow: hidden; max-height: none;
  }
  .fiche-big .fiche-body { padding: 24px 28px 20px 26px; }
  /* Coordonnées et note à gauche, horaires à droite : fiche plus large que haute */
  .fiche-big .fiche-grid {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 12px; align-items: start;
    grid-template-areas: "contact horaires" "note horaires";
  }
  .fiche-big .fiche-contact  { grid-area: contact; }
  .fiche-big .fiche-horaires { grid-area: horaires; }
  .fiche-big .fiche-note     { grid-area: note; }
}
@media (min-width: 1060px) {
  .fiche-big .fiche-media { width: 340px; }   /* grand écran : vignette plus grande */
}

/* État vide */
.vl-empty {
  text-align: center; padding: 34px 24px;
  border: 2px dashed #D6DEE8; border-radius: 16px; background: #FAFBFD; color: #4B5563;
}
.vl-empty i { font-size: 1.8rem; color: #A9C8EA; margin-bottom: 8px; }
.vl-empty p { margin: 0; line-height: 1.6; }
.vl-empty .vl-empty-title { font-family: 'Spectral', Georgia, serif; font-weight: 700; font-size: 1.1rem; color: #041A33; margin-bottom: 4px; }

/* Appel à figurer dans l'annuaire */
.annu-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 20px; padding: 18px 20px; border-radius: 14px;
  background: #EEF4FB; border: 1px solid #CFE0F3;
}
.annu-cta-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #1A63A8; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.annu-cta-text { flex: 1; min-width: 220px; }
.annu-cta-text p { margin: 0; font-size: .9rem; color: #374151; line-height: 1.55; }
.annu-cta-text .annu-cta-title { font-family: 'Spectral', Georgia, serif; font-weight: 700; font-size: 1.05rem; color: #041A33; margin: 0 0 2px; }

/* ── Formulaire « Proposer mon activité » ─────────────────────── */
.adf { scroll-margin-top: 80px; }
.adf-panneau { flex-basis: 100%; margin-top: 6px; padding: 20px; border-radius: 12px; background: #fff; border: 1px solid #CFE0F3; }
.adf-intro { margin: 0 0 16px; font-size: .9rem; color: #374151; line-height: 1.55; }
.adf-req { color: #B91C1C; font-weight: 700; }
.adf-label { display: block; margin-bottom: 5px; font-size: .85rem; font-weight: 600; color: #1a2535; }
.adf-champ { width: 100%; padding: .6rem .75rem; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff;
             font: inherit; font-size: .95rem; color: #1a2535; transition: border-color .15s, box-shadow .15s; }
textarea.adf-champ { resize: vertical; line-height: 1.5; }
.adf-champ:focus { outline: none; border-color: #1A63A8; box-shadow: 0 0 0 3px rgba(26,99,168,.18); }
.adf-champ[aria-invalid="true"] { border-color: #B91C1C; box-shadow: 0 0 0 3px rgba(185,28,28,.15); }
.adf-fichier { padding: .45rem; font-size: .88rem; }
.adf-aide { margin: 4px 0 0; font-size: .78rem; color: #64748B; }
.adf-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 16px; }
.adf-grille .adf-large { grid-column: 1 / -1; }
.adf-types { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.adf-types legend { margin-bottom: 8px; padding: 0; }
.adf-types label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid #CBD5E1;
                   border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 600; color: #334155; background: #fff; }
.adf-types label i { color: #1A63A8; }
.adf-types label:has(input:checked) { border-color: #1A63A8; background: #EEF4FB; color: #0E3C6D; }
.adf-types label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(26,99,168,.3); }
.adf-types input { accent-color: #1A63A8; }
.adf-sous-titre { margin: 4px 0 10px; padding-top: 14px; border-top: 1px solid #E5EDF6; font-family: 'Spectral', Georgia, serif; font-weight: 700; color: #082B50; font-size: 1rem; }
.adf-sous-titre span { font-family: 'Noto Sans', sans-serif; font-weight: 400; font-size: .8rem; color: #64748B; }
.adf-coche { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: .88rem; color: #374151; line-height: 1.5; cursor: pointer; }
.adf-coche input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: #1A63A8; }
.adf-erreur { margin: 10px 0; padding: 10px 14px; border-radius: 8px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-size: .9rem; font-weight: 600; }
.adf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.adf-annuler { min-height: 44px; padding: 0 6px; background: none; border: 0; color: #475569; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.adf-merci { display: flex; gap: 14px; align-items: flex-start; padding: 6px 4px; color: #065F46; }
.adf-merci:focus { outline: none; }
.adf-merci > i { font-size: 1.8rem; color: #16A34A; margin-top: 2px; }
.adf-merci p { margin: 0; font-size: .92rem; line-height: 1.55; color: #1f2937; }
.adf-merci .adf-merci-titre { font-family: 'Spectral', Georgia, serif; font-weight: 700; font-size: 1.1rem; color: #065F46; margin-bottom: 4px; }
@media (max-width: 639px) {
  .adf-panneau { padding: 16px 14px; margin-left: -6px; margin-right: -6px; }
  .adf-grille { grid-template-columns: 1fr; }
  .adf-types label { flex: 1 1 calc(50% - 8px); justify-content: flex-start; padding: 0 10px; font-size: .85rem; }
  .adf-actions .btn-primary { width: 100%; justify-content: center; }
}

@media print {
  nav, footer, #back-top, .vl-toc, .vl-toc-bar, .annu-cta { display: none !important; }
  .fiche { break-inside: avoid; }
}

/* ── Conseil municipal : titres de section hors .vl-section ── */
.vl-h2 { font-family: 'Spectral', Georgia, serif; font-size: 1.6rem; font-weight: 700; color: #041A33; margin: 0; line-height: 1.2; }
.vl-section-head + .vl-section-intro { margin-top: 6px; }
/* Sommaire simple (sans barre collante, ex. Conseil municipal) : de l'air avant la première section */
.vl-toc + .vl-section-head { margin-top: 36px; }
@media (max-width: 767px) { .vl-toc + .vl-section-head { margin-top: 26px; } }

/* ── Documents officiels ─────────────────────────────────── */
.doc-filtres { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.doc-filtre {
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid #D6DEE8; background: #fff;
  color: #374151; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
}
.doc-filtre span { font-weight: 400; color: #64748B; }
.doc-filtre:hover { border-color: #1A63A8; color: #144F8A; }
.doc-filtre.is-active { background: #144F8A; border-color: #144F8A; color: #fff; }
.doc-filtre.is-active span { color: #CFE0F3; }
.doc-filtre:focus-visible { outline: 3px solid #D4A520; outline-offset: 2px; }

.doc-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; background: #fff; border: 1px solid #E7E9EC; border-radius: 12px;
}
.doc-item[hidden], .doc-annee[hidden] { display: none; }
.doc-icone { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.doc-corps { flex: 1; min-width: 0; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .8rem; color: #64748B; }
.doc-titre { margin: 0; font-family: 'Spectral', Georgia, serif; font-weight: 700; font-size: 1.05rem; color: #041A33; line-height: 1.35; }
.doc-desc { margin: 4px 0 0; font-size: .9rem; color: #4B5563; line-height: 1.55; }
.doc-mel { margin: 6px 0 0; font-size: .76rem; color: #64748B; }
.doc-lien {
  flex-shrink: 0; align-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 9px; border: 1.5px solid #CFE0F3; background: #EEF4FB;
  color: #144F8A; font-weight: 600; font-size: .86rem; text-decoration: none; line-height: 1.2;
}
.doc-lien small { display: block; font-weight: 500; font-size: .72rem; color: #4B5563; margin-top: 1px; }
.doc-lien:hover { background: #144F8A; border-color: #144F8A; color: #fff; }
.doc-lien:hover small { color: #CFE0F3; }
.doc-lien:focus-visible { outline: 3px solid #D4A520; outline-offset: 2px; }
.doc-aucun { margin: 12px 0 0; color: #64748B; font-style: italic; }
.doc-note { display: flex; gap: 8px; margin: 22px 0 0; font-size: .84rem; color: #4B5563; }
.doc-note i { color: #1A63A8; margin-top: 3px; }
@media (max-width: 640px) {
  /* Mobile : le bouton « Consulter » passe sous le texte pour lui laisser toute la largeur */
  .doc-item { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .doc-icone { width: 36px; height: 36px; font-size: .9rem; }
  .doc-corps { flex: 1 1 calc(100% - 48px); }
  .doc-lien { margin-left: 48px; align-self: flex-start; }
}

/* ================================================================
   FICHES COMPACTES (Vivre à Navacelles) : l'essentiel + « Plus d'infos »
================================================================ */
.fcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
/* Fiche compacte : en-tête (vignette + infos), puis une seule ligne d'actions avec « Plus d'infos » à droite */
.fc { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; background: #fff; border: 1px solid #E2EAF4; border-radius: 12px; padding: 11px 12px;
      box-shadow: 0 1px 2px rgba(8,43,80,.04); scroll-margin-top: 132px; min-width: 0; }
.fc:target { border-color: #1A63A8; box-shadow: 0 0 0 3px rgba(26,99,168,.15); }
.fc-haut { flex: 1 1 100%; display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.fc-media { width: 60px; height: 60px; flex-shrink: 0; border-radius: 9px; overflow: hidden; background: #EEF4FB;
            display: flex; align-items: center; justify-content: center; color: #1A63A8; font-size: 1.25rem; }
.fc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-media.is-logo, .fiche-media.is-logo { background: #fff; box-shadow: inset 0 0 0 1px #E3EAF2; }
.fc-media.is-logo img, .fiche-media.is-logo img { object-fit: contain; padding: 8px; box-sizing: border-box; }
.fc-corps { min-width: 0; flex: 1; }
.fc-type { margin: 0 0 1px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #92400E; }
.fc-nom { margin: 0; font-family: 'Spectral', Georgia, serif; font-size: 1.04rem; font-weight: 700; color: #041A33; line-height: 1.2; }
.fc-sous-titre { font-family: 'Noto Sans', sans-serif; font-size: .76rem; font-weight: 400; color: #64748B; }
.fc-etat { display: flex; align-items: baseline; gap: 6px; margin: 3px 0 0; font-size: .78rem; font-weight: 600; line-height: 1.35; }
.fc-point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; transform: translateY(-1px); }
.fc-etat--ouvert  { color: #15803D; }
.fc-etat--bientot { color: #B45309; }
.fc-etat--ferme   { color: #B91C1C; }
.fc-etat--jour, .fc-etat--inconnu { color: #475569; }
.fc-adresse { margin: 2px 0 0; font-size: .76rem; color: #475569; line-height: 1.35; }
.fc-adresse i { color: #94A3B8; margin-right: 3px; }
.fc-actions { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; min-width: 0; }
.fc-actions:empty { display: none; }
.fc-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px;
          border: 1px solid #A9C8EA; background: #fff; color: #0E3C6D; font-size: .78rem; font-weight: 600; text-decoration: none;
          transition: background .15s, border-color .15s; }
.fc-btn:hover { background: #EEF4FB; border-color: #1A63A8; }
.fc-btn:focus-visible, .fc-plus summary:focus-visible { outline: 3px solid #1A63A8; outline-offset: 2px; }
.fc-btn--plein { background: #144F8A; border-color: #144F8A; color: #fff; }
.fc-btn--plein:hover { background: #0E3C6D; border-color: #0E3C6D; }
/* Téléphone : « Appeler » sur la fiche, numéro complet dans la fenêtre « Plus d'infos » */
.fc-tel-num { display: none; }
.fd-actions .fc-tel-court { display: none; }
.fd-actions .fc-tel-num { display: inline; }
.fc-plus { flex: 0 0 auto; margin: 9px 0 0 auto; }
.fc-plus[open] { flex-basis: 100%; margin-left: 0; border-top: 1px solid #EEF2F7; }   /* sans script : le détail se déplie sous la fiche */
.fc-plus summary { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 4px; cursor: pointer; list-style: none; white-space: nowrap;
                   font-size: .78rem; font-weight: 600; color: #144F8A; border-radius: 6px; }
.fc-plus summary::-webkit-details-marker { display: none; }
.fc-plus summary::after { content: '▾'; font-size: .8rem; transition: transform .2s; }
.fc-plus[open] summary::after { transform: rotate(180deg); }
.fc-plus[open] summary { color: #082B50; }
.fc-detail { padding: 4px 0 2px; font-size: .88rem; color: #374151; }
.fc-detail > * + * { margin-top: 12px; }
.fc-desc { margin: 0; line-height: 1.6; }
.fc-detail .fiche-infos { margin-top: 10px; }
.fc-liens { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.fc-liens li { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.fc-liens i { color: #94A3B8; width: 14px; }
.fc-liens a { color: #144F8A; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.fc-detail .fiche-maj { margin-top: 10px; }
/* Une seule fiche dans une rubrique : pas étirée sur toute la largeur */
.fcs > .fc:only-child { grid-column: span 1; }
/* Remarque à la place de l'état du jour (ex. « Sur rendez-vous ») : 2 lignes au plus */
.fc-etat--note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-etat--note .fc-point { display: inline-block; vertical-align: middle; margin-right: 6px; }
/* Grand écran : page élargie, fiches sur 3 colonnes */
@media (min-width: 1200px) {
  .vl-wrap.max-w-5xl { max-width: 1180px; }
  .fcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 1 ou 2 fiches : 2 colonnes, pour ne pas laisser une colonne vide à droite */
  .fcs:has(> .fc:last-child:nth-child(-n+2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vl-section-intro, .vl-intro { max-width: 760px; }
}
@media (max-width: 767px) {
  /* Mobile : intro courte, sommaire sur une ligne qui défile sur le côté */
  .vl-intro-long { display: none; }
  .vl-intro-court { display: inline; }
  .vl-intro { font-size: 1.05rem; margin-bottom: 14px; }
  .vl-toc-bar { margin-bottom: 22px; padding: 8px 0; margin-left: -16px; margin-right: -16px; }
  .vl-toc { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 16px; scrollbar-width: none;
            -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
                    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
  .vl-toc::-webkit-scrollbar { display: none; }
  .vl-toc li { flex: 0 0 auto; scroll-snap-align: start; }
  .vl-toc a { white-space: nowrap; }
  .vl-section, .fc { scroll-margin-top: 120px; }
  .fcs { grid-template-columns: 1fr; gap: 10px; }
  .fc { padding: 10px 11px; border-radius: 11px; }
  .fc-media { width: 52px; height: 52px; font-size: 1.1rem; border-radius: 8px; }
  .fc-haut { gap: 10px; }
  .fc-nom { font-size: 1rem; }
  /* Doigt : boutons de 40 px de haut (cible confortable), sans perdre de place */
  .fc-actions .fc-btn { flex: 1 1 auto; justify-content: center; min-height: 40px; padding: 0 10px; }
  .fc-plus summary { min-height: 40px; }
}
@media print {
  .fc-plus > .fc-detail { display: block !important; }
  .fc-actions, .fc-plus summary { display: none; }
}

/* ── Fenêtre « Plus d'infos » d'une fiche ───────────────────── */
/* Avec le script (classe fd-actif) : fiche réduite à l'essentiel. Les boutons Appeler / Itinéraire
   ne sont que dans la fenêtre « Plus d'infos » ; toute la fiche l'ouvre, la flèche › l'indique.
   Sans script : boutons et dépliage classiques sur la fiche. */
.fd-actif .fc { position: relative; flex-wrap: nowrap; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.fd-actif .fc > .fc-actions { display: none; }
.fd-actif .fc-haut { flex: 1 1 auto; }
.fd-actif .fc-plus { flex: 0 0 auto; align-self: center; margin: 0 0 0 6px; border: 0; }
.fd-actif .fc-plus summary { width: 32px; height: 32px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%;
                             background: #EEF4FB; color: #144F8A; transition: background .15s, color .15s; }
/* Texte « Plus d'infos » réservé aux lecteurs d'écran (la flèche › le remplace à l'écran) */
.fd-actif .fc-plus-txt { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fd-actif .fc-plus summary::after { content: '›'; font-size: 1.35rem; line-height: 1; transform: translate(1px, -1px) !important; }
.fd-actif .fc-plus summary::before { content: ''; position: absolute; inset: 0; border-radius: 12px; }   /* toute la fiche est cliquable */
.fd-actif .fc:hover { border-color: #A9C8EA; box-shadow: 0 4px 14px rgba(8,43,80,.08); }
.fd-actif .fc:hover .fc-plus summary { background: #144F8A; color: #fff; }
.fd-actif .fc-plus summary:focus-visible { outline: none; }
.fd-actif .fc:has(.fc-plus summary:focus-visible) { outline: 3px solid #1A63A8; outline-offset: 2px; }
.fd { padding: 0; border: 0; background: transparent; max-width: 640px; width: calc(100% - 32px); max-height: calc(100vh - 48px); overflow: visible; }
.fd::backdrop { background: rgba(4, 26, 51, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.fd[open] { animation: fd-apparait .18s ease-out; }
@keyframes fd-apparait { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.fd-boite { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(4,26,51,.3);
            max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; }
/* Barre du haut : reste visible pendant le défilement (bouton Fermer toujours accessible) */
.fd-barre { position: sticky; top: 0; z-index: 3; height: 0; }
.fd-poignee { display: none; }
.fd-fermer { position: absolute; top: 10px; right: 10px; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 0;
             background: rgba(255,255,255,.95); color: #082B50; font-size: 1.1rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18);
             display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; }
.fd-fermer-txt { font-size: .9rem; font-weight: 600; }
.fd-fermer:hover { background: #fff; }
.fd-fermer:focus-visible, .fd-retour:focus-visible { outline: 3px solid #1A63A8; outline-offset: 2px; }
.fd-photo { position: relative; aspect-ratio: 16 / 9; max-height: 300px; width: 100%; overflow: hidden; border-radius: 16px 16px 0 0; background: #DDE6F0; }
.fd-photo-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
/* Photo en hauteur ou carrée : entière au centre, les côtés remplis par la même photo floutée */
.fd-photo-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15);
                 filter: blur(18px) brightness(.88) saturate(1.1); }
/* Photo déjà en largeur : plein cadre, recadrée sur le point choisi */
.fd-photo.is-plein .fd-photo-img { object-fit: cover; }
.fd-photo.is-plein .fd-photo-fond { display: none; }
/* Logo : entier, sur fond blanc, avec une marge */
.fd-photo.is-logo { aspect-ratio: auto; height: 170px; background: #fff; border-bottom: 1px solid #EEF2F7; }
.fd-photo.is-logo .fd-photo-img { padding: 22px 70px; box-sizing: border-box; }
.fd-contenu { padding: 22px 24px 24px; }
.fd-photo[hidden] + .fd-contenu { padding-top: 26px; padding-right: 120px; }
.fd-titre { margin: 2px 0 0; font-family: 'Spectral', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: #041A33; line-height: 1.2; }
.fd-actions .fc-actions { margin-top: 14px; }
.fd-detail .fc-detail { padding-top: 14px; margin-top: 16px; border-top: 1px solid #EEF2F7; font-size: .95rem; }
.fd-retour { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 20px; min-height: 46px;
             border: 1.5px solid #C9D6E5; border-radius: 12px; background: #F5F8FC; color: #082B50; font: inherit; font-weight: 600; cursor: pointer; }
.fd-retour:hover { background: #EAF1F9; }
.fd-ouverte, .fd-ouverte body { overflow: hidden; }

@media (max-width: 767px) {
  /* Fenêtre « posée » sur la page : le haut du site reste visible (assombri) au-dessus */
  .fd { width: 100%; max-width: none; margin: auto 0 0; max-height: 82vh; max-height: 82dvh; }
  .fd::backdrop { background: rgba(4, 26, 51, .7); }
  .fd[open] { animation: fd-monte .25s ease-out; }
  @keyframes fd-monte { from { transform: translateY(60px); opacity: .3; } to { transform: none; opacity: 1; } }
  .fd-boite { border-radius: 20px 20px 0 0; max-height: 82vh; max-height: 82dvh; box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
  /* Vraie barre blanche avec poignée de glissement + bouton « Fermer » */
  .fd-barre { height: 56px; background: #fff; border-radius: 20px 20px 0 0; border-bottom: 1px solid #EEF2F7; }
  .fd-poignee { display: block; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px;
                border-radius: 3px; background: #C3CEDB; }
  .fd-fermer { top: 8px; right: 10px; height: 40px; background: #EEF4FB; box-shadow: none; }
  .fd-photo { border-radius: 0; max-height: min(34vh, 260px); }
  .fd-photo.is-logo { height: 130px; }
  .fd-photo.is-logo .fd-photo-img { padding: 16px 24px; }
  .fd-photo[hidden] + .fd-contenu { padding-top: 14px; padding-right: 16px; }
  .fd-contenu { padding: 16px 16px 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .fd-titre { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .fd[open] { animation: none; } .fd-boite { transition: none !important; } }
/* Lieux de culte : « document du moment » (ex. calendrier des messes), affiché jusqu'à sa date de fin */
.fc-doc-indice { margin: 3px 0 0; font-size: .76rem; font-weight: 600; color: #144F8A; line-height: 1.35;
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-doc-indice i { margin-right: 4px; }
.fc-doc { padding: 12px; border-radius: 10px; background: #F5F9FD; border: 1px solid #D6E4F3; }
.fc-doc .fiche-label { color: #0E3C6D; text-transform: none; letter-spacing: 0; font-size: .92rem; }
.fc-doc-image { display: block; margin-top: 8px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #D6E4F3; }
.fc-doc-image img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.fc-doc-image:focus-visible { outline: 3px solid #1A63A8; outline-offset: 2px; }
.fc-doc-texte { margin: 10px 0 0; line-height: 1.55; color: #1F2937; }
.fc-doc-bas { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 0; }
.fc-doc-bas .fc-btn { min-height: 40px; }
.fc-doc-fin { font-size: .78rem; color: #475569; }

/* ── Une page par rubrique (v58) ───────────────────────────────── */
/* Titre de page avec l'icône de la rubrique */
.vl-page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.vl-page-head h1 { margin: 0; }
.vl-intro { margin: 0 0 18px; max-width: 46rem; }
/* Barre des rubriques (page en cours mise en évidence) */
.vl-rub-nav { margin: 0 0 28px; }
.vl-rub-nav + .vl-section { margin-top: 0; }
@media (max-width: 767px) {
  .vl-page-head { gap: 10px; }
  .vl-page-head .vl-section-icon { width: 40px; height: 40px; }
  .vl-rub-nav { margin: 0 -16px 20px; }
  .vl-rub-nav .vl-toc { flex-wrap: nowrap; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
  .vl-rub-nav .vl-toc::-webkit-scrollbar { display: none; }
  .vl-rub-nav .vl-toc li { flex: 0 0 auto; }
  .vl-rub-nav .vl-toc a { white-space: nowrap; min-height: 40px; }
}

/* Accueil « Vivre à Navacelles » : une tuile par page */
.vl-tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vl-tuile { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 18px 18px 20px; border-radius: 16px;
            background: #fff; border: 1px solid #DCE6F1; color: inherit; text-decoration: none;
            transition: border-color .15s, box-shadow .15s, transform .15s; }
.vl-tuile:hover { border-color: #A9C8EA; box-shadow: 0 6px 18px rgba(8,43,80,.09); transform: translateY(-1px); }
.vl-tuile:focus-visible { outline: 3px solid #1A63A8; outline-offset: 2px; }
.vl-tuile-icone { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: #EEF4FB; color: #1A63A8;
                  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.vl-tuile-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vl-tuile-titre { font-family: 'Spectral', Georgia, serif; font-size: 1.25rem; font-weight: 700; color: #041A33; line-height: 1.2; }
.vl-tuile-desc { font-size: .9rem; color: #4B5563; line-height: 1.45; }
.vl-tuile-nb { font-size: .78rem; font-weight: 600; color: #144F8A; }
.vl-tuile-fleche { color: #94A3B8; transition: color .15s, transform .15s; }
.vl-tuile:hover .vl-tuile-fleche { color: #144F8A; transform: translateX(2px); }
@media (min-width: 1200px) { .vl-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .vl-tuiles { grid-template-columns: 1fr; gap: 10px; }
  .vl-tuile { padding: 14px; gap: 12px; }
  .vl-tuile-icone { width: 44px; height: 44px; font-size: 1.1rem; }
  .vl-tuile-titre { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .vl-tuile, .vl-tuile-fleche { transition: none; } .vl-tuile:hover { transform: none; } }

/* Formulaire « Proposer mon entreprise » en fenêtre */
.adf-dlg { max-width: 720px; }
.adf-dlg .fd-contenu { padding-top: 26px; padding-right: 24px; }
.adf-dlg .fd-titre { margin: 0 120px 10px 0; }
.adf-dlg .adf-intro { margin-bottom: 18px; }
.adf-dlg .adf-merci { margin-top: 8px; }
@media (max-width: 767px) {
  .adf-dlg { max-height: 92vh; max-height: 92dvh; }
  .adf-dlg .fd-boite { max-height: 92vh; max-height: 92dvh; }
  .adf-dlg .fd-contenu { padding-top: 14px; padding-right: 16px; }
  .adf-dlg .fd-titre { margin-right: 0; }
}
/* Sans script : le formulaire s'affiche simplement sous l'encart */
html:not(.adf-actif) .adf-dlg:not([open]) { display: block; position: static; width: 100%; max-width: none; max-height: none; margin: 16px 0 0; }
html:not(.adf-actif) .adf-dlg .fd-barre { display: none; }
html:not(.adf-actif) .adf-dlg .fd-boite { max-height: none; box-shadow: none; border: 1px solid #CFE0F3; }

/* ── Fiches « vitrine » (v59) : Commerces et Lieux de culte, tout visible sans clic ── */
.fvs { display: flex; flex-direction: column; gap: 22px; }
.fv { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid #DCE6F1; border-radius: 18px; overflow: hidden;
      box-shadow: 0 2px 10px rgba(8,43,80,.05); scroll-margin-top: 90px; }
.fv:target { border-color: #1A63A8; box-shadow: 0 0 0 3px rgba(26,99,168,.18); }
.fv-media { position: relative; aspect-ratio: 16 / 9; max-height: 320px; overflow: hidden; background: #EEF4FB;
            display: flex; align-items: center; justify-content: center; color: #1A63A8; }
.fv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-media.is-logo { background: #fff; border-bottom: 1px solid #EEF2F7; }
.fv-media.is-logo img { object-fit: contain; padding: 24px; box-sizing: border-box; }
/* Sans photo : bandeau décoratif avec l'icône de l'activité */
.fv-media.is-empty { aspect-ratio: auto; height: 88px; font-size: 2rem;
  background-image: radial-gradient(circle at 15% 30%, rgba(212,165,32,.18), transparent 45%),
                    radial-gradient(circle at 85% 80%, rgba(26,99,168,.14), transparent 55%); }
.fv-corps { padding: 20px 22px 18px; min-width: 0; }
.fv-nom { margin: 0 0 6px; font-family: 'Spectral', Georgia, serif; font-size: 1.65rem; font-weight: 700; color: #041A33; line-height: 1.15; }
.fv-etat { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: .95rem; font-weight: 700; line-height: 1.4; }
.fv-etat .fc-point { width: 9px; height: 9px; }
.fv-adresse { margin: 0 0 12px; font-size: .92rem; color: #475569; line-height: 1.45; }
.fv-adresse i { color: #94A3B8; margin-right: 4px; }
.fv-desc { margin: 0 0 12px; color: #374151; line-height: 1.65; max-width: 44rem; }
.fv .fiche-infos { margin-bottom: 12px; }
.fv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.fv-actions:empty { display: none; }
.fv-actions .fc-btn { min-height: 42px; padding: 0 16px; font-size: .86rem; }
.fv-horaires { max-width: 440px; margin-bottom: 12px; }
.fv .fiche-note { max-width: 44rem; }
.fv .fiche-maj { margin-top: 12px; }
/* Calendrier du lieu de culte : sur toute la largeur, sous la fiche */
.fv-doc { grid-column: 1 / -1; padding: 18px 22px 20px; background: #F5F9FD; border-top: 1px solid #DCE6F1; }
.fv-doc-titre { display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Spectral', Georgia, serif; font-size: 1.2rem; font-weight: 700; color: #0E3C6D; }
.fv-doc-titre i { color: #1A63A8; font-size: 1rem; }
.fv-doc .fc-doc-texte { max-width: 44rem; }
.fv-doc-image { max-width: 760px; margin-top: 12px; }
.fv-doc-image img { max-height: 820px; }
@media (min-width: 900px) {
  .fv { grid-template-columns: 340px minmax(0, 1fr); }
  .fv-media { aspect-ratio: 4 / 3; max-height: none; align-self: start; margin: 22px 0 22px 22px; border-radius: 14px; }
  .fv-media.is-empty { aspect-ratio: 4 / 3; height: auto; font-size: 3rem; }
  .fv-media.is-logo { border: 1px solid #EEF2F7; }
  .fv-corps { padding: 24px 28px 22px 28px; }
  .fv-doc { padding: 22px 28px 24px; }
}
@media (min-width: 1200px) { .fv { grid-template-columns: 400px minmax(0, 1fr); } }
/* Sans photo, sur grand écran : simple pastille avec l'icône, au lieu d'un grand cadre vide */
@media (min-width: 900px) {
  .fv:has(> .fv-media.is-empty) { grid-template-columns: 150px minmax(0, 1fr); }
  .fv-media.is-empty { aspect-ratio: 1; border-radius: 18px; font-size: 2.4rem; }
}
@media (max-width: 480px) {
  .fv-corps { padding: 16px 16px 14px; }
  .fv-nom { font-size: 1.4rem; }
  .fv-actions .fc-btn { flex: 1 1 auto; justify-content: center; }
  .fv-doc { padding: 16px; }
}

/* Encart « Aujourd'hui à Navacelles » (page Commerces) */
.vl-auj { margin: 0 0 26px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #DCE6F1;
          box-shadow: 0 2px 10px rgba(8,43,80,.05); border-left: 5px solid #D4A520; }
.vl-auj-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin-bottom: 10px; }
.vl-auj-titre { display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Spectral', Georgia, serif; font-size: 1.25rem; font-weight: 700; color: #041A33; }
.vl-auj-titre i { color: #1A63A8; font-size: 1rem; }
.vl-auj-date { margin: 0; font-size: .82rem; color: #475569; }
.vl-auj-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.vl-auj-ligne { display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 10px 12px; border-radius: 10px; background: #F7FAFD;
                border: 1px solid #E5EDF6; color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.vl-auj-ligne:hover { border-color: #A9C8EA; background: #EEF4FB; }
.vl-auj-ligne:focus-visible { outline: 3px solid #1A63A8; outline-offset: 2px; }
.vl-auj-ico { margin-top: 3px; font-size: 1rem; }
.vl-auj-txt { display: flex; flex-direction: column; min-width: 0; }
.vl-auj-nom { font-weight: 700; color: #041A33; font-size: .95rem; }
.vl-auj-etat { font-size: .85rem; font-weight: 600; line-height: 1.4; }
@media print { .vl-auj, .fv-actions { display: none !important; } }
.vl-auj-etat.fc-etat--inconnu { font-weight: 500; }
