/* Page magasin + atelier (includes/store.php). Ne pas remettre ce CSS en <style>
   inline : les .php sont servis en no-store, ce fichier est cache un an.

   Parti pris : le tableau des tarifs, comme au mur d'un garage. Page blanche,
   filets, prix en gros a droite, un seul rouge (le bouton de rendez-vous, qui
   est le .ui.primary.button du site). Tout est scope sous .rg ; la carte
   horaires (.rp-card, modules/modals/store_info.php, partagee avec le tiroir
   de l'en-tete) recoit une colonne et rien d'autre. AG-Regular n'a qu'une
   graisse : la hierarchie vient de la taille, de la couleur et de Paytone One
   sur les titres et les prix. */

.rg{
  --ink:#0f172a; --muted:#64748b; --line:rgba(15,23,42,.1); --field:#f6f6f7; --ok:#16a34a;
  font-family:var(--font-primary,sans-serif); font-size:15px; line-height:1.55; color:var(--ink);
  max-width:1180px; margin:0 auto;
}
.rg *{ box-sizing:border-box; }
.rg a{ color:inherit; text-decoration:none; }
.rg a:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.rg p{ margin:0; }
/* le theme (.g-html ul, .g-html ul li) pose puces et marges sur toute liste
   du contenu : on le neutralise avec une specificite superieure */
.rg ul,.rg ol,.rg .rg-list,.rg .rg-plus,.rg .rg-engage,.rg .rg-offer ul{ list-style:none; margin:0; padding:0; }
.rg ul li,.rg .rg-list li,.rg .rg-plus li,.rg .rg-engage li,.rg .rg-offer li{ margin:0; padding:0; list-style:none; }
/* le theme pose padding-top:15px sur les h2/h3 de .g-html */
.rg h1,.rg h2{ font-family:var(--font-bold,sans-serif); font-weight:400; letter-spacing:0; line-height:1.1; margin:0; padding:0; }
.rg h1{ font-size:34px; }
.rg h2{ font-size:24px; }
.rg h3{ font-family:inherit; font-weight:400; font-size:17px; line-height:1.3; letter-spacing:0; margin:0; padding:0; color:var(--ink); }
.rg strong{ font-weight:400; color:var(--ink); }
.rg .rg-lead{ font-size:16px; line-height:1.6; max-width:62ch; color:var(--muted); }
.rg .ui.button{ margin:0; }
.rg .ui.button svg{ width:16px; height:16px; flex:0 0 16px; }
.rg .ui.button i.fa-brands{ font-size:16px; line-height:1; }

/* nombre de prix : « dès 290 CHF » */
.rg-prix b{ font-family:var(--font-bold,sans-serif); font-weight:400; font-size:24px; line-height:1; color:var(--ink); }
.rg-prix small{ font-size:13px; color:var(--muted); }
.rg-prix small:first-child{ margin-right:6px; }
.rg-prix b + small{ margin-left:4px; }

/* ---------- comptoir : qui on est, a gauche ; l'utile tout de suite, a droite ---------- */
.rg-top{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px 56px; align-items:end; padding:4px 0 30px; border-bottom:1px solid var(--line); }
.rg-top h1{ margin-bottom:10px; }
.rg-sub{ font-size:17px; }
.rg-addr{ color:var(--muted); margin-top:4px; }
.rg-top-r{ text-align:right; }
.rg-now{ display:inline-flex; align-items:center; gap:9px; color:var(--muted); }
.rg-now b{ font-weight:400; color:var(--ink); }
.rg-dot{ width:9px; height:9px; border-radius:50%; background:#94a3b8; flex:0 0 9px; }
.rg-dot.is-open{ background:var(--ok); }
.rg-dot.is-closed{ background:var(--color-primary,#f1283b); }
.rg-note{ display:flex; align-items:center; gap:2px; justify-content:flex-end; margin-top:6px; color:var(--muted); font-size:14px; }
.rg-note .rg-stars{ display:inline-flex; align-items:center; gap:2px; }
.rg-note .st{ width:15px; height:15px; }
.rg-note .st.full{ fill:#f5b301; }
.rg-note .st.empty{ fill:#d9d9d9; }
.rg-note .rg-rev{ margin-left:7px; }
.rg-actions{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; margin-top:18px; }
.rg-back{ display:inline-flex; align-items:center; gap:6px; color:var(--muted); margin-bottom:16px; }
.rg-back:hover{ color:var(--ink); }
.rg-back svg{ width:15px; height:15px; }

/* etiquette de prix de la vue detail */
.rg.is-detail .rg-top{ align-items:start; }
.rg-tarif{ min-width:300px; text-align:left; }
.rg-tarif .rg-prix b{ font-size:44px; }
.rg-tarif .rg-prix small:first-child{ display:block; margin:0 0 4px; }
.rg-tarif .rg-prix b + small{ font-size:16px; margin-left:6px; }
.rg-engage{ margin:14px 0 16px; color:var(--muted); font-size:14px; }
.rg .rg-engage li{ display:flex; gap:8px; margin:4px 0; }
.rg .rg-engage li::before{ content:"–"; color:var(--ink); }
.rg-tarif .rg-now{ margin-top:14px; }

/* ---------- le tableau des tarifs ---------- */
.rg-board{ padding:36px 0 0; }
.rg-board-h{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:10px; }
.rg-board-h p{ color:var(--muted); }
.rg .rg-list{ border-top:1px solid var(--line); }
.rg .rg-list li{ border-bottom:1px solid var(--line); }
.rg .rg-list a{ display:grid; grid-template-columns:36px minmax(0,1fr) auto 18px; grid-template-areas:"ico txt prix go"; gap:16px 20px; align-items:center; padding:18px 6px; }
@media (hover:hover){ .rg .rg-list a:hover{ background:var(--field); } }
.rg .rg-list a > svg:first-child{ grid-area:ico; width:36px; height:36px; }
.rg .rg-list a > .rg-li-txt{ grid-area:txt; min-width:0; }
.rg .rg-list a > .rg-li-price{ grid-area:prix; }
.rg .rg-list a > .rg-li-go{ grid-area:go; width:18px; height:18px; }
.rg-li-name{ display:block; font-size:17px; }
.rg-li-desc{ display:block; color:var(--muted); font-size:14px; margin-top:2px; }
.rg-li-price{ text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rg-li-go{ color:#94a3b8; }
@media (hover:hover){ .rg .rg-list a:hover .rg-li-go{ color:var(--ink); } }
.rg .rg-list.compact a{ padding:12px 6px; grid-template-columns:28px minmax(0,1fr) auto 18px; }
.rg .rg-list.compact a > svg:first-child{ width:28px; height:28px; }
.rg .rg-list.compact .rg-li-name{ font-size:15px; }
.rg .rg-list.compact .rg-prix b{ font-size:18px; }

/* sur ecran large, le tableau principal passe en cartes : la liste en filets
   faisait vide a 1180 px. La liste compacte et le telephone gardent les filets. */
@media (min-width:681px){
  .rg-board .rg-list{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; border-top:0; }
  .rg-board .rg-list li{ border-bottom:0; min-width:0; }
  .rg-board .rg-list a{ height:100%; grid-template-columns:minmax(0,1fr) 18px; grid-template-areas:"ico go" "txt txt" "prix prix"; gap:0; align-content:start; align-items:start;
                        padding:20px 20px 18px; border:1px solid var(--line); border-radius:12px; transition:border-color .15s,background-color .15s; }
  .rg-board .rg-list a > svg:first-child{ width:40px; height:40px; margin-bottom:14px; }
  .rg-board .rg-list a > .rg-li-go{ justify-self:end; margin-top:2px; }
  .rg-board .rg-list a > .rg-li-price{ text-align:left; margin-top:auto; padding-top:16px; }
  .rg-board .rg-li-desc{ margin-top:4px; }
}
@media (min-width:681px) and (hover:hover){ .rg-board .rg-list a:hover{ border-color:var(--ink); background:#fff; } }
@media (min-width:681px) and (max-width:900px){
  .rg-board .rg-list{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ---------- magasin ---------- */
.rg-shop{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:32px 72px; padding:44px 0; border-bottom:1px solid var(--line); }
.rg-shop h2{ margin-bottom:12px; }
.rg-shop .ui.button{ margin-top:22px; }
.rg .rg-plus li{ display:grid; grid-template-columns:26px minmax(0,1fr); gap:14px; align-items:start; padding:13px 0; border-top:1px solid var(--line); }
.rg .rg-plus li:first-child{ border-top:0; padding-top:0; }
.rg-plus svg{ width:26px; height:26px; margin-top:1px; }
.rg-plus b{ font-weight:400; display:block; }
.rg-plus span{ display:block; color:var(--muted); font-size:14px; margin-top:1px; }

/* ---------- contenu + carte horaires ---------- */
.rg-cols{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:48px 56px; align-items:start; padding:44px 0 8px; }
.rg-aside{ position:sticky; top:80px; }   /* sous l'en-tete fixe de 64 px */
@media (prefers-reduced-motion:reduce){ .rg-aside{ position:static; } }

.rg-pres{ scroll-margin-top:80px; }
.rg-pres h2{ margin-bottom:14px; max-width:28ch; }
.rg-pres p{ color:var(--muted); max-width:66ch; line-height:1.65; margin:0 0 12px; }
.rg-pres .rg-actions{ justify-content:flex-start; margin-top:20px; }

/* offres d'une prestation : memes lignes, memes filets */
.rg-offer{ display:grid; grid-template-columns:minmax(0,1fr) 230px; gap:12px 36px; padding:24px 0; border-bottom:1px solid var(--line); }
.rg-offer:first-child{ border-top:1px solid var(--line); }
.rg-offer h3{ margin-bottom:8px; }
.rg .rg-offer li{ display:flex; gap:8px; color:var(--muted); font-size:14px; line-height:1.45; margin:4px 0; }
.rg .rg-offer li::before{ content:"–"; color:var(--ink); flex:0 0 auto; }
.rg-offer-p{ display:flex; flex-direction:column; align-items:flex-start; }
.rg-offer-p .pre{ color:var(--muted); font-size:13px; }
.rg-offer-p .amt{ font-family:var(--font-bold,sans-serif); font-weight:400; font-size:28px; line-height:1.05; }
.rg-offer-p .amt.multi{ font-size:18px; margin:2px 0; }
.rg-offer-p .amt small{ font-family:var(--font-primary,sans-serif); font-size:13px; color:var(--muted); margin-left:4px; }
.rg-offer-p .note{ color:var(--muted); font-size:13px; margin-top:4px; }
.rg-offer-p .ui.button{ margin-top:8px; }
.rg-offer-p .ui.button + .ui.button{ margin-top:6px; }

.rg-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.rg-table{ width:100%; border-collapse:collapse; min-width:520px; font-size:15px; }
.rg-table th,.rg-table td{ padding:12px 16px; text-align:left; border-bottom:1px solid var(--line); vertical-align:middle; }
.rg-table thead th{ vertical-align:top; border-bottom:1px solid var(--ink); }
.rg-table .hl{ background:var(--field); }
.rg-table .col-head .ch{ font-size:15px; color:var(--muted); }
.rg-table .col-head .pr{ font-family:var(--font-bold,sans-serif); font-size:26px; line-height:1.1; margin-top:2px; }
.rg-table .col-head .nt{ color:var(--muted); font-size:13px; }
.rg-table tbody td:first-child{ color:var(--muted); }
.rg-table .cell{ text-align:center; }
.rg-table .cell.opt{ color:var(--ink); white-space:nowrap; }
.rg-yes{ color:var(--ok); font-size:18px; line-height:1; }
.rg-no{ color:#cbd5e1; font-size:14px; line-height:1; }
.rg-table tfoot td{ padding:16px; text-align:center; border-bottom:0; }
.rg-table tfoot .ui.button{ margin:0 auto; }

.rg-seo{ color:var(--muted); max-width:70ch; margin-top:22px; line-height:1.6; }
.rg-seo p{ margin:0 0 12px; }
.rg-others{ margin-top:40px; }
.rg-others h2{ font-size:20px; margin-bottom:10px; }

/* ---------- barre de rendez-vous, telephone seulement ---------- */
.rg-bar{ display:none; }

/* ---------- ecrans etroits ---------- */
@media (max-width:900px){
  .rg-top{ grid-template-columns:1fr; align-items:start; }
  .rg-top-r{ text-align:left; }
  .rg-note,.rg-actions{ justify-content:flex-start; }
  .rg-shop{ grid-template-columns:1fr; gap:24px; }
  .rg-cols{ grid-template-columns:1fr; }
  .rg-aside{ position:static; }   /* sur telephone, les horaires passent en bas ; la barre fixe garde RDV et appel a portee */
}
@media (max-width:680px){
  .rg{ padding-bottom:76px; }
  .rg h1{ font-size:28px; }
  .rg h2{ font-size:22px; }
  .rg .rg-list a{ grid-template-columns:32px minmax(0,1fr) 18px; grid-template-areas:"ico txt go" "ico prix go"; gap:4px 14px; padding:16px 4px; }
  .rg .rg-list a > svg:first-child{ width:32px; height:32px; }
  .rg .rg-list a > .rg-li-price{ text-align:left; }
  .rg .rg-list.compact a{ grid-template-columns:28px minmax(0,1fr) auto 18px; grid-template-areas:"ico txt prix go"; gap:14px; }
  .rg .rg-list.compact a > .rg-li-price{ text-align:right; }
  .rg-offer{ grid-template-columns:1fr; gap:14px; }
  .rg-tarif{ min-width:0; }
  .rg-tarif .rg-prix b{ font-size:38px; }
  .rg-table{ min-width:440px; font-size:14px; }
  .rg-table th,.rg-table td{ padding:11px 12px; }
  .rg-bar{ display:flex; gap:8px; position:fixed; left:0; right:0; bottom:0; z-index:100;
           padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line); }
  .rg-bar .ui.button{ flex:1; margin:0; }
}
