/* ==========================================================================
   Styles pour les Web Components réutilisés sur toutes les pages
   (site-header, site-footer). Ces éléments sont en light DOM, donc stylés
   ici comme du CSS classique.
   ========================================================================== */

/* ---- site-header ---- */
site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__bar {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  color: var(--color-text);
}

.site-header__logo:hover {
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-header__list {
  display: flex;
  gap: var(--space-md);
}

.site-header__link {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}

.site-header__link:hover,
.site-header__link.is-active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

.site-header__cta {
  font-size: var(--font-size-sm);
  padding: 0.6em 1.4em;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.site-header__toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  display: block;
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
    display: none;
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__list {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ---- site-footer ---- */
site-footer {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--color-text);
  color: var(--color-bg);
  margin-top: var(--space-2xl);
}

/* Taches de couleur floutées qui dérivent lentement en boucle derrière le
   contenu du footer — mouvement discret, pas de scintillement ni de
   changement de couleur brusque. Désactivées en mouvement réduit. */
.site-footer__blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.site-footer__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation-name: site-footer-drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.site-footer__blob--1 {
  width: 320px;
  height: 320px;
  top: -120px;
  left: -80px;
  background: var(--color-primary);
  animation-duration: 16s;
}

.site-footer__blob--2 {
  width: 280px;
  height: 280px;
  bottom: -140px;
  right: 12%;
  background: var(--color-secondary);
  animation-duration: 20s;
  animation-delay: -6s;
}

.site-footer__blob--3 {
  width: 220px;
  height: 220px;
  top: 10%;
  right: -70px;
  background: var(--color-accent);
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes site-footer-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 24px) scale(1.12);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__blob {
    animation: none;
  }
}

.site-footer__inner,
.site-footer__bottom {
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  color: var(--color-bg);
  margin-bottom: var(--space-xs);
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

site-footer a {
  color: var(--color-bg);
}

/* 2 colonnes de 3 lignes : grid-auto-flow: column remplit la 1re colonne
   du haut vers le bas avant de passer à la 2e — avec 6 <li> dans l'ordre
   du HTML (lundi → dimanche), ça donne lundi/mardi/mercredi en colonne 1
   et jeudi/vendredi/samedi & dimanche en colonne 2. */
.site-footer__hours {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  column-gap: var(--space-xl);
  row-gap: 4px;
  font-size: var(--font-size-sm);
}

.site-footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer__hours li span:first-child {
  min-width: 6em;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ██  WIDGET DEV — PALETTES & TYPOGRAPHIES  ██
   Bloc entier à SUPPRIMER avant mise en production, avec :
     - le <div id="devThemeSwitcher"> dans chaque page HTML
     - le <script src="js/theming-widget.js"> dans chaque page HTML
   N'affecte aucun style de production (namespacé .dev-theme-switcher).
   ========================================================= */
.dev-theme-switcher {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 500;
  width: 230px;
  background: #1a1a1a;
  color: #f4f4f4;
  font-family: -apple-system, "Segoe UI", sans-serif;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  padding: 0.9rem 1rem 1rem;
}

.dev-theme-switcher__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4a23a;
  margin: 0;
  cursor: pointer;
}

.dev-theme-switcher__title span {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(244, 244, 244, 0.55);
  text-decoration: underline;
}

.dev-theme-switcher__body {
  margin-top: 0.7rem;
}

.dev-theme-switcher.is-collapsed .dev-theme-switcher__body {
  display: none;
}

.dev-theme-switcher label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.55);
  margin: 0.7rem 0 0.3rem;
}

.dev-theme-switcher label:first-child {
  margin-top: 0;
}

.dev-theme-switcher select {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.45rem 0.5rem;
  background: #2a2a2a;
  color: #f4f4f4;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}
