/* ===========================================================
   Les Routes de l'Ouzbékistan — feuille de style principale
   =========================================================== */

:root {
  --turquoise: #14967d;
  --turquoise-dark: #0a5f4d;
  --turquoise-light: #e1f6ef;
  --sable: #2f8fc4;
  --sable-dark: #1c6a96;
  --terracotta: #e0a13a;
  --encre: #142621;
  --gris: #58695f;
  --creme: #f6f8f0;
  --blanc: #ffffff;
  --bordure: #dbe7da;

  --font-titres: "Playfair Display", Georgia, serif;
  --font-texte: "Mukta", "Segoe UI", Arial, sans-serif;

  --rayon: 10px;
  --ombre: 0 10px 30px rgba(31, 42, 51, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-texte);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--turquoise-dark); text-decoration: none; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-titres);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--encre);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.15rem;
  color: var(--gris);
  max-width: 720px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--blanc);
}
.btn-primary:hover {
  background: #a84e30;
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(193, 98, 62, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--blanc);
  color: var(--blanc);
}
.btn-outline:hover {
  background: var(--blanc);
  color: var(--turquoise-dark);
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--turquoise-dark);
  color: var(--turquoise-dark);
}
.btn-outline-dark:hover {
  background: var(--turquoise-dark);
  color: var(--blanc);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bordure);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  font-family: var(--font-titres);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--encre);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.logo span { color: var(--terracotta); }
.logo-img {
  height: 74px;
  width: auto;
  display: block;
}
@media (max-width: 880px) {
  .logo-img { height: 60px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--encre);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.nav-links a.active { color: var(--terracotta); }
.nav-cta {
  background: var(--turquoise-dark);
  color: var(--blanc) !important;
  padding: 8px 16px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--terracotta) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--encre);
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--turquoise-light);
  border-radius: 999px;
  padding: 3px;
  margin-left: 0;
}
.lang-switch a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--turquoise-dark);
  padding: 4px 8px;
  border-radius: 999px;
}
.lang-switch a:hover { background: var(--blanc); color: var(--turquoise-dark); }
.lang-switch a.active {
  background: var(--turquoise-dark);
  color: var(--blanc);
}
@media (max-width: 880px) {
  .lang-switch { margin: 4px 0 0; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid var(--bordure);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 35, 40, 0.55), rgba(15, 35, 40, 0.75)),
    url("../images/hero-registan.jpg") center/cover no-repeat;
  color: var(--blanc);
  overflow: hidden;
}
.hero-carousel { background: var(--encre); }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 40, 0.55), rgba(15, 35, 40, 0.75));
  z-index: 1;
}
.hero-content { max-width: 680px; position: relative; z-index: 2; }
.hero h1 { color: var(--blanc); margin-bottom: 18px; }
.hero p.lead { color: #eef5f3; }
.hero-actions { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-small {
  min-height: 42vh;
}

/* ---------- Sections génériques ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--turquoise-light); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-head .lead { margin: 0 auto; }

/* ---------- Grilles cartes ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(31,42,51,0.14); }
.card-img { height: 210px; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; }
.card-tag {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--turquoise-dark);
}
.card h3 { margin-top: 8px; margin-bottom: 8px; }
.card p { color: var(--gris); margin: 0 0 12px; font-size: 0.95rem; }
.card-link { font-weight: 700; font-size: 0.9rem; }

/* ---------- Bandeau chiffres / atouts ---------- */
.atouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) { .atouts { grid-template-columns: 1fr 1fr; } }
.atout-icone { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.atouts h4 { margin-bottom: 4px; font-size: 1.05rem; }
.atouts p { color: var(--gris); font-size: 0.9rem; margin: 0; }

/* ---------- Citation / bandeau couleur ---------- */
.bandeau {
  background: var(--turquoise-dark);
  color: var(--blanc);
  padding: 70px 0;
  text-align: center;
}
.bandeau h2 { color: var(--blanc); }
.bandeau p { color: #d7eae8; max-width: 640px; margin: 0 auto 26px; }

/* ---------- Itinéraires (timeline) ---------- */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 36px;
  border-left: 3px solid var(--sable);
}
.jour {
  position: relative;
  padding-bottom: 38px;
}
.jour:last-child { padding-bottom: 0; }
.jour::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--creme);
}
.jour h3 { margin-bottom: 6px; }
.jour .duree { color: var(--turquoise-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.jour p { color: var(--gris); margin: 8px 0 0; }

.itin-recap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.itin-recap li {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Table infos pratiques ---------- */
.fiche {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 28px 30px;
}
.fiche h3 { color: var(--turquoise-dark); }
.fiche dl { margin: 14px 0 0; }
.fiche dt { font-weight: 700; margin-top: 12px; }
.fiche dd { margin: 2px 0 0; color: var(--gris); }

/* ---------- Article de blog ---------- */
.article-hero {
  padding: 60px 0 30px;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--gris);
  font-size: 0.9rem;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.article-meta .tag {
  background: var(--turquoise-light);
  color: var(--turquoise-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--rayon);
  margin: 20px 0 40px;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
}
.article-body h2 { margin-top: 2em; }
.article-body p { margin: 0 0 1.3em; }
.article-body blockquote {
  border-left: 4px solid var(--terracotta);
  margin: 2em 0;
  padding: 6px 0 6px 22px;
  font-style: italic;
  color: var(--gris);
  font-size: 1.15rem;
}
.article-body img {
  border-radius: var(--rayon);
  margin: 1.5em 0;
}
.article-nav {
  max-width: 720px;
  margin: 50px auto 0;
  border-top: 1px solid var(--bordure);
  padding-top: 30px;
}

/* ---------- Blog liste ---------- */
.filtre-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 46px;
}
.filtre-tags a {
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--encre);
  background: var(--blanc);
}
.filtre-tags a:hover, .filtre-tags a.active {
  background: var(--turquoise-dark);
  color: var(--blanc);
  border-color: var(--turquoise-dark);
}

/* ---------- Formulaire contact / newsletter ---------- */
.form-box {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--creme);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--turquoise);
}
.newsletter-inline {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-inline input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}
@media (max-width: 540px) {
  .newsletter-inline { flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--encre);
  color: #cfd8db;
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--blanc);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer .logo { color: var(--blanc); margin-bottom: 12px; }
.site-footer p { color: #aab5b8; font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #cfd8db; font-size: 0.92rem; }
.site-footer a:hover { color: var(--sable); }
.footer-bottom {
  border-top: 1px solid #364048;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8a9498;
}

/* ---------- Page intérieure générique (cuisine etc) ---------- */
.intro-page {
  padding: 70px 0 20px;
}
.intro-page .lead { margin: 0 auto; text-align: left; }
.deux-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .deux-col { grid-template-columns: 1fr; }
}
.deux-col img { border-radius: var(--rayon); box-shadow: var(--ombre); }
.deux-col.invert { direction: rtl; }
.deux-col.invert > * { direction: ltr; }

.liste-cochee { list-style: none; padding: 0; margin: 20px 0; }
.liste-cochee li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--gris);
}
.liste-cochee li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gris);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--gris); }
.breadcrumb a:hover { color: var(--terracotta); }

/* ===========================================================
   Style "agence de voyage" (inspiré Selectour) — accueil
   =========================================================== */

/* Barre de contact dans le header */
.header-top {
  background: var(--turquoise-dark);
  color: var(--blanc);
  font-size: 0.82rem;
  padding: 7px 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.header-top a { color: var(--blanc); }
.header-top .htop-phone { font-weight: 700; }
.header-top .htop-tagline { opacity: 0.9; }

/* Carrousel horizontal de destinations sous le hero */
.dest-scroll-wrap {
  background: var(--blanc);
  padding: 0 0 0;
  position: relative;
  margin-top: -56px;
  z-index: 5;
}
.dest-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 24px 8px;
  max-width: 1180px;
  margin: 0 auto;
  -ms-overflow-style: none;
  scrollbar-width: thin;
}
.dest-card {
  scroll-snap-align: start;
  flex: 0 0 200px;
  border-radius: var(--rayon);
  overflow: hidden;
  position: relative;
  height: 130px;
  box-shadow: 0 14px 30px rgba(20, 38, 33, 0.18);
  border: 4px solid var(--blanc);
}
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dest-card .dest-name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 30, 25, 0.82));
  color: var(--blanc);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Bandeau d'engagements / réassurance */
.engagements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}
.engagement {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-right: 1px solid var(--bordure);
}
.engagement:last-child { border-right: none; }
.engagement .e-icon { font-size: 1.6rem; }
.engagement strong { display: block; font-size: 0.92rem; color: var(--encre); }
.engagement span { font-size: 0.8rem; color: var(--gris); }
@media (max-width: 880px) {
  .engagements { grid-template-columns: repeat(2, 1fr); }
  .engagement { border-right: none; border-bottom: 1px solid var(--bordure); }
}

/* Cartes-offres style "agence" (badge prix/durée) */
.offer-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(31,42,51,0.16); }
.offer-card .offer-img-wrap { position: relative; }
.offer-card .offer-img { height: 200px; object-fit: cover; width: 100%; }
.offer-card .offer-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--terracotta);
  color: var(--blanc);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.offer-card .offer-body { padding: 20px 22px 24px; }
.offer-card .offer-loc {
  font-size: 0.82rem;
  color: var(--turquoise-dark);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.offer-card h3 { margin-bottom: 8px; }
.offer-card .offer-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--bordure);
}
.offer-card .offer-price .from { font-size: 0.78rem; color: var(--gris); }
.offer-card .offer-price .amount { font-size: 1.3rem; font-weight: 700; color: var(--terracotta); font-family: var(--font-titres); }

/* Blocs "idées" avec image de fond pleine carte */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .idea-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .idea-grid { grid-template-columns: 1fr; } }
.idea-card {
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: var(--blanc);
  background-size: cover;
  background-position: center;
}
.idea-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,25,0.05), rgba(8,24,20,0.85));
}
.idea-card .idea-label {
  position: relative; z-index: 2;
  font-family: var(--font-titres);
  font-size: 1.2rem;
  font-weight: 700;
}
.idea-card .idea-sub {
  position: relative; z-index: 2;
  font-size: 0.85rem;
  color: #dce7df;
  margin-top: 4px;
}

/* Bandeau "1er guide indépendant" type Selectour */
.trust-strip {
  background: var(--turquoise-light);
  text-align: center;
  padding: 14px 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--turquoise-dark);
  letter-spacing: 0.02em;
}

/* ===========================================================
   Bandeau cookies (RGPD)
   =========================================================== */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 40, 0.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cookie-backdrop.visible { opacity: 1; pointer-events: auto; }

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 35, 40, 0.25);
  border: 1px solid var(--bordure);
  padding: 28px 28px 24px;
  z-index: 999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }

.cookie-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  display: block;
}
.cookie-banner h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-banner p {
  color: var(--gris);
  font-size: 0.92rem;
  margin: 0 0 18px;
}
.cookie-banner p a { font-weight: 700; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-actions .btn {
  padding: 11px 20px;
  font-size: 0.88rem;
}
.cookie-btn-refuse {
  background: transparent;
  border: 2px solid var(--bordure);
  color: var(--encre);
}
.cookie-btn-refuse:hover { border-color: var(--encre); }
.cookie-btn-customize {
  background: transparent;
  border: 2px solid var(--turquoise-dark);
  color: var(--turquoise-dark);
}
.cookie-btn-customize:hover { background: var(--turquoise-light); }
.cookie-btn-accept {
  background: var(--terracotta);
  border: 2px solid var(--terracotta);
  color: var(--blanc);
}
.cookie-btn-accept:hover { background: #a84e30; }

/* Panneau de personnalisation */
.cookie-options {
  margin: 4px 0 20px;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  padding: 16px 0;
  display: none;
}
.cookie-options.open { display: block; }
.cookie-option-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.cookie-option-row + .cookie-option-row { border-top: 1px dashed var(--bordure); }
.cookie-option-text strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.cookie-option-text span { font-size: 0.85rem; color: var(--gris); }
.cookie-option-text .badge-obligatoire {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--turquoise-dark);
  background: var(--turquoise-light);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Interrupteur (switch) */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d8d8d8;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.switch-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--blanc);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.switch input:checked + .switch-slider { background: var(--turquoise); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.switch input:disabled + .switch-slider { background: var(--turquoise); opacity: 0.5; cursor: not-allowed; }

/* Bouton flottant "Gérer les cookies" (réapparaît après un choix) */
.cookie-reopen {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 900;
  background: var(--turquoise-dark);
  color: var(--blanc);
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(15, 35, 40, 0.25);
}
.cookie-reopen.visible { display: inline-flex; }
.cookie-reopen:hover { background: var(--terracotta); }

@media (max-width: 540px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 22px 20px 20px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; text-align: center; }
}
