/* =========================================================================
   base.css — structure & composants communs à tous les thèmes.
   Les couleurs, fontes et détails d'ambiance sont fournis par le fichier
   de thème (public/assets/css/themes/<thème>.css) via des variables CSS.
   Sémantique du statut live (vert/ambre/rouge) : UNIVERSELLE, définie ici,
   jamais redéfinie par un thème.
   ========================================================================= */

:root{
  /* Repli neutre (le thème écrase ces variables) */
  --bg:#f5f7f8;
  --ink:#0f1b24;
  --text:#0f1b24;
  --muted:#5d6f7c;
  --card:#ffffff;
  --line:#dce4ea;
  --accent:#0e7c7b;
  --accent-2:#0b5f5e;
  --on-accent:#ffffff;

  /* Hero */
  --hero-bg:linear-gradient(180deg,#0f1b24 0%,#16323b 100%);
  --hero-ink:#eaf2f7;
  --hero-eyebrow:#9fc0d4;
  --hero-line:rgba(255,255,255,.18);

  /* Chips translucides (statut, badges) posés sur le hero */
  --chip-bg:rgba(255,255,255,.08);
  --chip-border:rgba(255,255,255,.16);

  /* Fontes (le thème les redéfinit) */
  --font-display:"Inter",system-ui,sans-serif;
  --font-text:"Inter",system-ui,sans-serif;
  --font-data:"Inter",system-ui,sans-serif;

  /* Sémantique statut — UNIVERSELLE, non thématisée */
  --open:#1c9b54;
  --automate:#cf8400;   /* ambre : service 24/7 */
  --closed:#cf3b2e;

  --radius:18px;
  --shadow:0 18px 50px -24px rgba(8,16,22,.40);
  --maxw:880px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{overflow-x:hidden}
body{
  margin:0;
  font-family:var(--font-text);
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}

.wrap{max-width:var(--maxw);margin:0 auto;padding:18px 20px 40px}

/* ---- bandeau exceptionnel ---- */
.notice{
  background:var(--closed);color:#fff;font-weight:600;
  padding:12px 18px;border-radius:12px;margin:6px 0 18px;text-align:center;
  font-size:.95rem;
}

/* ---- HERO ---- */
.hero{
  position:relative;overflow:hidden;
  margin-top:8px;padding:34px 30px 32px;
  border-radius:24px;color:var(--hero-ink);
  background:var(--hero-bg);
  box-shadow:var(--shadow);
}
.hero::after{ /* fine ligne d'horizon (ambiance) */
  content:"";position:absolute;left:0;right:0;bottom:34%;height:1px;
  background:linear-gradient(90deg,transparent,var(--hero-line),transparent);
}
.eyebrow{
  margin:0 0 12px;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--hero-eyebrow);font-weight:600;
}
.hero-name{
  margin:0 0 18px;font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.8rem,6vw,2.6rem);line-height:1.05;letter-spacing:-.01em;
}

/* ---- statut live (élément signature) ---- */
.status{
  display:inline-flex;align-items:center;gap:11px;
  max-width:100%;
  padding:11px 18px 11px 15px;border-radius:18px;
  font-weight:600;font-size:1rem;line-height:1.35;
  background:var(--chip-bg);border:1px solid var(--chip-border);
  backdrop-filter:blur(4px);
}
.status--open{--sc:var(--open)}
.status--automate{--sc:var(--automate)}
.status--closed{--sc:var(--closed)}
.status .dot{
  width:11px;height:11px;border-radius:50%;flex:0 0 auto;position:relative;
  background:var(--sc,var(--accent));
}
.status .dot::after{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:var(--sc,var(--accent));
  animation:pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%{transform:scale(1);opacity:.55}
  100%{transform:scale(3.4);opacity:0}
}

.badges{margin-top:20px;display:flex;flex-wrap:wrap;gap:10px}
.badge{
  display:inline-flex;align-items:center;gap:7px;max-width:100%;
  padding:9px 14px;border-radius:12px;font-size:.88rem;font-weight:600;line-height:1.3;
  background:var(--chip-bg);border:1px solid var(--chip-border);
}

/* ---- grille cartes ---- */
.grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-top:16px}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px 24px 26px;box-shadow:var(--shadow);
}
.card-title{
  margin:0 0 16px;font-family:var(--font-display);font-size:1.18rem;font-weight:600;
}
.card-sub{
  margin:22px 0 10px;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);font-weight:600;
}

/* ---- totem horaires ---- */
.hours{list-style:none;margin:0;padding:0}
.hours li{
  display:flex;justify-content:space-between;align-items:baseline;gap:14px;
  padding:11px 0;border-bottom:1px dashed var(--line);
}
.hours li:last-child{border-bottom:0}
.h-days{font-weight:500}
.h-time{font-family:var(--font-data);font-weight:700;font-size:1.02rem;font-variant-numeric:tabular-nums}
.hours li.is-closed .h-time{color:var(--closed)}

.exc{list-style:none;margin:0;padding:0;font-size:.92rem}
.exc li{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:baseline;padding:7px 0}
.exc-date{font-family:var(--font-data);font-weight:700;color:var(--accent)}
.exc-label{color:var(--muted)}
.exc-time{font-family:var(--font-data);font-variant-numeric:tabular-nums}

/* ---- contact ---- */
.addr{font-style:normal;font-size:1.05rem;line-height:1.7;margin:0 0 22px}
.addr-mail{color:var(--accent);font-weight:600;text-decoration:none}
.addr-mail:hover{text-decoration:underline}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 20px;border-radius:12px;font-weight:600;text-decoration:none;
  font-size:.98rem;transition:transform .12s ease, background .2s ease, filter .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--accent);color:var(--on-accent)}
.btn--primary:hover{background:var(--accent-2)}
.btn--ghost{background:var(--bg);color:var(--text);font-family:var(--font-data);border:1px solid var(--line)}
.btn--ghost:hover{filter:brightness(.97)}

/* ---- services (badges/atouts) ---- */
.services{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.service{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:12px;font-size:.95rem;font-weight:500;
  background:color-mix(in srgb, var(--accent) 9%, transparent);
  border:1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color:var(--text);
}
.service-ico{font-size:1.05rem;line-height:1}

/* ---- carte ---- */
.map-wrap{
  margin-top:16px;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);box-shadow:var(--shadow);line-height:0;
}
.map-wrap iframe{display:block;width:100%;max-width:100%;border:0}

/* ---- footer (style 2do.lu : version à gauche · © IAV à droite) ---- */
.site-foot{max-width:var(--maxw);margin:26px auto 0;padding:0 20px}
.foot-inner{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;
  padding:18px 0 8px;border-top:1px solid var(--line);
  font-size:.82rem;color:var(--muted);
}
.foot-ver{font-family:var(--font-data);font-size:.6rem;letter-spacing:.02em;color:var(--muted);opacity:.7}
.foot-stat{font-family:var(--font-data)}
.foot-copy{margin-left:auto}
.foot-copy a{color:var(--accent);font-weight:700;text-decoration:none}
.foot-copy a:hover{text-decoration:underline}

/* ---- responsive ---- */
@media(max-width:680px){
  .grid{grid-template-columns:1fr}
  .hero{padding:26px 20px 24px;border-radius:20px}
  .wrap{padding:12px 14px 28px}
  .card{padding:20px 18px 22px}
  .status{font-size:.98rem;align-items:flex-start}
  .h-time{font-size:1rem}
  .actions{flex-wrap:wrap}
  .btn{flex:1 1 auto;text-align:center}
  .exc li{grid-template-columns:auto 1fr;row-gap:2px}
  .exc-time{grid-column:2;justify-self:start}
}

@media(prefers-reduced-motion:reduce){
  .status .dot::after{animation:none}
  .btn{transition:none}
}

:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}

/* --- Pied de vitrine : avertissement « non vérifié » + liens légaux ---
   Stylés ici car la vitrine charge base.css (pas platform.css).
   Scopé à body[data-state] => n'affecte QUE la vitrine (les pages plateforme
   et sous-pages n'ont pas data-state), donc aucune régression ailleurs. */
body[data-state] .legal-banner{
  max-width:640px;margin:2.5rem auto 0;padding:14px 20px;text-align:center;
  border-radius:12px;font-size:.86rem;line-height:1.5;
  background:color-mix(in srgb, var(--automate) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--automate) 45%, transparent);
  color:color-mix(in srgb, var(--automate) 75%, #000);
}
body[data-state] .legal-banner strong{color:color-mix(in srgb, var(--automate) 90%, #000)}
body[data-state] .site-links{margin:1.5rem 0 .5rem;text-align:center;font-size:.9rem;color:var(--muted)}
body[data-state] .site-links a{color:var(--accent);text-decoration:none;font-weight:600}
body[data-state] .site-links a:hover{text-decoration:underline}
