/* ==========================================================================
   ANIMATION DE NOËL & MENU SOUS FORME DE CADEAUX - ZAINEB NJOUMI
   - Chaque bouton du menu (barre de navigation + boutons d'accueil) est un CADEAU à part
     avec ruban doré, nœud de cadeau et l'inscription "🎁 Clique ici"
   - Au 1er clic sur un cadeau : il s'ouvre et affiche le vrai libellé du bouton
   - Au 2e clic sur le libellé révélé : il ouvre la page correspondante
   - Père Noël, sa Calèche et les Gazelles agrandis de +20% (580px × 152px) et toujours visibles
   - Statues de neige bien visibles au premier plan qui bougent sur la 1re page
   - Beaucoup de neige sur la tête de la dame dans la photo, sur les écritures et les boutons
   ========================================================================== */

/* ==========================================================================
   1. AMBIANCE HIVERNALE DU HERO
   ========================================================================== */
.hero {
    background: linear-gradient(160deg, #bfdbfe 0%, #dbeafe 42%, #eff6ff 78%, #f8fafc 100%) !important;
    position: relative;
    overflow: hidden;
    padding-top: 105px !important;
    padding-bottom: 120px !important;
}

/* ==========================================================================
   2. MENU DE LA PAGE D'ACCUEIL SOUS FORME DE CADEAUX ("Clique ici" -> Libellé)
   ========================================================================== */
.navbar .nav-container {
    max-width: 1320px;
}

.navbar .nav-menu {
    gap: 10px !important;
    align-items: center;
}

/* Suppression du soulignement classique sur les cadeaux du menu */
.navbar .nav-link.gift-box-btn::after {
    display: none !important;
}

/* Style commun de chaque bouton-cadeau (menu du haut + boutons du Hero) */
.gift-box-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 15px !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    border: 2px solid #fde047 !important;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.18) !important;
    cursor: pointer !important;
    overflow: visible !important;
    transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.2s ease !important;
    user-select: none;
    margin-top: 10px !important;
    min-width: 112px;
    text-align: center;
}

/* Boutons cadeaux plus grands dans la zone Hero */
.hero-buttons .gift-box-btn {
    padding: 13px 24px !important;
    font-size: 0.96rem !important;
    border-radius: 12px !important;
    min-width: 165px;
    margin-top: 14px !important;
}

/* Couleurs variées de papier cadeau pour chaque bouton à part */
.gift-color-0 { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important; }
.gift-color-1 { background: linear-gradient(135deg, #16a34a 0%, #166534 100%) !important; }
.gift-color-2 { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important; }
.gift-color-3 { background: linear-gradient(135deg, #d97706 0%, #92400e 100%) !important; }
.gift-color-4 { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important; }
.gift-color-5 { background: linear-gradient(135deg, #0d9488 0%, #115e59 100%) !important; }
.gift-color-6 { background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%) !important; }

.gift-box-btn:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.26) !important;
}

/* Rubans dorés croisés sur le cadeau fermé */
.gift-ribbon-h {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #fde047, #f59e0b, #fde047);
    opacity: 0.38;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.25s ease;
}
.gift-ribbon-v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #fde047, #f59e0b, #fde047);
    opacity: 0.38;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.25s ease;
}

/* Nœud de cadeau (Bow) posé sur le dessus de chaque bouton-cadeau */
.gift-bow-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 18px;
    pointer-events: none;
    z-index: 12;
    transition: transform 0.3s ease;
}
.gift-bow-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Texte "🎁 Clique ici" (visible quand le cadeau est fermé) */
.gift-click-here {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fef08a;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

/* Vrai libellé du bouton (caché tant qu'on n'a pas cliqué sur le cadeau) */
.gift-true-label {
    position: relative;
    z-index: 3;
    display: none;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

/* État OUVERT après le clic : affiche le vrai libellé du bouton ! */
.gift-box-btn.gift-unwrapped {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px #fde047, 0 8px 20px rgba(234, 179, 8, 0.35) !important;
    animation: giftPopOpen 0.4s ease-out;
}
.gift-box-btn.gift-unwrapped .gift-click-here {
    display: none !important;
}
.gift-box-btn.gift-unwrapped .gift-true-label {
    display: inline-flex !important;
}
.gift-box-btn.gift-unwrapped .gift-ribbon-h,
.gift-box-btn.gift-unwrapped .gift-ribbon-v {
    opacity: 0.12;
}
.gift-box-btn.gift-unwrapped .gift-bow-top {
    transform: translateX(-50%) translateY(-3px) scale(0.9);
}

@keyframes giftPopOpen {
    0%   { transform: scale(0.9); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   3. CANVAS DE NEIGE QUI TOMBE SUR TOUTE LA PAGE
   ========================================================================== */
.winter-snow-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

.hero-snow-pile-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 16;
}

.tech-pieces-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 14;
}

/* ==========================================================================
   4. GUIRLANDE DE NOËL EN HAUT DU HERO
   ========================================================================== */
.winter-garland {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
    z-index: 6;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 16px;
    overflow: hidden;
}
.winter-garland::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: #15803d;
    opacity: 0.7;
}
.garland-bulb {
    width: 11px;
    height: 15px;
    border-radius: 50%;
    margin-top: 4px;
}
.garland-bulb:nth-child(4n+1) { background: #ef4444; }
.garland-bulb:nth-child(4n+2) { background: #facc15; }
.garland-bulb:nth-child(4n+3) { background: #22c55e; }
.garland-bulb:nth-child(4n+4) { background: #38bdf8; }

/* ==========================================================================
   5. PÈRE NOËL, CALÈCHE & GAZELLES AGRANDIS DE +20% (580px × 152px)
      ET TOUJOURS VISIBLES DANS L'ÉCRAN
   ========================================================================== */
.santa-caleche-convoy {
    position: absolute;
    top: 92px;
    left: 0;
    width: 580px;
    height: 152px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 15;
    will-change: transform;
    user-select: none;
}

.santa-caleche-inside {
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.35s ease;
}
.santa-caleche-convoy.dir-left .santa-caleche-inside {
    transform: scaleX(-1);
}

.santa-caleche-inside svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.santa-arm-wave {
    transform-origin: 138px 54px;
    animation: santaWaveAnim 0.75s ease-in-out infinite alternate;
}
@keyframes santaWaveAnim {
    from { transform: rotate(-14deg); }
    to   { transform: rotate(22deg); }
}

.gazelle-legs-front {
    transform-origin: 48px 46px;
    animation: legFrontGallop 0.42s ease-in-out infinite alternate;
}
.gazelle-legs-back {
    transform-origin: 18px 46px;
    animation: legBackGallop 0.42s ease-in-out infinite alternate;
}
@keyframes legFrontGallop {
    from { transform: rotate(-20deg); }
    to   { transform: rotate(22deg); }
}
@keyframes legBackGallop {
    from { transform: rotate(22deg); }
    to   { transform: rotate(-20deg); }
}

.santa-speech-bubble {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #b91c1c;
    border: 2.5px solid #ef4444;
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    pointer-events: none;
    z-index: 2;
}

/* ==========================================================================
   6. BEAUCOUP DE NEIGE SUR LA TÊTE DE LA DAME, LES ÉCRITURES ET LES BOUTONS
   ========================================================================== */
.hero-photo-frame {
    position: relative;
    border: 4px solid #ffffff !important;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.22) !important;
}

.photo-snow-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
    overflow: visible;
}
.photo-snow-overlay svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.hero-badge-pill,
.hero-title,
.hero-profession,
.highlight-item {
    position: relative;
}

.hero-title {
    text-shadow:
        0 -4px 0 #ffffff,
        2px -5px 0 #f8fafc,
        -2px -4px 0 #ffffff,
        0 5px 14px rgba(15, 23, 42, 0.15);
    margin-top: 12px;
}

.hero-profession {
    text-shadow:
        0 -3px 0 #ffffff,
        1px -4px 0 #f8fafc,
        0 3px 8px rgba(15, 23, 42, 0.1);
    margin-top: 8px;
}

.snow-cap-svg-banner {
    position: absolute;
    top: -13px;
    left: -3px;
    right: -3px;
    height: 22px;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}
.snow-cap-svg-banner svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.hero-title .snow-cap-svg-banner {
    top: -16px;
    height: 30px;
    width: 96%;
}

.hero-profession .snow-cap-svg-banner {
    top: -13px;
    height: 24px;
    width: 88%;
}

/* ==========================================================================
   7. STATUES DE NEIGE BIEN VISIBLES ET QUI BOUGENT SUR LA 1RE PAGE
   ========================================================================== */
.winter-snow-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 4;
}
.winter-snow-ground > svg {
    width: 100%;
    height: 100%;
    display: block;
}

.snow-statues-layer {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 145px;
    pointer-events: none;
    z-index: 18;
}

.snow-statue {
    position: absolute;
    bottom: 4px;
    width: 104px;
    height: 132px;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    will-change: transform;
    transform-origin: 50% 95%;
}

.snow-statue svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.statue-body-rock {
    transform-origin: 44px 100px;
    animation: statueBodyDance 1.6s ease-in-out infinite alternate;
}
.snow-statue:nth-child(2) .statue-body-rock { animation-delay: 0.4s; }
.snow-statue:nth-child(3) .statue-body-rock { animation-delay: 0.8s; }
.snow-statue:nth-child(4) .statue-body-rock { animation-delay: 1.2s; }

@keyframes statueBodyDance {
    from { transform: rotate(-5deg) translateY(0); }
    to   { transform: rotate(5deg) translateY(-6px); }
}

.statue-arm-left {
    transform-origin: 26px 60px;
    animation: statueWaveL 0.9s ease-in-out infinite alternate;
}
.statue-arm-right {
    transform-origin: 62px 60px;
    animation: statueWaveR 0.9s ease-in-out infinite alternate;
}
@keyframes statueWaveL {
    from { transform: rotate(-18deg); }
    to   { transform: rotate(24deg); }
}
@keyframes statueWaveR {
    from { transform: rotate(20deg); }
    to   { transform: rotate(-24deg); }
}

.statue-speech {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #0369a1;
    border: 2px solid #0284c7;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0.95;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   8. BARRE DE CONTRÔLE : SON DE NOËL & APPEL DU PÈRE NOËL
   ========================================================================== */
.noel-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    position: relative;
    z-index: 20;
}

.btn-noel-sound {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 2px solid #fef08a;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
    transition: transform 0.2s ease;
    position: relative;
    overflow: visible !important;
}
.btn-noel-sound:hover {
    transform: translateY(-2px);
}
.btn-noel-sound.is-playing {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}
.btn-noel-sound i {
    color: #fef08a;
}

.btn-noel-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0369a1;
    background: #ffffff;
    border: 2px solid #38bdf8;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.16);
    transition: transform 0.2s ease;
    position: relative;
    overflow: visible !important;
}
.btn-noel-action:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .santa-caleche-convoy {
        width: 200px;
        height: 54px;
        top: 72px;
    }
    .santa-speech-bubble {
        font-size: 0.66rem;
        padding: 2px 9px;
        top: -16px;
        border-width: 1.5px;
    }
    .snow-statues-layer {
        top: 52%;
        height: 105px;
    }
    .snow-statue {
        width: 68px;
        height: 86px;
    }
    .statue-speech {
        font-size: 0.65rem;
        padding: 2px 7px;
    }
    .winter-garland {
        top: 68px;
    }
}

@media (max-width: 420px) {
    .santa-caleche-convoy {
        width: 175px;
        height: 48px;
        top: 70px;
    }
}
