/* ------------------------------ Réinitialisation globale ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------ Style global ------------------------------ */
body {
    background-color: #800020; /* Arrière-plan bordeaux */
    font-family: 'Arial', sans-serif;
    color: #fff;
}

/* ------------------------------ Définition des polices ------------------------------ */
@font-face {
    font-family: "waltograph";
    src: url("../fonts/waltograph.otf") format("opentype"),
         url("../fonts/waltograph.ttf") format("truetype");
}

@font-face {
    font-family: "ds-digital";
    src: url("../fonts/DS-DIGITAL.TTF") format("truetype");
}

@font-face {
    font-family: "Hello Bride Script";
    src: url("../fonts/Hello Bride Script.ttf") format("truetype");
}

@font-face {
    font-family: "Mercy Christole";
    src: url("../fonts/Mercy Christole.ttf") format("truetype");
}

@font-face {
    font-family: "Magical Story";
    src: url("../fonts/Magical Story.ttf") format("truetype");
}


/* ------------------------------ Header ------------------------------ */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    gap: 20px;
}

/* ------------------------------ Menu ------------------------------ */
.menu {
    position: absolute; /* Par défaut, position absolue */
    display: block; 
    top: 20px;
    right: 20px;
    z-index: 10;
    transition: position 0.3s ease, top 0.3s ease; /* Transition douce pour l'effet sticky */
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 40px;
    animation: fadeIn 2s ease-in-out; /* Animation d'apparition */
}

.menu ul li {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
}

.menu ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

.menu ul li a:hover {
    color: #ffc107; /* Jaune doré */
    text-shadow: 0 0 10px #ffc107, 0 0 20px #fff, 0 0 30px #ff5733; /* Effet lumineux */
}

/* Effet de particules magiques autour des liens */
.menu ul li::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffc107;
    border-radius: 50%;
    box-shadow: 0 0 5px #ffc107, 0 0 10px #ff5733;
    animation: particle 1.5s infinite ease-in-out;
    opacity: 0;
    left: -10px; /* Particule légèrement décalée à gauche */
}

.menu ul li:hover::after {
    opacity: 1;
    animation: particle 1.5s infinite ease-in-out;
}

#menu-toggle {
    display: none;
}

/* ------------------------------ Animations ------------------------------ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes particle {
    0%, 100% {
        top: -10px;
        left: -10px;
        opacity: 0.5;
    }
    50% {
        top: -30px;
        left: -30px;
        opacity: 1;
    }
}

/* ------------------------------ Titre ------------------------------ */
.title h1 {
    margin-top: 10px;
    font-family: "waltograph", sans-serif;
    font-size: 2em;
    letter-spacing: 5px;
    text-shadow: 2px 2px 5px #000;
    text-align: left;
    margin-left: -2.5rem;
}

.title h2 {
    font-family: "Hello Bride Script", sans-serif;
    font-size: 4rem;
    letter-spacing: 5px;
    text-shadow: 2px 2px 5px #000;
}

.title h3 {
    font-family: "Magical Story", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-shadow: 2px 2px 5px #000;
    text-align: center;
}

.title {
    margin-bottom: 10px;
}

.Titre_Programme {
    font-family: "Mercy Christole", sans-serif;
    text-align: center;
    font-size: 3rem;
    color: #FFFFFF;
    font-weight: bold;
    letter-spacing: 0.2rem;
    text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.8), /* Ombre interne proche */
        0 0 10px rgba(255, 255, 255, 0.6), /* Lumière diffuse */
        0 0 20px rgba(255, 255, 255, 0.5), /* Éclat principal */
        0 0 30px rgba(173, 216, 230, 0.4), /* Halo bleu léger */
        0 0 40px rgba(173, 216, 230, 0.3); /* Éclat externe diffus */
    padding: 20px;
    margin-bottom: 30px;
    animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 
            0 0 3px rgba(255, 255, 255, 0.9), 
            0 0 10px rgba(255, 255, 255, 0.8), 
            0 0 20px rgba(255, 255, 255, 0.7), 
            0 0 30px rgba(173, 216, 230, 0.6), 
            0 0 40px rgba(173, 216, 230, 0.5);
    }
    50% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 1), 
            0 0 15px rgba(255, 255, 255, 0.9), 
            0 0 25px rgba(255, 255, 255, 0.8), 
            0 0 35px rgba(173, 216, 230, 0.7), 
            0 0 50px rgba(173, 216, 230, 0.6);
    }
}

.Titre_Programme::before,
.Titre_Programme::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #FFFFFF, #FFD700);
    width: 80%;
    margin: 10px auto;
    animation: fade-in-out 2s infinite alternate;
}

@keyframes fade-in-out {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes sparkle {
    0% {
        text-shadow: 0 0 10px #fff, 0 0 30px #fff, 0 0 40px rgba(255,255,255,0.7), 0 0 50px rgba(255,255,255,0.7);
    }
    50% {
        text-shadow: 0 0 20px #fff, 0 0 50px #fff, 0 0 60px rgba(255,255,255,0.9), 0 0 70px rgba(255,255,255,0.9);
    }
    100% {
        text-shadow: 0 0 10px #fff, 0 0 30px #fff, 0 0 40px rgba(255,255,255,0.7), 0 0 50px rgba(255,255,255,0.7);
    }
}

/* ------------------------------ Compte à rebours ------------------------------ */
.countdown {
    display: flex;
    gap: 40px; /* Espacement plus large */
    font-family: "ds-digital", sans-serif;
    justify-content: center;
    align-items: center;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 4rem; /* Taille augmentée */
    margin-bottom: 5px;
    text-shadow: 0 0 10px #ffc107, 0 0 20px #ffc107, 0 0 30px #ff5733; /* Effet lumineux */
    color: #fff;
}

.countdown span {
    font-size: 1.2rem; /* Légende ajustée */
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px #000;
}

/* ------------------------------ Vidéo ------------------------------ */
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    position: relative;
    border-radius: 20px; /* Angles arrondis */
    overflow: hidden;
    max-width: 80%; /* Largeur réduite de la vidéo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Ombre discrète */
}

video {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* ------------------------------ Contrôles vidéo ------------------------------ */
.controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .controls {
    opacity: 1;
}

.control-button {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 1.5rem;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
    color: #800020;
}

/* ------------------------------ Arrière-plan des étoiles scintillantes ------------------------------ */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Les étoiles ne bloquent pas les clics */
    z-index: -1; /* Assurez-vous que les étoiles sont derrière tous les autres éléments */
}

.star {
    position: absolute;
    background-color: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.8;
    animation: sparkle 1.5s infinite alternate, size-change 1s infinite alternate; /* Animation pour scintiller et changer de taille */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9); /* Halo lumineux */
}

@keyframes sparkle {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes size-change {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5); /* Agrandir l'étoile */
    }
    100% {
        transform: scale(1); /* Réduire l'étoile à sa taille d'origine */
    }
}

/* ------------------------------ Bandeau supérieur ------------------------------ */
.top-banner-mobile {
    display: none;
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #800020; /* Dégradé dynamique */
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1.5rem; /* Taille ajustée */
    font-weight: bold;
    display: none; /* Cacher le bandeau par défaut */
    z-index: 100; /* Assurez-vous que le bandeau reste au-dessus des autres éléments */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #fff; /* Bordure blanche subtile */
    animation: showBanner 1s ease-out;
}

@keyframes showBanner {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.top-banner.show {
    display: block; /* Afficher le bandeau lorsqu'on lui ajoute la classe "show" */
    animation: showBanner 1s ease-out; /* Animation d'apparition */
}

.top-banner a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem; /* Taille légèrement augmentée */
    letter-spacing: 1px;
    margin: 0 20px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.top-banner a:hover {
    color: #ffc107;
    text-shadow: 0 0 10px #ffc107, 0 0 20px #ff5733, 0 0 30px #ff5733; /* Effet lumineux */
    transform: scale(1.1); /* Légère augmentation de la taille au survol */
}

/* Effet de particules autour des liens */
.top-banner a::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffc107;
    border-radius: 50%;
    box-shadow: 0 0 5px #ffc107, 0 0 10px #ff5733;
    animation: particle 1.5s infinite ease-in-out;
    opacity: 0;
    left: -10px; /* Particule légèrement décalée à gauche */
}

.top-banner a:hover::after {
    opacity: 1;
    animation: particle 1.5s infinite ease-in-out;
}

/* ------------------------------ Conteneur principal ------------------------------ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ------------------------------ Programme ------------------------------ */
.programme {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.event {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event h2 {
    font-size: 1.8rem;
    color: #e91e63;
    margin-bottom: 10px;
}

.event .time {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

.event .description {
    font-size: 1.1rem;
    color: #666;
}

.event:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s;
}

.table-container {
    display: flex;
    justify-content: space-between;
    width: 20rem;
    margin: auto;
    padding-bottom: 50px;
}

.table-container .Hour {
    text-align: center;
    font-size: 12pt;
    padding: 0rem 0.5rem 0.2rem;
    vertical-align: bottom;

}

.table-container .Event {
    text-align: center;
    border: none;
    font-size: 9pt;
    padding: 0.2rem 0.5rem 0;
    vertical-align: top;
    text-transform: uppercase;
    font-style: italic;
}

.table-container table:nth-of-type(1) .Icone {
    text-align: right; 
    border: none;
    padding-right: 1rem;                 
    vertical-align: center;
}

.table-container table:nth-of-type(2) .Icone {
    text-align: left; 
    border: none;
    padding-left: 1rem;            
    vertical-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;  
}

tr {
    height : 2.5rem;                     
}

td {
    position: relative;
    border: 0.1rem solid white;         
    height: 2.5rem;                      
}

table:nth-of-type(2) td::before {
    left: auto;
    right: 0;
    transform: translate(50%, -50%);
}

tr td:first-child {
    border-left: none;
    border-top: none;
}

tr td:last-child {
    border-right: none;
}

td.Event::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    width: 0.5rem;                          
    height: 0.5rem;                       
    background-color: white;
    border-radius: 50%;
}

tr:first-child td::before {
    content: none;
}

tr:last-child td {
    border-bottom: none;
}

.LastCellule{
     border-bottom: none;
}

.table-container img {
    right: 0;
}

.vertical-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vertical-divider .circle {
    width: 1rem;                  
    height: 1rem;                  
    border-radius: 50%;
    border: 0.2rem solid white;           
    position: absolute;
}

.vertical-divider .top {
    top: -1rem;                 
}

.vertical-divider .bottom {
    bottom: -1rem;               
}

.vertical-divider .line {
    width: 0.2rem;               
    height: 100%;
    background-color: white;
}

/* ----------------------------- Présentation ---------------------------- */
.presentation {
    margin : 20px;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden; 
    align-items: center;
    justify-content: center;
    text-align: justify;
}

.presentation img {
    width : 50%;
    margin: 10px; 
    float: right;
}
