* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #eef4fb;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 15px;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    padding: 35px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h2 {
    color: #0d6efd;
    margin-bottom: 8px;
}

.header p {
    color: #666;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: .3s;
}

.input:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.input i {
    margin-right: 10px;
    color: #0d6efd;
}

.input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
}

.input select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    cursor: pointer;
}

small {
    display: block;
    margin-top: 5px;
    color: red;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    background: #084fc7;
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

#message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.success {
    color: green;
}

.error {
    color: red;
}

/* ===========================
   RESPONSIVE MOBILE
=========================== */

@media screen and (max-width: 768px) {

    body {
        padding: 15px;
        align-items: flex-start;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    .card {
        width: 100%;
        padding: 20px 15px;
        border-radius: 12px;
    }

    .header h2 {
        font-size: 24px;
    }

    .header p {
        font-size: 14px;
    }

    /* Une seule colonne */
    .row {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    .input-group {
        width: 100%;
    }

    .input {
        width: 100%;
        padding: 12px;
    }

    .input input {
        width: 100%;
        font-size: 16px;
    }

    .input i {
        font-size: 18px;
    }

    label {
        font-size: 15px;
    }

    button {
        width: 100%;
        font-size: 17px;
        padding: 15px;
        margin-top: 10px;
    }

    small {
        font-size: 12px;
    }

}


/* Champ invalide */
.input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Champ valide */
.input.success {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

small {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 13px;
}



.input.error {
    border: 2px solid #dc3545;
    background: #fff5f5;
}

.input.success {
    border: 2px solid #198754;
    background: #f5fff8;
}



/* ===========================
PETITS TELEPHONES
=========================== */

@media screen and (max-width: 480px) {

    body {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

    .header h2 {
        font-size: 20px;
    }

    .header p {
        font-size: 13px;
    }

    .input {
        padding: 10px;
    }

    .input input {
        font-size: 15px;
    }

    button {
        font-size: 16px;
    }

}


#refSbee,
#refSoneb,
#codeCadastral,
#nom,
#prenom,
#quartier{

    text-transform: uppercase;

}


#indicatif{

    border:none;

    background:transparent;

    font-size:15px;

    font-weight:600;

    margin-right:10px;

    outline:none;

    cursor:pointer;

    min-width:90px;

}


/*===============================
    TELEPHONE INTERNATIONAL
===============================*/

/*==========================================
        TELEPHONE INTERNATIONAL
==========================================*/

.phone-input{

    width:100%;

}

.phone-input .iti{

    width:100%;

}

.phone-input .iti input{

    width:100%;

    height:50px;

    border:1px solid #cfd4da;

    border-radius:6px;

    font-size:18px;

    padding-left:95px !important;

    padding-right:15px;

    outline:none;

    transition:.3s;

    background:#fff;

}

.phone-input .iti input:focus{

    border-color:#0d6efd;

    box-shadow:0 0 0 .2rem rgba(13,110,253,.15);

}

.phone-input .iti__selected-country{

    padding-left:12px;

    padding-right:10px;

}

.phone-input .iti__selected-flag{

    background:none;

}

.phone-input .iti__country-list{

    border-radius:8px;

    box-shadow:0 5px 20px rgba(0,0,0,.15);

    max-height:250px;

}

.phone-input .iti__country{

    padding:10px 15px;

}

.phone-input .iti__country:hover{

    background:#f5f7fb;

}


.phone-container{

    display:flex;

    gap:10px;

}

.phone-container select{

    width:140px;

    border:1px solid #ccc;

    border-radius:8px;

    padding:12px;

}

.phone-container input{

    flex:1;

}


