/* Feuille commune à toutes les maquettes : les couleurs et polices viennent des variables posées par render.js */
:root {
  --primary: #1d5fa8; --accent: #f29f05; --dark: #1a1f29; --soft: #f5f7fb;
  --text: #1f2430; --muted: #667085; --radius: 14px; --shadow: 0 10px 30px rgba(16, 24, 40, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-b); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.15; margin: 0 0 .6em; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.prose { font-size: 1.08rem; color: #3b4252; }

.demo-banner { background: var(--dark); color: #fff; font-size: .82rem; text-align: center; padding: .45rem 1rem; }
.demo-banner a { color: #fff; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; color: var(--dark); text-decoration: none; margin-right: auto; }
.brand .logo { max-height: 44px; width: auto; }
.nav { display: flex; gap: 1.3rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--primary); }

.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-light { background: #fff; color: var(--primary); }

.hero { position: relative; color: #fff; padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 45%), linear-gradient(135deg, var(--primary), var(--dark)); }
.hero.has-img { background: linear-gradient(100deg, color-mix(in srgb, var(--dark) 88%, transparent) 20%, color-mix(in srgb, var(--primary) 35%, transparent)), var(--hero-img) center / cover; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; opacity: .92; }
.badge { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: .35rem .9rem; border-radius: 999px; font-size: .88rem; margin: 0 0 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.media img, .media .ph, .media .map { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.card p { margin: 0; color: #4a5160; }
.price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.date { font-size: .85rem; font-weight: 600; color: var(--accent); margin: 0 0 .3rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery figure { margin: 0; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

.ph { display: grid; place-items: center; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--primary) 10%, #fff) 0 12px, color-mix(in srgb, var(--primary) 16%, #fff) 12px 24px); color: var(--primary); font-weight: 600; }

.cta-band { background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); color: #fff; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; opacity: .9; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

.icon-title { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; color: var(--primary); }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.hours th { font-weight: 600; padding-right: 1.5rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.contact-card { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 1.3rem; border-radius: var(--radius); background: var(--soft); color: var(--dark); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-card svg { color: var(--primary); width: 1.4em; height: 1.4em; }

.footer { background: var(--dark); color: rgba(255, 255, 255, .8); padding: 2.5rem 0; font-size: .92rem; }
.footer strong { color: #fff; }
.footer .muted { color: rgba(255, 255, 255, .55); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.socials { display: flex; gap: 1rem; }
.socials a { color: #fff; text-transform: capitalize; }

.call-fab { display: none; }

@media (max-width: 820px) {
  .nav, .hide-sm { display: none; }
  .split { grid-template-columns: 1fr; }
  .call-fab { display: grid; place-items: center; position: fixed; right: 1rem; bottom: 1rem; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 30; }
  .call-fab svg { width: 26px; height: 26px; }
}

/* Bandeau des exemples : bouton d'essai de l'administration */
.demo-essai { display: inline; margin: 0 0 0 .6rem; }
.demo-essai button { font: inherit; font-weight: 600; font-size: .78rem; padding: .2rem .7rem; border-radius: 999px; border: 0; background: #fff; color: #111; cursor: pointer; }
.demo-essai button:hover { background: var(--accent); color: #fff; }
/* Illustration générée : mention discrète, à remplacer par une vraie photo */
.media, .gallery figure { position: relative; }
.illu { position: absolute; right: .6rem; bottom: .6rem; z-index: 1; font-size: .72rem; line-height: 1.2; padding: .3rem .6rem; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; pointer-events: none; }
.hero > .illu { bottom: 1rem; right: 1rem; }

/* Carte par catégories : onglets sans JavaScript (boutons radio) */
.menu-onglets { display: flex; flex-wrap: wrap; gap: .5rem; }
.menu-onglets > input { position: absolute; opacity: 0; pointer-events: none; }
.menu-onglets > label { padding: .5rem 1.05rem; border-radius: 999px; border: 2px solid var(--line, #ddd); background: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; }
.menu-onglets > input:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
.menu-onglets > input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.menu-panneau { display: none; flex-basis: 100%; margin-top: 1.2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem); }
.menu-titre { margin: 0 0 .8rem; font-size: 1.3rem; }
.menu-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 2.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.menu-liste li { padding-bottom: .9rem; border-bottom: 1px dashed var(--line, #ddd); }
.menu-ligne { display: flex; align-items: baseline; gap: .6rem; }
.menu-nom { font-weight: 700; }
.menu-prix { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--primary); }
.menu-liste p { margin: .25rem 0 0; font-size: .93rem; color: var(--muted, #666); }
.menu-pdf { margin-top: 1.4rem; }
.menu-onglets > input:nth-of-type(1):checked ~ .menu-panneau[data-n="0"] { display: block; }
.menu-onglets > input:nth-of-type(2):checked ~ .menu-panneau[data-n="1"] { display: block; }
.menu-onglets > input:nth-of-type(3):checked ~ .menu-panneau[data-n="2"] { display: block; }
.menu-onglets > input:nth-of-type(4):checked ~ .menu-panneau[data-n="3"] { display: block; }
.menu-onglets > input:nth-of-type(5):checked ~ .menu-panneau[data-n="4"] { display: block; }
.menu-onglets > input:nth-of-type(6):checked ~ .menu-panneau[data-n="5"] { display: block; }
.menu-onglets > input:nth-of-type(7):checked ~ .menu-panneau[data-n="6"] { display: block; }
.menu-onglets > input:nth-of-type(8):checked ~ .menu-panneau[data-n="7"] { display: block; }
.menu-onglets > input:nth-of-type(9):checked ~ .menu-panneau[data-n="8"] { display: block; }
.menu-onglets > input:nth-of-type(10):checked ~ .menu-panneau[data-n="9"] { display: block; }
.menu-onglets > input:nth-of-type(11):checked ~ .menu-panneau[data-n="10"] { display: block; }
.menu-onglets > input:nth-of-type(12):checked ~ .menu-panneau[data-n="11"] { display: block; }
.menu-onglets > input:nth-of-type(13):checked ~ .menu-panneau[data-n="12"] { display: block; }
.menu-onglets > input:nth-of-type(14):checked ~ .menu-panneau[data-n="13"] { display: block; }
.menu-onglets > input:nth-of-type(15):checked ~ .menu-panneau[data-n="14"] { display: block; }
.menu-onglets > input:nth-of-type(16):checked ~ .menu-panneau[data-n="15"] { display: block; }
.menu-onglets > input:nth-of-type(17):checked ~ .menu-panneau[data-n="16"] { display: block; }
.menu-onglets > input:nth-of-type(18):checked ~ .menu-panneau[data-n="17"] { display: block; }
.menu-onglets > input:nth-of-type(19):checked ~ .menu-panneau[data-n="18"] { display: block; }
.menu-onglets > input:nth-of-type(20):checked ~ .menu-panneau[data-n="19"] { display: block; }

/* Blocs libres ajoutés par le client */
.bloc .centre, .bloc.centre, .bloc-encadre.centre { text-align: center; }
.bloc .centre .prose, .wrap.centre .prose { margin-inline: auto; }
.split.inverse > .media { order: -1; }
.bloc-colonnes { display: grid; gap: 1rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.bloc-encadre { background: var(--soft, #f6f6f6); border-left: 6px solid var(--primary); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); }
.bloc-encadre.centre { border-left: 0; border-top: 6px solid var(--primary); }
@media (max-width: 800px) { .split.inverse > .media { order: 0; } }
