/* Sites exemples SGGK : socle commun (chaque page redéfinit ses couleurs et ses polices sur :root).
   Les « notes de Thomas » expliquent au commerçant ce que fait chaque partie ; masquables (ruban du haut ou ?propre). */
:root {
  --bg: #FBF7F0; --bg-2: #F3ECE0; --card: #FFFFFF; --ink: #1F1A16; --muted: #6B5E52; --line: rgba(31,26,22,.1);
  --accent: #C2410C; --accent-2: #9A3412; --accent-ink: #FFFFFF; --soft: rgba(194,65,12,.1);
  --dark: #14202B; --dark-2: #0C151D; --on-dark: #F6F1E8; --on-dark-muted: rgba(246,241,232,.72); --dark-line: rgba(246,241,232,.16);
  --ok: #2F8F5B; --ko: #C2413B;
  --display: Georgia, "Times New Roman", serif; --body: "Segoe UI", system-ui, sans-serif; --main: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --r: 22px; --r-sm: 14px; --shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 34px -26px rgba(0,0,0,.55);
  --note: #FFF0A6; --note-ink: #3A2E10; --note-tag: #8A6A12; --pin: #D9466B;
  --h2-size: clamp(2rem, 5.4vw, 3.3rem); --display-weight: 400;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.05rem; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 18px; }
section { scroll-margin-top: 64px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.3rem; border-radius: 999px; border: 0; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; text-align: center; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.a { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -14px var(--accent); }
.btn.a:hover { background: var(--accent-2); }
.btn.o { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 2px var(--dark-line); }
.btn.o:hover { box-shadow: inset 0 0 0 2px var(--on-dark); }
.btn.k { background: var(--ink); color: var(--bg); }
.btn.s { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.s:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Ruban « site exemple » ---------- */
.ruban { position: relative; z-index: 45; background: #17120E; color: rgba(255,248,236,.82); font: 600 .8rem/1.2 system-ui, sans-serif; }
.ruban .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px; }
.ruban .dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #FFD25E; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255,210,94,.18); }
.ruban .r { display: flex; gap: 2px; flex: none; }
.ruban button, .ruban a { padding: 8px; border: 0; background: none; color: #FFD25E; font: inherit; cursor: pointer; text-decoration: none; border-radius: 8px; white-space: nowrap; }
.ruban button:hover, .ruban a:hover { background: rgba(255,255,255,.08); }
@media (max-width: 600px) { .ruban .long { display: none; } }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--top-bg, rgba(12,21,29,.93)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--top-ink, var(--on-dark)); border-bottom: 1px solid var(--top-line, var(--dark-line)); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mono { flex: none; width: 38px; height: 38px; border-radius: var(--mono-r, 50%); display: grid; place-items: center; background: var(--mono-bg, var(--accent)); color: var(--mono-ink, var(--accent-ink)); font: var(--display-weight) 1.25rem/1 var(--display); }
.brand b { font: var(--display-weight) 1.08rem/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top nav { display: flex; align-items: center; gap: 18px; flex: none; }
.top nav a.l { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.top nav a.l:hover { opacity: 1; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .86rem; white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: var(--status-bg, rgba(255,255,255,.09)); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #E06A6A; box-shadow: 0 0 0 3px rgba(224,106,106,.25); }
.status.open i { background: #5BD08C; box-shadow: 0 0 0 3px rgba(91,208,140,.25); animation: pulse 2s ease-in-out infinite; }
.status.soon i { background: #F2B544; box-shadow: 0 0 0 3px rgba(242,181,68,.25); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(91,208,140,.06); } }
.top .cta { padding: .55rem 1rem; min-height: 40px; font-size: .92rem; }
@media (max-width: 920px) { .top nav a.l { display: none; } }
@media (max-width: 560px) { .top .cta, .status .long { display: none; } .brand b { font-size: .98rem; } }

/* ---------- Sections ---------- */
section.sec { padding-block: clamp(56px, 9vw, 96px); position: relative; }
.sec.alt { background: var(--bg-2); }
.sec.dk { background: var(--dark); color: var(--on-dark); }
.eyebrow { display: block; font: 700 .76rem/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--eyebrow, var(--accent)); }
.sec.dk .eyebrow { color: var(--eyebrow-dk, var(--accent)); }
.sec h2 { font: var(--display-weight) var(--h2-size)/1.05 var(--display); margin-top: 8px; text-wrap: balance; letter-spacing: var(--h-track, 0); }
.sec h2 em { font-style: var(--em-style, italic); color: var(--accent); }
.sec.dk h2 em { color: var(--em-dk, var(--accent)); }
.lead { margin-top: 12px; max-width: 58ch; color: var(--muted); font-size: 1.1rem; }
.sec.dk .lead { color: var(--on-dark-muted); }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: start; margin-top: 34px; }
@media (max-width: 860px) { .g2 { grid-template-columns: 1fr; } }
/* Les colonnes de grille ne doivent jamais être élargies par une bande qui défile (jours, onglets) */
.g2 > *, .resa > *, .rdv > *, .cmd > *, .tarifs > *, .carte > *, .duo > *, .hero .wrap > * { min-width: 0; }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Notes de Thomas ---------- */
.note { position: relative; display: block; width: fit-content; max-width: 360px; margin-top: 28px; padding: 16px 18px 13px; background: var(--note); color: var(--note-ink); font: 600 1.3rem/1.22 var(--main); transform: rotate(-1.6deg); box-shadow: 0 14px 20px -14px rgba(0,0,0,.55); border-radius: 2px 2px 16px 2px; text-align: left; }
.note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF9DB4, var(--pin)); box-shadow: 0 3px 4px rgba(0,0,0,.35); }
.note > b { display: block; font: 700 .68rem/1.3 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--note-tag); margin-bottom: 4px; }
/* La signature : la petite photo de Thomas devant « Note de Thomas » */
.note > b::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 7px; border-radius: 50%; vertical-align: -7px; background: url("https://sggk.fr/img/thomas-160.jpg") center / cover, #E8DFA0; box-shadow: 0 0 0 1.5px rgba(58,46,16,.35); }
.note .brique { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1.5px dashed rgba(58,46,16,.25); font: 700 .78rem/1.3 system-ui, sans-serif; color: var(--note-tag); }
.note .essai { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 13px; border-radius: 999px; border: 0; background: var(--note-ink); color: var(--note); font: 700 .8rem/1.2 system-ui, sans-serif; cursor: pointer; }
.note .essai:hover { transform: translateY(-1px); }
.note.r { transform: rotate(1.4deg); }
.note.c { margin-inline: auto; }
body.propre .note { display: none; }
body.apercu .ruban, body.apercu .dock { display: none; }
html:has(body.apercu) { overflow: hidden; scrollbar-width: none; }
body.apercu::-webkit-scrollbar { display: none; }

/* ---------- Horaires, plan, coordonnées ---------- */
.horaires { border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); }
.horaires li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.horaires li:last-child { border-bottom: 0; }
.horaires li span:last-child { color: var(--muted); font-weight: 500; text-align: right; }
.horaires li.ferme span:last-child { opacity: .6; }
.horaires li.today { background: var(--soft); }
.horaires li.today span:first-child::after { content: " · aujourd’hui"; color: var(--accent); font-size: .85rem; }
.plan { position: relative; height: 210px; border-radius: var(--r); overflow: hidden; background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(0deg, transparent 62%, #fff 62%, #fff 68%, transparent 68%),
    linear-gradient(35deg, transparent 30%, rgba(255,255,255,.8) 30%, rgba(255,255,255,.8) 33%, transparent 33%),
    radial-gradient(40% 50% at 15% 85%, #CFE0B8, transparent 70%),
    radial-gradient(30% 40% at 90% 10%, #BFD9E6, transparent 70%),
    #E9E3D6; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.plan .pin { position: absolute; left: 50%; top: 65%; width: 34px; height: 34px; margin: -34px 0 0 -17px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); box-shadow: 0 8px 14px -6px rgba(0,0,0,.5); }
.plan .pin::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.plan.in .pin { animation: drop .8s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes drop { from { transform: translateY(-120px) rotate(-45deg); opacity: 0; } }
.plan .lbl { position: absolute; left: 50%; top: 70%; transform: translateX(-50%); padding: 5px 11px; border-radius: 999px; background: #fff; color: #1F1A16; font-weight: 700; font-size: .85rem; white-space: nowrap; box-shadow: 0 6px 12px -8px rgba(0,0,0,.5); }
.adresse { display: grid; gap: 14px; }
.coord { display: grid; gap: 2px; font-weight: 700; font-size: 1.1rem; }
.coord span { color: var(--muted); font-weight: 500; font-size: 1rem; }
.sec.dk .coord span { color: var(--on-dark-muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.aide { font-size: .88rem; color: var(--muted); }
.sec.dk .aide { color: var(--on-dark-muted); }
.aide.err { color: var(--ko); font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .9rem; }

/* ---------- Formulaires ---------- */
.f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.f > * { min-width: 0; }
.f fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.f legend, .lab { display: block; padding: 0; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.f label.fl { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.f input[type=text], .f input[type=tel], .f input[type=email], .f input[type=date], .f input[type=number], .f select, .f textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 0; background: var(--field-bg, var(--bg)); color: var(--ink); font: 500 1rem var(--body); box-shadow: inset 0 0 0 1.5px var(--line); color-scheme: light; }
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px var(--soft); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .deux { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--chip-bg, var(--card)); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: box-shadow .15s, background .15s, color .15s; }
.chips label:has(input:checked) { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-2); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper output { min-width: 3ch; text-align: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.days button { flex: none; display: grid; justify-items: center; gap: 0; width: 62px; padding: 9px 4px; border-radius: 16px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; line-height: 1.15; }
.days button small { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.days button b { font-size: 1.35rem; }
.days button.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slots button { min-height: 44px; border-radius: 12px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.slots button.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.slots button:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.slots .vide { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }
.recu { display: none; padding: 24px; border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: 0 24px 40px -24px rgba(0,0,0,.6); }
.recu.on { display: grid; gap: 12px; animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.recu h3 { font: var(--display-weight) 1.8rem/1.1 var(--display); }
.recu h3 span { color: var(--ok); }
.recu .demo { color: var(--muted); font-size: .9rem; }
.panel { padding: 24px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.sec.dk .panel.glass { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--dark-line); color: var(--on-dark); }

/* ---------- Message (bannière de téléphone) et petit message d'action ---------- */
.sms { position: fixed; left: 50%; top: 12px; z-index: 90; width: min(380px, calc(100% - 20px)); display: grid; grid-template-columns: 38px 1fr; gap: 4px 11px; padding: 12px 14px; border-radius: 20px; background: rgba(250,250,252,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #111; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transform: translate(-50%, -160%); transition: transform .5s cubic-bezier(.2,1.2,.4,1); font: 400 .92rem/1.35 system-ui, -apple-system, sans-serif; }
.sms.on { transform: translate(-50%, 0); }
.sms .ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #34C759; color: #fff; }
.sms .ic svg { width: 22px; height: 22px; }
.sms .hd { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: #666; }
.sms .hd b { color: #111; font-size: .86rem; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: min(420px, calc(100% - 24px)); padding: 12px 16px; border-radius: 14px; background: #17120E; color: #FFF8EC; font: 600 .92rem/1.4 system-ui, sans-serif; box-shadow: 0 16px 30px -14px rgba(0,0,0,.7); transform: translate(-50%, 180%); transition: transform .4s cubic-bezier(.2,1.2,.4,1); }
.toast.on { transform: translate(-50%, 0); }
.toast b { color: #FFD25E; }
body.dock-on .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Barre d'actions mobile ---------- */
.dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: none; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px; border-radius: 22px; background: var(--dock-bg, rgba(12,21,29,.95)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--dark-line); box-shadow: 0 16px 30px -12px rgba(0,0,0,.7); transform: translateY(150%); transition: transform .4s cubic-bezier(.2,1.2,.4,1); }
.dock.on { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 16px; color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: .9rem; }
.dock a.main { background: var(--accent); color: var(--accent-ink); }
.dock svg { width: 19px; height: 19px; flex: none; }
@media (max-width: 760px) { .dock { display: grid; } footer.pied { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Pied de page ---------- */
footer.pied { background: var(--dark-2); color: var(--on-dark-muted); padding-block: 44px; font-size: .95rem; }
footer.pied .wrap { display: grid; gap: 8px; }
footer.pied b { font: var(--display-weight) 1.5rem/1.1 var(--display); color: var(--on-dark); }
footer.pied .maq { margin-top: 12px; font-size: .84rem; opacity: .75; max-width: 72ch; }
footer.pied .maq a { color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } .js .rv { opacity: 1; transform: none; } }
