/* Reset global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body + fond */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg,#ffe0ec,#f8bbd0);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

/* Header */
header {
    width: 100%;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

header .logo {
    height: 145px;
}

header .whatsapp {
    background: #ec407a;
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 5px;
}

header .whatsapp:hover {
    opacity: 0.85;
}

/* Container formulaire */
/* Container responsive "zoomé" */
.container {
    background: #fff;
    width: 95%;        /* presque toute la largeur de l’écran */
    max-width: 450px;  /* limite desktop */
    margin: 20px auto;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(236,64,122,0.25);
    transform: scale(1); /* assure échelle normale */
    transition: transform 0.3s;
}

/* Sur mobile petit écran on "zoom" légèrement */
@media(max-width: 480px) {
    .container {
        width: 95%;
        padding: 25px;
        transform: scale(1.05); /* zoom 5% */
    }
}

/* Titres */
h2 {
    text-align: center;
    color: #d81b60;
    margin-bottom: 20px;
    font-size: 22px;
}

/* Champs input */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #f3a6c4;
    font-size: 15px;
    transition: 0.3s;
}

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

/* Radio Group */
.radio-group {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    color: #ad1457;
    flex-wrap: wrap;
}

.radio-group label {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid #f3a6c4;
    border-radius: 10px;
    margin: 5px 2px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked + span,
.radio-group input[type="radio"]:checked + label {
    background: #ec407a;
    color: #fff;
}
/* Radio Group */
.radio-group {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

.radio-group label {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 12px;
    margin: 5px 5px;
    border: 2px solid #f3a6c4;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    color: #ad1457;
    background: #fff;
}

/* Masquer le radio par défaut */
.radio-group input[type="radio"] {
    display: none;
}

/* Style quand sélectionné */
.radio-group input[type="radio"]:checked + label {
    background: linear-gradient(135deg,#ec407a,#d81b60);
    color: #fff;
    border-color: #d81b60;
    box-shadow: 0 4px 10px rgba(216,27,96,0.3);
    transform: scale(1.05);
}

/* Ajouter une coche visuelle */
.radio-group input[type="radio"]:checked + label::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* Survol */
.radio-group label:hover {
    border-color: black;
}

/* Bouton */
button {
    width: 100%;
    background: linear-gradient(135deg,#ec407a,#d81b60);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    opacity: 0.9;
}

/* Message de confirmation */
.confirmation {
    background: #fff;
    width: 100%;
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(216,27,96,0.3);
    color: #ad1457;
}

/* Media Queries - mobile et tablettes */
@media (max-width: 768px) {
    .container, .confirmation {
        width: 95%;
        padding: 20px;
    }
    header {
        flex-direction: column;
        align-items: center;
    }
    header .whatsapp {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 20px;
    }
    .radio-group {
        flex-direction: column;
    }
    .radio-group label {
        margin: 5px 0;
    }
    button {
        font-size: 14px;
        padding: 12px;
    }
    .container {
        padding: 15px;
        margin: 15px auto;
    }
    .confirmation {
        padding: 20px;
        margin: 40px auto;
    }
}
