:root {
    /* Couleurs principales */
    --primary-red: #781E34;
    --dark-red: #5a1528;
    --light-red: #9a2b48;
    --accent-red: #b3415d;
    --soft-red: #d45d7c;

    /* Neutres */
    --white: #ffffff;
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #f5f5f5;
    --medium-gray: #999999;
    --dark-gray: #333333;
    --text-dark: #222222;
    --text-light: #666666;

    /* États */
    --success-color: #4caf50;
    --warning-color: #ff9800;

    /* Événements */
    --past-color: #9e9e9e;
    --upcoming-color: var(--primary-red);
    --online-color: var(--accent-red);
    --hybrid-color: var(--soft-red);

    /* Effets */
    --shadow: 0 5px 20px rgba(120, 30, 52, 0.1);
    --shadow-hover: 0 10px 30px rgba(120, 30, 52, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Styles pour le conteneur */
.container.section-padding {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: var(--pure-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-red);
    border: 1px solid rgba(120, 30, 52, 0.1);
}

/* Titre principal */
.container.section-padding h2 {
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.container.section-padding h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border-radius: 2px;
}

/* Formulaire */
.container.section-padding form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Groupes de formulaire */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Labels */
.form-label {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

/* Champs de saisie */
.form-control {
    padding: 16px 20px;
    border: 2px solid rgba(120, 30, 52, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--off-white);
    color: var(--text-dark);
    font-family: inherit;
    line-height: 1.5;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(179, 65, 93, 0.15);
    background: var(--pure-white);
}


.form-control::placeholder {
    color: var(--medium-gray);
    opacity: 0.8;
}

/* Champ description (textarea) */
.form-control[placeholder="Description de l'événement"] {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Champ date personnalisé */
.form-control[type="date"] {
    cursor: pointer;
    position: relative;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.form-control[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
}

/* Champ fichier personnalisé */
.form-control[type="file"] {
    padding: 14px 20px;
    cursor: pointer;
    position: relative;
}

.form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.form-control[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 21, 40, 0.2);
}

/* Messages d'erreur */
.text-danger {
    color: var(--accent-red) !important;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 12px 15px;
    background: rgba(179, 65, 93, 0.08);
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-danger::before {
    content: '⚠';
    font-weight: bold;
    color: var(--accent-red);
}

/* Bouton de soumission */
.btn.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    align-self: center;
    min-width: 250px;
    box-shadow: 0 6px 20px rgba(120, 30, 52, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.3px;
}

.btn.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    transition: var(--transition);
    z-index: -1;
}

.btn.btn-success:hover::before {
    width: 100%;
}

.btn.btn-success:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    letter-spacing: 0.5px;
}

.btn.btn-success:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(120, 30, 52, 0.2);
}

.btn.btn-success i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn.btn-success:hover i {
    transform: rotate(90deg) scale(1.1);
}

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

.container.section-padding {
    animation: fadeInUp 0.6s ease-out;
}

/* Animation pour les champs */
.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* Animation de pulsation pour le bouton */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(120, 30, 52, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(120, 30, 52, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(120, 30, 52, 0);
    }
}

.btn.btn-success {
    animation: pulse-red 3s infinite;
}

/* Style pour les champs invalides (après validation) */
.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--accent-red);
    background: rgba(179, 65, 93, 0.05);
}

/* Style pour les champs valides */
.form-control:valid:not(:focus):not(:placeholder-shown) {
    border-color: var(--success-color);
    background: rgba(76, 175, 80, 0.05);
}

/* Amélioration du focus pour l'accessibilité */
.form-control:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .container.section-padding {
        margin: 30px auto;
        padding: 25px;
        border-radius: 10px;
    }
    
    .container.section-padding h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .btn.btn-success {
        padding: 16px 30px;
        font-size: 1.1rem;
        min-width: 200px;
        width: 100%;
    }
    
    .form-control[type="file"]::file-selector-button {
        padding: 8px 16px;
        margin-right: 10px;
    }
    
    .btn.btn-success {
        animation: none; /* Désactive l'animation sur mobile */
    }
}

@media (max-width: 480px) {
    .container.section-padding {
        padding: 20px;
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .container.section-padding h2 {
        font-size: 1.7rem;
    }
    
    .form-label {
        font-size: 1rem;
    }
    
    .btn.btn-success {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .container.section-padding form {
        gap: 25px;
    }
}

/* Style pour le bouton désactivé */
.btn.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Effet de focus pour le bouton */
.btn.btn-success:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 4px;
}