/*
 * LOGUETOWN theme modes
 * Couche finale commune pour rendre le toggle soleil/lune coherent sur le site.
 */

:root {
  --lt-sun-bg: #f5efe3;
  --lt-sun-bg-soft: #fffaf0;
  --lt-sun-surface: #fffaf0;
  --lt-sun-surface-strong: #ffffff;
  --lt-sun-ink: #17202a;
  --lt-sun-ink-soft: rgba(23, 32, 42, 0.72);
  --lt-sun-ink-muted: rgba(23, 32, 42, 0.52);
  --lt-sun-line: rgba(138, 90, 15, 0.22);
  --lt-sun-line-strong: rgba(138, 90, 15, 0.34);
  --lt-sun-gold: #a86f12;
  --lt-sun-gold-strong: #8a5a0f;
  --lt-sun-shadow: 0 18px 44px rgba(23, 32, 42, 0.08);
  --lt-moon-bg: #080d14;
  --lt-moon-bg-soft: #0e1b26;
  --lt-moon-surface: #121f2b;
  --lt-moon-surface-strong: #172838;
  --lt-moon-ink: #f2ead8;
  --lt-moon-ink-soft: rgba(242, 234, 216, 0.72);
  --lt-moon-ink-muted: rgba(242, 234, 216, 0.48);
  --lt-moon-line: rgba(212, 160, 23, 0.18);
  --lt-moon-line-strong: rgba(212, 160, 23, 0.34);
  --lt-moon-gold: #d4a017;
  --lt-moon-gold-strong: #f0c842;
  --lt-moon-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

[data-theme="light"] body:not(.lt-accueil-gl):not(.lt-acheter-gl) {
  background: var(--lt-sun-bg);
  color: var(--lt-sun-ink);
}

[data-theme="dark"] body:not(.lt-accueil-gl):not(.lt-acheter-gl) {
  background: linear-gradient(180deg, var(--lt-moon-bg) 0%, #0b111a 100%);
  color: var(--lt-moon-ink);
}

[data-theme="light"] :where(.lt26-nav) {
  background: rgba(255, 250, 240, 0.96) !important;
  border-bottom-color: var(--lt-sun-line) !important;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.06);
}

[data-theme="dark"] :where(.lt26-nav) {
  background: rgba(8, 13, 20, 0.9) !important;
  border-bottom-color: var(--lt-moon-line) !important;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}

[data-theme="light"] :where(.lt26-nav.is-scrolled) {
  background: rgba(255, 250, 240, 0.98) !important;
}

[data-theme="dark"] :where(.lt26-nav.is-scrolled) {
  background: rgba(8, 13, 20, 0.96) !important;
}

[data-theme="light"] :where(.lt26-nav__link, .lt-gl-nlink, .nav-link, .mobile-menu-link) {
  color: var(--lt-sun-ink-soft) !important;
}

[data-theme="dark"] :where(.lt26-nav__link, .lt-gl-nlink, .nav-link, .mobile-menu-link) {
  color: var(--lt-moon-ink-soft) !important;
}

[data-theme="light"] :where(.lt26-nav__link:hover, .lt26-nav__link.is-active, .lt-gl-nlink:hover, .lt-gl-nlink.is-active, .nav-link:hover, .nav-link.active, .mobile-menu-link:hover, .mobile-menu-link.active) {
  color: var(--lt-sun-gold-strong) !important;
}

[data-theme="dark"] :where(.lt26-nav__link:hover, .lt26-nav__link.is-active, .lt-gl-nlink:hover, .lt-gl-nlink.is-active, .nav-link:hover, .nav-link.active, .mobile-menu-link:hover, .mobile-menu-link.active) {
  color: var(--lt-moon-gold-strong) !important;
}

[data-theme="light"] :where(.lt26-nav__link-line, .lt-gl-nlink::after) {
  background: var(--lt-sun-gold) !important;
}

[data-theme="dark"] :where(.lt26-nav__link-line, .lt-gl-nlink::after) {
  background: var(--lt-moon-gold) !important;
}

[data-theme="light"] :where(.lt26-nav__search-input, .search-bar-input, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) {
  background: var(--lt-sun-surface-strong) !important;
  border-color: var(--lt-sun-line) !important;
  color: var(--lt-sun-ink) !important;
}

[data-theme="dark"] :where(.lt26-nav__search-input, .search-bar-input, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) {
  background: var(--lt-moon-surface) !important;
  border-color: var(--lt-moon-line) !important;
  color: var(--lt-moon-ink) !important;
}

[data-theme="light"] :where(input, textarea)::placeholder {
  color: var(--lt-sun-ink-muted) !important;
}

[data-theme="dark"] :where(input, textarea)::placeholder {
  color: var(--lt-moon-ink-muted) !important;
}

[data-theme="light"] :where(.lt26-nav__search-btn, .lt-gl-nav__explore, .lt26-btn--champ, .lt-btn--accent, .btn-primary, .btn-lbc-annonce, button[type="submit"]) {
  background: linear-gradient(135deg, #d99a18 0%, #f1c45d 55%, #b9780d 100%) !important;
  border-color: rgba(138, 90, 15, 0.24) !important;
  color: #17120a !important;
}

[data-theme="dark"] :where(.lt26-nav__search-btn, .lt-gl-nav__explore, .lt26-btn--champ, .lt-btn--accent, .btn-primary, .btn-lbc-annonce, button[type="submit"]) {
  background: linear-gradient(135deg, #f0c842 0%, #d4a017 55%, #9a6b0c 100%) !important;
  border-color: rgba(212, 160, 23, 0.32) !important;
  color: #050a1a !important;
}

[data-theme="light"] :where(.lt-gl-nav__deposit, .lt26-nav__cta, .btn-secondary, .btn-outline, .lt-btn--ghost) {
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: var(--lt-sun-line-strong) !important;
  color: var(--lt-sun-gold-strong) !important;
}

[data-theme="dark"] :where(.lt-gl-nav__deposit, .lt26-nav__cta, .btn-secondary, .btn-outline, .lt-btn--ghost) {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--lt-moon-line-strong) !important;
  color: var(--lt-moon-gold-strong) !important;
}

[data-theme="light"] :where(.lt26-nav__icon, .lt26-nav__icon-btn) {
  color: var(--lt-sun-ink-muted) !important;
}

[data-theme="dark"] :where(.lt26-nav__icon, .lt26-nav__icon-btn) {
  color: var(--lt-moon-ink-muted) !important;
}

[data-theme="light"] :where(.lt26-nav__icon:hover, .lt26-nav__icon-btn:hover) {
  background: rgba(184, 130, 32, 0.1) !important;
  color: var(--lt-sun-gold-strong) !important;
}

[data-theme="dark"] :where(.lt26-nav__icon:hover, .lt26-nav__icon-btn:hover) {
  background: rgba(212, 160, 23, 0.1) !important;
  color: var(--lt-moon-gold-strong) !important;
}

[data-theme="light"] :where(.lt-card, .auth-card, .page-card, .account-card, .dashboard-card, .profile-card, .settings-card, .listing-card, .annonce-card, .favoris-card, .message-card, .offer-card, .orders-card, .commande-detail-card, .vitrine-card, .page-box, .lt26-fcard, .lt26-pillar, .lt26-brand-card, .empty-state, .modal-content) {
  background: var(--lt-sun-surface) !important;
  border-color: var(--lt-sun-line) !important;
  color: var(--lt-sun-ink) !important;
  box-shadow: var(--lt-sun-shadow);
}

[data-theme="dark"] :where(.lt-card, .auth-card, .page-card, .account-card, .dashboard-card, .profile-card, .settings-card, .listing-card, .annonce-card, .favoris-card, .message-card, .offer-card, .orders-card, .commande-detail-card, .vitrine-card, .page-box, .lt26-fcard, .lt26-pillar, .lt26-brand-card, .empty-state, .modal-content) {
  background: var(--lt-moon-surface) !important;
  border-color: var(--lt-moon-line) !important;
  color: var(--lt-moon-ink) !important;
  box-shadow: var(--lt-moon-shadow);
}

[data-theme="light"] :where(h1, h2, h3, h4, h5, h6, .lt26-display, .lt26-fcard__title, .empty-state-title) {
  color: var(--lt-sun-ink) !important;
}

[data-theme="dark"] :where(h1, h2, h3, h4, h5, h6, .lt26-display, .lt26-fcard__title, .empty-state-title) {
  color: var(--lt-moon-ink) !important;
}

[data-theme="light"] :where(p, .lt-section__lead, .empty-state-text, .lt26-fcard__city, .lt26-footer__desc, .lt26-footer__lede) {
  color: var(--lt-sun-ink-soft) !important;
}

[data-theme="dark"] :where(p, .lt-section__lead, .empty-state-text, .lt26-fcard__city, .lt26-footer__desc, .lt26-footer__lede) {
  color: var(--lt-moon-ink-soft) !important;
}

[data-theme="light"] :where(.lt26-nav__user-btn, .lt26-nav__dropdown, .lt26-user-dropdown, .user-dropdown, .dropdown-menu, .search-suggestions) {
  background: var(--lt-sun-surface) !important;
  border-color: var(--lt-sun-line) !important;
  color: var(--lt-sun-ink) !important;
  box-shadow: var(--lt-sun-shadow) !important;
}

[data-theme="dark"] :where(.lt26-nav__user-btn, .lt26-nav__dropdown, .lt26-user-dropdown, .user-dropdown, .dropdown-menu, .search-suggestions) {
  background: var(--lt-moon-surface-strong) !important;
  border-color: var(--lt-moon-line) !important;
  color: var(--lt-moon-ink) !important;
  box-shadow: var(--lt-moon-shadow) !important;
}

[data-theme="light"] :where(.lt26-nav__dropdown a, .lt26-user-dropdown__item, .dropdown-menu a, .user-dropdown a) {
  color: var(--lt-sun-ink-soft) !important;
}

[data-theme="dark"] :where(.lt26-nav__dropdown a, .lt26-user-dropdown__item, .dropdown-menu a, .user-dropdown a) {
  color: var(--lt-moon-ink-soft) !important;
}

[data-theme="light"] :where(.lt26-nav__dropdown a:hover, .lt26-user-dropdown__item:hover, .dropdown-menu a:hover, .user-dropdown a:hover) {
  background: rgba(184, 130, 32, 0.1) !important;
  color: var(--lt-sun-gold-strong) !important;
}

[data-theme="dark"] :where(.lt26-nav__dropdown a:hover, .lt26-user-dropdown__item:hover, .dropdown-menu a:hover, .user-dropdown a:hover) {
  background: rgba(212, 160, 23, 0.1) !important;
  color: var(--lt-moon-gold-strong) !important;
}

[data-theme="light"] :where(.lt26-footer, footer) {
  background: var(--lt-sun-bg-soft) !important;
  border-top-color: var(--lt-sun-line) !important;
  color: var(--lt-sun-ink) !important;
}

[data-theme="dark"] :where(.lt26-footer, footer) {
  background: var(--lt-moon-bg-soft) !important;
  border-top-color: var(--lt-moon-line) !important;
  color: var(--lt-moon-ink) !important;
}

[data-theme="light"] :where(.lt26-footer a, footer a) {
  color: var(--lt-sun-ink-soft) !important;
}

[data-theme="dark"] :where(.lt26-footer a, footer a) {
  color: var(--lt-moon-ink-soft) !important;
}

[data-theme="light"] :where(.lt26-footer a:hover, footer a:hover) {
  color: var(--lt-sun-gold-strong) !important;
}

[data-theme="dark"] :where(.lt26-footer a:hover, footer a:hover) {
  color: var(--lt-moon-gold-strong) !important;
}

/*
 * Footer LT26 universel — mode soleil : crème + textes lisibles.
 * Surcharge loguetown-gl.css / accueil-grand-line.css (footer océan !important).
 */
[data-theme="light"] body.lt26-grain .lt26-footer {
  background: linear-gradient(180deg, #faf6ec 0%, #f2e8d8 55%, #ebe0cf 100%) !important;
  border-top-color: rgba(138, 90, 15, 0.2) !important;
  color: #2a2520 !important;
}
[data-theme="light"] body.lt26-grain .lt26-footer__top {
  background: transparent !important;
  border-bottom-color: rgba(138, 90, 15, 0.16) !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__big,
[data-theme="light"] body.lt26-grain .lt26-footer__big em {
  font-family: "Cinzel Decorative", serif !important;
  background: linear-gradient(135deg, #5c3d08 0%, #a86f12 42%, #7a5100 68%, #3d2a0c 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-style: normal !important;
  filter: drop-shadow(0 2px 14px rgba(184, 134, 11, 0.18)) !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__col-title {
  color: #8a5a0f !important;
  border-bottom-color: rgba(138, 90, 15, 0.22) !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__links a,
[data-theme="light"] body.lt26-grain .lt26-footer__desc {
  color: rgba(42, 37, 32, 0.82) !important;
}
[data-theme="light"] body.lt26-grain .lt26-footer__links a:hover {
  color: #7a5100 !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__col a {
  color: rgba(42, 37, 32, 0.82) !important;
}
[data-theme="light"] body.lt26-grain .lt26-footer__col a:hover {
  color: #b8860b !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__logo-img {
  filter: none !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__top .lt26-btn--coral {
  background: linear-gradient(135deg, #f0c842, #d4a017, #b8860b) !important;
  color: #17120a !important;
  border: none !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__top .lt26-btn--ghost {
  border-color: rgba(138, 90, 15, 0.42) !important;
  color: #7a5100 !important;
  background: rgba(255, 252, 246, 0.72) !important;
}
[data-theme="light"] body.lt26-grain .lt26-footer__top .lt26-btn--ghost:hover {
  background: rgba(212, 160, 23, 0.16) !important;
  border-color: #b8860b !important;
  color: #4d3710 !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__social-btn {
  border-color: rgba(138, 90, 15, 0.28) !important;
  color: rgba(42, 35, 28, 0.78) !important;
  background: rgba(255, 252, 246, 0.9) !important;
}
[data-theme="light"] body.lt26-grain .lt26-footer__social-btn:hover {
  color: #7a5100 !important;
  border-color: #b8860b !important;
  background: rgba(212, 160, 23, 0.12) !important;
}

[data-theme="light"] body.lt26-grain .lt26-footer__legal {
  border-top-color: rgba(138, 90, 15, 0.18) !important;
  color: rgba(55, 46, 36, 0.65) !important;
}
[data-theme="light"] body.lt26-grain .lt26-footer__legal span {
  color: rgba(55, 46, 36, 0.65) !important;
}
[data-theme="light"] body.lt26-grain .lt26-footer__legal-links a {
  color: rgba(55, 46, 36, 0.65) !important;
}
[data-theme="light"] body.lt26-grain .lt26-footer__legal-links a:hover {
  color: #7a5100 !important;
}

[data-theme="light"] :where(.lt26-theme-toggle) {
  background: rgba(255, 250, 240, 0.9) !important;
  border-color: var(--lt-sun-line) !important;
  box-shadow: var(--lt-sun-shadow);
}

[data-theme="dark"] :where(.lt26-theme-toggle) {
  background: rgba(8, 13, 20, 0.88) !important;
  border-color: var(--lt-moon-line) !important;
  box-shadow: var(--lt-moon-shadow);
}

[data-theme="light"] :where(.lt26-theme-btn.is-active) {
  background: var(--lt-sun-gold) !important;
  color: #17120a !important;
}

[data-theme="dark"] :where(.lt26-theme-btn.is-active) {
  background: var(--lt-moon-gold) !important;
  color: #050a1a !important;
}

/* Accueil Grand Line: cette page a une direction artistique propre.
   Ces garde-fous passent apres les styles globaux pour eviter un mode lune lave. */
[data-theme="dark"] body.lt-accueil-gl,
[data-theme="dark"] body.lt-accueil-gl.lt26-grain {
  background: #050a1a !important;
  color: #e8e0d0 !important;
}

[data-theme="dark"] body.lt-accueil-gl :where(.lt-gl-home, .lt-gl-section) {
  background-color: transparent;
}

[data-theme="dark"] body.lt-accueil-gl :where(#gl-stats, #gl-community, #gl-why) {
  background: #0a1628 !important;
}

[data-theme="dark"] body.lt-accueil-gl :where(#gl-search, #gl-products, #gl-nouveautes) {
  background: #050a1a !important;
}

[data-theme="dark"] body.lt-accueil-gl #gl-manifesto {
  background: linear-gradient(180deg, #050a1a 0%, #07101f 50%, #050a1a 100%) !important;
}

[data-theme="dark"] body.lt-accueil-gl #gl-cta-final {
  background: radial-gradient(ellipse at center, #0d1f3c 0%, #050a1a 70%) !important;
}

[data-theme="dark"] body.lt-accueil-gl :where(.lt-gl-stitle, .lt-gl-h-title, .lt-gl-ctitle) {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe680 22%, #d4a017 52%, #ffe680 82%, #fff8e1 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

[data-theme="dark"] body.lt-accueil-gl :where(.lt-gl-eye, .lt-gl-h-eye, .lt-gl-wtitle, .lt-gl-gl-label) {
  color: #d4a017 !important;
}

[data-theme="dark"] body.lt-accueil-gl :where(.lt-gl-h-sub) {
  color: rgba(232, 224, 208, 0.86) !important;
}

[data-theme="dark"] body.lt-accueil-gl :where(.lt-gl-h-desc, .lt-gl-community-lead, .lt-gl-wtext, #gl-manifesto p) {
  color: rgba(232, 224, 208, 0.62) !important;
}

[data-theme="dark"] body.lt-accueil-gl .lt-gl-wc {
  background: rgba(5, 10, 26, 0.58) !important;
  border-color: rgba(212, 160, 23, 0.16) !important;
  box-shadow: none !important;
}

[data-theme="dark"] body.lt-accueil-gl .lt-gl-wc:hover {
  background: rgba(212, 160, 23, 0.06) !important;
  border-color: rgba(212, 160, 23, 0.32) !important;
}

[data-theme="dark"] body.lt-accueil-gl .lt-gl-map-c {
  background:
    linear-gradient(rgba(212, 160, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.025) 1px, transparent 1px),
    radial-gradient(ellipse 65% 45% at 50% 47%, rgba(13, 31, 60, 0.75) 0%, rgba(5, 10, 26, 0.95) 100%) !important;
  border-color: rgba(212, 160, 23, 0.28) !important;
}

[data-theme="light"] body.lt-accueil-gl,
[data-theme="light"] body.lt-accueil-gl.lt26-grain {
  background: #fffaf0 !important;
  color: #241c12 !important;
}

/* Hero accueil : fond crème (la section gardait le dégradé « océan » nuit) */
[data-theme="light"] body.lt-accueil-gl .lt-gl-hero {
  background:
    radial-gradient(ellipse 110% 75% at 50% -8%, #fffef9 0%, #fdf6ea 38%, #f3e9d6 72%, #ebe0cf 100%) !important;
}
[data-theme="light"] body.lt-accueil-gl .lt-gl-h-bg {
  background:
    radial-gradient(circle at 22% 38%, rgba(212, 160, 23, 0.16) 0%, transparent 52%),
    radial-gradient(circle at 78% 12%, rgba(184, 134, 11, 0.09) 0%, transparent 48%) !important;
}
[data-theme="light"] body.lt-accueil-gl .lt-gl-h-deco {
  color: rgba(122, 81, 12, 0.12) !important;
  opacity: 0.55 !important;
}
[data-theme="light"] body.lt-accueil-gl .lt-gl-ocean-ov {
  background: linear-gradient(to top, rgba(248, 238, 220, 0.98), rgba(255, 250, 240, 0)) !important;
}
[data-theme="light"] body.lt-accueil-gl #lt-gl-pc {
  opacity: 0.14 !important;
}
[data-theme="light"] body.lt-accueil-gl .hero-wave path {
  fill: #e8dcc8 !important;
}
[data-theme="light"] body.lt-accueil-gl .lt-gl-h-scroll span,
[data-theme="light"] body.lt-accueil-gl .lt-gl-h-scroll span a {
  color: rgba(90, 58, 14, 0.72) !important;
}
[data-theme="light"] body.lt-accueil-gl .lt-gl-btn-s {
  color: #7a5100 !important;
  border-color: rgba(138, 90, 15, 0.42) !important;
  background: rgba(255, 252, 246, 0.55) !important;
}
[data-theme="light"] body.lt-accueil-gl .lt-gl-btn-s:hover {
  background: rgba(212, 160, 23, 0.12) !important;
  border-color: #b8860b !important;
  color: #5c3d08 !important;
}

[data-theme="light"] body.lt-accueil-gl :where(.lt-gl-home, .lt-gl-section) {
  background-color: transparent;
}

[data-theme="light"] body.lt-accueil-gl :where(#gl-stats, #gl-search, #gl-categories, #gl-products, #gl-community, #gl-why, #gl-nouveautes, #gl-faq) {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.97) 0%, rgba(248, 240, 224, 0.92) 100%),
    #fffaf0 !important;
}

[data-theme="light"] body.lt-accueil-gl #gl-manifesto {
  background: linear-gradient(180deg, #fffaf0 0%, #f4ead8 50%, #fffaf0 100%) !important;
}

[data-theme="light"] body.lt-accueil-gl #gl-cta-final {
  background: radial-gradient(ellipse at center, rgba(244, 224, 178, 0.9) 0%, #fffaf0 70%) !important;
}

[data-theme="light"] body.lt-accueil-gl :where(.lt-gl-stitle, .lt-gl-h-title, .lt-gl-ctitle) {
  background: linear-gradient(135deg, #4d3710 0%, #b77b00 42%, #7a5100 68%, #3b2b11 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 10px 24px rgba(126, 86, 14, 0.12)) !important;
}

[data-theme="light"] body.lt-accueil-gl :where(.lt-gl-eye, .lt-gl-h-eye, .lt-gl-wtitle, .lt-gl-gl-label) {
  color: #a96f00 !important;
  text-shadow: none !important;
}

[data-theme="light"] body.lt-accueil-gl :where(.lt-gl-h-sub) {
  color: rgba(46, 40, 31, 0.84) !important;
}

[data-theme="light"] body.lt-accueil-gl :where(.lt-gl-h-desc, .lt-gl-community-lead, .lt-gl-wtext, #gl-manifesto p, #gl-products p, #gl-nouveautes p) {
  color: rgba(46, 40, 31, 0.68) !important;
}

[data-theme="light"] body.lt-accueil-gl .lt-gl-wc {
  background: rgba(255, 252, 246, 0.82) !important;
  border-color: rgba(177, 117, 0, 0.2) !important;
  box-shadow: 0 18px 38px rgba(52, 36, 12, 0.08) !important;
}

[data-theme="light"] body.lt-accueil-gl .lt-gl-wc:hover {
  background: rgba(255, 248, 232, 0.98) !important;
  border-color: rgba(177, 117, 0, 0.4) !important;
}
