/* =============================================
   FORMULAIRE DE CONTACT - VERSION FINALE POUR MAKUPS
   ============================================= */

 /* Conteneurs principaux */
.conteneur-principal-new {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.sous-conteneur-new {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Titre en bleu et plus petit */
.sous-conteneur-new h1 {
    color: #4a90e2;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
    padding-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
    border-bottom: 2px solid #4a90e2;
}

/* Formulaire centré */
.sous-conteneur-new form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Tous les div de champ (cible les styles en ligne existants) */
.sous-conteneur-new div[style*="margin-bottom"] {
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px !important;
}

/* Tous les labels (cible les styles en ligne existants) */
.sous-conteneur-new label[style*="display: block"] {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

/* Tous les inputs et textarea (cible les styles en ligne existants) */
.sous-conteneur-new input[style*="width: 100%"],
.sous-conteneur-new textarea[style*="width: 100%"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d8e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #fdfdff;
    color: #2c3e50;
    box-sizing: border-box;
}

.sous-conteneur-new input[style*="width: 100%"]:focus,
.sous-conteneur-new textarea[style*="width: 100%"]:focus {
    border-color: #4a90e2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    background-color: white;
}

/* Textarea spécifique */
.sous-conteneur-new textarea[style*="resize: vertical"] {
    min-height: 140px;
    line-height: 1.5;
}

/* Conteneur des boutons */
.sous-conteneur-new div[style*="display: flex"] {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    flex-wrap: wrap;
}

/* Boutons */
.sous-conteneur-new .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    flex: 1;
    min-width: 150px;
}

.sous-conteneur-new .btn:first-of-type {
    background-color: #6c757d;
    color: white;
}

.sous-conteneur-new .btn:last-of-type {
    background-color: #007bff;
    color: white;
}

.sous-conteneur-new .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sous-conteneur-new .btn i {
    margin-right: 5px;
}

/* Alertes (success et error) */
.sous-conteneur-new div[style*="margin: 20px 0"] {
    padding: 12px 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    max-width: 500px;
    margin: 20px auto !important;
    animation: fadeIn 0.5s ease;
}

.sous-conteneur-new div[style*="background-color: #d4edda"] {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sous-conteneur-new div[style*="background-color: #f8d7da"] {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Footer */
.footer {
    padding: 20px 0;
    background-color: #2c3e50;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 18px;
    margin: 10px 0;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #4a90e2;
    transform: translateY(-2px);
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .sous-conteneur-new {
        padding: 20px;
    }

    .sous-conteneur-new div[style*="display: flex"] {
        flex-direction: column;
    }

    .sous-conteneur-new .btn {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
}

/* Adaptation pour très petits écrans */
@media (max-width: 480px) {
    .sous-conteneur-new h1 {
        font-size: 1.4em;
    }

    .conteneur-principal-new {
        padding: 10px;
    }

    .sous-conteneur-new input[style*="width: 100%"],
    .sous-conteneur-new textarea[style*="width: 100%"] {
        padding: 10px 12px;
        font-size: 15px;
    }
}