@import url("https://fonts.googleapis.com/css2?family=WDXL+Lubrifont+JP+N&display=swap");

:root {
    --primary-color: #003366;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --header-color: #92278f;
    --light-color: #f7fff7;
    --dark-color: #292f36;
    --gray-color: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ==== Base Styles ==== */
body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    /* background-color: var(--light-color); */
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ffffff;
}

/* ====== Top Header ====== */
.top-header {
    background-color: var(--header-color);
    color: white;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header span {
    position: relative;
    padding-left: 1.8rem;
    font-family: monospace;
    text-transform: none;
    word-spacing: -1px;
    letter-spacing: -0.5px;
}

.top-header span::before {
    content: "\f19c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 0.4rem;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-links a:hover::after {
    opacity: 1;
}

.social-links i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.2);
}

.social-links a:nth-child(1):hover {
    background: #3b5998;
}

.social-links a:nth-child(2):hover {
    background: #1da1f2;
}

.social-links a:nth-child(3):hover {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}

.social-links a:nth-child(4):hover {
    background: #0077b5;
}

/* ==== Navbar ==== */
.navbar-container {
    position: relative;
}

.navbar {
    /* background-color: rgba(0, 51, 102, 0.9); */
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.logo img {
    /* height: 40px; */
    width: 65px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    /* padding: 0.5rem 0; */
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(32, 173, 4);
    transition: var(--transition);
}

.nav-links a:hover {
    color: rgb(32, 173, 4);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    /* background-color: var(--accent-color); */
    /* color: var(--dark-color); */
    /* padding: 0.5rem 1.5rem; */
    /* border-radius: 50px;
            font-weight: 600;
            transition: var(--transition); */
}

.cta-button:hover {
    /* background-color: rgb(32, 173, 4); */
    color: white;
    /* transform: translateY(-2px); */
}

/* Styles pour le dropdown */
.user-menu-wrapper {
    display: inline-block;
    position: relative;
    height: 100%;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* .user-menu-wrapper:hover {
    background-color: rgba(148, 1, 153, 0.9);
} */

.user-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-weight: 500;
}

.user-btn i.fa-chevron-down {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.user-menu:hover .user-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Styles des items du dropdown - complètement isolés */
.nav-links {
    display: flex;
    align-items: center; /* Alignement vertical */
    gap: 1.5rem;
}

/* Style du dropdown révisé */
.user-menu-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-weight: 500;
    padding: 4px 15px;
    background-color: rgb(51 149 2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background-color: rgba(148, 1, 153, 0.9);
}

/* Icône chevron */
.user-btn .fa-chevron-down {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.user-menu:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Menu dropdown */
.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    min-width: 180px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Items du dropdown */
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(148, 1, 153, 0.1);
    color: rgb(148, 1, 153);
}

/* Version mobile */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .user-menu-wrapper {
        width: 100%;
    }

    .user-btn {
        justify-content: center;
        border-radius: 0;
    }

    .user-dropdown {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        display: none;
    }

    .user-menu:hover .user-dropdown {
        display: block;
    }
}

.menu-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Styles pour les écrans moyens (<= 992px) */
@media (max-width: 992px) {
    /* .navbar {
        padding: 1rem 3%;
    } */

    .nav-links {
        gap: 1.5rem;
    }
}

/* Styles pour les petits écrans (<= 768px) */
@media (max-width: 768px) {
    .logo img {
        width: 50px;
        margin-left: 0;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 1rem;
        position: relative;
    }

    .menu-toggle {
        display: block; /* Affiche le bouton hamburger */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        z-index: 1000;
    }

    .nav-links.show {
        display: flex; /* Affiche le menu quand actif */
    }

    .nav-links a {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cta-button {
        margin-top: 0.5rem;
    }

    .top-header span {
        display: none;
    }

    .user-menu-wrapper {
        width: 100%;
    }

    /* Bouton du user-menu centré et cliquable */
    .user-btn {
        justify-content: center;
        padding: 0.8rem 1rem;
        border-radius: 4px;
    }

    /* Le dropdown est caché par défaut */
    .user-dropdown {
        display: none;
        position: relative; /* pour rester dans le flux */
        background: rgba(0, 0, 0, 0.9);
        box-shadow: none;
        width: 100%;
        margin-top: 0;
        margin-left: 25px;
    }

    /* Classe qui sera ajoutée en JS */
    .user-dropdown.show {
        display: block;
    }

    /* Liens à l'intérieur */
    .user-dropdown-item {
        display: block;
        padding: 0.8rem 1rem;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (min-width: 768px) {
    .top-header span {
        display: inline;
    }
}

/* ==== Hero ==== */
.hero-container {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
}

/* Image de fond */
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(1.2);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Overlay sombre */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.7)
    ); */
    z-index: 2;
}

/* Contenu principal */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 10px;
    margin-top: 150px;
}

/* Titre principal */
.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    min-height: 80px;
    line-height: 1.3;
    display: flex;
    justify-content: center;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
        "Lucida Sans", Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    word-spacing: -1px;
}

/* Texte dynamique */
#dynamic-text {
    display: inline-block;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Animation visible */
#dynamic-text.show {
    opacity: 1;
    transform: translateY(0);
}

/* Sous-titre */
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f1f1f1;
}

/* Bouton d'appel à l'action */
.hero-button {
    display: inline-block;
    padding: 12px 25px;
    background: #018901;
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-button:hover {
    background: #019701;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem; /* Titre plus petit */
        line-height: 1.2;
        word-wrap: break-word; /* Coupe correctement si besoin */
        white-space: normal; /* Permet le retour à la ligne */
    }

    .hero-title {
        font-size: 1.8rem; /* Titre plus petit */
        line-height: 1.2;
        word-wrap: break-word; /* Coupe correctement si besoin */
        white-space: normal; /* Permet le retour à la ligne */
    }

    .hero-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .hero-container {
        height: auto; /* Laisse la hauteur s’adapter */
        padding: 60px 15px; /* Ajoute un peu de marge intérieure */
    }

    .hero-content {
        margin-top: 0; /* Supprime le gros décalage vertical */
        max-width: 95%; /* Empêche de dépasser la largeur écran */
        padding: 0 10px;
    }

    #dynamic-text {
        white-space: normal; /* Le texte dynamique se replie aussi */
    }
}

/* Encore plus petit (≤ 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
}

/* ==== Styles généraux ==== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    font-size: 2.2rem;
    color: rgb(25, 145, 1);
    margin: 0;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: rgb(25, 145, 1);
    border-radius: 2px;
}

.events-section {
    padding: 2.5rem 5%;
    background-color: white;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* ==== Carte évènement ==== */
.event-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ==== Image ==== */
.event-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

/* ==== Badges ==== */
.event-price {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #20ad04;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.event-price.paid {
    background-color: #e70404;
}

.event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #92278f;
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* ==== Contenu ==== */
.event-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-content h3 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1.4;
}

.event-theme {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.event-theme strong {
    color: #20ad04;
}

/* ==== Détails ==== */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.event-mode,
.event-location,
.event-tarifs {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #555;
    line-height: 1.4;
}

.event-mode i,
.event-location i,
.event-tarifs i {
    color: #92278f;
    margin-top: 0.2rem;
    min-width: 16px;
}

.event-tarifs {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #ddd;
}

.tarif-presentiel {
    color: #92278f;
    font-weight: 600;
}

.tarif-enligne {
    color: #20ad04;
    font-weight: 600;
}

/* ==== Métadonnées ==== */
.event-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.event-meta i {
    margin-right: 0.3rem;
}

/* ==== Boutons ==== */
.event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: auto;
}

.event-button {
    display: inline-block;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.event-button.presentiel {
    background-color: #92278f;
}

.event-button.en-ligne {
    background-color: #20ad04;
}

.event-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

/* ==== Bouton Voir plus ==== */
.see-more-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 2px solid rgb(25, 145, 1);
    color: rgb(25, 145, 1);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.see-more-btn:hover {
    background-color: rgb(25, 145, 1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 145, 1, 0.2);
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-actions {
        flex-direction: row;
    }

    .event-button {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .event-actions {
        flex-direction: column;
    }
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        text-align: center;
    }

    .navbar {
        position: relative;
        background-color: #c5c5c5;
        /* flex-direction: column; */
        /* padding: 1rem; */
    }

    .nav-links {
        /* margin-top: 1rem; */
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }
}

/* Style pour le bouton "Voir plus d'événements" */
.see-more-btn {
    display: inline-block;
    padding: 0.5rem 2rem;
    border: 1px solid #92278f;
    color: rgb(25, 145, 1);
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.see-more-btn:hover {
    color: white;
    background-color: #92278f;
    /* transform: translateY(-3px); */
    /* box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2); */
}

.see-more-btn:active {
    transform: translateY(-1px);
}

.see-more-btn i {
    transition: transform 0.3s ease;
}

.see-more-btn:hover i {
    transform: rotate(-5deg);
}

/* footer unique uvci */

.footer-unique {
    width: 100%;
    height: 263px;
    overflow-y: hidden;
}

@media only screen and (max-width: 760px) {
    .footer-unique {
        width: 100%;
        height: 360px;
        overflow-y: hidden;
    }
}

@media only screen and (max-width: 940px) {
    .footer-unique {
        width: 100%;
        height: 450px;
        overflow-y: hidden;
    }
}

/* Styles FAQ */
.faq-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.frequemment-poser {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.faq-item {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    background: white;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background: white;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.faq-contact {
    text-align: center;
    color: #6c757d;
}

.faq-contact a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
