/* ===== Themes saisonniers : actifs avec <body data-theme="..."> ===== */

/* --- Palettes --------------------------------------------------------- */
body[data-theme="noel"] {
    --th-primary: #c62828; --th-on-primary: #fff; --th-secondary: #0f5132; --th-accent: #d4a017;
    --th-bg: #fffaf5; --th-header-1: #7d1218; --th-header-2: #8e1b1b; --th-footer: #0b3d2a;
    --th-glow: rgba(198, 40, 40, 0.4);
    --th-banner-bg: repeating-linear-gradient(90deg, #c62828 0 40px, #0f5132 40px 80px);
    --th-banner-text: #fff8dc; --th-stripe-a: #c62828; --th-stripe-b: #ffffff;
}
body[data-theme="halloween"] {
    --th-primary: #ff7a00; --th-on-primary: #1a0f26; --th-secondary: #4b1d6b; --th-accent: #ff7a00;
    --th-bg: #fff8f0; --th-header-1: #120a1c; --th-header-2: #2a1240; --th-footer: #120a1c;
    --th-glow: rgba(255, 122, 0, 0.35);
    --th-banner-bg: repeating-linear-gradient(90deg, #1a0f26 0 40px, #ff7a00 40px 80px);
    --th-banner-text: #fff; --th-stripe-a: #ff7a00; --th-stripe-b: #1a0f26;
}
body[data-theme="octobre-rose"] {
    --th-primary: #e91e8c; --th-on-primary: #fff; --th-secondary: #ad1457; --th-accent: #ffc1e3;
    --th-bg: #fff5fa; --th-header-1: #b3125f; --th-header-2: #d81b7a; --th-footer: #7a0e42;
    --th-glow: rgba(233, 30, 140, 0.35);
    --th-banner-bg: linear-gradient(90deg, #f06fb0, #e91e8c, #f06fb0);
    --th-banner-text: #fff; --th-stripe-a: #e91e8c; --th-stripe-b: #ffffff;
}
body[data-theme="paques"] {
    --th-primary: #7e57c2; --th-on-primary: #fff; --th-secondary: #2e9e6b; --th-accent: #ffd54a;
    --th-bg: #fffdf2; --th-header-1: #5e3aa3; --th-header-2: #7e57c2; --th-footer: #1f6b49;
    --th-glow: rgba(126, 87, 194, 0.3);
    --th-banner-bg: repeating-linear-gradient(90deg, #ffd54a 0 40px, #a5e0c0 40px 80px, #c9b3f0 80px 120px);
    --th-banner-text: #2b2150; --th-stripe-a: #ffd54a; --th-stripe-b: #a5e0c0;
}
body[data-theme="saint-valentin"] {
    --th-primary: #d81b60; --th-on-primary: #fff; --th-secondary: #ad1457; --th-accent: #ffc1d6;
    --th-bg: #fff6f8; --th-header-1: #9c1247; --th-header-2: #c2185b; --th-footer: #6d0d33;
    --th-glow: rgba(216, 27, 96, 0.35);
    --th-banner-bg: linear-gradient(90deg, #c2185b, #ff5c8d, #c2185b);
    --th-banner-text: #fff; --th-stripe-a: #d81b60; --th-stripe-b: #ffc1d6;
}
body[data-theme="ete"] {
    --th-primary: #ff8f00; --th-on-primary: #1b1b1b; --th-secondary: #0277bd; --th-accent: #ffd54a;
    --th-bg: #fffcf0; --th-header-1: #01579b; --th-header-2: #0288d1; --th-footer: #01426e;
    --th-glow: rgba(255, 143, 0, 0.3);
    --th-banner-bg: linear-gradient(90deg, #ff8f00, #ffd54a, #ff8f00);
    --th-banner-text: #3a2400; --th-stripe-a: #ff8f00; --th-stripe-b: #ffd54a;
}
body[data-theme="tour-de-france"] {
    --th-primary: #f9d71c; --th-on-primary: #111; --th-secondary: #111111; --th-accent: #f9d71c;
    --th-bg: #fffef5; --th-header-1: #0d0d0d; --th-header-2: #1c1c1c; --th-footer: #0d0d0d;
    --th-glow: rgba(249, 215, 28, 0.35);
    --th-banner-bg: repeating-linear-gradient(90deg, #f9d71c 0 40px, #111 40px 80px);
    --th-banner-text: #fff; --th-stripe-a: #f9d71c; --th-stripe-b: #111111;
}

/* --- Habillage commun ------------------------------------------------- */
body[data-theme] { background-color: var(--th-bg); }

.theme-banner {
    /* Au-dessus du canvas de particules (.theme-fx = 900), sous l'en-tête sticky (1000) */
    position: relative;
    z-index: 950;
    background: var(--th-banner-bg);
    color: var(--th-banner-text);
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.55rem 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    border-bottom: 2px solid var(--th-accent);
}

body[data-theme] header {
    background: linear-gradient(180deg, var(--th-header-1) 0%, var(--th-header-2) 100%);
    border-bottom: 3px solid var(--th-accent);
}
body[data-theme] header.scrolled { background: var(--th-header-1); }

/* Liseré décoratif sous l'en-tête */
body[data-theme] header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 6px;
    pointer-events: none;
    background: repeating-linear-gradient(45deg, var(--th-stripe-a) 0 12px, var(--th-stripe-b) 12px 24px);
}

/* Noël : guirlande lumineuse */
body[data-theme="noel"] header::after {
    bottom: -17px;
    height: 14px;
    background:
        radial-gradient(circle at 8px 7px, #ff3b3b 0 4px, transparent 5px) 0 0 / 80px 14px repeat-x,
        radial-gradient(circle at 28px 7px, #ffd54a 0 4px, transparent 5px) 0 0 / 80px 14px repeat-x,
        radial-gradient(circle at 48px 7px, #3ddc84 0 4px, transparent 5px) 0 0 / 80px 14px repeat-x,
        radial-gradient(circle at 68px 7px, #6ec6ff 0 4px, transparent 5px) 0 0 / 80px 14px repeat-x;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.55));
    animation: themeTwinkle 1.6s ease-in-out infinite alternate;
}
@keyframes themeTwinkle {
    from { opacity: 0.55; }
    to   { opacity: 1; }
}

body[data-theme] .btn-contact {
    background-color: var(--th-secondary);
    border-color: var(--th-accent);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
body[data-theme] .btn-contact:hover { filter: brightness(0.88); }

/* Hero */
body[data-theme] .hero { box-shadow: inset 0 0 140px var(--th-glow); }
body[data-theme] .btn-hero {
    background-color: var(--th-primary);
    color: var(--th-on-primary);
    border-color: var(--th-accent);
    box-shadow: 0 4px 15px var(--th-glow);
}
body[data-theme] .btn-hero:hover { background-color: var(--th-secondary); color: #fff; }
body[data-theme] .btn-hero.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: var(--th-accent);
    box-shadow: none;
}
body[data-theme] .btn-hero.btn-outline:hover { background-color: var(--th-accent); color: #1a1a1a; }

/* Titres de section + barre décorative */
body[data-theme] .presentation h2,
body[data-theme] .services h2,
body[data-theme] .bikes h2,
body[data-theme] .contact-section h2 { color: var(--th-secondary); }

body[data-theme] .presentation h2::after,
body[data-theme] .services h2::after,
body[data-theme] .bikes h2::after,
body[data-theme] .contact-section h2::after {
    content: "";
    display: block;
    width: 140px;
    height: 7px;
    margin: 1rem auto 0;
    border-radius: 4px;
    background: repeating-linear-gradient(45deg, var(--th-stripe-a) 0 10px, var(--th-stripe-b) 10px 20px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}

/* Cartes */
body[data-theme] .service-item,
body[data-theme] .bike-card,
body[data-theme] .contact-card {
    border-color: var(--th-secondary);
    border-top: 5px solid var(--th-primary);
}
body[data-theme] .service-price,
body[data-theme] .bike-price { color: var(--th-secondary); }
body[data-theme] .bike-status { background: var(--th-secondary); color: #fff; }
body[data-theme] .service-item .service-more { color: var(--th-secondary); }
body[data-theme] .btn-maps { background: var(--th-secondary); border-color: var(--th-secondary); color: #fff; }
body[data-theme] .btn-maps:hover { background: var(--th-primary); border-color: var(--th-primary); color: var(--th-on-primary); }

/* Lightbox des services */
body[data-theme] .service-modal { border-top: 6px solid var(--th-primary); }
body[data-theme] .service-modal h3,
body[data-theme] .service-modal-price { color: var(--th-secondary); }

/* Pied de page */
body[data-theme] footer {
    background-color: var(--th-footer);
    border-top: 4px solid var(--th-accent);
}
body[data-theme] footer a,
body[data-theme] footer strong { color: var(--th-accent); }

/* Animation de particules (canvas créé par themes.js) */
.theme-fx {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900;
}

@media (prefers-reduced-motion: reduce) {
    body[data-theme="noel"] header::after { animation: none; }
}

/* ===== Noël : haut de page normal (2026-11-16) =====
   En-tête et bouton RDV retrouvent le style habituel ; flocons et reste du thème conservés.
   Le texte personnalisé reste affiché dans un bandeau sobre. */
body[data-theme="noel"] header {
    background-color: rgba(0, 0, 0, 0.95);
    background-image: none;
    border-bottom: 2px solid #fff;
}
body[data-theme="noel"] header.scrolled { background: #000; }
body[data-theme="noel"] header::after { content: none; display: none; animation: none; }
body[data-theme="noel"] .btn-contact {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}
body[data-theme="noel"] .btn-contact:hover {
    filter: none;
    background-color: #fff;
    color: #d32f2f !important;
    border-color: #d32f2f;
}
body[data-theme="noel"] .theme-banner {
    background: #151515;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-shadow: none;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== Les bons plans : version sombre ===== */
body .bikes,
body[data-theme] .bikes { background: #0d0d0d; color: #fff; border-top: 0; border-bottom: 4px solid var(--th-primary, #d62828); }
body .bikes h2,
body[data-theme] .bikes h2 { color: #fff; }
body .bike-card,
body[data-theme] .bike-card {
    background: #181818; border: 1px solid #333; border-top: 5px solid var(--th-primary, #d62828); color: #fff;
}
body .bike-card:hover,
body[data-theme] .bike-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--th-primary, #d62828); }
body .bike-card h3,
body[data-theme] .bike-card h3 { color: #fff; }
body .bike-card .bike-description,
body[data-theme] .bike-card .bike-description { color: #cfcfcf; }
body .bike-card .service-more,
body[data-theme] .bike-card .service-more { color: #fff; text-decoration-color: var(--th-primary, #d62828); }
body .bike-card .bike-image-frame { border-color: #333; background: #222; }
body .bike-card .bike-price-container,
body[data-theme] .bike-card .bike-price-container { border-top-color: #333; }
body .bike-card .bike-price,
body[data-theme] .bike-card .bike-price { color: #fff; }
body .bike-card .bike-original-price { color: #888; }
body .bike-card .bike-status,
body[data-theme] .bike-card .bike-status { background: var(--th-primary, #d62828); color: #fff; }
body .bike-card .bike-status.vendu,
body[data-theme] .bike-card .bike-status.vendu { background: #666; }
body .bike-card > p[style] { color: #999 !important; }
body .bike-card .bike-price-ask { font-size: 1.2rem; font-weight: 700; color: #fff; }

/* Page /bons-plans : barre décorative du thème sous le titre */
body[data-theme] .bikes h1 { color: #fff; }
body[data-theme] .bikes h1::after {
    content: ""; display: block; width: 140px; height: 7px; margin: 1rem auto 0; border-radius: 4px;
    background: repeating-linear-gradient(45deg, var(--th-stripe-a) 0 10px, var(--th-stripe-b) 10px 20px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}
