/* --- HEADER CONTACT (Image 2) --- */

/* Le conteneur principal pour créer de l'espace sur les côtés */
.main-wrapper {
    max-width: 1299px; /* Même largeur que ton accueil */
    margin: 0 auto;    /* Centre le bloc horizontalement */
    padding: 0 40px;   /* Ajoute une marge de sécurité interne */
}

/* On applique ce fond gris à toute la page */
body {
    background-color: #DBDBDB; 
    margin: 0;
    padding: 0;
}
.contact-header {
    padding: 40px 0;
    background-color: #DBDBDB; /* Fond clair comme le reste du site */
}

/* Alignement du header (Logo à gauche, liens à droite) */
.navbar-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #DBDBDB; /* Ton gris habituel */
}

/* Taille de ton logo PNG */
.nav-logo-img {
    height: 70px; /* Ajuste cette valeur si tu veux le logo plus gros ou plus petit */
    width: auto;
    display: block;
}

/* Espacement entre les boutons de droite */
.nav-links {
    display: flex;
    gap: 15px;
}

/* Style des boutons normaux (Contour prune) */
.navbar-contact .btn {
    text-decoration: none;
    font-family: 'DM Serif Display', serif;
    color: #000;
    padding: 10px 25px;
    border: 1.5px solid #4D3053;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s ease;
}

/* LE BOUTON CONTACT VIOLET (Grâce à la classe active) */
.navbar-contact .btn.active {
    background-color: #4D3053 !important;
    color: #FFFFFF !important;
    border: none;
}
.nav-links {
    display: flex;
    gap: 15px;
}

/* --- SECTION FORMULAIRE (Image 1) --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-top: 80px;
    margin-bottom: 100px;
    align-items: start;
}

.contact-info h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 400px;
}

.mail-link {
    font-weight: bold;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Styles des champs */
.form-group {
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #4D3053;
    margin-bottom: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    outline: none;
    font-family: 'DM Serif Display', serif;
}

/* Tags de sujet (Boutons radio stylisés) */
.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subject-tags input { display: none; }

.subject-tags label {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: white;
}

.subject-tags input:checked + label {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}


.btn-submit {
    /* Couleurs et Police */
    background-color: #6F5774; /* Le violet clair de tes boutons */
    color: white;
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    
    /* Forme et Taille */
    padding: 15px 40px;
    border-radius: 15px; /* Arrondi identique à "Qui suis-je ?" */
    border: none;
    
    /* L'effet d'ombre (important pour le relief) */
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    
    /* Alignement et curseur */
    cursor: pointer;
    display: block;
    transition: transform 0.2s, filter 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);

}
.contact-footer {
    background-color: #4D3053;
    padding: 30px 0; /* On enlève le padding latéral ici */
    border-radius: 22px 22px 0 0;
    margin-top: 80px;
    
    /* Ces lignes permettent de coller aux bords de l'écran */
    width: 100vw; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-container {
    /* On utilise ta largeur de référence pour le contenu à l'intérieur */
    width: 1299px; 
    max-width: 90%; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.footer-mail {
    font-weight: bold;
    color: white;
    text-decoration: none;
    /* Force le centrage parfait */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-link {
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

@media (max-width: 768px) {
    /* 1. On centre le logo et le menu sur mobile */
    .navbar-contact {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }

    /* 2. LA CAPSULE (Le contour prune fin qui entoure tous les boutons) */
    .nav-links {
        display: flex;
        flex-direction: row;      /* Force l'alignement horizontal */
        justify-content: center;
        align-items: center;
        border: 1.2px solid #4D3053; /* Contour fin comme ton image */
        border-radius: 50px;       /* Forme bien arrondie */
        padding: 4px;              /* Petit espace entre le bord et les boutons */
        background-color: transparent; 
        width: fit-content;        /* La capsule s'adapte à la largeur des boutons */
        margin: 0 auto;            /* Centre la capsule sur l'écran */
    }

    /* 3. LES BOUTONS INTERNES */
    .navbar-contact .btn {
        border: none !important;   /* On enlève les contours individuels */
        padding: 8px 16px;         /* Taille réduite pour tenir à l'intérieur */
        font-size: 0.85rem;        /* Texte un peu plus petit */
        margin: 0;
        border-radius: 40px;       /* Pour que le bouton "Projets" violet soit bien rond */
        white-space: nowrap;       /* Empêche le texte de revenir à la ligne */
    }

    /* 4. LE BOUTON ACTIF (Violet plein) */
    .navbar-contact .btn.active {
        background-color: #4D3053 !important;
        color: #FFFFFF !important;
    }
}