/**
 * Styles personnalisés pour le module GCIR 2025 Inscription
 * Design moderne et attractif avec animations et images de fond
 */

/* Variables CSS personnalisées - Charte graphique GCIR */
:root {
    --primary-color: #5b87f7;
    --secondary-color: #f5c60c;
    --primary-gradient: linear-gradient(135deg, #5b87f7 0%, #4a7af5 100%);
    --secondary-gradient: linear-gradient(135deg, #f5c60c 0%, #f4b942 100%);
    --hero-gradient: linear-gradient(135deg, #5b87f7 0%, #f5c60c 100%);
    --success-gradient: linear-gradient(135deg, #5b87f7 0%, #4a7af5 100%);
    --warning-gradient: linear-gradient(135deg, #f5c60c 0%, #f4b942 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    --shadow-soft: 0 10px 30px rgba(91, 135, 247, 0.15);
    --shadow-hover: 0 15px 40px rgba(91, 135, 247, 0.25);
    --border-radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-bg: linear-gradient(
  135deg,
  rgba(91, 135, 247, 0.7) 0%,
  rgba(245, 198, 12, 0.6) 100%
);

}

/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Styles spécifiques pour la page d'export */
body:not(.hero-page) {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

/* Force le scroll pour toutes les pages sauf hero-page */
body.export-page,
body:not(.hero-page) {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Container pour la page d'export */
.container-fluid.min-vh-100 {
    min-height: 100vh !important;
    height: auto !important;
}

/* Force absolue pour la page d'export */
body.export-page {
    overflow: visible !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
}

body.export-page .container-fluid {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

body.export-page .container {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Hero Section - Plein écran avec image de fond */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-image: url('../../coffreImg/3.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.hide {
    display: none;
}

/* Particules flottantes */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(91, 135, 247, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(245, 198, 12, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(91, 135, 247, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(245, 198, 12, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(91, 135, 247, 0.7), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: floatParticles 20s linear infinite;
    z-index: 1;
}

@keyframes floatParticles {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInDown 1s ease-out 0.3s both;
    position: relative;
}

/* .hero-title::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--secondary-color);
    font-weight: 300;
} */

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: rgba(0, 0, 0, 0.3) 2px 2px 4px;
    margin-bottom: 1.5rem;
}

.theme-label {
    background: linear-gradient(135deg, #f5c60c, #ff9400);
    color: #2e2d2d;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(245, 198, 12, 0.3);
    animation: slideInUp 1s ease-out 0.9s both;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 1.2s both;
    margin-bottom: 50px;
}

.hero-cta {
    margin-top: 2.5rem;
    animation: slideInUp 1s ease-out 1.4s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #000000;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    font-size: 0.9rem;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-item i {
    font-size: 1rem;
}

/* Style pour le lien de l'hôtel */
.hotel-link {
    transition: all 0.3s ease;
    color: inherit;
}

.hotel-link:hover {
    color: var(--secondary-color) !important;
    text-shadow: 0 0 5px rgba(245, 198, 12, 0.5);
}

/* Style pour la popup de l'hôtel */
#hotelModal .modal-dialog {
    max-width: 400px;
}

#hotelModal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#hotelModal .modal-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 1rem 1rem 0 0;
    padding: 0.75rem 1rem;
}

#hotelModal .modal-title {
    font-size: 1rem;
    font-weight: 600;
}

#hotelModal .btn-close {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

#hotelModal .btn-close:hover {
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(346deg) brightness(90%) contrast(100%);
    transition: filter 0.2s ease;
}

#hotelModal .modal-body {
    padding: 1rem;
    background: white;
}

#hotelModal .modal-body img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour le carousel de l'hôtel */
#hotelCarousel {
    border-radius: 0.5rem;
    overflow: hidden;
}

#hotelCarousel .carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
}

#hotelCarousel .carousel-control-prev,
#hotelCarousel .carousel-control-next {
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.8;
}

#hotelCarousel .carousel-control-prev {
    left: 5px;
}

#hotelCarousel .carousel-control-next {
    right: 5px;
}

#hotelCarousel .carousel-control-prev:hover,
#hotelCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

#hotelCarousel .carousel-indicators {
    bottom: -10px;
    margin-bottom: 0;
}

#hotelCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    margin: 0 3px;
}

#hotelCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
}

/* Responsive pour la popup de l'hôtel */
@media (min-width: 1400px) {
    #hotelModal .modal-dialog {
        max-width: 500px;
    }
    
    #hotelCarousel .carousel-item img {
        height: 300px;
    }
    
    #hotelCarousel .carousel-control-prev,
    #hotelCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    #hotelCarousel .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    #hotelModal .modal-dialog {
        max-width: 90%;
        margin: 1rem;
    }
    
    #hotelModal .modal-content {
        border-radius: 0.75rem;
    }
    
    #hotelModal .modal-header {
        padding: 0.5rem 0.75rem;
        border-radius: 0.75rem 0.75rem 0 0;
    }
    
    #hotelModal .modal-title {
        font-size: 0.9rem;
    }
    
    #hotelModal .modal-body {
        padding: 0.75rem;
    }
    
    #hotelCarousel .carousel-item img {
        height: 180px;
    }
    
    #hotelCarousel .carousel-control-prev,
    #hotelCarousel .carousel-control-next {
        width: 25px;
        height: 25px;
    }
    
    #hotelCarousel .carousel-indicators button {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    #hotelModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
    }
    
    #hotelModal .modal-header {
        padding: 0.4rem 0.6rem;
    }
    
    #hotelModal .modal-title {
        font-size: 0.85rem;
    }
    
    #hotelModal .modal-body {
        padding: 0.5rem;
    }
    
    .hotel-link {
        font-size: 0.9rem;
    }
    
    #hotelCarousel .carousel-item img {
        height: 150px;
    }
    
    #hotelCarousel .carousel-control-prev,
    #hotelCarousel .carousel-control-next {
        width: 20px;
        height: 20px;
    }
    
    #hotelCarousel .carousel-indicators button {
        width: 5px;
        height: 5px;
    }
}

/* Bouton CTA dans le hero */


.cta-button {
    background: var(--primary-gradient);
    border: none;
    /* padding: 0.75rem 1.5rem; */
    font-size: 10px;
    font-weight: 600;
    border-radius: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 8px 25px rgba(91, 135, 247, 0.3);
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

.cta-button::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.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(91, 135, 247, 0.4);
    color: white;
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Bouton WhatsApp */
.whatsapp-button {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    /* padding: 0.75rem 1.5rem; */
    font-size: 10px;
    font-weight: 600;
    border-radius: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    text-decoration: none;
}

.whatsapp-button::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.5s;
}

.whatsapp-button:hover::before {
    left: 100%;
}

.whatsapp-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Bouton Affiche GCIR */
.gcir-poster-button {
    background: linear-gradient(135deg, #f5c60c 0%, #ff7b54 50%, #5b87f7 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    /* padding: 0.75rem 1.8rem; */
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.gcir-poster-button i {
    font-size: 1.1rem;
}

.gcir-poster-button:hover {
    color: #fff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Bouton Opportunité */
.project-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.project-button::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.5s;
}

.project-button:hover::before {
    left: 100%;
}

.project-button i {
    font-size: 1.1rem;
}

.project-button:hover {
    color: #fff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, #ff5252 0%, #e63946 50%, #b83b5e 100%);
    text-decoration: none;
}

.project-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Bouton Financement */
.financement-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.financement-button::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.5s;
}

.financement-button:hover::before {
    left: 100%;
}

.financement-button i {
    font-size: 1.1rem;
}

.financement-button:hover {
    color: #fff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    text-decoration: none;
}

.financement-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Registration Section - Remplace complètement le hero */
.registration-section {
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    z-index: 1000;
    overflow-y: auto;
}

.registration-section.show {
    display: block;
}

.registration-section .container {
    padding: 2rem 0;
}

.registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.8));
    z-index: 1;
}

.registration-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    z-index: 2;
    animation: slideInUp 1s ease-out;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.card-header {
    background: transparent;
    color: white;
    padding: 0;
    margin: 0;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-header img {
    width: 100%;
    height: 200px;
    object-fit: fill;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

/* .card-header .card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem 1.5rem 1.5rem;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
} */

/* .card-header .card-subtitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 0.5rem 1.5rem 1.5rem;
    margin: 0;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-size: 0.9rem;
} */

.back-to-hero-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.back-to-hero-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
} */

.card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

/* Form styling */
.registration-form {
    padding: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.form-floating {
    position: relative;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    color: #5e5e5e;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 0.2rem rgba(91, 135, 247, 0.25),
        0 0 20px rgba(91, 135, 247, 0.3);
    background: white;
    transform: translateY(-3px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus + label {
    color: var(--primary-color);
    transform: translateY(-5px) scale(0.9);
}

/* Styles pour les champs select */
.form-control select {
    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='%23667eea' 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 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-control select:focus {
    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='%235b87f7' 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");
}

.form-floating > label {
    color: #6c757d;
    font-weight: 500;
}

.form-floating > label i {
    color: var(--primary-color);
}

/* Style pour les champs optionnels */
.form-floating > label.optional {
    color: #6c757d;
    font-style: italic;
}

/* Participation Cards */
.participation-card {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    background: white;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Payment Section */
#paymentSection {
    transition: all 0.5s ease-out;
}

/* Payment Details - Design simple et élégant */
.payment-details {
    margin-top: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.payment-details .payment-info {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.payment-details .payment-info h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-details .payment-info h5 i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.payment-details .payment-info .info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.payment-details .payment-info .info-item:last-child {
    border-bottom: none;
}

.payment-details .payment-info .info-item .label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    margin-right: 1rem;
}

.payment-details .payment-info .info-item .value {
    color: #212529;
    flex: 1;
}

.payment-details .payment-info .note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Payment Cards */
.payment-card {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    background: white;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.participation-card:hover,
.payment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.participation-card h5,
.payment-card h5 {
    margin: 0.25rem 0 0.125rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.participation-card p,
.payment-card p {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Styles pour les cartes sélectionnées */
.participation-card.selected,
.payment-card.selected {
    background: var(--primary-gradient);
    border-color: #667eea;
    color: white;
}

.participation-card.selected h5,
.payment-card.selected h5 {
    color: white;
}

.participation-card.selected p,
.payment-card.selected p {
    color: white;
}

.participation-card.selected i,
.payment-card.selected i {
    color: white;
}

/* Ticket Cards */
.ticket-section {
    text-align: center;
}

.ticket-section .row {
    justify-content: center;
}

/* Participation Cards */
.participation-section {
    text-align: center;
}

.participation-section .row {
    justify-content: center;
}

.ticket-card {
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.ticket-option {
    height: 100%;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    transition: var(--transition);
    background: white;
    position: relative;
    overflow: hidden;
}

.ticket-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.ticket-card:hover .ticket-option::before {
    left: 100%;
}

.ticket-option:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    border-color: var(--primary-color);
    box-shadow: 
        0 20px 40px rgba(91, 135, 247, 0.3),
        0 0 30px rgba(91, 135, 247, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ticket-header {
    text-align: center;
    padding: 1rem 0.75rem 0.75rem 0.75rem;
    position: relative;
}

.ticket-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition);
}

.ticket-card:hover .ticket-header i {
    transform: scale(1.1) rotate(5deg);
}

.ticket-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ticket-price {
    font-size: 1rem;
    font-weight: 600;
    /* color: #28a745; */
    background: rgba(40, 167, 84, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1.5rem;
    display: inline-block;
}

.ticket-features {
    list-style: none;
    padding: 0 0.75rem 1rem 0.75rem;
    margin: 0;
}

.ticket-features li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    /* color: #6c757d; */
}

/* Styles pour les éléments des cartes sélectionnées - avec !important pour surcharger */
.ticket-card.selected .ticket-option .ticket-features li {
    color: white !important;
    font-weight: 500 !important;
}

.ticket-card.selected .ticket-option .ticket-features i {
    color: white !important;
    font-weight: bold !important;
}

.ticket-card.selected .ticket-option .ticket-header h4 {
    color: white !important;
    font-weight: 700 !important;
}

.ticket-card.selected .ticket-option .ticket-header i {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
}

.ticket-card.selected .ticket-option .ticket-price {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Couleurs spécifiques pour chaque type de ticket - Charte graphique GCIR */
/* Ticket Argent - Couleur primaire bleue */
.ticket-card[for="argent"] .ticket-header i {
    color: var(--primary-color) !important;
}

.ticket-card[for="argent"].selected .ticket-header i {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
}

.ticket-card[for="argent"]:hover .ticket-header i {
    color: #4a7af5 !important;
}

/* Ticket Or - Couleur secondaire jaune */
.ticket-card[for="or"] .ticket-header i {
    color: var(--secondary-color) !important;
}

.ticket-card[for="or"].selected .ticket-header i {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
}

.ticket-card[for="or"]:hover .ticket-header i {
    color: #f4b942 !important;
}

/* Ticket Diamant - Dégradé des deux couleurs */
.ticket-card[for="diamant"] .ticket-header i {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ticket-card[for="diamant"].selected .ticket-header i {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
}

.ticket-card[for="diamant"]:hover .ticket-header i {
    background: linear-gradient(135deg, #4a7af5 0%, #f4b942 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ticket-features i {
    color: #28a745;
    font-size: 0.8rem;
}

/* Buttons */
.submit-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: white;
}

.submit-btn::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.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(102, 126, 234, 0.3);
}

.form-note {
    margin-top: 0.75rem;
    color: #6c757d;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    /* border-left: 4px solid; */
    /* animation: slideInDown 0.5s ease-out; */
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left-color: #b7efc4;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left-color: #dc3545;
}

/* Footer */
.footer {
    background: rgba(48, 48, 48, 0.9);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive - Écrans très larges */
@media (min-width: 1400px) {
    .hero-title {
        font-size: clamp(4rem, 6vw, 5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(2rem, 3vw, 2.5rem);
    }
    
    .hero-description {
        font-size: clamp(1.5rem, 2vw, 1.8rem);
    }
    
    .container {
        max-width: 1320px;
    }
    
    .registration-card {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    /* Centrage des cartes de tickets sur très grands écrans */
    .ticket-section {
        text-align: center;
    }
    
    .ticket-section .row {
        justify-content: center;
    }
    
    /* Centrage des cartes de participation sur très grands écrans */
    .participation-section {
        text-align: center;
    }
    
    .participation-section .row {
        justify-content: center;
    }
    
    .ticket-option {
        min-height: 350px;
    }
    
    .ticket-header i {
        font-size: 2.5rem;
    }
    
    .ticket-header h4 {
        font-size: 1.5rem;
    }
    
    .ticket-price {
        font-size: 1.2rem;
    }
    
    .ticket-features li {
        font-size: 1rem;
    }
}

/* Responsive - Écrans larges */
@media (max-width: 1200px) and (min-width: 993px) {
    .hero-title {
        font-size: clamp(3.5rem, 5vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.8rem, 3vw, 2rem);
    }
    
    .hero-description {
        font-size: clamp(1.3rem, 2vw, 1.5rem);
    }
    
    /* Centrage des cartes de tickets sur écrans larges */
    .ticket-section {
        text-align: center;
    }
    
    .ticket-section .row {
        justify-content: center;
    }
    
    /* Centrage des cartes de participation sur écrans larges */
    .participation-section {
        text-align: center;
    }
    
    .participation-section .row {
        justify-content: center;
    }
    
    .ticket-option {
        min-height: 320px;
    }
}

/* Responsive - Tablettes */
@media (max-width: 992px) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
    
    .hero-description {
        font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Colonnes en pleine largeur sur tablette */
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Amélioration des cartes de tickets sur tablette */
    .ticket-section {
        text-align: center;
    }
    
    .ticket-section .row {
        justify-content: center;
    }
    
    /* Centrage des cartes de participation sur tablette */
    .participation-section {
        text-align: center;
    }
    
    .participation-section .row {
        justify-content: center;
    }
    
    .ticket-card {
        margin-bottom: 1.5rem;
    }
    
    .ticket-option {
        min-height: 280px;
    }
    
    /* Amélioration des cartes de participation */
    .participation-card,
    .payment-card {
        min-height: 120px;
    }
    
    /* Amélioration du formulaire */
    .form-section {
        padding: 1.25rem;
    }
    
    .registration-form {
        padding: 1.25rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        padding: 0 1rem;
    }
    
    .theme-label {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        padding: 0.15rem 0.4rem;
        line-height: 1.4;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-cta {
        margin-top: 3rem;
    }
    
    .cta-button,
    .whatsapp-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        margin: 0.25rem 0;
    }
    
    .back-to-hero-btn {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-width: none;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .registration-form {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1.25rem;
    }
    
    /* Responsive pour les rows */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Colonnes en pleine largeur sur mobile */
    .col-lg-8,
    .col-lg-10 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Exception pour les cartes de participation - garder côte à côte sur mobile */
    .participation-section {
        text-align: center;
    }
    
    .participation-section .row {
        justify-content: center;
    }
    
    .participation-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0.5rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* Exception pour les cartes de tickets - garder côte à côte sur mobile */
    .ticket-section {
        text-align: center;
    }
    
    .ticket-section .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        justify-content: center;
    }
    
    .ticket-section .col-md-4 {
        flex: 0 0 32%;
        max-width: 32%;
        margin-bottom: 0.5rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .ticket-option {
        margin-bottom: 1rem;
        min-height: 280px;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .ticket-header {
        padding: 0.5rem 0.3rem 0.3rem 0.3rem;
    }
    
    .ticket-header i {
        font-size: 1.2rem;
    }
    
    .ticket-header h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .ticket-price {
        font-size: 0.8rem;
        padding: 0.15rem 0.4rem;
    }
    
    .ticket-features {
        padding: 0 0.3rem 0.5rem 0.3rem;
    }
    
    .ticket-features li {
        font-size: 0.75rem;
        padding: 0.1rem 0;
        line-height: 1.3;
    }
    
    /* Afficher toutes les fonctionnalités sur mobile */
    .ticket-features li {
        display: block;
    }
    
    .participation-card,
    .payment-card {
        min-height: 100px;
        padding: 0.75rem;
    }
    
    .participation-card h5,
    .payment-card h5 {
        font-size: 0.9rem;
        margin: 0.2rem 0 0.1rem 0;
    }
    
    .participation-card p,
    .payment-card p {
        font-size: 0.75rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Footer responsive */
    .footer .row {
        text-align: center;
    }
    
    .footer .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Amélioration des détails de paiement sur mobile */
    .payment-details .payment-info {
        padding: 1rem;
    }
    
    .payment-details .payment-info h5 {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .payment-details .payment-info .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .payment-details .payment-info .info-item .label {
        min-width: auto;
        margin-right: 0;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .payment-details .payment-info .note {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* Responsive - Très petits écrans */
@media (max-width: 576px) {
    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.2rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 5vw, 1.2rem);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: clamp(0.8rem, 4vw, 1rem);
        padding: 0 0.5rem;
        line-height: 1.3;
    }
    
    .hero-logo {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-logo img {
        width: 120px;
        height: 120px;
    }
    
    .stat-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        max-width: 250px;
    }
    
    /* .card-title {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    } */
    
    .section-title {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .form-control {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 0.8rem 0.75rem;
    }
    
    /* Padding réduit pour très petits écrans */
    .registration-form {
        padding: 0.5rem;
    }
    
    .form-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    /* Cartes de tickets - garder côte à côte même sur très petits écrans */
    .ticket-section {
        text-align: center;
    }
    
    .ticket-section .row {
        margin-left: -0.2rem;
        margin-right: -0.2rem;
        justify-content: center;
    }
    
    .ticket-section .col-md-4 {
        flex: 0 0 32%;
        max-width: 32%;
        margin-bottom: 0.5rem;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
    
    .ticket-card {
        margin-bottom: 0.5rem;
    }
    
    .ticket-option {
        min-height: 250px;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .ticket-header {
        padding: 0.4rem 0.3rem 0.3rem 0.3rem;
    }
    
    .ticket-header i {
        font-size: 1.1rem;
    }
    
    .ticket-header h4 {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }
    
    .ticket-price {
        font-size: 0.75rem;
        padding: 0.1rem 0.3rem;
    }
    
    .ticket-features {
        padding: 0 0.3rem 0.4rem 0.3rem;
    }
    
    .ticket-features li {
        font-size: 0.7rem;
        padding: 0.05rem 0;
        line-height: 1.2;
    }
    
    /* Afficher toutes les fonctionnalités sur petits écrans */
    .ticket-features li {
        display: block;
    }
    
    /* Boutons plus petits */
    .cta-button,
    .whatsapp-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        max-width: 250px;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Payment details responsive */
    .payment-details .payment-info {
        padding: 0.8rem;
    }
    
    .payment-details .payment-info h5 {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .payment-details .payment-info .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.4rem 0;
    }
    
    .payment-details .payment-info .info-item .label {
        min-width: auto;
        margin-right: 0;
        font-size: 0.85rem;
    }
    
    .payment-details .payment-info .info-item .value {
        font-size: 0.9rem;
    }
    
    .payment-details .payment-info .note {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    /* Amélioration des cartes de participation et paiement */
    .participation-card,
    .payment-card {
        min-height: 90px;
        padding: 0.6rem;
    }
    
    .participation-card h5,
    .payment-card h5 {
        font-size: 0.85rem;
        margin: 0.15rem 0 0.1rem 0;
    }
    
    .participation-card p,
    .payment-card p {
        font-size: 0.7rem;
    }
    
    .participation-card i,
    .payment-card i {
        font-size: 1.2rem;
    }
}

/* Amélioration de l'accessibilité */
.form-control:focus,
.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* États de chargement */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Effet de particules flottantes */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

/* Amélioration des cartes de tickets */
.ticket-card.selected .ticket-option {
    border-color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(91, 135, 247, 0.8), rgba(91, 135, 247, 0.9));
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.ticket-card.selected .ticket-option::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}


/* Style pour les messages de validation */
.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #dc3545;
}

/* Animation de célébration */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(odd) {
    background: var(--secondary-color);
    animation-delay: -0.5s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Animation de succès */
.success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animations pour le compteur dynamique */
#participantsCount {
    transition: all 0.3s ease;
    display: inline-block;
}

#participantsCount.updating {
    animation: counterUpdate 0.8s ease-out;
}

@keyframes counterUpdate {
    0% { 
        transform: scale(1);
        color: inherit;
    }
    25% { 
        transform: scale(1.1);
        color: var(--secondary-color);
    }
    50% { 
        transform: scale(1.05);
        color: var(--primary-color);
    }
    100% { 
        transform: scale(1);
        color: var(--secondary-color);
    }
}

/* Amélioration des transitions */
* {
    transition: var(--transition);
}

/* Style pour les icônes des tickets */
.ticket-option .fas {
    transition: var(--transition);
}

.ticket-card:hover .ticket-option .fas {
    transform: scale(1.1) rotate(5deg);
}

/* Popup de succès simplifiée */
.success-modal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.success-modal .modal-header {
    background: transparent;
    border: none;
    padding: 0.8rem 0.8rem 0 0.8rem;
    position: relative;
}

.success-modal .modal-header .btn-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(247, 65, 65, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.success-modal .modal-header .btn-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.success-modal .modal-header .btn-close::before {
    content: '×';
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
}

.success-modal .modal-body {
    background: white;
}

.success-modal .success-icon {
    font-size: 3rem;
    color: #28a745;
    animation: gentlePulse 3s ease-in-out infinite;
}

.participants-count {
    display: flex;
    justify-content: center;
}

.count-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(91, 135, 247, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.count-badge i {
    font-size: 1rem;
}

.social-links .social-btn {
    border-radius: 0.6rem;
    padding: 0.5rem 0.7rem;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.social-links .social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.social-links .social-btn i {
    font-size: 0.9rem;
    margin-right: 0.3rem;
}

/* Animation pour l'icône de succès */
@keyframes gentlePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive pour la popup de succès */
@media (max-width: 768px) {
    .success-modal .modal-content {
        max-width: 350px;
    }
    
    .success-modal .modal-header {
        padding: 0.6rem 0.6rem 0 0.6rem;
    }
    
    .success-modal .modal-header .btn-close {
        top: 8px;
        right: 9px;
        width: 10px;
        height: 10px;
    }
    
    .success-modal .modal-header .btn-close::before {
        font-size: 0.9rem;
    }
    
    .success-modal .modal-body {
        padding: 1rem;
    }
    
    .success-modal .success-icon {
        font-size: 2.5rem;
    }
    
    .count-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .social-links .social-btn {
        /* padding: 0.4rem 0.5rem;
        font-size: 0.8rem; */
    }
    
    .social-links .social-btn i {
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    .hero-section {
        background: white !important;
    }
    
    .registration-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .submit-btn {
        display: none;
    }
}
/* Améliorations pour les tableaux et la page d'export */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-responsive table {
    margin-bottom: 0;
}

.table-responsive tr {
        font-size: 12px;
    transition: background-color 0.2s ease;
}

.table-responsive tr:hover {
    background-color: rgba(91, 135, 247, 0.05);
}

.table-responsive th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.75rem 0.5rem;
    border: none;
    text-align: center;
}

.table-responsive td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
}

.table-responsive .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

/* Responsive pour les tableaux */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.4rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .table-responsive .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Masquer certaines colonnes sur mobile */
    .table-responsive th:nth-child(4),
    .table-responsive td:nth-child(4),
    .table-responsive th:nth-child(5),
    .table-responsive td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 576px) {
    .table-responsive th,
    .table-responsive td {
        padding: 0.3rem 0.2rem;
        font-size: 0.65rem;
    }
    
    .table-responsive .badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.3rem;
    }
    
    /* Masquer plus de colonnes sur très petits écrans */
    .table-responsive th:nth-child(3),
    .table-responsive td:nth-child(3),
    .table-responsive th:nth-child(6),
    .table-responsive td:nth-child(6),
    .table-responsive th:nth-child(7),
    .table-responsive td:nth-child(7) {
        display: none;
    }
}

/* Améliorations pour les cartes de statistiques */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: transparent;
    color: white;
    border: none;
    border-radius: 0.75rem 0.75rem 0 0;
    /* padding: 1rem 1.5rem; */
}

.card-body {
    padding: 1.5rem;
}

/* Responsive pour les cartes */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0;
    }
    
    .card-header img {
        height: 180px;
        margin: 0;
        padding: 0;
    }
    
    /* .card-header .card-title {
        padding: 1.5rem 1rem 1rem;
        font-size: 1.1rem;
    } */
    
    /* .card-header .card-subtitle {
        padding: 0.5rem 1rem 1rem;
        font-size: 0.8rem;
    } */
    
    .card-header h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0;
    }
    
    .card-header img {
        height: 150px;
        margin: 0;
        padding: 0;
    }
    
    /* .card-header .card-title {
        padding: 1rem 0.8rem 0.8rem;
        font-size: 1rem;
    } */
    
    /* .card-header .card-subtitle {
        padding: 0.3rem 0.8rem 0.8rem;
        font-size: 0.75rem;
    } */
    
    .card-header h5 {
        font-size: 0.9rem;
    }
    
    .back-to-hero-btn {
        position: absolute;
        top: 0.3rem;
        left: 0.3rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 1rem;
    }
}

/* Améliorations pour les filtres */
.form-select,
.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(91, 135, 247, 0.25);
}

/* Responsive pour les filtres */
@media (max-width: 768px) {
    .form-select,
    .form-control {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .form-select,
    .form-control {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
}

/* Améliorations pour la pagination */
.pagination {
    justify-content: center;
    margin: 1.5rem 0;
}

.page-link {
    border: none;
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    margin: 0 0.2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive pour la pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        margin: 0.1rem;
    }
}

@media (max-width: 576px) {
    .page-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .page-link span {
        display: none;
    }
    
    .page-link i {
        font-size: 0.7rem;
    }
}

/* Améliorations pour les écrans en mode paysage */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
        margin-bottom: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        margin-bottom: 0.25rem;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-cta {
        margin-top: 2rem;
    }
    
    .cta-button,
    .whatsapp-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Améliorations pour les très petits écrans en mode portrait */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.6rem, 12vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 6vw, 1rem);
    }
    
    .hero-description {
        font-size: clamp(0.7rem, 5vw, 0.9rem);
    }
    
    .theme-label {
        font-size: clamp(0.7rem, 5vw, 0.9rem);
        padding: 0.1rem 0.3rem;
    }
    
    .hero-logo {
        font-size: 1.8rem;
    }
    
    .hero-logo img {
        width: 100px;
        height: 100px;
    }
    
    .stat-item {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        max-width: 220px;
    }
    
    .cta-button,
    .whatsapp-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        max-width: 220px;
    }
    
    .registration-form {
        padding: 0.4rem;
    }
    
    .form-section {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    /* Cartes de tickets - maintenir côte à côte même sur très petits écrans */
    .ticket-section {
        text-align: center;
    }
    
    .ticket-section .row {
        margin-left: -0.15rem;
        margin-right: -0.15rem;
        justify-content: center;
    }
    
    .ticket-section .col-md-4 {
        flex: 0 0 31%;
        max-width: 31%;
        margin-bottom: 0.3rem;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }
    
    .ticket-option {
        min-height: 220px;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .ticket-header {
        padding: 0.25rem 0.15rem 0.15rem 0.15rem;
    }
    
    .ticket-header i {
        font-size: 0.9rem;
    }
    
    .ticket-header h4 {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
    }
    
    .ticket-price {
        font-size: 0.6rem;
        padding: 0.05rem 0.2rem;
    }
    
    .ticket-features {
        padding: 0 0.15rem 0.3rem 0.15rem;
    }
    
    .ticket-features li {
        font-size: 0.65rem;
        padding: 0.02rem 0;
        line-height: 1.2;
    }
    
    /* Afficher toutes les fonctionnalités sur très petits écrans */
    .ticket-features li {
        display: block;
    }
    
    .participation-card,
    .payment-card {
        min-height: 80px;
        padding: 0.5rem;
    }
    
    .participation-card h5,
    .payment-card h5 {
        font-size: 0.8rem;
    }
    
    .participation-card p,
    .payment-card p {
        font-size: 0.65rem;
    }
    
    .participation-card i,
    .payment-card i {
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Améliorations pour l'accessibilité tactile */
@media (hover: none) and (pointer: coarse) {
    .ticket-card,
    .participation-card,
    .payment-card {
        min-height: 60px;
        padding: 1rem;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .page-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Améliorations pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-attachment: scroll; /* Améliore les performances sur mobile */
    }
    
    .ticket-header i,
    .participation-card i,
    .payment-card i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Améliorations pour les navigateurs qui supportent les unités viewport */
@supports (height: 100dvh) {
    .hero-section {
        height: 100dvh;
    }
    
    .registration-section {
        height: 100dvh;
    }
}

/* Améliorations pour les navigateurs qui supportent les unités viewport dynamiques */
@supports (height: 100svh) {
    .hero-section {
        height: 100svh;
    }
    
    .registration-section {
        height: 100svh;
    }
}

/* Classes utilitaires pour le JavaScript */
.mobile-mode {
    --animation-duration: 0.2s;
}

.desktop-mode {
    --animation-duration: 0.3s;
}

.landscape-mode .hero-stats {
    flex-direction: row;
    gap: 0.5rem;
}

.landscape-mode .stat-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.touch-device .ticket-card,
.touch-device .participation-card,
.touch-device .payment-card {
    min-height: 60px;
    padding: 1rem;
    pointer-events: auto;
    z-index: 2;
    position: relative;
}

/* Styles spécifiques pour les cartes de participation et paiement sur mobile */
@media (max-width: 768px) {
    .participation-card,
    .payment-card {
        pointer-events: auto;
        z-index: 2;
        position: relative;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(91, 135, 247, 0.2);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .participation-card:active,
    .payment-card:active {
        transform: scale(0.98);
        background-color: rgba(91, 135, 247, 0.1);
    }
    
    /* S'assurer que les inputs radio sont accessibles */
    .participation-card input[type="radio"],
    .payment-card input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    
    /* Améliorer la visibilité de la sélection */
    .participation-card.selected,
    .payment-card.selected {
        background: var(--primary-gradient) !important;
        border-color: #667eea !important;
        color: white !important;
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(91, 135, 247, 0.3);
    }
}

.high-dpi .hero-section {
    background-attachment: scroll;
}

/* Améliorations pour les 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;
}

/* Améliorations pour l'impression */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
        height: auto !important;
    }
    
    .hero-overlay {
        display: none !important;
    }
    
    .registration-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .submit-btn,
    .cta-button,
    .whatsapp-button {
        display: none !important;
    }
    
    .ticket-card,
    .participation-card,
    .payment-card {
        border: 1px solid #dee2e6 !important;
        break-inside: avoid;
    }
    
    .table-responsive {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Améliorations pour les modes sombres (si supporté) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #6c8ef7;
        --secondary-color: #f7d047;
    }
    
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .form-control {
        background-color: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .form-control:focus {
        background-color: #2d3748;
        border-color: var(--primary-color);
    }
}

/* Améliorations pour les utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        animation: none !important;
    }
    
    .floating-particles {
        display: none !important;
    }
}
