/* ============================================================
   CHARLYCARS — Feuille de style principale
   ============================================================
   STRUCTURE :
   1. Variables CSS (couleurs, typographie, espacements)
   2. Reset & base
   3. Header / Navigation
   4. Composants réutilisables
   5. Page Accueil
   6. Page Flotte
   7. Page Réservation
   8. Page Admin
   9. Footer
   10. Responsive
   ============================================================ */

/* ============================================================
   1. VARIABLES CSS — Modifie ici les couleurs et polices
   ============================================================ */
:root {
  /* Couleurs thème CLAIR */
  --bg-primary:     #f5f3ee;
  --bg-secondary:   #eceae4;
  --bg-card:        #ffffff;
  --text-primary:   #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted:     #9a9a9a;
  --accent:         #c8a96a;   /* OR — couleur d'accentuation principale */
  --accent-dark:    #a8893a;
  --border:         #e0ddd6;
  --shadow:         rgba(0,0,0,0.08);

  /* Statuts */
  --success: #3a7d44;
  --error:   #c0392b;

  /* Typographie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 7rem;

  /* Design */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-h:  72px;
}

/* Thème SOMBRE — activé par la classe .dark sur <html> */
html.dark {
  --bg-primary:     #111111;
  --bg-secondary:   #1a1a1a;
  --bg-card:        #1f1f1f;
  --text-primary:   #f0ede6;
  --text-secondary: #a8a49c;
  --text-muted:     #6a6a6a;
  --accent:         #c8a96a;
  --accent-dark:    #dfc080;
  --border:         #2e2e2e;
  --shadow:         rgba(0,0,0,0.4);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.page-content { padding-top: var(--header-h); }

/* ============================================================
   3. HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--spacing-md); }
.nav a {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}

.header-controls { display: flex; align-items: center; gap: var(--spacing-sm); }

/* Bouton thème */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition);
  font-size: 1rem;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.icon-sun  { display: none; }
.icon-moon { display: block; }
html.dark .icon-sun  { display: block; }
html.dark .icon-moon { display: none; }

/* Burger menu mobile */
.burger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 4px;
}

/* Menu mobile overlay */
.nav-mobile {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 99;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-display); font-size: 2rem; }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .close-btn {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none;
  font-size: 1.8rem; cursor: pointer;
  color: var(--text-primary);
}

/* ============================================================
   4. COMPOSANTS RÉUTILISABLES
   ============================================================ */

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #1a1a1a;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform 0.15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #1a1a1a; }

/* Titres de section */
.section-header { text-align: center; margin-bottom: var(--spacing-lg); }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.section-header h2 span {
  display: block; width: 40px; height: 2px;
  background: var(--accent);
  margin: 0.75rem auto 0;
}
.section-header p { color: var(--text-secondary); max-width: 520px; margin: 0.5rem auto 0; font-size: 0.95rem; }

/* Cartes */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--accent); box-shadow: 0 4px 24px var(--shadow); }

/* Champs formulaire */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  /* Forcer la largeur à rester dans le conteneur */
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.badge-gold { background: #c8a96a22; color: var(--accent); border: 1px solid var(--accent); }

/* Sections */
.section { padding: var(--spacing-xl) var(--spacing-md); }
.section-alt { background: var(--bg-secondary); }
.container { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   5. PAGE ACCUEIL
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 0 var(--spacing-md);
}
.hero-bg {
  position: absolute; inset: 0;
  /* L'image est définie en style inline dans le HTML (url en attribut style) */
  background-color: #0d0d0d; /* fallback si image non chargée */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.35);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600; color: #f0ede6; line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 1.05rem; color: #a8a49c; margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1; color: var(--accent); font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}
.service-item { text-align: center; padding: var(--spacing-md); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.service-item h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; }
.service-item p { font-size: 0.9rem; color: var(--text-secondary); }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); align-items: center; }
.why-text h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
.why-text p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.why-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-secondary); }
.why-list li::before { content: '?'; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.why-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-secondary); }
.why-image img { width: 100%; height: 100%; object-fit: cover; }

.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { background: var(--bg-primary); text-align: center; padding: var(--spacing-md); }
.stat-number { font-family: var(--font-display); font-size: 2.8rem; color: var(--accent); line-height: 1; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ============================================================
   6. PAGE FLOTTE
   ============================================================ */
.fleet-hero {
  padding: calc(var(--header-h) + 3rem) var(--spacing-md) 3rem;
  text-align: center; background: var(--bg-secondary);
}
.fleet-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; margin-bottom: 0.5rem; }
.fleet-hero p { color: var(--text-secondary); font-size: 0.95rem; }

.vehicle-card { max-width: 1100px; margin: var(--spacing-lg) auto; padding: 0 var(--spacing-md); }
.vehicle-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--spacing-lg); align-items: start; }
.vehicle-gallery { position: sticky; top: calc(var(--header-h) + 1rem); }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-secondary); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.vehicle-info h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; margin-bottom: 0.25rem; }
.vehicle-subtitle { color: var(--text-muted); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.vehicle-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.8; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 2rem; }
.spec-item { background: var(--bg-card); padding: 1rem; }
.spec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 4px; }
.spec-value { font-weight: 500; font-size: 0.95rem; }
.equipment-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.equipment-list li { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.equipment-list li::before { content: '?'; color: var(--accent); font-weight: 600; }

/* ============================================================
   7. PAGE RÉSERVATION
   ============================================================ */
.reservation-layout { display: grid; grid-template-columns: 1fr 460px; min-height: calc(100vh - var(--header-h)); }
.map-column { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); }
#map { width: 100%; height: 100%; }
.form-column { padding: var(--spacing-lg) 1.5rem; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; min-width: 0; }
.form-column h1 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-column .subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }

.price-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; margin: 1.5rem 0; display: none; }
.price-box.visible { display: block; }
.price-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: none; }
.price-total { font-size: 1.4rem; font-weight: 600; }
.price-total span { color: var(--accent); }

.confirmation-msg { display: none; background: #3a7d4415; border: 1px solid var(--success); border-radius: var(--radius-md); padding: 1.25rem; text-align: center; margin-top: 1.5rem; }
.confirmation-msg.visible { display: block; }
.confirmation-msg h3 { color: var(--success); margin-bottom: 0.5rem; }
.confirmation-msg p { font-size: 0.9rem; color: var(--text-secondary); }

.booking-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; min-width: 0; }

/* ============================================================
   8. PAGE ADMIN
   ============================================================ */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--spacing-md); }
.login-card { width: 100%; max-width: 380px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; }
.login-card h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.25rem; }
.login-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.login-error { color: var(--error); font-size: 0.85rem; margin-top: 0.5rem; display: none; }

.admin-dashboard { display: none; padding: calc(var(--header-h) + 2rem) var(--spacing-md) var(--spacing-lg); max-width: 1200px; margin: 0 auto; }
.admin-dashboard.visible { display: block; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: var(--spacing-md); }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; }
.admin-stat-card .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.5rem; }
.admin-stat-card .value { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1; }

.tarif-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: var(--spacing-md); }
.tarif-section h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1rem; }
.tarif-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tarif-row input { width: 120px; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-primary); color: var(--text-primary); font-size: 1.1rem; font-weight: 500; outline: none; }
.tarif-row input:focus { border-color: var(--accent); }

.orders-section h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1rem; }
.orders-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.orders-table th { text-align: left; padding: 0.75rem 1rem; background: var(--bg-secondary); color: var(--text-muted); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; border-bottom: 1px solid var(--border); }
.orders-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--bg-secondary); }
.orders-table td strong { color: var(--text-primary); }
.btn-delete { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; padding: 4px; border-radius: 4px; transition: color var(--transition), background var(--transition); }
.btn-delete:hover { color: var(--error); background: #c0392b12; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   9. FOOTER
   ============================================================ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md); }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--spacing-lg); margin-bottom: var(--spacing-md); }
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.875rem; max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.5rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; padding-top: var(--spacing-md); border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .vehicle-layout { grid-template-columns: 1fr; }
  .vehicle-gallery { position: static; }
  .reservation-layout { grid-template-columns: 1fr; }
  .map-column { position: static; height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --spacing-md: 1.25rem; --spacing-lg: 2.5rem; --spacing-xl: 4rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .specs-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============================================================
   FAQ — Accordéon
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

/* Bouton question — cliquable */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: var(--bg-secondary); }

/* Quand la question est ouverte */
.faq-question[aria-expanded="true"] {
  color: var(--accent);
  background: var(--bg-secondary);
}

/* Flèche rotative */
.faq-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  display: inline-block;
}
.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

/* Réponse — masquée par défaut, animée à l'ouverture */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  background: var(--bg-card);
}
.faq-answer.open {
  max-height: 300px; /* assez grand pour tout contenu raisonnable */
}
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-answer p strong { color: var(--text-primary); }

/* Page légale générique (mentions + CGV) */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) var(--spacing-md) var(--spacing-xl);
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.legal-page .legal-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  display: block;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; }
.legal-page p,
.legal-page li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-page strong { color: var(--text-primary); }
.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-page .legal-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================================
   COMPTABILITÉ — Tableau mensuel admin
   ============================================================ */
#compta-table tfoot td {
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-top: 2px solid var(--border);
  padding: 0.875rem 1rem;
}
#compta-table tfoot td:first-child {
  font-family: var(--font-display);
  font-size: 1rem;
}
/* Ligne du mois en cours — légèrement mise en valeur */
#compta-table tbody tr.mois-actuel td {
  background: #c8a96a0d;
  color: var(--text-primary);
}
#compta-table tbody tr.mois-actuel td:first-child {
  color: var(--accent);
  font-weight: 500;
}
/* Cellules numériques alignées à droite */
#compta-table td:not(:first-child),
#compta-table tfoot td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* Mois sans course — discret */
#compta-table tbody tr.vide td {
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   BOUTON WHATSAPP FLOTTANT
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }
/* Bulle tooltip au survol */
.whatsapp-btn::before {
  content: 'Nous contacter';
  position: absolute;
  right: 68px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 12px var(--shadow);
}
.whatsapp-btn:hover::before { opacity: 1; }

/* ============================================================
   AVIS CLIENTS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.review-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--shadow);
}
.review-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.review-text::before { content: '«\00a0'; color: var(--accent); }
.review-text::after  { content: '\00a0»'; color: var(--accent); }
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  flex-shrink: 0;
}
.review-author-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.review-author-info span {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ============================================================
   PAGE À PROPOS
   ============================================================ */
.about-hero {
  padding: calc(var(--header-h) + 3rem) var(--spacing-md) 3rem;
  text-align: center;
  background: var(--bg-secondary);
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--spacing-lg);
  align-items: start;
  max-width: 1000px;
  margin: var(--spacing-lg) auto;
  padding: 0 var(--spacing-md);
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-secondary);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder photo si pas d'image */
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 4rem;
}
.about-photo-placeholder p {
  font-size: 0.85rem;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.5;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.about-content .about-role {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}
.about-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.about-value {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.about-value .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.about-value strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.about-value span { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   BANDEAU COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.25rem var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px var(--shadow);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.btn-cookie-accept {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--accent-dark); }
.btn-cookie-refuse {
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.btn-cookie-refuse:hover { color: var(--text-primary); border-color: var(--text-secondary); }

/* ============================================================
   STATUTS DE COURSE (admin)
   ============================================================ */
.badge-statut {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.statut-nouvelle   { background: #2980b915; color: #2980b9; border: 1px solid #2980b940; }
.statut-confirmee  { background: #c8a96a20; color: var(--accent); border: 1px solid var(--accent); }
.statut-effectuee  { background: #3a7d4415; color: #3a7d44; border: 1px solid #3a7d4440; }
.statut-annulee    { background: #c0392b12; color: #c0392b; border: 1px solid #c0392b30; }

/* Select de statut inline dans le tableau */
.select-statut {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 20px;
  outline: none;
}

/* Notes privées */
.note-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.note-btn:hover { border-color: var(--accent); color: var(--accent); }
.note-btn.has-note { border-color: var(--accent); color: var(--accent); background: #c8a96a10; }

/* Modal note */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  margin: auto; /* centre verticalement quand le contenu est court */
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.modal-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.modal-box textarea {
  width: 100%;
  height: 120px;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.modal-box textarea:focus { border-color: var(--accent); }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; }

/* ============================================================
   TOGGLE FERMETURE ADMIN
   ============================================================ */
.fermeture-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.fermeture-toggle input { display: none; }
.fermeture-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.fermeture-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.fermeture-toggle input:checked + .fermeture-slider { background: #c0392b; }
.fermeture-toggle input:checked + .fermeture-slider::after { transform: translateX(20px); }
.fermeture-label { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); min-width: 70px; }
.fermeture-toggle input:checked ~ .fermeture-label { color: #c0392b; }

/* ============================================================
   POP-UP FERMETURE CLIENT
   ============================================================ */
.fermeture-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}
.fermeture-popup-box {
  background: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  padding: 2.5rem 2rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease;
}
.fermeture-popup-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.fermeture-popup-box h2 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.fermeture-popup-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.fermeture-popup-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.fermeture-popup-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, color 0.2s;
}
.fermeture-popup-close:hover { border-color: var(--text-muted); color: var(--text-primary); }

/* Bannière sur la page réservation */
.fermeture-banner {
  background: #fdf3f2;
  border: 1px solid #e8b4b0;
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
html.dark .fermeture-banner { background: #2d1a19; border-color: #7a3530; }
.fermeture-banner-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.fermeture-banner p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--text-primary); }
.fermeture-banner strong { display: block; margin-bottom: 0.2rem; font-family: var(--font-body); }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}



/* ============================================================
   FILTRES TABLEAU ADMIN — pills de statut + séparateur
   ============================================================ */
.pill-filtre {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill-filtre:hover { border-color: var(--accent); color: var(--accent); }
.pill-filtre.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

/* Ligne séparateur "À venir / Passées" dans le tbody */
.tr-separateur td {
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  border-top: 2px solid var(--border);
}
.tr-separateur.separateur-avenir td { color: var(--accent); border-top-color: var(--accent); }

/* Ligne passée — légèrement atténuée */
tr.course-passee td { opacity: 0.65; }

/* Highlight sur recherche */
mark.hl {
  background: #c8a96a33;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}


.calendar-section { margin-bottom: var(--spacing-md); }
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.calendar-nav button {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.calendar-nav button:hover { border-color: var(--accent); color: var(--accent); }
.calendar-month-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 160px;
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-header {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.5rem 0;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid transparent;
  cursor: default;
  transition: all var(--transition);
  min-height: 52px;
}
.cal-day.vide { background: transparent; border-color: transparent; }
.cal-day.today {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.cal-day.has-course {
  background: #c8a96a12;
  border-color: var(--accent);
  cursor: pointer;
}
.cal-day.has-course:hover { background: #c8a96a25; }
.cal-day-num { font-size: 0.875rem; line-height: 1; }
.cal-dot-wrap { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-dot.confirmee { background: var(--accent); }
.cal-dot.effectuee { background: #3a7d44; }
.cal-dot.annulee   { background: #c0392b; }
.cal-dot.nouvelle  { background: #2980b9; }

@media (max-width: 600px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; aspect-ratio: 3/2; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .calendar-grid { gap: 2px; }
  .cal-day { min-height: 40px; font-size: 0.75rem; }
}

/* ============================================================
   TÉLÉPHONE AVEC INDICATIF PAYS
   ============================================================ */
.phone-input-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.phone-input-wrap:focus-within { border-color: var(--accent); }

.phone-indicatif {
  background: var(--bg-secondary);
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  outline: none;
}
.phone-input-wrap input[type="tel"] {
  border: none !important;
  border-radius: 0;
  flex: 1;
  min-width: 0;
  width: auto !important;      /* annule le width:100% du form-group */
  box-sizing: border-box;
  background: var(--bg-primary);
  padding: 0.75rem 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}
.phone-input-wrap input[type="tel"]:focus { border-color: transparent; }

/* ============================================================
   ALLER-RETOUR TOGGLE
   ============================================================ */
.aller-retour-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  cursor: pointer;
  transition: border-color var(--transition);
}
.aller-retour-toggle:hover { border-color: var(--accent); }

.ar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  user-select: none;
}

/* Cacher la vraie checkbox */
.ar-label input[type="checkbox"] { display: none; }

/* Checkbox visuelle custom */
.ar-checkbox-visual {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
/* État coché */
.ar-label input:checked + .ar-checkbox-visual {
  background: var(--accent);
  border-color: var(--accent);
}
.ar-label input:checked + .ar-checkbox-visual::after {
  content: '?';
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Section retour animée */
#section-retour {
  transition: opacity 0.25s ease;
}
#section-retour.visible {
  display: block !important;
  opacity: 1;
}

/* ============================================================
   SÉLECTEUR DE LANGUE
   ============================================================ */
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   SÉLECTEUR DE PAYS AVEC DRAPEAUX
   ============================================================ */
.phone-flag-select {
  position: relative;
  flex-shrink: 0;
}

/* Bouton affiché (drapeau + indicatif) */
.flag-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 0.6rem;
  background: var(--bg-secondary);
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  height: 100%;
  transition: background var(--transition);
}
.flag-selected:hover { background: var(--bg-primary); }

.flag-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Liste déroulante */
.flag-dropdown {
  display: none;
  position: fixed;  /* fixed plutôt qu'absolute pour passer au-dessus de Google Maps */
  z-index: 9999;    /* au-dessus de tout, y compris la carte */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px var(--shadow);
  list-style: none;
  padding: 6px 0;
  min-width: 130px;
  max-height: 280px;
  overflow-y: auto;
}
.flag-dropdown.open { display: block; }

.flag-dropdown li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.flag-dropdown li:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.flag-dropdown li img {
  border-radius: 2px;
  flex-shrink: 0;
}

/* Image du drapeau dans le bouton */
.flag-selected img {
  border-radius: 2px;
  display: block;
}

/* Icônes paiement — version avec logos SVG */
  width: 28px;
  height: 18px;
}



/* ============================================================
   MOYENS DE PAIEMENT — footer
   ============================================================ */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

/* Badge — bordure fine, pas de fond */
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  vertical-align: middle;
}

/* Image — mix-blend-mode: multiply supprime le fond blanc/noir du PNG
   et ne garde que le logo lui-même */
.pay-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;   /* thème clair : fond blanc ? transparent */
}
/* En mode sombre, multiply ne fonctionne pas ? on utilise screen */
html.dark .pay-badge img {
  mix-blend-mode: screen;     /* thème sombre : fond noir ? transparent */
}

/* Apple Pay spécifiquement : logo noir sur fond noir en sombre ? inverser */
html.dark .pay-apple img {
  mix-blend-mode: normal;
  filter: invert(1);
}

/* G Pay aligné comme les autres badges */
.pay-gpay {
  vertical-align: middle;
}
.pay-gpay span {
  font-weight: 700;
  font-size: 0.75rem;
  background: linear-gradient(90deg, #4285f4 0%, #34a853 40%, #fbbc05 70%, #ea4335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Instagram footer */
.footer-insta {
  display: inline-flex !important;  /* force le flex même si footer-col a surcharge le display */
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
.footer-insta img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
@keyframes pulse-btn { 0%,100%{box-shadow:0 0 0 0 rgba(200,169,106,0);} 50%{box-shadow:0 0 0 6px rgba(200,169,106,0.35);} }