/* 
 * Meet Party Pro - Styles optimisés SEO
 * Site d'événements et soirées Drôme-Ardèche
 * Optimisé pour les performances et le référencement
 */

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

/* Optimisations performances */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Images prioritaires (hero, logo) - styles pour performances */
.logo-header,
.hero img,
[data-priority="high"] {
    will-change: transform;
}

/* Préchargement des ressources critiques */
.preload-font {
    font-display: swap;
}

/* Optimisations Core Web Vitals */
.hero,
.events-hero {
    contain: layout style paint;
}

/* Classe pour éléments invisibles mais accessibles aux lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --color1: #000000;
    --color2: #ffffff;
    --color3: #3533CD;
    --color4: #04091a;
    --color5: #707070;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

html {
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.btn {
    border: 0;
    padding: .5rem 1rem;
    background: var(--color3);
    color: var(--color2);
    cursor: pointer;
    transition: all .5s;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--color2);
    color: var(--color3);
    box-shadow: 0 5px 15px rgba(53, 51, 205, 0.3);
    transform: translateY(-2px);
}

a .btn {
    color: var(--color2);
}



.btn2 {
    border: 0;
    padding: .5rem 1rem;
    background: var(--color5);
    color: var(--color2);
    cursor: pointer;
    transition: all .5s;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
}

.btn2:hover {
    background: var(--color2);
    color: var(--color5);
    box-shadow: 0 5px 15px rgba(112, 112, 112, 0.3);
    transform: translateY(-2px);
}

a .btn2 {
    color: var(--color2);
}


.btn1 {
    display: inline-block;
    background-color: var(--color3);
    color: var(--color2);
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn1:hover {
    background-color: var(--color2);
    color: var(--color3);
    box-shadow: 0 5px 15px rgba(53, 51, 205, 0.3);
    transform: translateY(-2px);
}





.blanc {
    color: var(--color2);
}

.red {
    color: var(--color3);
}

/* Section loading supprimée - pas d'animation de chargement */

/* Accueil */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero .heroD,
.hero .heroG {
    width: 50%;
    height: 100%;
}

.hero .heroD {
    background-image: url('../images/hero.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.hero .heroG {
    background: var(--color1);
    color: var(--color2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .heroG div {
    width: 80%;
}

.hero .heroG div h1 {
    font-size: 3rem;
}

.hero .heroG div .hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color3);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero .heroG div p {
    margin-top: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5rem;
}

.hero .logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--color2);
    font-size: 2rem;
    font-weight: 700;
}

.hero .socials {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.hero .socials ul {
    list-style: none;
    font-size: 1.5rem;
}

.hero .socials ul li {
    margin-left: 1rem;
    background: var(--color1);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 1.5rem;
}

.hero .socials ul li a {
    color: var(--color3);
    transition: color .5s;
}

.hero .socials ul li a:hover {
    color: var(--color2);
}

.hero .socials ul {
    display: flex;
}

/* Discord */
.discord {
    background: var(--color2);
    padding: 4rem 0;
    text-align: center;
}

.discord h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* RoadMap */
.roadmap {
    background: var(--color1);
    padding: 4rem 0;
    color: var(--color2);
}

.roadmap h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.roadmap .bloc {
    background: var(--color4);
    margin-bottom: 3rem;
    padding: 1rem;
    position: relative;
    margin-left: 2px;
}

.roadmap h4 {
    margin: 1rem 0;
}

.roadmap p {
    line-height: 1.5rem;
}

.roadmap .number {
    position: absolute;
    top: -1rem;
    left: calc(1rem - 1px);
    background: var(--color3);
    padding: 1rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roadmap .number.off {
    background: var(--color2);
    color: var(--color3);
}

.roadmap .container {
    position: relative;
}

.line {
    position: absolute;
    left: 3rem;
    height: 100%;
    width: 2px;
    background: var(--color3);
    top: 30px;
}

/* Team */
.team {
    padding: 4rem 0;
}

.team h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.team .partenaire {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team .member {
    width: 17%;
}

.team .member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team .member h4 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.team .member .job {
    color: var(--color5);
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
}

.partenaire {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo a {
    color: var(--color2);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Style pour le logo de taille appropriée dans le header */
.logo-header {
    height: 32px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-header:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    margin: 0 1rem;
}

.nav-menu ul li a {
    color: var(--color2);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--color3);
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--color3);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--color2);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Search Section */
.search-section {
    background: var(--color2);
    padding: 2rem 0;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input-container {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid var(--color3);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: var(--color2);
}

.search-input:focus {
    border-color: var(--color3);
    box-shadow: 0 0 20px rgba(53, 51, 205, 0.2);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color3);
    font-size: 1.2rem;
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-search:hover {
    color: var(--color3);
}

/* Events Styles */
.events-hero {
    background: linear-gradient(135deg, var(--color1) 0%, var(--color4) 100%);
    padding: 8rem 0 4rem 0;
    color: var(--color2);
    text-align: center;
}

.events-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.events-hero-content p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.event-filters {
    background: var(--color2);
    padding: 2rem 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--color3);
    background: transparent;
    color: var(--color3);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color3);
    color: var(--color2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(53, 51, 205, 0.3);
}

.location-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.location-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--color5);
    background: transparent;
    color: var(--color5);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.location-btn:hover,
.location-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.location-btn:not(.active):hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

/* Filtres de date - même style que les autres filtres */
.date-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.date-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--color5);
    background: transparent;
    color: var(--color5);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.date-btn:hover,
.date-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.date-btn:not(.active):hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* Styles pour le sélecteur de date précise */
.date-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.date-input {
    padding: 0.6rem 1.2rem !important;
    border: 2px solid var(--color5) !important;
    background: transparent !important;
    color: var(--color2) !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    min-width: 180px !important;
}

.date-input:focus {
    outline: none !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
    transition: filter 0.3s ease;
}

.date-input:focus::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(225deg) brightness(0.8);
}

.clear-date {
    padding: 0.6rem 1rem !important;
    border: 2px solid #ff6b6b !important;
    background: transparent !important;
    color: #ff6b6b !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    min-width: auto !important;
}

.clear-date:hover {
    background: #ff6b6b !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
}



.event-card {
    position: relative;
}

.events-calendar {
    padding: 4rem 0;
    background: var(--color1);
    color: var(--color2);
}

.events-calendar h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--color4);
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

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

.event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color3);
    color: var(--color2);
    padding: 0.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
    z-index: 2;
}



.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color2);
}

.event-location,
.event-time {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--color5);
    font-size: 0.9rem;
}

.event-location i,
.event-time i {
    margin-right: 0.5rem;
    color: var(--color3);
}

.event-description {
    margin: 1rem 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.event-tags {
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    background: var(--color3);
    color: var(--color2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

    .event-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-btn {
        margin-right: 0;
        width: 100%;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partners-hero-content h1 {
        font-size: 2rem;
    }
}

/* Bouton scroll vers le haut */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color3);
    color: var(--color2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--color2);
    color: var(--color3);
    transform: translateY(-3px);
}

/* Message aucun résultat */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--color4);
    border-radius: 15px;
    margin: 2rem 0;
}

.no-results-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--color3);
}

.no-results-message h3 {
    color: var(--color2);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results-message p {
    color: var(--color5);
    margin-bottom: 1.5rem;
}

/* Animation de recherche */
.search-input:focus + .search-icon {
    color: var(--color3);
    animation: pulse 2s infinite;
}

@keyframes searchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.search-icon.searching {
    animation: searchPulse 1s ease-in-out infinite;
}

/* Amélioration des tags */
.tag {
    background: linear-gradient(45deg, var(--color3), #5a58e8);
    box-shadow: 0 2px 8px rgba(53, 51, 205, 0.3);
}

/* États des filtres améliorés */
.filter-btn:not(.active):hover {
    background: rgba(53, 51, 205, 0.1);
    transform: translateY(-1px);
}

.location-btn:not(.active):hover {
    background: rgba(112, 112, 112, 0.1);
    transform: translateY(-1px);
}.btn-outline {
    background: transparent;
    border: 2px solid var(--color3);
    color: var(--color3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--color3);
    color: var(--color2);
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.suggest-event {
    background: var(--color2);
    padding: 4rem 0;
    text-align: center;
}

.suggest-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.suggest-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color5);
}

.newsletter {
    background: linear-gradient(135deg, var(--color3) 0%, #5a58e8 100%);
    padding: 4rem 0;
    color: var(--color2);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    border-radius: 30px;
    white-space: nowrap;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Messages de la newsletter - Style amélioré */
.newsletter-message {
    padding: 1.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    margin: 1rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: messageAppear 0.5s ease-out;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

/* Effet de brillance */
.newsletter-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.newsletter-message:hover::before {
    left: 100%;
}

/* Message de succès - Bleu Meet Party */
.newsletter-message.success {
    background: linear-gradient(135deg, rgba(11, 0, 172, 0.95), rgba(78, 205, 196, 0.85));
    color: white;
    border: 2px solid #0b00ac;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.newsletter-message.success::after {
    content: '🎉';
    font-size: 1.5em;
    margin-left: 0.5rem;
    display: inline-block;
    animation: bounce 0.6s ease-in-out;
}

/* Message d'erreur - Rouge élégant */
.newsletter-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 127, 0.8));
    color: white;
    border: 2px solid #ef4444;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.newsletter-message.error::after {
    content: '❌';
    font-size: 1.2em;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Message d'avertissement - Orange/Jaune */
.newsletter-message.warning {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.9), rgba(245, 158, 11, 0.8));
    color: white;
    border: 2px solid #f59e0b;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.newsletter-message.warning::after {
    content: '⚠️';
    font-size: 1.2em;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Message d'information - Bleu clair */
.newsletter-message.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(96, 165, 250, 0.8));
    color: white;
    border: 2px solid #3b82f6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.newsletter-message.info::after {
    content: 'ℹ️';
    font-size: 1.2em;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Animations pour les messages */
@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
        filter: blur(5px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    10% {
        transform: translateY(-5px) scale(1.1);
    }
    30% {
        transform: translateY(-3px) scale(1.05);
    }
    60% {
        transform: translateY(-2px) scale(1.02);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour l'apparition en fondu */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de secousse pour les erreurs */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-8px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(8px);
    }
}

/* Animation de pulsation pour attirer l'attention */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(11, 0, 172, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(11, 0, 172, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(11, 0, 172, 0);
    }
}

/* Animation des particules de succès */
@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(calc(var(--end-x) - var(--start-x, 0px)) / 2, calc(var(--end-y) - var(--start-y, 0px)) / 2) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--end-x) - var(--start-x, 0px)), calc(var(--end-y) - var(--start-y, 0px))) scale(0.5) rotate(360deg);
    }
}

/* Style pour les messages avec transition fluide */
.newsletter-message {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration de l'input newsletter */
.newsletter-form input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.newsletter-form input:invalid {
    border-color: #ef4444;
}

.newsletter-form input:valid {
    border-color: #22c55e;
}

/* Partners Hero */
.partners-hero {
    background: linear-gradient(135deg, var(--color1) 0%, var(--color4) 100%);
    padding: 8rem 0 4rem 0;
    color: var(--color2);
    text-align: center;
}

.partners-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.partners-hero-content p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
}

.contact-item .btn1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color3);
    color: var(--color2);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.contact-item .btn1:hover {
    background: var(--color2);
    color: var(--color3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(53, 51, 205, 0.3);
}

.contact-item .btn1 i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--color1);
    color: var(--color2);
    padding: 1rem 0;
}

.footer__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__flex ul {
    list-style: none;
}

.footer__flex ul {
    display: flex;
    list-style: none;
}

.footer__flex ul li {
    margin: 0 0.5rem;
}

.footer__flex ul li a {
    color: var(--color2);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer__flex ul li a:hover {
    color: var(--color3);
}

/* Styles pour les sélecteurs mobiles */
.mobile-filters {
    display: none;
}

/* Centrage des filtres desktop */
.centered-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Grille mobile 2x2 */
.filter-grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.select-wrapper label {
    font-weight: 600;
    color: var(--color3);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid var(--color5);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--color3);
    background: rgba(0, 0, 0, 0.7);
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 51, 205, 0.2);
}

.filter-select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.8rem;
    font-weight: 500;
}

/* Styles pour la modal des événements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(53, 51, 205, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color1);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(50px) scale(0.9);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--color1), rgba(53, 51, 205, 0.1));
}

.modal-header h3 {
    color: var(--color3);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color2);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    color: var(--color2);
}

.modal-date-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-date, .modal-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--color3);
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #22c55e;
}

.modal-description {
    margin-bottom: 2rem;
}

.modal-description h4 {
    color: var(--color3);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-description p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.modal-details {
    margin-bottom: 2rem;
}

.modal-details h4 {
    color: var(--color3);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item strong {
    color: var(--color3);
}

.modal-tags {
    margin-bottom: 2rem;
}

.modal-tags .tag {
    background: linear-gradient(135deg, var(--color3), #4338ca);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-share, .modal-directions {
    flex: 1;
    max-width: 200px;
}

.modal-directions {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Responsive pour la modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    /* Sur très petits écrans, revenir à 1 colonne */
    .filter-grid-mobile {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .select-wrapper label {
        font-size: 0.85rem;
    }
    
    .filter-select {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }
    
    .modal-header, .modal-body {
        padding: 1.5rem;
    }
    
    .modal-date-time {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-share, .modal-directions {
        max-width: none;
    }
}

/* Responsive */
@media all and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color1);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu ul li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Logo encore plus petit sur mobile */
    .logo-header {
        height: 28px;
        max-width: 70px;
    }

    .hero .heroD {
        display: none;
    }

    .hero .heroD,
    .hero .heroG {
        width: 100%;
        height: 100%;
    }

    .hero .heroG div h1 {
        font-size: 2rem;
    }

    .events-hero-content h1 {
        font-size: 2.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Masquer les boutons desktop sur mobile */
    .desktop-filters {
        display: none !important;
    }

    /* Afficher les sélecteurs mobiles */
    .mobile-filters {
        display: block !important;
    }
    
    /* Grille mobile responsive */
    .filter-grid-mobile {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .select-wrapper {
        margin-bottom: 0.5rem;
    }
    
    /* Styles mobiles pour le sélecteur de date précise */
    .date-picker-wrapper {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
    
    .date-input {
        background: var(--color4) !important;
        border: 2px solid var(--color3) !important;
        color: var(--color2) !important;
    }
    
    .clear-date {
        background: #ff6b6b !important;
        color: white !important;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .newsletter-form input {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .newsletter-consent {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 10px !important;
        margin: 1rem 0 1.5rem 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .newsletter-consent input[type="checkbox"] {
        align-self: center !important;
        margin: 0 0 0.5rem 0 !important;
    }
    
    .newsletter-consent label {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
        text-align: center !important;
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        cursor: pointer !important;
    }
    
    .newsletter-consent label a {
        color: var(--color3) !important;
        text-decoration: underline !important;
    }

    .search-input-container {
        margin: 0 1rem;
    }

    .partenaire {
        flex-direction: column;
    }

    .partenaire .member {
        margin-bottom: 3rem;
        width: 100%;
    }

    .partenaire .member:last-child {
        margin-bottom: 0;
    }

    .team .member {
        width: 100%;
    }

    .events-calendar {
        padding: 2rem 0;
    }

    .events-calendar h2 {
        font-size: 2rem;
    }
}

@media all and (max-width: 480px) {
    .events-hero {
        padding: 6rem 0 3rem 0;
    }

    .events-hero-content h1 {
        font-size: 2rem;
    }

    .newsletter-content h2,
    .suggest-content h2 {
        font-size: 2rem;
    }

    .event-content {
        padding: 1rem;
    }

    .event-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-btn {
        margin-right: 0;
        width: 100%;
    }
}

/* ========================================
   AMÉLIORATIONS RESPONSIVE COMPLÈTES
   ======================================== */

/* Améliorations section hero pour mobile */
@media all and (max-width: 768px) {
    
    /* Hero section plus responsive */
    .hero {
        min-height: 100vh;
        flex-direction: column;
    }
    
    .hero .heroG {
        padding: 2rem 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 60vh;
    }
    
    .hero .heroG div {
        width: 95%;
        text-align: center;
    }
    
    .hero .heroG div h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .heroG div p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* Sections principales responsive */
    .discord, .roadmap, .team, .newsletter {
        padding: 3rem 1rem;
    }
    
    /* Newsletter responsive spécifique */
    .newsletter {
        overflow: hidden;
    }
    
    .newsletter-content {
        max-width: 100%;
        overflow: hidden;
    }
    
    .discord h2, .roadmap h2, .team h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Roadmap responsive */
    .roadmap .bloc {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
        margin-left: 0;
    }
    
    .roadmap .number {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .line {
        display: none; /* Masquer la ligne sur mobile */
    }
    
    /* Team section responsive */
    .team .partenaire {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .team .member {
        width: 80%;
        max-width: 250px;
        text-align: center;
    }
    
    .team .member img {
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    /* Container responsive */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    /* Boutons responsive */
    .btn, .btn1, .btn2 {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem;
        width: auto;
        min-width: 120px;
    }
}

/* Améliorations pour très petits écrans (mobile portrait) */
@media all and (max-width: 480px) {
    
    .hero .heroG div h1 {
        font-size: 2rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .discord h2, .roadmap h2, .team h2 {
        font-size: 1.8rem;
    }
    
    .newsletter h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .btn, .btn1, .btn2 {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Réduction des marges sur très petits écrans */
    .discord, .roadmap, .team, .newsletter {
        padding: 2rem 0.5rem;
    }
    
    .roadmap .bloc {
        padding: 1rem;
    }
    
    .team .member {
        width: 95%;
    }
    
    /* Newsletter très petits écrans */
    .newsletter-form {
        padding: 0 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .newsletter-consent {
        font-size: 0.8rem !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .newsletter-consent label {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
}

/* Améliorations navbar responsive */
@media all and (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
        background: rgba(0, 0, 0, 0.95);
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        height: calc(100vh - 70px);
        z-index: 1000;
    }
    
    .nav-menu ul li {
        margin: 2rem 0;
    }
    
    .nav-menu ul li a {
        font-size: 1.2rem;
        padding: 1rem;
        color: white;
        transition: all 0.3s ease;
    }
    
    .nav-menu ul li a:hover {
        background: rgba(53, 51, 205, 0.2);
        border-radius: 5px;
    }
}

/* Améliorations générales responsive */
@media all and (max-width: 768px) {
    
    /* Typographie responsive */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    
    p, li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Espacements responsive */
    section {
        padding: 3rem 0;
    }
    
    /* Images responsive */
    img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
    }
    
    .logo-header {
        height: 35px;
        max-width: 90px;
    }
    
    /* Corrections spécifiques pour la page d'accueil */
    .hero .heroG div h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
        text-align: center;
    }
    
    .hero .heroG div .hero-subtitle {
        font-size: 1.1rem !important;
        text-align: center;
    }
    
    .hero .heroG div p {
        text-align: center;
        font-size: 0.95rem;
    }
    
    /* Améliorer l'espacement de la section discord */
    .discord {
        padding: 4rem 1rem;
        text-align: center;
    }
    
    .discord h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Améliorer les boutons sur mobile */
    .discord .btn, .team .btn, .roadmap .btn {
        display: inline-block;
        margin: 0.5rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Améliorations pour tablettes (768px à 1024px) */
@media all and (min-width: 769px) and (max-width: 1024px) {
    
    .container {
        max-width: 95%;
        padding: 0 2rem;
    }
    
    .hero .heroG div h1 {
        font-size: 3.5rem;
    }
    
    .team .member {
        width: 45%;
    }
    
    .roadmap .bloc {
        padding: 2rem;
    }
}

/* Optimisations pour les écrans haute résolution */
@media all and (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero .heroG div h1 {
        font-size: 4rem;
    }
}

/* Améliorations accessibilité responsive */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}