/* ----------------------------- */ 
/* STYLE PAGE CONTACT */ 
/* ----------------------------- */ 


/* ================= HERO ================= */

.contact-hero {
    position: relative;
    padding: 140px 0 100px;
    text-align: center;
    color: var(--blanc);
    overflow: hidden;
}

.contact-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.contact-hero h1 {
    color: var(--blanc);
    font-size: 42px;
    font-weight: 700;
}

.contact-hero p {
    margin-top: 10px;
    opacity: 0.85;
}


/* ================= INFOS CONTACT ================= */
.contact-infos {
    padding: 60px 0;
}

.contact-infos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.contact-card {
    background: var(--bleu-nuit);
    padding: 30px 20px;
    border-radius: 16px;
    color: var(--blanc);
}

.contact-card a {
    display: block;
    color: var(--blanc);
    text-decoration: none;
}

.contact-card img {
    width: 40px;
    margin-bottom: 15px;
}


/* ================= FORMULAIRE ================= */
.contact-form-section {
    padding: 50px 0 80px;
}

.contact-form {
    background: var(--gris-clair);
    margin: 0 auto;
    padding: 40px 50px;
    border-radius: 18px;
    max-width: 650px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: var(-gris-clair);
    margin-bottom: 30px;
}

/* grid noms/prénoms */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    border: 1px solid var(--bleu-azur);
    background: var(--blanc);
    padding: 12px;
    border-radius: 14px;
    font-size: 15px;
}

textarea {
    height: 120px;
    resize: none;
}

.btn-submit {
    display: block;
    margin: 18px auto 0;
    cursor: pointer;
    border: none;
}

.btn-submit:hover {
    opacity: 0.9;
}


/* ALERTES FORMULAIRE */
.alert-success, .alert-error {
    max-width: 700px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.alert-success {
    background: #e0f7ec;
    border-left: 5px solid #2ecc71;
    color: var(--success);
}

.alert-error {
    background: #fdeaea;
    border-left: 5px solid #e74c3c;
    color: var(--error);
}

/* Disparition progressive */
.alert-success, .alert-error {
    animation: fadeIn 0.4s ease, fadeOut 0.4s ease 5s forwards;
}

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