/* ══════════════════════════════════════════════════════════════
   Thème « Noël » — assets/themes/noel/ (manifeste : theme.json)

   Noël sous les cocotiers : le rouge de la maison, vert sapin et or ;
   bonnet de Père Noël sur « Bora Bora » (élément « titre ») ; flotte en
   paquets cadeaux ; sucre d'orge et brin de houx ; palmiers illuminés.
   Guirlande sous le menu : guirlande.css ; neige sur la photo du haut de
   page : neige.js. Tout est dessiné ici (aucune image ni police ajoutée).

   Tout passe sous html.theme-noel : la feuille est chargée AVANT celles
   des pages (via includes/head_tracking.php), le préfixe lui donne la
   priorité. Bouton, phrase et encart d'arrivée : socle commun
   assets/css/themes.css, recoloré ici par les variables --theme-*.
   ══════════════════════════════════════════════════════════════ */

:root {
    --nl-sapin:       #0e3b2a;
    --nl-sapin-2:     #17573c;
    --nl-houx:        #1f7a4d;
    --nl-rouge:       #c40018;   /* le rouge du site */
    --nl-rouge-vif:   #e3122f;
    --nl-or:          #e8b64c;
    --nl-or-clair:    #ffe39a;
    --nl-neige:       #fffaf2;
    --nl-nuit:        #0b1f33;
    --nl-sucre: repeating-linear-gradient(-45deg, var(--nl-rouge) 0 10px, #fff 10px 20px);
    /* Dessins du thème */
    --nl-bonnet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 92'%3E %3Cpath d='M14 66C20 30 48 8 80 12c16 2 28 16 30 34-8-10-18-14-26-10 4 10 8 20 12 30z' fill='%23d0021b'/%3E %3Cpath d='M30 60C36 38 52 22 74 18c-14 10-22 24-26 42z' fill='%23a80016' opacity='.55'/%3E %3Crect x='6' y='60' width='98' height='24' rx='12' fill='%23fff' stroke='%23d6d2c8' stroke-width='2'/%3E %3Ccircle cx='110' cy='50' r='11' fill='%23fff' stroke='%23d6d2c8' stroke-width='2'/%3E %3C/svg%3E");
    --nl-brin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E %3Cpath id='f' d='M32 18C26 10 16 6 4 8c3 3 2 6-1 8 5 1 7 4 7 8 5-3 9-2 12 2 2-5 6-6 10-8z' fill='%231f7a4d'/%3E %3Cpath d='M32 18C26 10 16 6 4 8c3 3 2 6-1 8 5 1 7 4 7 8 5-3 9-2 12 2 2-5 6-6 10-8z' fill='%2317573c' transform='matrix(-1 0 0 1 64 0)'/%3E %3Ccircle cx='28.5' cy='16' r='4.6' fill='%23d0021b'/%3E%3Ccircle cx='35.5' cy='16' r='4.6' fill='%23e3122f'/%3E%3Ccircle cx='32' cy='22' r='4.6' fill='%23c40018'/%3E %3Ccircle cx='27' cy='14.6' r='1.2' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='34' cy='14.6' r='1.2' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='30.6' cy='20.6' r='1.2' fill='%23fff' opacity='.7'/%3E %3C/svg%3E");
    --nl-noeud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 46'%3E %3Cg fill='%23e8b64c' stroke='%239c6a10' stroke-width='2' stroke-linejoin='round'%3E %3Cpath d='M37 22 27 43l7-2 3 4 4-22z'/%3E%3Cpath d='M43 22 53 43l-7-2-3 4-4-22z'/%3E %3Cpath d='M40 21C30 4 10 2 8 14 6 26 26 28 40 23z'/%3E%3Cpath d='M40 21C50 4 70 2 72 14c2 12-18 14-32 9z'/%3E %3Crect x='33' y='14' width='14' height='13' rx='4.5'/%3E %3C/g%3E %3Cpath d='M16 13c5-4 12-2 17 4M64 13c-5-4-12-2-17 4' fill='none' stroke='%23fff3c4' stroke-width='2' stroke-linecap='round' opacity='.8'/%3E %3C/svg%3E");
    --nl-palmier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E %3Cg fill='%2306241a'%3E %3Cpath d='M92 300c3-62 11-124 26-176l9 3c-14 52-21 112-24 173z'/%3E %3Cpath d='M122 126C92 104 50 100 12 118c38-8 72-2 106 14z'/%3E %3Cpath d='M122 126C102 90 64 70 22 72c38 10 70 28 96 58z'/%3E %3Cpath d='M122 126c4-40 28-68 66-78-30 20-50 46-58 80z'/%3E %3Cpath d='M122 126c32-14 64-10 80 12-28-10-54-10-78-6z'/%3E %3Cpath d='M122 126c24 14 40 42 38 74-8-28-24-50-42-66z'/%3E %3Cpath d='M122 126c-26 8-48 32-54 66 12-28 32-46 56-58z'/%3E %3Cpath d='M122 126c-8-34 2-70 30-96-16 30-22 60-24 98z'/%3E %3C/g%3E %3Cg%3E %3Ccircle cx='97' cy='276' r='4.5' fill='%23ffd23f'/%3E%3Ccircle cx='101' cy='246' r='4.5' fill='%23ff3b4e'/%3E%3Ccircle cx='104' cy='216' r='4.5' fill='%235ec8ff'/%3E %3Ccircle cx='109' cy='186' r='4.5' fill='%233ddc84'/%3E%3Ccircle cx='115' cy='156' r='4.5' fill='%23ffd23f'/%3E%3Ccircle cx='122' cy='128' r='5' fill='%23fff3c4'/%3E %3Ccircle cx='20' cy='115' r='4' fill='%23ff3b4e'/%3E%3Ccircle cx='30' cy='74' r='4' fill='%235ec8ff'/%3E%3Ccircle cx='184' cy='52' r='4' fill='%23ffd23f'/%3E %3Ccircle cx='196' cy='134' r='4' fill='%233ddc84'/%3E%3Ccircle cx='158' cy='194' r='4' fill='%23ff3b4e'/%3E%3Ccircle cx='72' cy='186' r='4' fill='%235ec8ff'/%3E %3Ccircle cx='68' cy='106' r='3.4' fill='%233ddc84'/%3E%3Ccircle cx='74' cy='82' r='3.4' fill='%23ffd23f'/%3E%3Ccircle cx='158' cy='78' r='3.4' fill='%23ff3b4e'/%3E%3Ccircle cx='164' cy='124' r='3.4' fill='%235ec8ff'/%3E %3C/g%3E %3C/svg%3E");
    /* Socle commun (assets/css/themes.css) aux couleurs du thème */
    --theme-bouton-fond: var(--nl-sapin);
    --theme-bouton-ombre: var(--nl-rouge);
    --theme-bouton-ombre-survol: var(--nl-or);
    --theme-aide-fond: rgba(14, 59, 42, .94);
    --theme-aide-accent: var(--nl-or-clair);
}

/* ── Hors thème : la toile de neige (neige.js) est cachée ── */
.nl-neige { display: none; }

/* ══ Fond général ═══════════════════════════════════════════ */
html.theme-noel body { background: var(--nl-neige); }

/* ══ Navigation : du sapin au rouge de la maison ═══════════ */
html.theme-noel .menu,
html.theme-noel .logomobile {
    background-image: linear-gradient(90deg, #06241a 0%, var(--nl-sapin) 34%, var(--nl-sapin-2) 58%, var(--nl-rouge) 100%);
}
html.theme-noel .menu-item--active > a { text-shadow: 0 0 10px rgba(255,227,154,.9); }
html.theme-noel .menu > ol > li > ol {
    background: rgba(14,59,42,.96);
    border-top-color: var(--nl-or);
}
html.theme-noel .menu > ol > li > ol > li > a:hover,
html.theme-noel .menu > ol > li > ol > li > a:focus { border-left-color: var(--nl-or); }
@media (max-width: 45rem) {
    html.theme-noel .menu { background: var(--nl-sapin); }
}

/* ══ Accueil : la photo à la tombée du jour, sous la neige ══ */
html.theme-noel #Homepage,
html.theme-noel .page-hero {
    position: relative;
    isolation: isolate;
}
html.theme-noel #Homepage::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8,28,44,.66) 0%, rgba(8,28,44,.2) 46%, rgba(8,40,28,.58) 100%);
}
html.theme-noel .nl-neige {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}
html.theme-noel .hero-title {
    font-size: 3.8rem;
    text-shadow: 0 2px 0 rgba(8,28,44,.6), 0 0 22px rgba(255,227,154,.4);
}
/* « Bora Bora » en or, coiffé du bonnet (élément « titre ») */
html.theme-noel .hero-title .theme-lieu {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    color: var(--nl-or-clair);
    background: linear-gradient(180deg, #fff8dc 0%, var(--nl-or-clair) 42%, var(--nl-or) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 0 rgba(8,28,44,.6));
}
html.theme-noel .hero-title .theme-lieu::before {
    content: "";
    position: absolute;
    left: -.26em;
    top: -.3em;
    width: .78em;
    height: .58em;
    background: var(--nl-bonnet) center / contain no-repeat;
    transform: rotate(-17deg);
}
html.theme-noel .hero-subtitle { text-shadow: 0 1px 0 rgba(8,28,44,.75), 0 0 12px rgba(8,28,44,.75); }
html.theme-noel .theme-phrase {
    background: rgba(14,59,42,.84);
    border-left-color: var(--nl-or);
}

/* Formulaire de recherche : couleurs seulement, géométrie inchangée */
html.theme-noel .Formbox {
    background: rgba(8,34,25,.86);
    border-left-color: var(--nl-or);
    box-shadow: 0 0 0 1px rgba(232,182,76,.4), 0 14px 34px rgba(8,28,44,.45);
}
html.theme-noel .Step_date-title span { border-left-color: var(--nl-or); }
html.theme-noel .go-button {
    background-color: var(--nl-rouge-vif);
    background-image: linear-gradient(180deg, #ee1f3a, #b50018);
    box-shadow: 0 0 0 2px var(--nl-or), 0 6px 16px rgba(8,28,44,.4);
}
html.theme-noel .go-button:hover,
html.theme-noel .go-button:focus,
html.theme-noel .go-button:active {
    background-color: #ff3550;
    background-image: linear-gradient(180deg, #ff3550, var(--nl-rouge));
}
html.theme-noel .cross-promo {
    background: rgba(8,34,25,.74);
    border-right-color: var(--nl-or);
}

/* ══ Titres de section : vert sapin, brin de houx ══════════ */
html.theme-noel .section-title-center { color: var(--nl-sapin); }
html.theme-noel .section-title-center::after {
    content: "";
    display: block;
    width: 64px;
    height: 32px;
    margin: 10px auto 0;
    background: var(--nl-brin) center / contain no-repeat;
}

/* ══ Accueil : avantages, liseré sucre d'orge ══════════════ */
html.theme-noel #section-differenciants,
html.theme-noel .bgcolor-whitesmoke {
    background-color: var(--nl-neige);
    background-image: radial-gradient(rgba(196,0,24,.08) 1.4px, transparent 1.8px),
                      radial-gradient(rgba(31,122,77,.09) 1.4px, transparent 1.8px);
    background-size: 22px 22px;
    background-position: 0 0, 11px 11px;
}
html.theme-noel .differenciant-item {
    background: var(--nl-sucre) top / 100% 6px no-repeat, #fff;
    border: 1px solid rgba(14,59,42,.16);
    box-shadow: 0 8px 22px rgba(14,59,42,.1);
}
html.theme-noel .differenciant-icon { color: var(--nl-rouge); }
html.theme-noel .differenciant-title { color: var(--nl-sapin); }

/* ══ Flotte : chaque véhicule dans son paquet cadeau ════════
   Le fond de catégorie est posé en style inline (index.php) :
   !important obligatoire pour le remplacer. Ruban et nœud décalés à
   droite : le nom du véhicule (à gauche) et l'éclair des électriques
   (coin droit) restent lisibles. Trois papiers en rotation. */
html.theme-noel .mini-card { box-shadow: 0 8px 20px rgba(14,59,42,.18); }
html.theme-noel .mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(14,59,42,.26);
}
html.theme-noel .mini-card-color-block {
    --nl-papier: linear-gradient(180deg, #d8142f, #9c0014);
    background-color: var(--nl-rouge) !important;
    background-image:
        var(--nl-noeud),
        linear-gradient(90deg, transparent calc(79% - 7px), #b98220 calc(79% - 7px), var(--nl-or-clair) 79%, #b98220 calc(79% + 7px), transparent calc(79% + 7px)),
        radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.9px),
        var(--nl-papier) !important;
    background-size: 40px auto, 100% 100%, 16px 16px, 100% 100% !important;
    background-position: left calc(79% - 20px) top 3px, center, 4px 4px, center !important;
    background-repeat: no-repeat, no-repeat, repeat, no-repeat !important;
}
html.theme-noel .mini-card:nth-child(3n+2) .mini-card-color-block {
    --nl-papier: linear-gradient(180deg, #218454, #0e3b2a);
    background-color: var(--nl-sapin) !important;
}
html.theme-noel .mini-card:nth-child(3n) .mini-card-color-block {
    --nl-papier: linear-gradient(180deg, #1c4468, #0b1f33);
    background-color: var(--nl-nuit) !important;
}
html.theme-noel .mini-card-model { text-shadow: 0 1px 2px rgba(0,0,0,.55); }
html.theme-noel .btn-all-vehicles {
    border-color: var(--nl-sapin);
    color: var(--nl-sapin);
}
html.theme-noel .btn-all-vehicles:hover {
    background: var(--nl-sapin);
    color: #fff;
}

/* ══ Bloc « Avis Bora Bora » : nuit de Noël, palmier illuminé ═ */
html.theme-noel #section-about {
    background-color: var(--nl-sapin);
    background-image: var(--nl-palmier), var(--nl-palmier),
                      linear-gradient(120deg, var(--nl-nuit) 0%, var(--nl-sapin) 55%, var(--nl-sapin-2) 100%);
    background-repeat: no-repeat;
    background-size: 190px auto, 130px auto, cover;
    background-position: right 5% bottom -36px, right 19% bottom -64px, center;
}
html.theme-noel #section-about .heading { text-shadow: 0 0 18px rgba(255,227,154,.55); }
html.theme-noel #section-about .btn-link-more { color: var(--nl-or-clair); }
@media (max-width: 767px) {
    html.theme-noel #section-about { background-size: 110px auto, 0 0, cover; }
}

/* ══ En-tête des pages intérieures : ciel étoilé, palmiers ═══ */
html.theme-noel .page-hero {
    /* clip-path et non overflow:hidden : overflow rangerait la section À
       CÔTÉ du flottant de la nav — largeur 0 (vu sur tarifs.php). */
    clip-path: inset(0);
    background: linear-gradient(180deg, var(--nl-nuit) 0%, #0c2f2b 62%, var(--nl-sapin-2) 100%);
}
html.theme-noel .page-hero::before {          /* étoiles */
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(2px 2px at 8% 24%, #ffe39a 50%, transparent 52%),
        radial-gradient(1.6px 1.6px at 19% 62%, #fff 50%, transparent 52%),
        radial-gradient(2.2px 2.2px at 31% 18%, #fff 50%, transparent 52%),
        radial-gradient(1.6px 1.6px at 44% 48%, #ffe39a 50%, transparent 52%),
        radial-gradient(2px 2px at 57% 14%, #fff 50%, transparent 52%),
        radial-gradient(1.6px 1.6px at 66% 70%, #fff 50%, transparent 52%),
        radial-gradient(2.4px 2.4px at 74% 30%, #ffe39a 50%, transparent 52%),
        radial-gradient(1.6px 1.6px at 88% 20%, #fff 50%, transparent 52%),
        radial-gradient(2px 2px at 94% 58%, #ffe39a 50%, transparent 52%);
}
html.theme-noel .page-hero::after {           /* palmiers illuminés */
    content: "";
    position: absolute;
    z-index: -1;
    left: 0; right: 0; bottom: 0;
    height: 190px;
    background-image: var(--nl-palmier), var(--nl-palmier);
    background-repeat: no-repeat;
    background-size: 124px auto, 92px auto;
    background-position: right 4% bottom -22px, right 14% bottom -40px;
}
html.theme-noel .page-hero .heading { text-shadow: 0 2px 0 rgba(8,28,44,.5), 0 0 20px rgba(255,227,154,.4); }
@media (max-width: 767px) {
    html.theme-noel .page-hero::after { height: 130px; background-size: 84px auto, 0 0; background-position: right -8px bottom -16px, center; }
}

/* ══ Pied de page : liseré sucre d'orge ═════════════════════ */
html.theme-noel .site-footer::before {
    content: "";
    display: block;
    height: 8px;
    background: var(--nl-sucre);
}

/* ══ Écrans étroits ═════════════════════════════════════════ */
@media (max-width: 767px) {
    html.theme-noel .hero-title { font-size: 2.9rem; }
}

/* Mouvements réduits : les cartes ne bougent pas */
@media (prefers-reduced-motion: reduce) {
    html.theme-noel .mini-card:hover { transform: none; }
}
