* {
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/*--------------------------------------------------FORMULAIRE---------------------------------------------------*/
h1{
    margin-top: 20%;
    text-align: center;
    margin-bottom: 3%;
    font-size: 3rem;
}
.text-devis p{

    font-size: 1.5rem;
    text-align: center;
    padding: 5%;
}


.container {
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 15px;
    max-width: 650px;
    width: 100%;
    margin-top:2%;
    margin-bottom: 4%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    font-size: 28px;
    letter-spacing: 1px;
}

label {
    display: block;
    margin: 15px 0 5px;
    color: #ccc;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #fff;
    outline: none;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin: 0;
    color: #ddd;
    font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #fff;
}

.envoyer {
    width: 100%;
    padding: 14px;
    background-color: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.envoyer:hover {
    background-color: #ddd;
    color: #000;
}

p input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #fff;
}

.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.formulaire {
    display: flex;
    justify-content: center;
}
strong{
    color: #ffb103;
}

/* Responsive */
@media screen and (max-width: 768px){
    h1{
        margin-top: 40%;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 25px;
        margin-top: 90%;
    }
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    h2 {
        font-size: 24px;
    }
    h1{
        margin-top: 45%;
    }
}