* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f14;
    color: white;
    font-size: 18px;
    line-height: 1.6;
}





/* ==========================================================================
   2. STRUCTURE VIDEO (BACKGROUND)
   ========================================================================== */
.video-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background: black;
}

#header-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.4) 40%,
        #0f0f14 100%
    );
}

#sound-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

#sound-btn:hover {
    transform: scale(1.15);
    background: rgba(0,0,0,0.7);
}



/* ==========================================================================
   3. CONTENU PRINCIPAL & NAVIGATION
   ========================================================================== */

.modal-lost {
    display: none; 
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.8) !important; 
    z-index: 999999 !important;
}

.modal-lost-content {
    background-color: #1a1e36; 
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    
    position: fixed !important;
    top: 50% !important;        
    left: 50% !important;       
    transform: translate(-50%, -50%) !important; 
    margin: 0 !important; 
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ffffff;
}

#page-container {
    background-image: url('include/fond.jpg');
    background-position: 50% 0;
    background-size: cover;
    background-repeat: no-repeat;
    
    
}

.main-content {
    position: relative;
    z-index: 5;
    margin: 60vh auto 50px;
    max-width: 530px; /* Largeur d'écran optimisée ordinateur */
    width: 92%;
    padding: 30px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.nav-menu {
    display: flex;
    justify-content: flex-start;
    gap: 12px; 
    padding: 20px 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    perspective: 1200px;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu button {
    flex: 0 0 auto;
    padding: 12px 24px; 
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7); 
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative; 
    overflow: hidden;
    
    opacity: 1;
    transform: scale(0.3) translateY(-30px);
    filter: blur(12px);
    
    animation: 
        megaIntro 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        neonFlash 1.5s ease-out infinite alternate;
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Cascade de la Navigation */
.nav-menu button:nth-child(1) { animation-delay: 0.1s, 0.1s; }
.nav-menu button:nth-child(2) { animation-delay: 0.25s, 0.25s; }
.nav-menu button:nth-child(3) { animation-delay: 0.4s, 0.4s; }
.nav-menu button:nth-child(4) { animation-delay: 0.55s, 0.55s; }

/* Laser Navigation */
.nav-menu button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-30deg);
}

.nav-menu button:nth-child(1)::before { animation: introLaser 0.6s ease-out 0.4s forwards; }
.nav-menu button:nth-child(2)::before { animation: introLaser 0.6s ease-out 0.55s forwards; }
.nav-menu button:nth-child(3)::before { animation: introLaser 0.6s ease-out 0.7s forwards; }
.nav-menu button:nth-child(4)::before { animation: introLaser 0.6s ease-out 0.85s forwards; }

/* Hover Navigation */
.nav-menu button:hover {
    color: #ffffff; 
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 255, 255, 0.2);
    filter: brightness(1.35); 
}

.nav-menu button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0; 
    height: 3px; 
    background: #ffffff; 
    box-shadow: 0 0 12px #ffffff, 0 0 4px #ffffff; 
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
}

.nav-menu button:hover::after {
    width: 70%; 
}

/* Keyframes Navigation */
@keyframes megaIntro {
    0% {
       
        transform: scale(0.3) translateY(-40px) rotateX(-45deg);
        filter: blur(12px);
    }
    70% {
        transform: scale(1.08) translateY(5px) rotateX(10deg);
        filter: blur(2px);
    }
    100% {
        transform: scale(1) translateY(0) rotateX(0deg);
        filter: blur(0);
    }
}

@keyframes introLaser {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes neonFlash {
    0% { text-shadow: 0 0 2px rgba(255,255,255,0.2); }
    100% { text-shadow: 0 0 8px rgba(255,255,255,0.6); }
}

/* Couleurs Boutons Navigation */
.nav-menu button:nth-child(1) { background-color: rgba(109,95,196,0.20); }
.nav-menu button:nth-child(2) { background-color: rgba(93,171,101,0.20); }
.nav-menu button:nth-child(3) { background-color: rgba(210,92,190,0.20); }
.nav-menu button:nth-child(4) { background-color: rgba(186,55,32,0.20); }

/* Arrière-plans dynamiques */
.bg-default { background-color: rgba(109,95,196,0.20); }
.bg-alt1    { background-color: rgba(93,171,101,0.20); }
.bg-alt2    { background-color: rgba(210,92,190,0.20); }
.bg-alt3    { background-color: rgba(186,55,32,0.20); }


/* ==========================================================================
   4. COMPOSANTS RÉUTILISABLES (BLOCS & BOUTONS)
   ========================================================================== */
.highlight-block {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    transition: 0.3s;
}

.highlight-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   DISCLAIMER BOX : VERSION NETTOYÉE SANS DOUBLONS
   ========================================================================== */
.disclaimer-box {
    position: relative;
    padding: 25px;
    margin-bottom: 30px;
    
    /* MODIFICATION : Fond noir fixe sans transparence intégrée */
    background: #14141f; 
    backdrop-filter: blur(12px);         
    -webkit-backdrop-filter: blur(12px); 
    
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4C3DA8; 
    
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
    overflow: visible !important; 
    
    /* ICI : Tu peux maintenant mettre 0.2, 0.4 ou ce que tu veux, ça va enfin bouger ! */
    opacity: 0.6; 
    
    transition: all 0.3s ease;
}

/* L'effet au survol/clic reste le même et passe à 1 (100% opaque) */
.disclaimer-box:hover, .disclaimer-box:active {
    border-color: #22c55e; 
    box-shadow: 0 0 20px 5px rgba(100, 153, 232, 0.082), 0 0 40px 10px rgba(34, 197, 94, 0.3);
    opacity: 0.9; 
}

.box-mascote {
    position: absolute;
    top: -45px;                  
    left: 20px;                 
    width: 65px;                
    height: 65px;               
    z-index: 9999 !important;   
    pointer-events: none;       
}

.box-mascote img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}










.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    padding: 12px 25px;
    background: white;
    color: black;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary {
    padding: 12px 25px;
    border: 2px solid white;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover { transform: scale(1.05); }
.btn-secondary:hover { background: white; color: black; }

/* ==========================================================================
   5. TIMELINE
   ========================================================================== */
.timeline {
    position: relative;
    margin: 40px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: gold;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #7a0f1d;
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 12px;
}

.timeline-card {
    width: 40%;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: 0.3s;
}

.timeline-card:hover { transform: scale(1.03); }

.timeline-item:nth-child(odd) .timeline-card { margin-left: 0; }
.timeline-item:nth-child(even) .timeline-card { margin-left: 60%; }

/* ==========================================================================
   6. SOCIAL BAR (FIXE)
   ========================================================================== */
.social-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; 
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.social-bar .social-icon {
    color: white;
    font-size: 28px;
    transition: 0.3s;
    text-decoration: none;
    line-height: 1;
}

.social-bar .social-icon:hover {
    color: #4C3DA8;
    transform: scale(1.2);
}

.social-bar .btn-secondary {
    font-size: 14px;
    padding: 8px 16px;
    margin: 0;
}



/* ==========================================================================
   7. FORMULAIRE SIFFLEUR
   ========================================================================== */
.form-siffleur {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

.form-siffleur .form-group {
    display: flex;
    flex-direction: column;
}

.form-siffleur label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}

.form-siffleur input, 
.form-siffleur select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    color: white;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.25s ease;
    width: 100%;
}

.form-siffleur input:focus, 
.form-siffleur select:focus {
    border-color: #7870A7;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(120,112,167,0.25);
}

.form-siffleur input::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-siffleur button {
    margin-top: 15px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    padding: 14px;
    border-radius: 8px;
}

/* ==========================================================================
   8. MEDIA QUERIES (ADAPTATIONS MOBILE)
   ========================================================================== */
@media (max-width: 600px) {
    .stats-counter {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
    }
    .stats-counter td {
        font-size: 0.75rem;
        padding: 2px 4px;
    }
}

@media (max-width: 700px) {
    .video-header {
        height: 45vh; 
        top: 0;
        left: 0;
        margin-top: 0;
        background: black; 
    }

    #header-video {
        object-fit: contain; 
        object-position: top center;
    }

    .main-content {
        margin-top: 35vh; 
        width: 100%;
        max-width: 500px;  
        border-radius: 0;
        padding: 15px;
    }

    #page-container {
        width: 100%;
        
    }

    .social-bar {
        gap: 10px;
        padding: 10px;
    }

    .social-bar .btn-secondary {
        font-size: 11px;
        padding: 5px 10px;
        margin: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-date {
        left: 20px;
    }

    .timeline-card {
        width: 90%;
        margin-left: 40px !important;
    }

    .form-siffleur {
        padding: 15px;
        gap: 14px;
    }

    .form-siffleur input,
    .form-siffleur select {
        font-size: 16px;
    }

    .form-siffleur button {
        width: 100%;
    }
}
/* L'effet Laser en arrière-plan / bordure */
@keyframes laserGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.disclaimer-box button {
    background: #d35400;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.disclaimer-box button:hover {
    background: #e67e22;
}






/* Compteur fixé en haut à gauche */
.stats-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}


.stats-counter.clickable:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Petit effet de surbrillance au survol */
    transition: background 0.3s;
        z-index: 10;

}

.stats-counter table {
    width: auto;
    border-collapse: collapse;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.stats-counter td {
    padding: 4px 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: none;
    white-space: nowrap;
}

.stats-counter tr td:last-child {
    font-weight: 700;
    color: #4C3DA8;
    text-align: right;
}



/* ───────────────────────────────────────────────
   PANNEAU FIXE À DROITE (PC)
   ─────────────────────────────────────────────── */
.side-fixed-right {
    position: fixed;
    top: 60px;                 /* Position haute, propre */
    right: 20px;
    width: 240px;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1;

    max-height: calc(100vh - 200px);  /* Scroll interne */
    overflow-y: auto;
    overflow-x: hidden;
    /* Transition fluide */
}
.side-fixed-right:hover {
    z-index: 1000; /* Passe au-dessus de tout au survol */
        background-color: rgba(255, 255, 255, 0.1); /* Petit effet de surbrillance au survol */
    transition: background 0.3s;
        z-index: 10;
}

/* Scrollbar élégante */
.side-fixed-right::-webkit-scrollbar {
    width: 6px;
}
.side-fixed-right::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
}
.side-fixed-right::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

/* ───────────────────────────────────────────────
   ASSOCIATION : Proches Aidants Valais
   ─────────────────────────────────────────────── */
.partner-item.association {
    text-align: center;
    margin-bottom: 20px;
}


.partner-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner-title {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
}

.partner-text {
    font-size: 0.78rem;
    opacity: 0.75;
    line-height: 1.35;
    margin: 0;
}


.partner-rotator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.partner-content {
    flex: 1;
}

.partner-arrow {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 14px;            /* ✔ plus petit */
    padding: 4px 8px;           /* ✔ plus compact */
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.partner-arrow:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    transform: scale(1.05);     /* ✔ petit effet élégant */
    
    
}





/* ───────────────────────────────────────────────
   PARTENAIRE 
   ─────────────────────────────────────────────── */
.partenaire-dentiste {
    text-align: center;
    margin-bottom: 20px;
}

.partner-logo-emoji {
    font-size: 32px;      /* Emoji plus discret */
    margin-bottom: 6px;
}

.partner-subtitle {
    font-size: 0.80rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 8px;
}

.partner-link {
    color: #9bb8ff;
    text-decoration: none;
    font-weight: 600;
}
.partner-link:hover {
    text-decoration: underline;
}

/* --- POSITION PC --- */
@media (min-width: 400px) {
    .calendar-master {
        position: fixed;
        top: 250px;
        left: 20px;
        width: 250px;
    }
}

/* --- POSITION MOBILE / TABLETTE --- */
@media (max-width: 900px) {
    .calendar-master {
        position: relative;
        margin: 20px auto 100px auto;
        width: 90%;
        max-width: 300px;
        text-align: center;
    }
}




/* --- LE DESIGN COMMUN --- */
.calendar-master {
    /* Style verre moderne */
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px; 
    padding: 15px;
    box-sizing: border-box; 
    color: white;
    
    /* Indispensable pour que le z-index fonctionne */
    z-index: 1; /* Position normale (en arrière-plan par défaut) */
    
    /* Transition fluide */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Au survol : passe au premier plan */
.calendar-master:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Petit effet de surbrillance au survol */
    transition: background 0.3s;
        z-index: 10;
}



/* --- AMÉLIORATION DES BOUTONS (Grille + Look) --- */
.calendar-wrapper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.calendar-wrapper button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50px; /* Look pilule */
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-wrapper button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Petit effet de surbrillance au survol */
    transition: background 0.3s;
        z-index: 10;
}
/* --- VERSION MOBILE : le panneau va en bas --- */
@media (max-width: 900px) {
    .side-fixed-right {
        position: static !important;   /* il redevient un bloc normal */
        width: 100% !important;
        margin-top: 20px !important;   /* il descend naturellement */
        margin-bottom: 20px !important;

        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;

        z-index: 1 !important;         /* ne passe plus au-dessus */
        border-radius: 12px !important;
        padding: 15px !important;
    }
}

