/*
 * karoka.css — styles partagés par toutes les pages (extraits des <style> inline, W-M1).
 * Chargé AVANT le <style> résiduel de chaque page : toute règle page-spécifique
 * conserve donc la priorité (même spécificité, source plus tardive).
 */

:root {
  --white: #ffffff;
  --bg: #f7f5f2;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --pink: #ff3d85;
  --pink-text: #d81b60;
  --orange: #ff6a1f;
  --violet: #6b21a8;
  --line: #ececec;
  --shadow: 0 12px 30px rgba(10, 10, 10, 0.08);
}

body[data-theme="dark"] {
  --white: #161616;
  --bg: #0f0f10;
  --ink: #f4f4f5;
  --muted: #b7b7bf;
  --line: #2c2c31;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --pink-text: #ff3d85;
}

body[data-theme="dark"] .city-label {
  color: #ffffff;
}

body[data-theme="dark"] .topbar {
  background: #030303;
  border-color: #1b1b1b;
}

body[data-theme="dark"] .cat-bar {
  background: #0f0f10;
  border-color: #252529;
}

body[data-theme="dark"] .city-bar {
  background: #2a2a2f;
  border-color: #3a3a42;
}

body[data-theme="dark"] .city-link {
  background: #111116;
  border-color: #4a4a54;
}

body[data-theme="dark"] .dropdown-menu {
  background: #16161a;
  border-color: #2f2f35;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .dropdown-menu .menu-section {
  border-color: #2a2a30;
}

body[data-theme="dark"] .dropdown-menu .menu-footer {
  border-color: #2a2a30;
}

body[data-theme="dark"] .dropdown-menu .pill-chip {
  background: #1d1d23;
  border-color: #3a3a44;
  color: #f5f5f7;
}

body[data-theme="dark"] .cat-more-menu {
  background: #16161a;
  border-color: #2f2f35;
}

body[data-theme="dark"] .cat-more-menu a {
  background: #16161a;
}

body[data-theme="dark"] .cat-more {
  background: #1d1d23;
  color: #d0d0d6;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding: 0;
}

a { text-decoration: none; color: inherit; }

button { font: inherit; cursor: pointer; border: 0; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

main.container { flex: 1 0 auto; width: 100%; }

.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; overflow: visible; }

.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 68px; overflow: visible; position: relative; }

.logo { display: inline-flex; align-items: flex-end; justify-content: center; gap: 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; color: var(--pink); text-transform: uppercase; line-height: 1; }

.logo-text { color: var(--pink); line-height: 1; display: inline-flex; align-items: center; }

.logo-dot { width: 8px; height: 8px; background: var(--orange); display: inline-block; flex-shrink: 0; margin-bottom: 2px; }

.logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; }

.logo-icon svg { width: 100%; height: 100%; display: block; }

.nav-item { display: inline-block; z-index: 60; }

.main-nav a { padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; color: #444; display: block; }

.dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 36px rgba(10, 10, 10, 0.12); display: grid; gap: 8px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(8px); transition: all 0.2s ease; z-index: 1100; }

.dropdown-menu .menu-section { padding: 8px 0; border-bottom: 1px solid #f2ebef; }

.dropdown-menu .menu-section:last-child { border-bottom: 0; padding-bottom: 0; }

.dropdown-menu .menu-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #333; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

.dropdown-menu .menu-title .menu-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: #fff2f7; color: var(--pink); font-size: 11px; }

.dropdown-menu .menu-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
  align-content: start;
}

.dropdown-menu .menu-section:nth-child(n+6) .menu-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dropdown-menu .menu-items a { padding: 2px 0; font-size: 12px; color: #666; text-decoration: none; white-space: nowrap; }

.dropdown-menu .menu-items a:hover { color: var(--pink); background: transparent; }

.dropdown-menu .menu-footer { margin-top: 4px; padding-top: 8px; border-top: 1px solid #f2ebef; }

.dropdown-menu .sub-title { font-size: 11px; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }

.dropdown-menu .pill-group { display: flex; flex-wrap: wrap; gap: 6px; }

.dropdown-menu .pill-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: #fff7fa; border: 1px solid #f3dce4; color: #555; font-size: 11px; font-weight: 600; text-decoration: none; }

.dropdown-menu .pill-chip:hover { background: #ffeaf2; color: var(--pink); border-color: #f7bdd0; }

.dropdown-menu.mega-menu {
  min-width: 720px;
  width: max-content;
  max-width: min(920px, calc(100vw - 40px));
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 20px 28px;
  padding: 20px 24px;
}

.dropdown-menu.mega-menu .menu-section,
.dropdown-menu.mega-menu .menu-footer {
  padding: 0;
  margin-top: 0;
  border: 0;
}

.dropdown-menu.mega-menu .menu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar-actions { display: flex; align-items: center; gap: 6px; }

.search-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }

.search-wrap svg { flex-shrink: 0; width: 16px; height: 16px; }

.search-btn { background: linear-gradient(95deg, var(--pink) 0%, var(--orange) 100%); color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; border: 0; font-size: 12px; }

.btn-sell, .btn-primary { background: linear-gradient(95deg, var(--pink) 0%, var(--orange) 100%); color: white; padding: 10px 16px; border-radius: 10px; font-weight: 700; }

.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; font-weight: 700; }

.btn-secondary:hover { border-color: var(--pink); color: var(--pink); }

.btn-danger { background: #fdecec; color: #c0392b; border: 1px solid #f3b8b3; padding: 10px 16px; border-radius: 10px; font-weight: 700; }

.btn-danger:hover { background: #f8c9c4; }

.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled { opacity: 0.6; cursor: default; }

.btn-sell {
  background: #000;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  min-height: 38px;
}

.btn-sell .btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.icon-btn { background: #f7f5f2; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); }

body[data-theme="dark"] .icon-btn {
  background: #17171c;
  border-color: #3f3f48;
  color: #f5f5f7;
}

.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.password-field { position: relative; display: flex; }

.password-field input { flex: 1; min-width: 0; }

.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }

.password-toggle:hover { color: var(--pink); background: var(--bg); }

.password-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }

.profile-menu { position: relative; }

.profile-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 1150;
}

.profile-menu.open .profile-menu-dropdown { display: block; }

.profile-menu-dropdown #authLoggedOut { display: flex; align-items: center; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #444; text-decoration: none; }

.profile-menu-dropdown #authLoggedOut[hidden] { display: none; }

.profile-menu-dropdown #authLoggedOut:hover { background: #fff2f7; color: var(--pink); }

.auth-logged-in { display: flex; flex-direction: column; align-items: stretch; gap: 2px; font-size: 13px; color: var(--ink); }

.auth-logged-in[hidden] { display: none; }

.auth-logged-in span { padding: 6px 10px; font-weight: 700; }

.auth-logged-in a, .auth-logged-in button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; background: none; border: 0; font: inherit; color: #444; cursor: pointer; font-weight: 600; }

.auth-logged-in a:hover, .auth-logged-in button:hover { background: #fff2f7; color: var(--pink); }

.lang-switch { position: relative; }

.lang-switch-btn img { width: 20px; height: 15px; display: block; border-radius: 2px; }

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 1150;
}

.lang-switch.open .lang-switch-menu { display: block; }

.lang-switch-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-align: left;
  cursor: pointer;
}

.lang-switch-option img { width: 20px; height: 15px; border-radius: 2px; }

.lang-switch-option:hover, .lang-switch-option.active { background: #fff2f7; color: var(--pink); }

.theme-toggle:hover { background: #fff2f7; color: var(--pink); }

.theme-toggle-icon { font-size: 14px; line-height: 1; }

.cat-bar { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 400; isolation: isolate; }

.cat-bar-inner { display: flex; gap: 2px; align-items: center; justify-content: center; min-height: 56px; padding: 10px 4px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; position: relative; z-index: 2; }

.cat-bar-inner::-webkit-scrollbar { display: none; }

.cat-link { padding: 6px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #444; flex-shrink: 0; }

.cat-link:hover { background: #fff2f7; color: var(--pink); }

.cat-more-wrap { position: relative; flex-shrink: 0; z-index: 260; }

.cat-more { padding: 6px 10px; border-radius: 999px; background: #f7f5f2; color: #666; font-size: 12px; font-weight: 700; flex-shrink: 0; cursor: pointer; }

.cat-more:hover { background: #ffeaf2; color: var(--pink); }

.cat-more-menu { position: fixed; min-width: 260px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; z-index: 99999; }

.cat-more-menu a { display: block; padding: 8px 10px; border-radius: 10px; background: #fff; color: #444; font-size: 12px; font-weight: 600; }

.cat-more-menu a:hover { background: #fff2f7; color: var(--pink); }

.city-bar { background: #fffafc; border-bottom: 1px solid var(--line); position: relative; z-index: 300; }

body[data-theme="dark"] .city-bar {
  background: #0d0d11;
  border-color: #2d2d35;
}

.city-bar-inner { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; position: relative; z-index: 301; }

.city-bar-inner::-webkit-scrollbar { display: none; }

.city-label { color: #666; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; flex-shrink: 0; }

.city-link { padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #444; background: #fff; border: 1px solid #f3dce4; flex-shrink: 0; }

.city-link:hover { background: #ffeaf2; color: var(--pink); }

.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  /* Pleine largeur, comme la section annonces : priorite donnee a l'aspect
     visuel de la banniere plutot qu'au score LCP PageSpeed. Consequence
     assumee : une banniere admin en iframe cross-origin (*.r2.dev) devient
     alors le plus grand element peint de la page, or Chrome ne peut pas
     l'attribuer au LCP (contenu cross-origin) -- des qu'un admin active une
     banniere sur ce slot, le score LCP repasse en NO_LCP. Vu et accepte. */
  margin: 10px 0 4px;
  min-height: 220px;
  background: var(--white);
}

.native-banner-carousel {
  /* Reserve l'espace de facon responsive (anti-CLS) sans capper la hauteur
     en dur : desormais une <img> same-slide, plus une iframe, donc plus
     besoin de la garder petite pour le LCP. */
  aspect-ratio: 16 / 4;
  min-height: 0;
}

.banner-slide.native-banner-slide {
  padding: 0;
  min-height: 0;
}

.native-banner-slide a,
.native-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.native-banner-slide img {
  object-fit: cover;
}

.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.banner-slide {
  flex: 0 0 100%;
  min-height: 220px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
}

.banner-slide > * { position: relative; z-index: 1; }

.banner-slide.orange { background-image: linear-gradient(135deg, #ffb26b, #ff6a1f); }

.banner-slide.violet { background-image: linear-gradient(135deg, #b076ff, #6b21a8); }

.banner-slide h3 { margin: 0; font-size: 24px; }

.banner-slide p { margin: 0; font-size: 14px; max-width: 420px; opacity: 0.95; }

.banner-slide .banner-cta {
  align-self: flex-start;
  margin-top: 6px;
  background: #fff;
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  padding: 0;
  border: 0;
}

.banner-carousel.single .banner-dots { display: none; }

.banner-slide.admin-banner-slide { padding: 0; min-height: 220px; }

.admin-banner-frame { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.section-head a { color: var(--pink-text); font-weight: 700; }

.featured-carousel { position: relative; margin-bottom: 10px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.featured-carousel:hover .carousel-arrow { opacity: 1; pointer-events: auto; }

.carousel-arrow.prev { left: 8px; }

.carousel-arrow.next { right: 8px; }

.carousel-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.featured-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px;
  /* Reserve la hauteur d'une carte des le premier paint (avant tout JS) :
     sans ca, la grille vide (0px) grandit d'un coup au premier rendu,
     principal contributeur du CLS mesure (~0.6 sur desktop). */
  min-height: 310px;
}

.featured-grid::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 calc((100% - 48px) / 4);
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  min-height: 200px;
  overflow: hidden;
}

.featured-card .card-image {
  height: 190px;
  margin-bottom: 10px;
}

.featured-card h3 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }

.featured-card p.desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  /* Hauteur fixe (2 lignes) meme sans description : sans ca, une annonce
     sans description raccourcit sa carte au chargement, decalant toute la
     grille en dessous (CLS mesure sur PageSpeed, section "a la une"). */
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-image {
  height: 180px;
  border-radius: 0;
  margin: -12px -12px 10px -12px;
  border: 0;
  overflow: hidden;
  background: var(--bg);
}

/* object-fit: cover pour remplir toute la vignette (pas de bande blanche).
   Le vrai recadrage "intelligent" (zone la plus interessante de la photo)
   se fait cote serveur a l'upload (sharp, gravity: attention) sur la
   vignette 4:3 — ce cover ne fait plus qu'ajuster au ratio exact de la
   boite, donc un centrage neutre convient (pas de biais haut/bas). */
.card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.card-image.orange { background: linear-gradient(135deg, #ffb26b, #ff6a1f); }

.card-image.violet { background: linear-gradient(135deg, #b076ff, #6b21a8); }

.card.skeleton, .featured-card.skeleton { background: var(--line); }

.card.skeleton .card-image, .featured-card.skeleton .card-image { background: var(--line); }

.grid-state { grid-column: 1 / -1; flex: 1 1 100%; text-align: center; padding: 40px 20px; color: var(--muted); }

.grid-state button { margin-top: 12px; }

.chat-bot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a1f 0%, #ff3d85 100%);
  box-shadow: 0 10px 22px rgba(255, 61, 133, 0.3);
  z-index: 1200;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-bot:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 61, 133, 0.38);
}

.chat-bot-icon {
  width: 26px;
  height: 26px;
  color: #fff;
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 300px;
  max-height: 400px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1200;
}

.chat-panel[hidden] { display: none; }

.chat-panel-header {
  background: linear-gradient(95deg, var(--pink) 0%, var(--orange) 100%);
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-panel-close {
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.chat-panel-messages {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 180px;
  max-height: 260px;
}

.chat-msg {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-msg.bot { align-self: flex-start; background: var(--bg); color: var(--ink); }

.chat-panel-input {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.chat-panel-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
}

.chat-panel-input button {
  background: linear-gradient(95deg, var(--pink) 0%, var(--orange) 100%);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.1fr; gap: 24px; }

.footer-brand h3 { margin: 0 0 10px; font-size: 24px; color: #fff; }

.footer-brand p { margin: 0; color: #c9c9c9; line-height: 1.6; }

.footer-socials { display: flex; gap: 10px; margin-top: 16px; }

.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,0.12); }

.footer-socials svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.footer-lang { display: flex; align-items: center; gap: 6px; }

.footer-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-lang-btn img { width: 20px; height: 15px; border-radius: 2px; display: block; }

.footer-lang-btn:hover { transform: translateY(-1px); border-color: var(--pink); }

.footer-lang-btn.active { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }

.footer-col h4 { margin: 0 0 12px; font-size: 15px; color: #fff; }

.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.footer-col li a { color: #c9c9c9; font-size: 14px; }

.footer-col li a:hover { color: #fff; }

.pink { color: var(--pink); font-weight: 700; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .topbar-inner { min-height: auto; padding: 12px 0; flex-wrap: wrap; }
  .hero h1 { font-size: 30px; }
  .banner-slide { padding: 20px; }
  .banner-slide h3 { font-size: 20px; }
  .featured-card { flex-basis: 78%; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-col ul { justify-items: center; }
}

/* --- W-M2 : navigation mobile (burger injecté par js/karoka-ui.js) ---
 * Spécificité .topbar .main-nav volontairement supérieure aux éventuels
 * styles .main-nav restés inline dans une page. */
.nav-burger { display: none; }
@media (max-width: 700px) {
  .nav-burger { display: inline-flex; }
  .topbar .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 14px;
    z-index: 1300;
  }
  .topbar .main-nav.mobile-open { display: flex; }
  .topbar .main-nav a { display: block; padding: 12px 10px; font-size: 15px; }
  .topbar .main-nav .dropdown-menu { display: none; }
}
