/* contact.css */


body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background-blend-mode: overlay;

    background:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
        url('../img/background_contact_light.webp') center/cover no-repeat fixed;
}

/* Fallback AVIF */
@supports (background-image: url('../img/background_contact_light.avif')) {
    body {
        background:
            linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
            url('../img/background_contact_light.avif') center/cover no-repeat fixed;
    }
}

/* Fallback JPG */
body.no-webp {
    background:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
        url('../img/background_contact_light.jpg') center/cover no-repeat fixed;
}

/* Wrapper du contenu */
.contact-wrapper {
    max-width: 600px;
    width: 90%;
    margin: 155px auto 80px auto; /* ↓ descendu un peu, hauteur équilibrée */
    background: rgba(0,0,0,0.45);
    padding: 35px; /* ↓ compacté légèrement */
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* Titre */
.contact-wrapper h1 {
    text-align: center;
    margin-bottom: 25px; /* ↓ réduit l'espace de tête */
    font-size: 2.6em; /* ↓ plus cohérent avec l'index */
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 14px; /* ↓ resserré */
}

input, select, textarea {
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 1em;
    box-sizing: border-box; /* ← corrige l’alignement du textarea */
}

textarea { min-height: 130px; resize: vertical; }

/* Ligne téléphone */
.phone-row {
    display: flex;
    gap: 8px;
}

/* Boutons */
.send {
    background:#009FCB;
    color:#fff;
    padding:12px;
    border:none;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
    transition: background 0.3s;
}
.send:hover { background:#61C452; }

.back {
    display:block;
    background:#fff;
    color:#000;
    text-align:center;
    padding:12px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    transition: background 0.3s;
}
.back:hover { background:#61C452; color:#fff; }

/* Success */
.contact-success {
    text-align:center;
    font-size:1.2em;
    color:#ffd700;
    margin-bottom:20px;
}

/* Mobile */
@media(max-width:768px){
    .contact-wrapper {
        margin:100px 5% 50px 5%;
        padding:22px;
    }
    .phone-row {
        flex-direction: column;
    }
}
