/* ============================================================
   POLICES (WOFF2, ~70% plus légères que les TTF d'origine —
   sources TTF conservées dans assets-source/fonts/, hors production).
   Seules les graisses dont le fichier existe sont déclarées : les
   anciennes déclarations pointaient pour moitié vers des TTF absents
   (404 silencieux au chargement de ces graisses).
   ============================================================ */

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/nunito/Nunito-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/nunito/Nunito-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/nunito/Nunito-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/nunito/Nunito-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/nunito/Nunito-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/nunito/Nunito-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/nunito/Nunito-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-BlackItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto/Roboto-ThinItalic.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope/Manrope-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope/Manrope-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope/Manrope-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope/Manrope-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope/Manrope-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope/Manrope-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope/Manrope-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


:root {
    --primary-orange: #FF9900;
    --secondary-orange: #FF7700;
    --dark-text: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Verdana, sans-serif;
    color: var(--dark-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, system-ui, sans-serif;
    color: black;
}


/* HEADER */
.navbar-custom {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    padding: 0 0;
}

.logo {
    height: auto;
    max-width: 170px;
}

.nav-services {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-services li a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-services li a:hover {
    color: var(--primary-orange);
}

.btn-pill {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-announce {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding-top: 11px;
}

.btn-announce:hover {
    background-color: var(--secondary-orange);
    color: white;
}

.btn-login {
    background-color: transparent;
    color: var(--dark-text);
    border: 1px solid var(--dark-text);
    font-weight: 400;
}

.btn-login:hover {
    background-color: var(--dark-text);
    color: white;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    padding: 4rem 0;
    margin-top: 0;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
}

.search-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.search-form .form-control,
.search-form .form-select,
.search-form .input-group-text {
    border: 1px solid #e0e0e0;
    padding: 0.8rem;
    font-size: 1rem;
    min-height: 52px;
}

.search-form .input-group {
    height: 100%;
}

.search-form .input-group-text {
    background-color: var(--light-bg);
    color: var(--primary-orange);
    justify-content: center;
    min-width: 46px;
    border-right: 0;
    border-radius: 10px 0 0 10px;
}

.search-form .input-group .form-control,
.search-form .input-group .form-select {
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 149, 0, 0.25);
}

.search-submit {
    align-items: center;
    background-color: var(--primary-orange);
    border: none;
    border-radius: 22%; /* même arrondi que rapidoimmo-favicon.png */
    color: white;
    display: inline-flex;
    font-weight: 600;
    gap: 0.45rem;
    justify-content: center;
    min-height: 52px;
    padding: 0.8rem 1rem;
}

.search-submit:hover,
.search-submit:focus {
    background-color: var(--secondary-orange);
    color: white;
}

/* Simple Search Form - Homepage */
.simple-search-form {
    text-align: left; /* .hero-content est centré ; les champs du formulaire ne doivent pas hériter de ça */
}

.simple-search-form label {
    color: var(--dark-text);
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    text-align: left;
}

.simple-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: flex-end;
}

/* Bandeau homepage "30 premiers jours gratuits" (entre Acheter vite et la
   vitrine) — même dégradé que la carte promo de la page résultats. */
.free-month-banner {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: white;
    padding: 3rem 0;
}

.free-month-banner-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    text-transform: uppercase;
}

.free-month-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    /* Force le blanc : la règle globale h1..h6 { color: black } l'emporterait
       sinon sur la couleur héritée du bandeau. */
    color: #fff;
}

.free-month-banner-text {
    margin: 0 auto 1.5rem;
    max-width: 640px;
    opacity: 0.95;
}

.free-month-banner-cta {
    background: white;
    border-radius: 10px;
    color: var(--primary-orange);
    display: inline-block;
    font-weight: 700;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.free-month-banner-cta:hover {
    color: var(--secondary-orange);
    transform: translateY(-2px);
}

/* Mobile : champs du formulaire héro empilés (côte à côte, ils forçaient un
   débordement horizontal — détecté par tests/e2e/responsive_screenshots.sh). */
@media (max-width: 767.98px) {
    .simple-search-grid {
        grid-template-columns: 1fr;
    }
}

/* Message affiché quand la recherche est lancée sans localisation ni type de
   bien (homepage et recherche avancée - voir leurs scripts inline). */
.search-form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: left;
}

/* Champ "Localisation" multi-zones (villes/codes postaux/départements/régions)
   - même padding/border-radius/font-size que .simple-search-form .form-control
   (forms.css) pour que la hauteur à vide corresponde aux autres champs. */
.location-tags-field {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    background: white;
}

.location-tags-field:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

.location-tags-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.location-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--light-bg);
    color: var(--dark-text);
    border-radius: 20px;
    padding: 0.25rem 0.4rem 0.25rem 0.7rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.location-tag-chip-remove {
    border: none;
    background: transparent;
    color: #999;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.3rem;
    cursor: pointer;
}

.location-tag-chip-remove:hover {
    color: var(--primary-orange);
}

.location-tags-field input#locationInput {
    flex: 1 1 120px;
    min-width: 120px;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    outline: none;
}

.location-tags-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.4rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 260px;
    overflow-y: auto;
}

.location-tags-suggestions.show {
    display: block;
}

.location-tag-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.location-tag-suggestion:hover {
    background: var(--light-bg);
}

.location-tag-suggestion-type {
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.location-tag-suggestion-left {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Code(s) postal(aux) complet(s) (Base La Poste) affichés en tout petit à
   côté du nom de la commune, pour lever les doutes et distinguer les
   homonymes (demande utilisateur 2026-07-04). */
.location-tag-suggestion-hint {
    color: #999;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Champ "Type de bien" à sélection multiple (homepage) */
.type-multiselect {
    position: relative;
}

.type-multiselect-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    color: var(--dark-text);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-multiselect-toggle::after {
    content: "";
    flex-shrink: 0;
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
}

.type-multiselect-toggle:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

.type-multiselect-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.4rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 0.5rem 0;
}

.type-multiselect-options.show {
    display: block;
}

.type-multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

.type-multiselect-option:hover {
    background: var(--light-bg);
}

/* Champ "Prix max" (homepage) - suffixe € superposé, sans le fond gris/
   padding par défaut de .input-group-text de Bootstrap (pas utilisé ici, ce
   n'est pas un vrai .input-group). */
.price-input-wrapper {
    position: relative;
}

/* Spécificité (tag + 2 classes) volontairement plus élevée que .search-form
   .form-control ci-dessus (padding 0.8rem/min-height 52px, pensé pour le
   formulaire avec icônes en input-group) : la homepage ne charge pas
   forms.css, donc sans ceci le champ Prix max hérite de ce gabarit plus haut
   que .location-tags-field / .type-multiselect-toggle, stylées ici-même. */
.simple-search-grid input.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    min-height: auto;
}

.price-input-wrapper input {
    padding-right: 2.2rem;
}

.price-suffix {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    background: transparent;
    pointer-events: none;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 36px rgba(44, 62, 80, 0.16);
    margin-top: 2rem;
}

.login-page {
    background-color: white;
}

.login-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    min-height: calc(100vh - 82px);
}

.login-form-wrap {
    align-self: center;
    justify-self: end;
    max-width: 600px;
    padding: 2.5rem 3rem;
    width: 100%;
}

.login-kicker {
    color: var(--primary-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.login-form-wrap h1 {
    color: var(--dark-text);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-intro {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Style de champ partagé par tous les formulaires de l'app (référence : login/register) */
.styled-form .form-label {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.styled-form .form-control,
.styled-form .form-select,
.styled-form .input-group-text {
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
    min-height: 48px;
    padding: 0.6rem 0.8rem;
}

.styled-form .input-group-text {
    background-color: var(--light-bg);
    color: var(--primary-orange);
    justify-content: center;
    min-width: 44px;
    border-right: 0;
    border-radius: 10px 0 0 10px;

}

.styled-form .input-group .form-control,
.styled-form .input-group .form-select {
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.styled-form .form-control:focus,
.styled-form .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 149, 0, 0.25);
}

.login-options {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0.8rem 0 1rem;
    font-size: 0.9rem;
}

.login-options a {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
}

.login-options a:hover {
    color: var(--secondary-orange);
}

.styled-form .form-check-label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.login-submit {
    align-items: center;
    background-color: var(--primary-orange);
    border: none;
    border-radius: 10px;
    color: white;
    display: flex;
    font-weight: 600;
    gap: 0.3rem;
    justify-content: center;
    min-height: 48px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.login-submit:hover,
.login-submit:focus {
    background-color: var(--secondary-orange);
    color: white;
}

.login-submit:disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.65;
}

.register-login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.register-login-link a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.register-login-link a:hover {
    color: var(--secondary-orange);
    text-decoration: underline;
}

/* Photos immobilières libres de droits (licence Unsplash, importées dans
   /assets/images/auth/) à la place des anciens aplats orange — retour
   testeurs 2026-07-04 : « le site est trop orange ». */
.login-visual {
    background-color: var(--light-bg);
    background-position: center;
    background-size: cover;
    min-height: 100%;
}

.login-visual--login {
    background-image: url('/assets/images/auth/maison-jardin-login.jpg');
}

.login-visual--register {
    background-image: url('/assets/images/auth/maison-jardin-register.jpg');
}

.login-visual--password {
    background-image: url('/assets/images/auth/maison-jardin-password.jpg');
}

/* REGISTER FORM STYLES */
.phone-country-select {
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px 0 0 10px;
    border-right: 0;
    background-color: var(--light-bg);
    color: var(--dark-text);
    font-weight: 500;
    cursor: pointer;
    padding: 0.8rem 0.6rem;
    min-width: 140px;
}

.phone-country-select:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 149, 0, 0.25);
}

.phone-country-select option {
    color: var(--dark-text);
    background-color: white;
    padding: 0.5rem;
}

/* CAPTCHA STYLES */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
}

.captcha-container img {
    height: 48px;
    width: 280px;
    border-radius: 8px 0 0 8px;
    border: 1px solid #e0e0e0;
    border-right: 0;
}

.captcha-refresh-btn {
    border-color: #999 !important;
    color: #666;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    height: 48px;
    border-radius: 0 8px 8px 0;
    border: 1px solid #e0e0e0;
    border-left: 0;
}

.captcha-refresh-btn:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-orange) !important;
    color: var(--primary-orange);
}

.captcha-container-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: end;
}

.captcha-container-row .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 0 10px 10px 0;
    min-height: 48px;
}

.styled-form .mb-2 {
    margin-bottom: 0.8rem;
}

.styled-form .mb-3 {
    margin-bottom: 1.2rem;
}

.styled-form .form-label {
    margin-bottom: 0.2rem;
}

.styled-form .input-group {
    margin-bottom: 0;
}




.register-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    color: var(--secondary-orange);
    text-decoration: underline;
}

/* CONTENT SECTIONS */
.content-section {
    padding: 4rem 0;
}

.contact-page {
    background-color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.benefit-card {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-orange);
    transition: transform 0.3s;
}

.benefit-card h4 {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #555;
    line-height: 1.7;
}

/* LEGAL PAGES */
.legal-page {
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 100vh;
}

.legal-aside {
    align-self: start;
    position: sticky;
    top: 82px;
    height: calc(100vh - 82px);
    padding: 4rem 3rem;
}

.legal-aside-inner {
    max-width: 360px;
    margin-left: auto;
}

.legal-aside-label {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.legal-nav a {
    border-left: 4px solid transparent;
    color: var(--dark-text);
    font-weight: 600;
    line-height: 1.4;
    padding: 0.75rem 0 0.75rem 1rem;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.legal-nav a:hover,
.legal-nav a:focus {
    border-left-color: var(--primary-orange);
    color: var(--primary-orange);
}

.legal-content {
    max-width: 920px;
    padding: 5rem 5rem 2rem;
}

.legal-kicker {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.legal-content h1 {
    color: var(--dark-text);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.legal-intro {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.legal-content section {
    border-top: 1px solid #ececec;
    padding: 2rem 0;
    scroll-margin-top: 110px;
}

.legal-content h2 {
    color: var(--dark-text);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.legal-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .login-panel {
        grid-template-columns: 1fr;
    }

    .login-form-wrap {
        justify-self: stretch;
        max-width: none;
        padding: 3rem 1.5rem;
    }

    .login-visual {
        min-height: 240px;
        order: -1;
    }

    /* Mobile/tablette : sommaire au-dessus du contenu (les deux colonnes
       1fr/2fr débordaient — détecté par tests/e2e/responsive_screenshots.sh). */
    .legal-page {
        grid-template-columns: 1fr;
    }

    .legal-aside {
        position: static;
        height: auto;
        padding: 2rem 1.5rem;
    }

    .legal-aside-inner {
        max-width: none;
        margin-left: 0;
    }

    .legal-content {
        max-width: none;
        padding: 3rem 1.5rem 1rem;
    }
}

/* FOOTER */
.footer {
    background-color: #f8f8f8;
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    /*color: var(--primary-orange);*/
}

.footer-section p {
    color: #666;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    /* Gris neutre : les icônes passent en noir/gris (décision utilisateur
       2026-07-07), l'orange reste réservé aux CTA. */
    background: #495057;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.logo-footer {
    margin-bottom: 1rem;
}

/* SEARCH PAGE HEADER */
.navbar-custom .search-form {
    margin: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.navbar-custom .search-form form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.navbar-custom .search-form .input-group {
    flex: 1;
    min-width: 120px;
}

.navbar-custom .search-form .form-control,
.navbar-custom .search-form .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    min-height: auto;
}

.navbar-custom .search-form .input-group-text {
    background-color: transparent;
    color: var(--primary-orange);
    border: none;
    padding: 0.5rem 0;
    min-width: 32px;
}

.navbar-custom .search-form button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    min-height: auto;
}

/* ADVANCED SEARCH FORM STYLING */
.search-form-advanced input[type="checkbox"]:checked {
    accent-color: var(--primary-orange);
    background-color: var(--primary-orange);
}

.search-form-advanced input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    color: var(--primary-orange);
}

/* Energy class labels styling */
.energy-label:hover {
    background-color: rgba(255, 149, 0, 0.05);
}

/* DROPDOWNS LAYOUT */
.dropdowns-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dropdown-container {
    position: relative !important;
    flex-shrink: 0;
}

.dropdown-btn {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.dropdown-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.dropdown-btn i.rotated {
    transform: rotate(180deg);
}

.dropdown-content {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

/* Le widget Localisation gère sa propre liste de suggestions en superposition
   (.location-tags-suggestions, position absolute) : le overflow-y/max-height
   générique de .dropdown-content ci-dessus la découperait au lieu de la
   laisser s'afficher par-dessus le reste du formulaire. */
#locationDropdown {
    overflow: visible;
    max-height: none;
}

/* FORM INPUTS */
.minmax-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.minmax-grid label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: block;
}

.input-suffix {
    position: relative;
}

.input-suffix input {
    padding-right: 2rem;
}

.input-suffix span {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    pointer-events: none;
}

/* CHECKBOXES */
.checkboxes-grid, .energy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.checkbox-label, .energy-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input, .energy-label input {
    cursor: pointer;
    accent-color: var(--primary-orange);
}

/* ENERGY BADGES */
.energy-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}


/* FORM BUTTONS */
.search-submit {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.search-submit:hover {
    background-color: #ff8c00;
    border-color: #ff8c00;
}

/* PASSWORD TOGGLE */
.password-input-group {
    position: relative;
}

.password-toggle {
    border-left: none;
    background-color: transparent;
    color: #666;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-orange);
    background-color: transparent;
    border-color: #ccc;
}

.password-toggle:focus {
    outline: none;
    box-shadow: none;
    color: var(--primary-orange);
}

.password-toggle i {
    font-size: 1.1rem;
}

/* ------------------------------------------------------------------ */
/* Bandeau de consentement cookies (cookie-consent.js — affiché
   uniquement quand la mesure d'audience est configurée dans .env) */
.cookie-consent {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    width: min(680px, calc(100% - 2rem));
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-consent.d-none {
    display: none;
}

.cookie-consent-text {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .cookie-consent {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* Boutons « Continuer avec Google/Facebook » (login/register — visibles
   uniquement quand Config\OAuth est configuré) */
.social-login-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.social-login-separator::before,
.social-login-separator::after {
    content: "";
    flex: 1;
    border-top: 1px solid #dee2e6;
}

.social-login-btn {
    border: 1px solid #dee2e6;
    background: white;
    color: #212529;
    margin-bottom: 0.5rem;
}

.social-login-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}
