/* =====================================================================
   Retouches mobile (téléphones, < 576 px) — chargé après app.css.
   Supprimer ce fichier (ou son <link> dans layouts/app.blade.php)
   suffit à revenir à l'affichage d'origine.
   ===================================================================== */
:root { --accent: #369f5e; --accent-texte: #369f5e; --encre: #21212d; --gris: #6b6f7a; }

/* Les avis clients étaient mis en Majuscule À Chaque Mot par le CSS d'origine */
.carousel-text-avis { text-transform: none !important; }

@media (max-width: 575.98px) {

    /* ---------- Général ---------- */
    body { overflow-x: hidden; }
    .courbe-com-high { max-width: 100%; height: auto; }
    p.text-rumble, span.text-rumble, h1.text-rumble, h2, h3 { line-height: 1.2 !important; }
    .titre-page { font-size: 34px !important; line-height: 1.12 !important; }
    .titre-page .sous-titre-page { font-size: 28px !important; line-height: 1.15 !important; }

    /* ---------- Bloc « Trouvez ici le toit qui vous va » + filtres ---------- */
    .zone-mobile { font-size: 13px !important; letter-spacing: .08em; font-weight: 600; margin-bottom: 4px; }
    .zone-mobile + p.text-rumble { font-size: 30px !important; line-height: 1.12 !important; margin: 0 0 14px !important; }
    .listes-criteres-mobile1 .row.mt-3 { margin-top: 8px !important; }
    .listes-criteres-mobile1 .card { border: 0; background: transparent; }
    .listes-criteres-mobile1 .card-header { padding: 0; background: transparent; border: 0; }
    .listes-criteres-mobile1 .btn-link { padding: 14px 16px; text-decoration: none !important; box-shadow: none !important; }
    .listes-criteres-mobile1 .btn-link > span.text-rumble {
        display: flex !important; align-items: center; gap: 12px;
        font-size: 19px !important; line-height: 1.2 !important;
    }
    .listes-criteres-mobile1 .btn-link > span.text-rumble > img { float: none !important; width: 24px !important; flex: 0 0 24px; }
    .listes-criteres-mobile1 .btn-link > span.text-rumble > span { float: none !important; order: 2; }
    .listes-criteres-mobile1 .btn-link .icon-plus { order: 3; margin-left: auto; font-size: 16px; color: var(--accent) !important; }
    .listes-criteres-mobile1 .hr-barre { margin: 0 16px; border-color: #ececef; }
    .listes-criteres-mobile1 .collapse, .listes-criteres-mobile1 .collapsing { flex: 0 0 100%; width: 100%; }
    .listes-criteres-mobile1 .card-body { padding: 2px 16px 18px; }
    .listes-criteres-mobile1 .card-body > .container { padding: 0; }
    .listes-criteres-mobile1 .card-body .row.mt-2 { margin-top: 0 !important; }
    .listes-criteres-mobile1 .card-body .row.justify-content-center {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px !important;
        justify-content: stretch !important;
    }
    .listes-criteres-mobile1 .card-body .row.justify-content-center > div { margin: 0 !important; padding: 0 !important; max-width: none; }
    .listes-criteres-mobile1 .bouton-recherche-filtre {
        width: 100%; min-width: 0 !important; padding: 12px 8px; font-size: 15px; font-weight: 600;
        border: 1.5px solid var(--accent); border-radius: 10px !important;
    }
    .listes-criteres-mobile1 select.form-control {
        height: 48px; font-size: 16px; border: 1.5px solid var(--accent); border-radius: 10px;
        padding: 0 14px; text-align-last: left;
    }

    /* ---------- Annonces : deux colonnes ---------- */
    .container.liste { padding-left: 16px !important; padding-right: 16px !important; }
    .card-bien { margin-left: -6px !important; margin-right: -6px !important; }
    .card-bien .border-vignette-bien {
        flex: 0 0 50%; max-width: 50%;
        padding: 0 6px !important; margin: 0 0 20px !important;
    }
    .card-bien .vignette-bien { width: 100%; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
    .card-bien .border-vignette-bien a { position: relative; display: block; }
    .card-bien .logo-3d { width: 26px !important; }
    .card-bien .border-vignette-bien p.mt-3 { margin: 8px 0 0 !important; line-height: 1.25; }
    .card-bien .border-vignette-bien p.mt-3 > span:first-child { font-size: 16px !important; }
    .card-bien .border-vignette-bien p.mt-3 > span.text-rumble { font-size: 12px !important; letter-spacing: .06em; color: var(--encre); }
    .card-bien .border-vignette-bien h2 { margin: 3px 0 0; line-height: 1 !important; }
    .card-bien .border-vignette-bien span[style*="font-size: 12px"] {
        font-size: 11.5px !important; line-height: 1.35 !important; color: var(--gris) !important;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .card-bien .txt-savoir { display: none; }
    .message-oups { font-size: 22px !important; line-height: 1.3 !important; }

    /* ---------- Blocs de services (Besoin d'un chez-vous ?…) ---------- */
    .blue-background-primary { padding-left: 16px !important; padding-right: 16px !important; padding-bottom: 8px !important; }
    .blue-background-primary .white-background { margin-top: 16px !important; padding: 22px 18px !important; border-radius: 12px; }
    .blue-background-primary .white-background img.img-fluid { width: 64px !important; margin-bottom: 10px; }
    .blue-background-primary .white-background .pr-5 { padding-right: 15px !important; }
    .blue-background-primary .white-background span.text-rumble { font-size: 22px !important; }
    .green-background-primary { margin: 0 !important; padding: 4px 16px 16px !important; }
    .green-background-primary .colMenu { margin: 16px 0 0 !important; padding: 22px 18px !important; border-radius: 12px; flex: 0 0 100%; max-width: 100%; }
    .green-background-primary .colMenu img.img-fluid { width: 72px !important; }
    .green-background-primary .colMenu span[style*="20px"] { font-size: 17px !important; line-height: 1.35; padding: 0 6px; }
    .green-background-primary .colMenu .bouton-generique { margin-top: 14px !important; }
    .bouton-generique { font-size: 14px !important; font-weight: 600; padding: 10px 20px !important; border-radius: 8px; border-width: 1.5px; }

    /* ---------- « Notre agence… » : valeurs sur deux colonnes ---------- */
    .section-valeurs p.text-rumble { font-size: 28px !important; margin-bottom: 0; }
    .section-valeurs .row ~ .row, .section-valeurs > .row:nth-child(2) {
        display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; margin-top: 18px !important;
    }
    .section-valeurs .row > [class*="col"] { padding: 0; max-width: none; }
    .section-valeurs .row > [class*="col"]:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .section-valeurs img { width: 84px !important; height: 84px !important; }
    .section-valeurs p.mt-4 { margin: 6px 0 0 !important; }
    .section-valeurs span.blue { font-size: 16px !important; line-height: 1.25 !important; display: inline-block; }
    .section-valeurs span[style*="14px"] { font-size: 12.5px !important; line-height: 1.4; display: block; margin-top: 4px !important; }
    .section-valeurs span.blue + br, .section-valeurs span[style*="14px"] + br { display: none; }

    /* ---------- Témoignages ---------- */
    .carousel-text-avis { font-size: 15px !important; line-height: 1.55; text-shadow: 0 1px 3px rgba(0,0,0,.45); padding-left: 8px !important; padding-right: 8px !important; }
    .titre-temoignages { font-size: 26px !important; line-height: 1.2 !important; display: inline-block; margin-bottom: .75rem; }
    .sous-titre-temoignages { font-size: 16px !important; }

    /* ---------- Page contact : titre au-dessus de la vague ---------- */
    .background-corpo .mt-8 { margin-top: 1.5rem !important; }
    .background-corpo .titre-header { margin-top: 0; font-size: 30px; }

    /* ---------- Pied de page ---------- */
    div.footer { height: auto !important; }
    .footer > .container { padding: 36px 24px 28px !important; }
    .footer .row > [class*="col-"] {
        flex: 0 0 100%; max-width: 100%;
        margin-left: 0 !important; margin-top: 22px !important;
        padding-left: 0 !important; padding-right: 0 !important; text-align: center;
    }
    .footer .row > [class*="col-"]:first-child { margin-top: 0 !important; }
    .footer .row > [class*="col-"]:first-child img { width: 78% !important; max-width: 280px; display: block; margin: 0 auto; }
    .footer .row p { margin-bottom: 8px; line-height: 1.6; }
    .footer .d-flex { justify-content: center !important; gap: 18px; margin-top: 6px !important; }
    .footer .d-flex a { margin: 0 !important; }
    .footer .list-footer { padding: 0; margin: 0; list-style: none; }
    .footer .list-footer li, .footer .text-footer { font-size: 13px; letter-spacing: .05em; padding: 3px 0; }
    .footer .sous-text-footer { font-size: 12px; }
    .footer .hr-barre-bleu { margin: 0 auto 12px !important; }
    .footer .arrow-up {
        position: static !important; right: auto !important; top: auto !important;
        display: flex; justify-content: center; align-items: center; gap: 22px;
        width: 100%; margin-top: 26px;
    }
    .footer .arrow-up img { width: 62px !important; }
    .footer .arrow-up #arrow-up { font-size: 26px !important; }
}
