/*
 * contact-utils.css — composants Bootstrap 5.3 utilisés par la page contact,
 * qui ne sont PAS dans landing-utils.css (formulaires, input-group, alert,
 * spinner, modale, btn-secondary) + quelques utilitaires manquants.
 * À charger APRÈS landing-utils.css (grille + utilitaires + reboot).
 * Valeurs reprises de Bootstrap 5.3 → rendu identique.
 */

/* ── Tailles de titres (Bootstrap reboot) — pour les <hN> bruts (ex. <h5> modale) ── */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.2; }

/* ── Utilitaires absents de landing-utils ──────────────────────────────────── */
.text-danger { color: #dc3545 !important; }
.fs-5 { font-size: 1.25rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.p-5 { padding: 3rem !important; }
.border-0 { border: 0 !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important; }
@media (min-width: 576px) { .mb-sm-0 { margin-bottom: 0 !important; } }

/* ── Champs de formulaire ──────────────────────────────────────────────────── */
.form-control {
    display: block; width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem; font-weight: 400; line-height: 1.5;
    color: #212529; background-color: #fff; background-clip: padding-box;
    border: 1px solid #dee2e6; border-radius: .375rem;
    appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control::placeholder { color: #6c757d; opacity: 1; }
.form-control:focus { outline: 0; }

.form-select {
    display: block; width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem; font-weight: 400; line-height: 1.5;
    color: #212529; background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #dee2e6; border-radius: .375rem;
    appearance: none;
}
.form-select:focus { border-color: #0ea5e9; box-shadow: 0 0 0 .2rem rgba(14, 165, 233, .2); outline: 0; }

textarea.form-control { min-height: calc(1.5em + .75rem + 2px); }

/* ── Input group ───────────────────────────────────────────────────────────── */
.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group > .form-control,
.input-group > .form-select { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group-text {
    display: flex; align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem; font-weight: 400; line-height: 1.5;
    color: #212529; text-align: center; white-space: nowrap;
    background-color: #e9ecef; border: 1px solid #dee2e6; border-radius: .375rem;
}
/* Gestion des coins : premier élément arrondi à gauche, dernier à droite */
.input-group > :not(:first-child) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* ── Alertes ───────────────────────────────────────────────────────────────── */
.alert {
    position: relative; padding: 1rem 1rem; margin-bottom: 1rem;
    border: 1px solid transparent; border-radius: .375rem;
}
.alert-danger { color: #58151c; background-color: #f8d7da; border-color: #f1aeb5; }

/* ── Spinner ───────────────────────────────────────────────────────────────── */
@keyframes spinner-border { to { transform: rotate(360deg); } }
.spinner-border {
    display: inline-block; width: 2rem; height: 2rem; vertical-align: -.125em;
    border: .25em solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: .75s linear infinite spinner-border;
}
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .2em; }

/* ── Bouton secondaire (btn de base dans landing-utils) ────────────────────── */
.btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d; }
.btn-secondary:hover { color: #fff; background-color: #5c636a; border-color: #565e64; }

/* ── Modale ────────────────────────────────────────────────────────────────── */
.modal {
    position: fixed; inset: 0; z-index: 1055;
    display: none; width: 100%; height: 100%;
    overflow-x: hidden; overflow-y: auto; outline: 0;
}
.modal-dialog { position: relative; width: auto; margin: .5rem; pointer-events: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }
@media (min-width: 576px) {
    .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
    .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
}
.modal-content {
    position: relative; display: flex; flex-direction: column; width: 100%;
    pointer-events: auto; background-color: #fff; background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2); border-radius: .5rem; outline: 0;
}
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, .5); }
