.devis-page { background-color: #0A192F; margin: 0; font-family: 'Montserrat', sans-serif; }

.devis-wrapper { padding: 140px 20px 60px; display: flex; justify-content: center; }

.form-card { 
    background: #ffffff; 
    border-radius: 20px; 
    padding: 35px; 
    max-width: 750px; 
    width: 100%; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.4); 
}

.form-section-title {
    font-weight: 800;
    color: #00B4FF;
    margin: 25px 0 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: #333; font-size: 0.9rem; }

/* Champs d'écriture et sélection */
input[type="text"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fdfdfd;
    font-family: inherit;
}

/* Sélection des services */
.services-selection { display: grid; gap: 10px; margin-top: 10px; }
.service-item {
    display: flex;
    align-items: center;
    background: #f4faff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
}
.service-item:hover { border-color: #00B4FF; }
.service-item input { margin-right: 15px; width: 18px; height: 18px; }

/* Bouton envoyer */
.btn-submit-devis {
    background-color: #00B4FF;
    color: white;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 25px;
    box-shadow: 0 8px 20px rgba(0, 180, 255, 0.3);
}

@media (max-width: 1024px) {
    .menu-toggle { 
        display: flex !important; flex-direction: column; gap: 6px; 
        z-index: 3001 !important; /* Reste visible au-dessus du menu */
        cursor: pointer; position: relative;
    }
    .bar { width: 30px; height: 3px; background: white; transition: 0.3s; }
    
    .nav-list {
        display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: var(--color-secondary); flex-direction: column; justify-content: center; align-items: center; z-index: 2500;
    }
    .nav-list.active { display: flex !important; }
    .nav-list li { margin: 15px 0; }
    .nav-list a { font-size: 1.5rem; }

    /* Transform Burger to X */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero-content h1 { font-size: 2.2rem; }
}
/* BOUTON DEVIS NAV (Le Glow que tu aimes) */
.btn-devis-nav { background: #00B4FF; color: white !important; border-radius: 50px; padding: 10px 20px; animation: glow 2s infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px #00B4FF; } 50% { box-shadow: 0 0 20px #00B4FF; } }
/* --- STYLE POUR LE TITRE ET LE TEXTE EN NOIR --- */
.form-header {
    margin-bottom: 30px;
    text-align: left;
}

.form-header h2, 
.form-header h2 span {
    color: #000000 !important; /* Rend le titre "Projet : Votre Solution Globale" noir */
    font-weight: 800;
}

.form-header p {
    color: #333333 !important; /* Rend le texte de description noir/gris foncé pour la lisibilité */
    font-size: 1rem;
    margin-top: 10px;
}
/* --- FOOTER --- */
footer { background: var(--footer-bg); color: white; padding: 80px 0 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.f-logo { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; }
.f-logo span { color: var(--color-primary); }
.f-about p { opacity: 0.6; font-size: 0.9rem; }
.f-col h4 { margin-bottom: 20px; border-bottom: 2px solid var(--color-primary); display: inline-block; padding-bottom: 5px; }
.f-col ul { list-style: none; }
.f-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.f-col a:hover { color: var(--color-primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; opacity: 0.4; }
/* Animation de rotation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-submit-devis {
    position: relative;
    transition: all 0.3s;
}

/* État quand on clique */
.btn-submit-devis.loading {
    color: transparent !important; /* Cache le texte */
    pointer-events: none; /* Empêche de cliquer plusieurs fois */
    opacity: 0.8;
}

/* Le petit cercle qui tourne */
.btn-submit-devis.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}