/**
 * Theme Name: MaSalvetat (clean, no-hero-touch)
 * Description: CSS épuré avec layout fluide et gestion 3 breakpoints (mobile, hybride, desktop)
 * Version: 1.7
 */

/* =======================
   RESET & .BOUTONS
======================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =======================
   LAYOUT GLOBAL
======================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { padding: 0; min-height: 70vh; contain: layout; }

h1, h2, h3 { margin-bottom: 20px; line-height: 1.2; font-weight: 600; }
h1 { font-size: 2em; }
h2 {
  font-size: 1.3em;
  font-weight: 600;
  color: #047857;
  margin: 10px 0 25px;
  padding: 12px 0;
  border-bottom: 3px solid #047857;
  border-top: 3px solid #047857;
}
h3 { font-size: 1.25em; }
p { margin-bottom: 15px; }
ul { margin-left: 25px; margin-bottom: 10px; }

/* =======================
   IMAGES & FIGURES
======================= */
.img-section { object-fit: cover; border: 1px solid #000; width: 100%; }
.img300 { width: 300px; height: 300px; object-fit: cover; border: 1px solid #000;}
.img360 { object-fit: cover; border: 1px solid #000; display: block; }

figure.img-figure,
figure.img-figure-flex { position: relative; margin: 0; overflow: visible; }
figure.img-figure-flex { display: flex; flex-direction: column; }

/* =======================
   CONTENU — MOBILE-FIRST
   Breakpoints:
   - ≤768 px  : mobile (1 colonne)
   - 769–980 px : hybride (2 colonnes, droite 340 px, image au-dessus)
   - ≥981 px  : desktop (2 colonnes, droite 340 px, image à gauche)
======================= */

/* ----- Base (mobile par défaut) ----- */
.deux-colonnes { display: block; margin-top: 40px; }
.colonne-gauche, .colonne-droite { width: 100%; max-width: 100%; min-width: 0; }
.section-content { margin-bottom: 40px; }

/* Bloc image + texte — image au-dessus */
.bloc-image-texte {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  margin-bottom: 10px;
}
.bloc-image-texte .colonne-media {
  order: -1;
  width: 100%;
  margin: 0 0 20px 0;
}
.colonne-media figure {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.colonne-media figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid #000;
  border-radius: 4px;
}
.titre-section { width: 100%; margin: 0; }

/* Force les images à ignorer leurs attributs HTML */
.colonne-media img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover;
  display: block;
}

/* ===== Mobile (≤768 px) ===== */
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  h2 { font-size: 1.2em; text-align: center; margin-top: 40px; }
}

/* ===== Hybride (769–980 px) ===== */
@media (min-width: 769px) and (max-width: 980px) {
  .deux-colonnes {
    display: grid;
    grid-template-columns: 1fr 340px;
    column-gap: 32px;
    align-items: start;
  }
  .bloc-image-texte {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bloc-image-texte .colonne-media {
    order: -1;
    width: 100%;
    margin: 0 0 20px 0;
  }
}

/* ===== Desktop (≥981 px) ===== */
@media (min-width: 981px) {
  .deux-colonnes {
    display: grid;
    grid-template-columns: 1fr 340px;
    column-gap: 40px;
    align-items: start;
  }

  .bloc-image-texte {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 40px;
    text-align: initial;
  }

  .bloc-image-texte .colonne-media {
    flex: 0 0 250px;   /* borne fixe pour la colonne image */
    max-width: 250px;
    margin-right: 20px;
  }

  .bloc-image-texte .section-texte {
    flex: 1 1 auto;
    min-width: 0;      /* évite disparition du texte */
  }
}

/* =======================
   TITRE SECTION
======================= */
.titre-section,
figcaption.titre-section {
  width: 100%;
  height: 90px;
  background: #047857;
  color: #fff;
  border: 1px solid #000;

  display: flex;
  flex-direction: column;      /* 🔹 AJOUT : empile les lignes */
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 10px;
  font-size: 1.2em;
}

figcaption.titre-section { order: -1; margin: 0 0 12px 0; }

/* =======================
   BLOC DROITE / ENCARTS
======================= */
.bloc-droite {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  margin-bottom: 40px;
  background: #f5f5f5;
}
.bloc-droite img { margin: 0 auto 20px; }

.bloc-droite > h4 {
    margin-top: 12px; 
    margin-bottom: 6px; 
}


.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.encart {
  width: 100%;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}
.encart h4 { font-size: 1.05em; margin-bottom: 6px; }
.encart p { margin: 6px 0 0; }
.encart .badge {
  display: inline-block;
  font-size: 0.8em;
  padding: 2px 6px;
  border: 1px solid #000;
  border-radius: 999px;
  margin-top: 6px;
}
.encart .cta { display: inline-block; margin-top: 10px; }
.encart img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 1px solid #000;
  border-radius: 8px;
}

/* =======================
   BOUTONS
======================= */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    text-align: center;
  padding: 8px 16px;
  background: #047857;
  color: #fff !important;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  border: none;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.bouton:hover { background: #374151; filter: brightness(0.9); transform: translateY(-2px); }
.bouton::before {
  content: "👉 ";
  margin-right: 12px;
  font-size: 1.1em;
}

/* Texte multi-ligne dans les boutons */
.bouton p {
  margin: 0;            /* supprime le gros espace dessous */
  line-height: 1.3;     /* line-height propre dans le bouton */
}


/* =======================
   FOOTER
======================= */
footer {
  padding: 20px 0;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.9em;
}

/* =======================
   ACCESSIBILITY
======================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =======================
   AJUSTEMENTS PAGE
======================= */
.sections-wrap { margin-top: 0; }
.intro-bloc { margin: 0 15px 40px; padding-top: 30px; display: flow-root; }
.intro-bloc > h2 { margin-top: 0; }

.horaires-resto { margin: 20px 0; }
.jour-horaire { display:flex; justify-content:space-between; padding:4px 8px; border-bottom:1px solid #e5e7eb; }
.jour-horaire:last-child { border-bottom:none; }
.jour-horaire .jour { font-weight:600; color:#1f2937; }
.jour-horaire .horaire { color:#047857; font-weight:500; }
.jour-horaire.ferme .horaire { color:#6b7280; font-weight:600; }
.jour-horaire.deux-services { background-color:#f0fdf4; }
.jour-horaire.deux-services .horaire { font-weight:600; }
.resto-info {
  background:#f9f9f9;
  padding:15px;
  border-left:3px solid #047857;
  margin:15px 0;
  font-size:.95em;
  line-height:1.8;
}
.resto-info a { color:#047857; font-weight:600; text-decoration:underline; }
.resto-info a:hover { color:#065f46; }

/* === BADGES IA / PHOTO (HERO + SECTIONS) === */

/* Conteneurs de position pour les badges */
.hero-image,
figure.img-figure,
figure.img-figure-flex {
  position: relative;
  overflow: visible;
}

/* 🎯 Base commune — centrage parfait des badges */
.ia-badge-overlay,
.photo-badge-overlay,
.photo-badge-overlay-hero {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 50;

  /* Nouveau : centrage total de l’emoji */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 6px;
  transform: none !important;
  cursor: help;
}

/* Style IA */
.ia-badge-overlay {
  background: #2c5f2d;
  color: #fff;
  font-size: 0.8em;
}

/* Style PHOTO (sections) */
.photo-badge-overlay {
  background: #fff;
  color: #047857;
  font-size: 0.85em;
}

/* Style PHOTO HERO */
.photo-badge-overlay-hero {
  background: #fff;
  color: #047857;
  font-size: 0.85em;
}

/* Mobile / tablette : badge dans le coin */
@media (max-width: 980px) {
  .ia-badge-overlay,
  .photo-badge-overlay,
  .photo-badge-overlay-hero {
    right: 8px;
    bottom: 8px;
  }
}

/* Desktop : badge du hero “pend” sous l’image */
@media (min-width: 981px) {
  .photo-badge-overlay-hero {
    bottom: -40px; /* ajuste à -46px si tu veux */
    right: 8px;
  }
}


/* ===== FAB de base (mobile) ===== */
#fab-stack { z-index: 10000; pointer-events: none; }
.floating-menu-btn{
  position: fixed; z-index: 10001; pointer-events: all;
  width: 56px; height: 56px;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: #047857; color: #fff !important; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(4,120,87,.4); border: 3px solid #fff;
  transition: transform .3s ease, opacity .3s ease; text-decoration: none;
}
.floating-menu-btn:hover { background:#065f46; transform: scale(1.1); box-shadow: 0 6px 20px rgba(4,120,87,.6); text-decoration: none; }

/* Position des 2 FAB en mobile */
#menu-fab { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
#share-fab { right: 20px; bottom: calc(20px + 56px + 12px + env(safe-area-inset-bottom, 0px)); font-size: 0; }

/* Variante si tu n’as PAS de #menu-page (si tu utilises une classe .no-menu sur #fab-stack) */
/* #fab-stack.no-menu #share-fab { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } */

#share-fab::before{
  content:""; width:24px; height:24px; display:block; background:#fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4L12 15M12 4L8 8M12 4L16 8' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 12V19C5 19.5304 5.21071 20.0391 5.58579 20.4142C5.96086 20.7893 6.46957 21 7 21H17C17.5304 21 18.0391 20.7893 18.4142 20.4142C18.7893 20.0391 19 19.5304 19 19V12' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4L12 15M12 4L8 8M12 4L16 8' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 12V19C5 19.5304 5.21071 20.0391 5.58579 20.4142C5.96086 20.7893 6.46957 21 7 21H17C17.5304 21 18.0391 20.7893 18.4142 20.4142C18.7893 20.0391 19 19.5304 19 19V12' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== Desktop (≥ 769px) : PAS de variables, valeurs directes ===== */
@media (min-width: 769px){
  .floating-menu-btn{
    width: 64px; height: 64px;
    right: 30px;
    bottom: 30px;
  }
  #menu-fab { right: 30px; bottom: 30px; }
  #share-fab { right: 30px; bottom: calc(30px + 64px + 12px); }
  /* .no-menu #share-fab { bottom: 30px; }  // si tu ajoutes .no-menu sur #fab-stack */
}

/* ===== Sheet ===== */
.share-sheet { position: fixed; inset: 0; z-index: 11000; }
.share-sheet[hidden] { display: none; }
.share-sheet .sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.share-sheet .sheet-panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(520px, 94vw);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #047857; border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 24px rgba(4,120,87,.25); padding: 16px;
}
@media (max-width: 768px){ .share-sheet .sheet-panel { width: 100%; border-left: 0; border-right: 0; } }


.share-grid{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:12px;
}
@media (max-width:420px){
  .share-grid{ grid-template-columns:1fr 1fr; }
}

.share-tile{
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:12px;
  padding:12px 14px;
  font-weight:600;
  color:#fff !important;
  text-decoration:none !important;
  transition:transform .2s ease, opacity .2s ease;
}
.share-tile:hover{ transform:translateY(-2px); opacity:.9; }

/* Icône alignée à gauche */
.share-ico{
  width:24px; height:24px;
  flex:0 0 24px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

/* Couleurs officielles */
.share-facebook{ background:#1877F2; }
.share-x{ background:#000; }
.share-whatsapp{ background:#25D366; }
.share-email{ background:#047857; }
.share-copy{ background:#4B5563; }

/* Logos officiels en SVG inline (nets sur tous les écrans) */
.share-facebook .share-ico{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23fff' d='M279.14 288l14.22-92.66h-88.91V127.59c0-25.35 12.42-50.06 52.24-50.06H295V6.26S269.5 0 245.36 0C196.3 0 160.36 35.49 160.36 100.33v95.01H80v92.66h80.36V512h96.05V288z'/%3E%3C/svg%3E");
}
.share-x .share-ico{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M389.2 48h70.6L305.7 224.2 480 464H343.5L233.7 315.6 108.6 464H38L198.3 275.5 32 48h139.6l99.2 132.1L389.2 48z'/%3E%3C/svg%3E");
}
.share-whatsapp .share-ico{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23fff' d='M380.9 97.1C339 55.1 283.2 32 224.9 32c-117.5 0-213 95.4-213 213 0 37.6 9.8 74.3 28.5 106.7L14 480l131.7-34.4c31.2 17 66.4 25.9 102.7 25.9h.1c117.5 0 213-95.4 213-213 .1-58.3-22.9-114.1-64.9-156.1zM224.5 438.7h-.1c-31.2 0-61.8-8.4-88.4-24.2l-6.3-3.7-78.1 20.4 20.9-76.2-4.1-6.5c-17.7-28.3-27.1-61-27.1-94.3 0-98.2 79.9-178 178.1-178 47.6 0 92.3 18.5 125.9 52.2 33.6 33.7 52.1 78.4 52 126.1 0 98.2-79.9 178.1-177.9 178.1zm101.2-134.9c-5.5-2.8-32.7-16.1-37.7-17.9-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 17.9-17.6 21.6-3.2 3.7-6.5 4.2-12 1.4-5.5-2.8-23.3-8.6-44.4-27.5-16.4-14.6-27.5-32.7-30.7-38.2-3.2-5.6-.3-8.6 2.4-11.4 2.5-2.5 5.6-6.5 8.3-9.7 2.8-3.2 3.7-5.6 5.6-9.3 1.9-3.7 .9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.3-10.6-.3s-9.7 1.4-14.8 6.9c-5.1 5.6-19.5 19.1-19.5 46.5s20 53.9 22.8 57.6c2.8 3.7 38.4 58.6 93 82.2 13 5.6 23.2 8.9 31.2 11.4 13.1 4.2 25.1 3.6 34.5 2.2 10.5-1.6 32.7-13.4 37.3-26.4 4.6-13.1 4.6-24.3 3.2-26.7-1.3-2.6-5.1-4.2-10.6-6.9z'/%3E%3C/svg%3E");
}
.share-email .share-ico{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M502.3 190.8L327.4 338c-15.4 12.6-38.5 12.6-53.9 0L9.7 190.8C3.9 186 0 178.8 0 171V80c0-26.5 21.5-48 48-48h416c26.5 0 48 21.5 48 48v91c0 7.8-3.9 15-9.7 19.8zM0 214.8V432c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V214.8L327.4 362c-15.4 12.6-38.5 12.6-53.9 0L0 214.8z'/%3E%3C/svg%3E");
}


/* =======================
   SOMMAIRE / TOC MODERNE
======================= */

.toc-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 18px 18px 20px;
  margin: 30px 15px 26px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

@media (min-width: 769px) {
  .toc-card {
    margin: 30px 0 32px;
  }
}

/* Header du sommaire */
.toc-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

/* Titre + icône sur la même ligne */
.toc-card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1.1;
}

/* Icône */
.toc-icon {
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Grille de liens */
.toc-grid {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr; /* 1 colonne mobile */
  gap: 10px;
}

.toc-separator {
  grid-column: 1 / -1;
  height: 6px;  /* place pour 2 lignes + l’espace */
  background:
    linear-gradient(#e5e7eb, #e5e7eb) top,
    linear-gradient(#e5e7eb, #e5e7eb) bottom;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top, bottom;
  margin: 12px 0;
  list-style: none;
  padding: 0;
}



/* Desktop / large : 2 colonnes max */
@media (min-width: 600px) {
  .toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.toc-item {
  /* réserve pour plus tard, si besoin */
}

.toc-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #065f46;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover / focus */
.toc-link:hover {
  background: #dcfce7;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(4,120,87,0.16);
  text-decoration: none;
}

.toc-link:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.faq-bloc {
  text-align: left;
}

.faq-bloc .faq-item {
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}

.faq-bloc .faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.faq-bloc .faq-item h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.faq-bloc .faq-item p {
  margin: 3px 0;
  font-size: 0.95rem;
}

/* H2 dans la FAQ : pleine largeur sur mobile */
.faq-bloc > h2 {
  display: block;
  width: 100%;
}

/* FAQ : étendue jusqu'en bas de la colonne, sans blanc en dessous */
@media (min-width: 769px) {
  .colonne-droite {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* les blocs "normaux" gardent leur marge */
  .colonne-droite > .bloc-droite {
    margin-bottom: 40px;
  }

  /* mais la FAQ (dernier bloc) remplit le reste et n'a PAS de marge sous elle */
  .colonne-droite > .faq-bloc {
    flex: 1 0 auto;      /* prend l'espace restant dans la colonne */
    margin-bottom: 0;    /* 🚫 enlève le "trou" blanc */
    background: #f5f5f5; /* son fond gris habituel */
  }
  
  .faq-bloc {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ❤️ répartit le vide entre les questions */
  }

}

/* Liste globale */
.search-results-list {
  list-style: none;
  margin: 20px 0 40px;
  padding: 0;
}

/* Un résultat */
.search-result-item {
  margin-bottom: 26px;
}

/* URL affichée (ligne verte/gris, plus petite) */
.search-result-url {
  font-size: 0.85rem;
  color: #166534; /* vert foncé façon Google */
  margin-bottom: 2px;
  word-break: break-all;
}

.search-result-title {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600; /* plus gras */
  color: #1a0dab;
  text-decoration: none;
  line-height: 1.3;
}


.search-result-title:hover {
  text-decoration: underline;
}

/* Extrait gris sous le titre */
.search-result-excerpt {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 2px;
  line-height: 1.5;
}

/* Mobile : légère réduction des tailles */
@media (max-width: 768px) {
  .search-result-item {
    margin-bottom: 22px;
  }
  .search-result-title {
    font-size: 1rem;
  }
  .search-result-excerpt {
    font-size: 0.9rem;
  }
}

/* ==== BARRE DE RECHERCHE ==== */

.search-box{
  margin: 25px 0 35px;
}

.search-form{
  max-width: 720px;
  margin: 0 auto;
}

.search-label{
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #047857;
  margin-bottom: 8px;
}

.search-input-wrap{
  display: flex;
  align-items: center;
  gap: 0;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}

.search-icon{
  padding-left: 14px;
  padding-right: 8px;
  font-size: 1rem;
  opacity: 0.7;
}

.search-input{
  border: none;
  background: transparent;
  flex: 1;
  padding: 10px 10px 10px 2px;
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}

.search-input::placeholder{
  color: #9ca3af;
}

.search-submit{
  border: none;
  background: #047857;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(4,120,87,0.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.search-submit:hover{
  background: #065f46;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(4,120,87,0.35);
}

.search-submit:focus-visible{
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.search-helper{
  margin-top: 6px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Mobile */
@media (max-width: 640px){
  .search-input-wrap{
    flex-wrap: nowrap;
  }
  .search-submit{
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}


.rubrique-top-line {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 15px;
}


/* S'assurer que la colonne texte a bien un fond plein */
.bloc-image-texte .section-texte {
  background-color: #ffffff;
}


/* Pour être sûr que le texte est bien vu sur fond blanc */
.bloc-image-texte .section-texte,
.bloc-image-texte .section-texte p,
.bloc-image-texte .section-texte h3,
.bloc-image-texte .section-texte a {
  color: #111111;
}

/* Le bloc horaires doit être bien sur fond blanc */
.horaires-restaurant {
  background-color: #ffffff;
}

/* Facultatif mais safe : */
.horaires-restaurant table,
.horaires-restaurant th,
.horaires-restaurant td {
  background-color: #ffffff;
  color: #111111; /* bon contraste assuré */
}

/* Sécuriser le contraste dans les blocs texte des rubriques */
.bloc-image-texte .section-texte {
  position: relative;
  z-index: 1;          /* le texte passe au-dessus de la colonne verte */
  background-color: #ffffff;
  color: #111111;
}

/* Forcer aussi les <strong> à être bien contrastés */
.bloc-image-texte .section-texte strong {
  color: #111111;
}

/* Et s'assurer que la colonne "média" reste en dessous */
.bloc-image-texte .colonne-media {
  position: relative;
  z-index: 0;
}

/* Confort : fond blanc garanti pour le contenu principal */
main,
.intro-bloc,
.section-content,
.deux-colonnes,
.colonne-gauche,
.colonne-droite {
  background-color: #ffffff;
}


.cta-emoji-texte {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emoji-box {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;         /* un peu plus large */
  height: 30px;        /* un peu plus haut */
  border: 1px solid #000;   /* cadre plus fin */
  border-radius: 6px;
  font-size: 22px;     /* emoji plus gros */
  line-height: 1;
  background: #fff;
  margin-right: 10px;
}

.cta-phrase {
  font-weight: 600; /* Gras lisible mais pas trop épais */
}

.resto-reseaux-sociaux {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;              /* espace entre les boutons */
}

/* On neutralise le margin-left global pour ce cas précis */
.resto-reseaux-sociaux .bouton {
  margin-left: 0;
}

/* === FIX hero : badge visible === */

/* 1) On enlève le contain:strict du hero pour éviter le clipping */
.img-figure-hero {
  contain: none !important;
}

/* 2) On force la position du badge du hero à l'intérieur de l'image */
.ia-badge-overlay-hero,
.photo-badge-overlay-hero {
  right: 8px !important;
  bottom: 8px !important;   /* remplace le bottom:-46px inline */
}

.photo-badge-overlay,
.photo-badge-overlay-hero,
.ia-badge-overlay {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 1 !important;
  padding: 4px 6px !important;
}

.toc-search-card {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.toc-search-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}
