/* L'EVIE DOGS v27 : préférences de thème pour les visiteurs.
   Les couleurs claires existantes ne sont pas touchées. Aucune photo n'est retouchée. */
.levie-theme-switcher {
  display:inline-flex; align-items:center; gap:7px; min-width:0;
  padding:5px 7px; border:1px solid rgba(255,255,255,.44);
  background:rgba(255,250,253,.13); border-radius:999px;
  color:#fffafc; font:600 12px/1.2 system-ui,-apple-system,sans-serif;
  flex-shrink:0; position:relative; z-index:101;
}
.levie-theme-label { display:inline-flex; gap:5px; align-items:center; white-space:nowrap; cursor:pointer; }
.levie-theme-switcher select {
  -webkit-appearance:auto; appearance:auto; font:600 12px/1.1 system-ui,-apple-system,sans-serif;
  color:#50333e; background:#fff9fb; border:1px solid rgba(126,75,93,.28);
  border-radius:999px; padding:7px 8px; min-height:33px; max-width:130px;
  cursor:pointer; outline-offset:3px;
}
.levie-theme-switcher select:focus-visible { outline:3px solid #ffcadd; }
.levie-theme-switcher option { background:#fff9fb; color:#38252d; }
.levie-theme-sr-only { position:absolute!important; width:1px!important; height:1px!important;
  padding:0!important; margin:-1px!important; overflow:hidden!important;
  clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media(max-width:850px){
  /* Le sélecteur reste accessible même si l'en-tête est masqué ou le menu fermé. */
  .levie-theme-switcher {
    position:fixed!important; right:13px; bottom:max(12px,env(safe-area-inset-bottom));
    top:auto; left:auto; z-index:990!important; border:1px solid #b78b9d;
    background:#765365!important; color:#fff!important;
    box-shadow:0 6px 22px rgba(34,18,29,.26); padding:6px 7px 6px 10px;
  }
  .levie-theme-label span { display:none; }
  .levie-theme-switcher select { max-width:112px; font-size:12px; }
}

/* Mode nuit : prune, rose poudré et contraste lisible. Photos non filtrées. */
html[data-levie-theme="dark"] {
  color-scheme:dark;
  --levie-night:#1b161c;
  --levie-night-surface:#29202a;
  --levie-night-card:#342936;
  --levie-night-border:#604b60;
  --levie-night-text:#f4eaf0;
  --levie-night-muted:#d4bdc9;
  --levie-night-accent:#ebb0c8;
  background:var(--levie-night);
}
html[data-levie-theme="dark"] body,
html[data-levie-theme="dark"] .site-shell,
html[data-levie-theme="dark"] main,
html[data-levie-theme="dark"] .page-content,
html[data-levie-theme="dark"] .inner-page {
  background:var(--levie-night)!important;
  color:var(--levie-night-text);
}
html[data-levie-theme="dark"] .topbar,
html[data-levie-theme="dark"] .site-footer {
  background:#322431!important;
  color:var(--levie-night-text)!important;
  border-color:var(--levie-night-border)!important;
}
html[data-levie-theme="dark"] .navigation {
  background:#251d27!important;
  color:var(--levie-night-text)!important;
  border-color:var(--levie-night-border)!important;
  box-shadow:0 2px 12px rgba(0,0,0,.25)!important;
}
html[data-levie-theme="dark"] .site-header nav,
html[data-levie-theme="dark"] .site-header nav a,
html[data-levie-theme="dark"] .navigation .menu-toggle,
html[data-levie-theme="dark"] .navigation .compact-logo,
html[data-levie-theme="dark"] .footer-links a,
html[data-levie-theme="dark"] .footer-brand,
html[data-levie-theme="dark"] .footer-brand strong,
html[data-levie-theme="dark"] .footer-social,
html[data-levie-theme="dark"] .thank-you {
  color:#f6e6ed!important;
}
html[data-levie-theme="dark"] .site-header nav a:hover,
html[data-levie-theme="dark"] .site-header nav a[aria-current="page"],
html[data-levie-theme="dark"] .footer-links a:hover {
  color:#ffcee0!important;
  background:rgba(220,142,177,.11);
}
html[data-levie-theme="dark"] .menu-toggle { border-color:#a27d91!important; background:#3f3040!important; }
html[data-levie-theme="dark"] .values,
html[data-levie-theme="dark"] .home-cards,
html[data-levie-theme="dark"] .page-intro,
html[data-levie-theme="dark"] .cms-gallery,
html[data-levie-theme="dark"] .cms-litters-host,
html[data-levie-theme="dark"] .cms-current-litters-section,
html[data-levie-theme="dark"] .cms-current-puppies-section {
  background:var(--levie-night)!important;
  color:var(--levie-night-text);
  border-color:var(--levie-night-border);
}
html[data-levie-theme="dark"] .values article,
html[data-levie-theme="dark"] .home-card,
html[data-levie-theme="dark"] .home-card .card-copy,
html[data-levie-theme="dark"] .soft-cta,
html[data-levie-theme="dark"] .editorial-grid,
html[data-levie-theme="dark"] .editorial-copy,
html[data-levie-theme="dark"] .three-notes > *,
html[data-levie-theme="dark"] .care-grid > *,
html[data-levie-theme="dark"] .contact-card,
html[data-levie-theme="dark"] .visit-card,
html[data-levie-theme="dark"] .contact-prompts,
html[data-levie-theme="dark"] .notice,
html[data-levie-theme="dark"] .faq > *,
html[data-levie-theme="dark"] .faq details,
html[data-levie-theme="dark"] .adoption-questions,
html[data-levie-theme="dark"] .small-prose,
html[data-levie-theme="dark"] .legal-prose,
html[data-levie-theme="dark"] .cms-litter-category,
html[data-levie-theme="dark"] .cms-family-tree,
html[data-levie-theme="dark"] .cms-current-puppies,
html[data-levie-theme="dark"] .cms-genealogy-litter,
html[data-levie-theme="dark"] .cms-genealogy-puppy,
html[data-levie-theme="dark"] .cms-parent-card,
html[data-levie-theme="dark"] .cms-parent-grid,
html[data-levie-theme="dark"] .cms-puppy,
html[data-levie-theme="dark"] .cms-breeder-sex-column,
html[data-levie-theme="dark"] .cms-breeder-card,
html[data-levie-theme="dark"] .cms-breeder-detail-hero,
html[data-levie-theme="dark"] .cms-living-card,
html[data-levie-theme="dark"] .photo-card,
html[data-levie-theme="dark"] .cms-document,
html[data-levie-theme="dark"] .cms-profile {
  background:var(--levie-night-card)!important;
  background-image:none!important;
  border-color:var(--levie-night-border)!important;
  color:var(--levie-night-text)!important;
  box-shadow:0 8px 25px rgba(0,0,0,.15)!important;
}
/* Titre et paragraphes : les anciennes couleurs foncées ne doivent pas rester illisibles. */
html[data-levie-theme="dark"] main h1,
html[data-levie-theme="dark"] main h2,
html[data-levie-theme="dark"] main h3,
html[data-levie-theme="dark"] main h4,
html[data-levie-theme="dark"] main p,
html[data-levie-theme="dark"] main li,
html[data-levie-theme="dark"] main dt,
html[data-levie-theme="dark"] main dd,
html[data-levie-theme="dark"] main summary,
html[data-levie-theme="dark"] .cms-gallery-note,
html[data-levie-theme="dark"] .cms-detail-description,
html[data-levie-theme="dark"] .cms-puppy-description,
html[data-levie-theme="dark"] .cms-litter-facts,
html[data-levie-theme="dark"] .cms-breeder-detail-description,
html[data-levie-theme="dark"] .photo-card-text {
  color:var(--levie-night-text)!important;
}
html[data-levie-theme="dark"] main .eyebrow,
html[data-levie-theme="dark"] main .intro-text,
html[data-levie-theme="dark"] .cms-litter-kicker,
html[data-levie-theme="dark"] main small,
html[data-levie-theme="dark"] .cms-puppy-facts,
html[data-levie-theme="dark"] .cms-example-label,
html[data-levie-theme="dark"] .cms-living-description {
  color:var(--levie-night-muted)!important;
}
html[data-levie-theme="dark"] main a:not(.rose-button):not(.hero-button),
html[data-levie-theme="dark"] .cms-back,
html[data-levie-theme="dark"] .levie-dev-credit-link {
  color:#f4b9cf;
}
html[data-levie-theme="dark"] main :is(a,button,summary):focus-visible,
html[data-levie-theme="dark"] select:focus-visible { outline:3px solid #ffcbdd; outline-offset:3px; }
html[data-levie-theme="dark"] :is(.rose-button,.contact-pill,.hero-button) {
  color:#fff9fc!important; background:#98536f!important; border-color:#cb7998!important;
  box-shadow:0 6px 18px rgba(0,0,0,.2)!important;
}
html[data-levie-theme="dark"] :is(.rose-button,.contact-pill,.hero-button):hover,
html[data-levie-theme="dark"] :is(.rose-button,.contact-pill,.hero-button):focus-visible {
  background:#b76a89!important;
}
html[data-levie-theme="dark"] .cms-status-available {background:#1e4b39!important;color:#def8e7!important;}
html[data-levie-theme="dark"] .cms-status-reserved {background:#69364b!important;color:#ffe5f0!important;}
html[data-levie-theme="dark"] .cms-status-unavailable {background:#4a4249!important;color:#faf1f6!important;}
html[data-levie-theme="dark"] .cms-status,
html[data-levie-theme="dark"] .cms-litter-badge,
html[data-levie-theme="dark"] .cms-breeder-sex {
  border:1px solid #ad8299;
}
html[data-levie-theme="dark"] main :is(input,textarea,select),
html[data-levie-theme="dark"] main button:not(.rose-button):not(.photo-card-button) {
  background:#3b2d3b; color:#f8edf3; border-color:#83677d;
}
html[data-levie-theme="dark"] hr,
html[data-levie-theme="dark"] .cms-litter-facts,
html[data-levie-theme="dark"] .cms-breeder-column-head,
html[data-levie-theme="dark"] .heart-divider,
html[data-levie-theme="dark"] .footer-links {
  border-color:var(--levie-night-border)!important;
}
html[data-levie-theme="dark"] .cms-consent,
html[data-levie-theme="dark"] .site-toast {
  background:#332836!important; color:#fff0f6!important;
  border:1px solid #997b90!important;
}
html[data-levie-theme="dark"] .cms-consent button,
html[data-levie-theme="dark"] .site-toast-copy strong,
html[data-levie-theme="dark"] .site-toast-copy span,
html[data-levie-theme="dark"] .site-toast-close { color:#f6e7ee!important; }
html[data-levie-theme="dark"] .cms-consent button { background:#4b364b; border-color:#a47a95; }
html[data-levie-theme="dark"] .levie-dev-credit {color:#ddc1cf;border-color:var(--levie-night-border)}
html[data-levie-theme="dark"] .levie-theme-switcher {border-color:#aa8099;background:#3c2c3d;}
html[data-levie-theme="dark"] .levie-theme-switcher select {color:#f8e9f1;background:#362739;border-color:#ad819a;}
html[data-levie-theme="dark"] .levie-theme-switcher option {color:#f8e9f1;background:#362739;}
/* Même dans le thème nuit, garder les photos et le visuel des chiens intacts. */
html[data-levie-theme="dark"] img,
html[data-levie-theme="dark"] .image-crop,
html[data-levie-theme="dark"] .photo-frame,
html[data-levie-theme="dark"] .hero .desktop-cover,
html[data-levie-theme="dark"] .hero .mobile-cover {filter:none!important;}
/* Lorsque du texte personnalisé recouvre la photo d'accueil, on fournit un panneau lisible. */
html[data-levie-theme="dark"] .hero.cms-custom-hero .hero-copy,
html[data-levie-theme="dark"] .hero.cms-text-edit .hero-copy {
  background:rgba(42,32,43,.93)!important;
  color:#fae8f2!important;
}
@media (max-width:850px) {
  html[data-levie-theme="dark"] .levie-theme-switcher {background:#3c2c3d!important;border-color:#aa8099;}
  html[data-levie-theme="dark"] #main-menu {background:#271f2a!important;border-color:#6b5568;}
}
@media (prefers-reduced-motion:reduce) {
  .levie-theme-switcher, .levie-theme-switcher * {transition:none!important;animation:none!important;}
}
