/* ============================
   LOCSKI — Design Tokens (Alpine Fresh)
   Source: docs/chartegraphique/landingpages-design.html
   ============================ */
:root {
  /* Colors */
  --primary: #003D5B;
  --secondary: #0077B6;
  --tertiary: #48CAE4;
  --accent: #FF6B35;
  --accent-dark: #E05A2B;
  --bg: #E6EEF4;              /* bleu neige pastel — 2026-09-04, retour propriétaire : le #F7F8FC faisait mal aux yeux */
  --white: #FFFFFF;
  --blue-light: #E0F4FB;
  --orange-light: #FFF0EB;
  --dark: #002940;
  --text-muted: #526478;
  --text-light: #8494a7;

  /* Shadows (layered for depth) */
  --shadow-sm: 0 1px 2px rgba(0,41,64,0.04), 0 2px 6px rgba(0,41,64,0.03);
  --shadow-md: 0 2px 4px rgba(0,41,64,0.04), 0 8px 24px rgba(0,41,64,0.06);
  --shadow-lg: 0 4px 8px rgba(0,41,64,0.04), 0 16px 40px rgba(0,41,64,0.08);
  --shadow-xl: 0 8px 16px rgba(0,41,64,0.06), 0 24px 56px rgba(0,41,64,0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 220ms;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Glassmorphism tokens */
  --glass-bg: rgba(0, 41, 64, 0.82);
  --glass-bg-light: rgba(0, 41, 64, 0.65);
  --glass-border: rgba(72, 202, 228, 0.15);
  --glass-border-hover: rgba(72, 202, 228, 0.35);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px rgba(0, 41, 64, 0.4);

  /* Borders */
  --border-light: #d0d8e0;
  --border-lighter: #e0e5eb;

  /* Page backgrounds */
  --page-gradient: linear-gradient(165deg, var(--dark) 0%, var(--primary) 50%, #004a6e 100%);
  --page-overlay: linear-gradient(180deg, rgba(0,29,45,0.7) 0%, rgba(0,41,64,0.85) 100%);
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* iOS Safari : empêche l'effet rubber band qui révèle un fond blanc sous le footer
     et qui fait "monter" visuellement le footer lors du scroll forcé.
     contain = bloque la propagation au scroll parent, sans désactiver le pull-to-refresh interne. */
  overscroll-behavior-y: none;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--primary);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari : suit la barre URL dynamique */
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states (WCAG 2.1 AA) */
:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================
   UTILITY CLASSES
   ============================ */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-tertiary { color: var(--tertiary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted-ls { color: var(--text-muted) !important; }
.text-light-ls { color: var(--text-light) !important; }

.bg-primary-ls { background-color: var(--primary) !important; }
.bg-secondary-ls { background-color: var(--secondary) !important; }
.bg-blue-light { background-color: var(--blue-light) !important; }
.bg-orange-light { background-color: var(--orange-light) !important; }
.bg-ls { background-color: var(--bg) !important; }

/* ============================
   BUTTONS
   ============================ */
/* Le libellé blanc sur --accent (#FF6B35) ne donne que 2.84:1 : sous le seuil
   AA de 4.5:1, sur LE bouton d'action principal du portail (56 usages).
   On assombrit le fond du bouton — #C1440E, 5.12:1 — sans toucher au token
   --accent, qui reste la couleur d'accent de la charte partout ailleurs.
   Le libellé est gras mais à 14 px : il relève du seuil 4.5:1, pas de 3:1.
   Mesuré au pixel le 2026-09-04 (verif-pixels.js). */
.btn-accent {
  background: #C1440E;
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}
.btn-accent:hover:not(:disabled) {
  background: #A63A0B;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,53,0.3), 0 0 12px rgba(0,119,182,0.2);
}
.btn-accent:disabled {
  background: #d0d8e0;
  color: var(--white);
  opacity: 1;
  cursor: not-allowed;
}

/* Hiérarchie des boutons (spec UX « Button Hierarchy ») :
   primaire   = .btn-accent / .btn-ls-primary  → --accent, un seul par vue
   secondaire = .btn-outline-ls                → contour --primary
   tertiaire  = .btn-secondary-ls              → --secondary plein
   ghost      = .btn-link                      → texte seul
   .btn-ls-primary est l'alias historique du primaire : 17 usages dans les pages
   compte, réservation et paiement. Sans cette règle, ces boutons — dont « Payer »
   — s'affichaient sans fond ni bordure. */
.btn-ls-primary {
  background: #C1440E;                 /* voir .btn-accent : 5.12:1 au lieu de 2.84:1 */
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}
.btn-ls-primary:hover:not(:disabled) {
  background: #A63A0B;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,53,0.3), 0 0 12px rgba(0,119,182,0.2);
}
.btn-ls-primary:disabled {
  background: #d0d8e0;
  color: var(--white);
  opacity: 1;
  cursor: not-allowed;
}

.btn-secondary-ls {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}
.btn-secondary-ls:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,119,182,0.3), 0 0 12px rgba(0,119,182,0.2);
}

.btn-outline-ls {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}
.btn-outline-ls:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,119,182,0.3), 0 0 12px rgba(0,119,182,0.2);
}

/* ============================
   NAVBAR
   ============================ */
.navbar-locski {
  background: rgba(0, 41, 64, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.7rem 0;
  transition: all var(--duration) var(--ease-out);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-locski.scrolled {
  background: rgba(0, 41, 64, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.navbar-locski .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.navbar-locski .navbar-brand span:not(.ls-nav-shop__name):not(.ls-nav-shop__location) { color: var(--secondary); }
.navbar-locski .nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.5rem;
  transition: color var(--duration) var(--ease-out);
  position: relative;
}
.navbar-locski .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--tertiary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease-out);
}
.navbar-locski .nav-link:hover { color: var(--tertiary); }
.navbar-locski .nav-link.active { color: var(--tertiary); }
.navbar-locski .nav-link:hover::after,
.navbar-locski .nav-link.active::after { transform: scaleX(1); }
/* Desktop nav list style */
.navbar-nav-desktop {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================
   HAMBURGER BUTTON (mobile)
   ============================ */
.ls-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration) var(--ease-out);
}
.ls-hamburger:hover,
.ls-hamburger:active {
  background: rgba(255, 255, 255, 0.2);
}
.ls-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out);
}

/* ============================
   SIDEBAR MOBILE
   ============================ */
.ls-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 29, 45, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ls-sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ls-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 1050;
  background: linear-gradient(195deg, #002940 0%, var(--primary) 100%);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}
.ls-sidebar.is-open {
  transform: translateX(0);
}

.ls-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(72, 202, 228, 0.1);
}
.ls-sidebar__header .navbar-brand {
  font-size: 1.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.ls-sidebar__header .navbar-brand span {
  color: var(--secondary);
}

.ls-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}
.ls-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.ls-sidebar__nav {
  flex: 1;
  padding: 1rem 0;
}

.ls-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease-out);
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.ls-sidebar__link i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  color: var(--tertiary);
}
.ls-sidebar__link:hover {
  color: var(--tertiary);
  background: rgba(72, 202, 228, 0.08);
}
.ls-sidebar__link--cta {
  color: var(--accent);
  font-weight: 600;
}
.ls-sidebar__link--cta i {
  color: var(--accent);
}
.ls-sidebar__link--danger {
  color: rgba(255, 107, 53, 0.8);
  font-size: 0.9rem;
}
.ls-sidebar__link--danger i {
  color: rgba(255, 107, 53, 0.8);
}

.ls-sidebar__divider {
  margin: 0.5rem 1.5rem;
  border-color: rgba(72, 202, 228, 0.1);
}

.ls-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.ls-sidebar__user i {
  font-size: 1.4rem;
  color: var(--tertiary);
}

.ls-sidebar__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(72, 202, 228, 0.1);
  display: flex;
  gap: 1.25rem;
}
.ls-sidebar__footer a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  text-decoration: none;
}
.ls-sidebar__footer a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.btn-nav-cta {
  background: #C1440E;                 /* voir .btn-accent : 5.12:1 au lieu de 2.84:1 */
  color: var(--white);
  border: none;
  padding: 0.55rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-nav-cta:hover {
  background: #A63A0B;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

/* ============================
   NAV SHOP — Nom magasin en mode loueur
   ============================ */
.ls-nav-shop {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.ls-nav-shop__name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.ls-nav-shop__location {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
@media (max-width: 575px) {
  .ls-nav-shop__name {
    font-size: 0.85rem;
    max-width: 160px;
  }
  .ls-nav-shop__location {
    font-size: 0.65rem;
  }
}

/* ============================
   BADGE "Propulsé par LocSki" — Mode loueur
   ============================ */
.ls-powered-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}
.ls-powered-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.ls-powered-badge img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
@media (max-width: 575px) {
  .ls-powered-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
  }
  .ls-powered-badge img {
    width: 16px;
    height: 16px;
  }
}
