/* ==============================================================
   Modèle VitrineNow — mobile d'abord, aucune ressource externe.
   Couleurs et police des titres : variables injectées par le thème
   (voir core/rendu.py, THEMES).
   ============================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: 4.5rem; /* place pour la barre d'appel mobile */
}

h1, h2, h3 {
  font-family: var(--police-titre);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.conteneur { width: min(1100px, 100% - 2rem); margin-inline: auto; }
.etroit { width: min(720px, 100% - 2rem); }

/* --- Bandeau d'aperçu (maquettes uniquement) --- */
.bandeau-apercu {
  background: #111; color: #fff; text-align: center;
  font-size: 0.85rem; padding: 0.45rem 1rem;
}
.bandeau-apercu a { color: #fff; font-weight: 600; }

/* --- En-tête --- */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--fond) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--texte) 10%, transparent);
}
.entete-contenu { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.marque {
  font-family: var(--police-titre); font-weight: 700; font-size: 1.15rem;
  color: var(--texte); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entete .entete-appel { display: none; } /* mobile : la barre d'appel du bas suffit */

/* --- Boutons --- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 999px; font-weight: 650; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(0 0 0 / 0.15); }
.bouton-accent { background: var(--accent); color: var(--accent-texte); }
.bouton-clair { background: rgb(255 255 255 / 0.92); color: #1a1a1a; }

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--sombre);
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero-photo {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.72)),
    var(--hero) center / cover no-repeat,
    var(--sombre);
  padding: 6rem 0 4.5rem;
}
.hero-contenu > * { max-width: 760px; }
.hero-surtitre {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; font-weight: 700; opacity: 0.85;
}
.hero-texte { font-size: 1.15rem; opacity: 0.92; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.hero-note {
  display: inline-flex; gap: 0.4rem; align-items: center;
  color: #fff; text-decoration: none; font-weight: 600;
  background: rgb(255 255 255 / 0.12); padding: 0.4rem 0.9rem; border-radius: 999px;
}
.etoiles { color: #f5b301; }

/* --- Sections --- */
.section { padding: 4rem 0; }
.section-surface { background: var(--surface); }
.section-sombre { background: var(--sombre); color: #fff; }
.section-sombre a { color: #fff; }
.section-sombre .bouton-accent { color: var(--accent-texte); }
.section-sombre .bouton-clair { color: #1a1a1a; }
/* Deux sections claires qui se suivent : pas de double marge */
.section:not(.section-surface):not(.section-sombre) + .section:not(.section-surface):not(.section-sombre) { padding-top: 0; }
.texte-etroit { max-width: 720px; }

.grille { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.carte {
  background: var(--fond);
  border: 1px solid color-mix(in srgb, var(--texte) 9%, transparent);
  border-radius: 14px; padding: 1.4rem;
  margin: 0;
}
.section:not(.section-surface) .carte { background: var(--surface); }
.carte p:last-child { margin-bottom: 0; }

.atouts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.atouts li { display: grid; gap: 0.2rem; padding-left: 1.1rem; border-left: 3px solid var(--accent); }
.atouts span { color: var(--texte-doux); }

.galerie { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.galerie figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }

.avis .avis-note { color: #f5b301; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.avis footer { color: var(--texte-doux); font-size: 0.95rem; }
.lien-google { margin-top: 1.25rem; }

.contact { display: grid; gap: 2.5rem; }
.contact-ligne { font-size: 1.1rem; }
.horaires { border-collapse: collapse; width: 100%; max-width: 420px; }
.horaires th, .horaires td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.15); }
.horaires th { font-weight: 600; padding-right: 1.5rem; text-transform: capitalize; }

.mentions h2 { font-size: 1.2rem; margin-top: 2rem; }

/* --- Pied de page --- */
.pied { padding: 2rem 0; font-size: 0.9rem; color: var(--texte-doux); }
.pied-contenu p { margin: 0.3rem 0; }
.pied a { color: inherit; }
.credit { opacity: 0.8; }

/* --- Barre d'appel mobile --- */
.barre-appel {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-texte);
  font-weight: 700; text-decoration: none; font-size: 1.05rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}
.barre-appel::before { content: "☎"; font-size: 1.1rem; }

/* --- Écrans larges --- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .barre-appel { display: none; }
  .entete .entete-appel { display: inline-flex; min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
  .grille { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .atouts { grid-template-columns: repeat(3, 1fr); }
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
  .section { padding: 5.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
