/* ===== Charte graphique Chrijdid.ma ===== */

:root {
    --color-turquoise: #5fc5be;
    --color-turquoise-dark: #51a7a2;
    --color-bordeaux: #8b3033;
    --color-bordeaux-dark: #76292b;
    --color-gray-light: #f1f2f2;

    /* La police Avenir est une police sous licence : elle n'est pas
       fournie avec le projet. Si vous disposez des fichiers de licence,
       ajoutez-les dans public/fonts/avenir/ et déclarez-les ici avec
       des règles @font-face (light, book, roman, medium, heavy, black).
       En attendant, le navigateur utilisera Avenir si elle est déjà
       installée sur la machine de l'utilisateur, sinon les polices
       de repli ci-dessous (déjà chargées dans le projet). */
    --font-brand: "Avenir", "Avenir Next", "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

/* Fond du header : la couleur turquoise pleine sur toute la barre (definie
   dans styles.css) rendait le menu difficile a lire et etait incoherente
   avec le fond transparent de l'accueil. On revient a un fond blanc, sobre
   et lisible sur toutes les pages ; le turquoise/bordeaux reste utilise
   comme couleur d'accent (boutons, icones, survols). */
.main-header {
    background-color: #ffffff;
}

/* Le header n'utilise plus .container (largeur plafonnee a 1320px) : il
   prend toute la largeur de l'ecran et gere son propre padding gauche/droite
   manuellement, pour un header plein largeur independant des sections de
   contenu en dessous. */
.header-lower .header-container {
    width: 100%;
    padding-left: 30px;
    padding-right: 60px;
}

@media (max-width: 767px) {
    .header-lower .header-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select,
button,
.form-control,
.tf-btn {
    font-family: var(--font-brand);
}

/* Boutons et liens "primary" du thème alignés sur le rouge bordeaux */
.tf-btn.primary {
    background-color: var(--color-bordeaux);
    border-color: var(--color-bordeaux);
}

.tf-btn.primary:hover {
    background-color: var(--color-bordeaux-dark);
}

.tf-btn:hover {
    background-color: var(--color-bordeaux);
    border-color: var(--color-bordeaux);
}

/* Soulignement au survol des liens du menu */
.main-header .main-menu .navigation>li>a::before {
    background: var(--color-bordeaux);
}

/* Puces de pagination des carrousels */
.sw-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-bordeaux) !important;
}

.sw-pagination .swiper-pagination-bullet::before {
    border-color: var(--color-bordeaux);
}

/* Options sélectionnées dans les listes déroulantes */
.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    color: var(--color-bordeaux);
}

/* Taille du logo dans l'en-tête : le CSS global "img { height: auto }"
   ignore l'attribut height="40" du <img>, donc le logo s'affichait à sa
   taille réelle sur toutes les pages sauf l'accueil (qui a son propre
   correctif dans home.css). Cette règle fixe une taille par défaut sur
   toutes les pages ; home.css reste prioritaire sur l'accueil. */
.main-header .logo-box .logo img {
    height: 100px;
    width: auto;
}

.mobile-menu .nav-logo img {
    max-height: 36px;
    width: auto;
}

/* Deux variantes du logo : l'icône de "logoc.png" est foncée (visible sur
   fond clair/blanc), celle de "logoo.png" est blanche (visible seulement
   sur fond sombre). Par défaut (header blanc sur toutes les pages), on
   affiche la variante foncée ; home.css bascule sur la variante blanche
   uniquement pour le header transparent de l'accueil. */
.logo-img-light {
    display: none;
}

/* Le menu de navigation du header : par défaut (styles.css) les liens sont en
   "inline-block" et passent à la ligne dès que l'espace manque. Seule la page
   d'accueil corrigeait ça (home.css, en même temps que l'effet transparent du
   header). Résultat : sur toutes les autres pages, le menu repassait à deux
   lignes et chevauchait le contenu en dessous. On applique ici la même mise en
   ligne sans retour à la ligne, mais sur toutes les pages. */
.main-header .main-menu .navigation {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.main-header .main-menu .navigation>li {
    padding-right: 28px;
}

.main-header .main-menu .navigation>li:last-child {
    padding-right: 0;
}

.main-header .main-menu .navigation>li>a {
    white-space: nowrap;
    font-size: 15px;
}

@media (max-width: 1199px) {
    .main-header .main-menu .navigation>li {
        padding-right: 18px;
    }

    .main-header .main-menu .navigation>li>a {
        font-size: 14px;
    }
}

/* ===== Actions rapides du header : langue, connexion, promotions =====
   Hiérarchie volontaire : la langue est discrète (texte simple), la
   connexion est secondaire (contour), et "Promos" est la seule action
   pleine couleur — c'est elle qui doit accrocher l'œil. */
.header-quick-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

/* Petit séparateur vertical entre la navigation et les actions */
.header-divider {
    width: 1px;
    height: 22px;
    background-color: #e4e4e4;
    margin: 0 10px;
    flex-shrink: 0;
}

/* Sélecteur de langue : discret, pas de bloc de couleur */
.lang-switcher {
    position: relative;
}

.lang-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #161e2d;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lang-switcher-toggle:hover {
    background-color: var(--color-gray-light);
}

.lang-switcher-toggle svg path {
    stroke: #8a939b;
}

.lang-switcher-toggle .icon {
    font-size: 9px;
    color: #8a939b;
    margin-left: 2px;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 40;
}

.lang-switcher:hover .lang-switcher-menu,
.lang-switcher:focus-within .lang-switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher-menu li a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #161e2d;
}

.lang-switcher-menu li a:hover,
.lang-switcher-menu li a.active {
    background-color: var(--color-gray-light);
    color: var(--color-bordeaux);
}

/* Menu du compte connecte (admin, promoteur, client) : reprend le
   fonctionnement du selecteur de langue (ouverture au survol / au focus),
   plus une classe .is-open posee au clic pour les ecrans tactiles. */
.account-menu-toggle {
    padding: 6px 8px;
}

.account-menu-toggle svg {
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 50%;
    border: 1.5px solid #e4e4e4;
}

.account-menu-toggle svg path {
    stroke: #161e2d;
}

.account-menu.is-open .lang-switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu-panel {
    min-width: 230px;
}

.account-menu-panel ul {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.account-menu-head {
    padding: 8px 10px 10px;
    border-bottom: 1px solid #eceeef;
}

.account-menu-head strong {
    display: block;
    font-size: 14px;
    color: #161e2d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.account-menu-head span {
    font-size: 12.5px;
    color: #8a939b;
}

.account-menu-panel form {
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid #eceeef;
}

.account-menu-logout {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #161e2d;
    text-align: left;
    cursor: pointer;
}

.account-menu-logout:hover {
    background-color: var(--color-gray-light);
    color: var(--color-bordeaux);
}

/* Liens des espaces dans le menu du compte : sections, icones, zone defilante */
.account-menu-panel {
    display: flex;
    flex-direction: column;
    width: 270px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    text-align: left;
}

.account-menu-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.account-menu-title {
    padding: 10px 10px 2px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a939b;
}

.account-menu-panel ul {
    padding: 2px 0;
}

.lang-switcher-menu li a.account-menu-link,
.account-menu-logout {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-menu-link svg,
.account-menu-logout svg {
    flex-shrink: 0;
    color: #8a939b;
}

.account-menu-link:hover svg,
.account-menu-logout:hover svg {
    color: var(--color-bordeaux);
}

.account-menu-toggle .icon {
    margin-left: 0;
}

@media (max-width: 575px) {

    /* L'icone n'est pas au bord droit de l'ecran : le panneau s'aligne sur l'ecran */
    .account-menu-panel {
        position: fixed;
        top: 70px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100dvh - 90px);
    }
}

/* Connexion : action secondaire, en contour */
.btn-login-header {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1.5px solid #e4e4e4;
    font-size: 14px;
    font-weight: 600;
    color: #161e2d;
    white-space: nowrap;
    background-color: transparent;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.btn-login-header:hover {
    border-color: var(--color-bordeaux);
    color: var(--color-bordeaux);
    background-color: rgba(139, 48, 51, 0.05);
}

/* Promos : unique action pleine couleur du header */
.btn-promo-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    background-color: var(--color-bordeaux);
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(139, 48, 51, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-promo-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(139, 48, 51, 0.24);
    color: #ffffff;
}

/* ===== Footer moderne ===== */
.footer-modern {
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--color-turquoise);
}

.footer-modern-top {
    padding: 64px 0 40px;
}

.footer-modern-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
}

/* Logo sur sa propre ligne : les colonnes s'alignent sur la description */
.footer-modern-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-modern-logo img {
    height: 140px;
    width: auto;
    display: block;
}

.footer-modern-desc {
    color: #a3abb0;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 340px;
}

.footer-modern-contact {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-modern-contact li,
.footer-modern-contact li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7dae0;
    font-size: 14px;
}

.footer-modern-contact li a {
    transition: color 0.25s ease;
}

.footer-modern-contact li a:hover {
    color: var(--color-turquoise);
}

.footer-modern-contact .icon {
    color: var(--color-turquoise);
    font-size: 16px;
    flex-shrink: 0;
}

.footer-modern-social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-modern-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.footer-modern-social a:hover {
    background-color: var(--color-turquoise);
    border-color: transparent;
    transform: translateY(-4px);
}

.footer-modern-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-modern-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background-color: var(--color-turquoise);
}

.footer-modern-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-modern-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #a3abb0;
    font-size: 14px;
    transition: color 0.25s ease;
}

.footer-modern-links a::before {
    content: "";
    width: 0;
    height: 1px;
    background-color: var(--color-turquoise);
    margin-right: 0;
    transition: width 0.25s ease, margin-right 0.25s ease;
}

.footer-modern-links a:hover {
    color: #ffffff;
}

.footer-modern-links a:hover::before {
    width: 12px;
    margin-right: 8px;
}

.footer-modern-newsletter-text {
    color: #a3abb0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-modern-newsletter-form {
    position: relative;
    display: flex;
}

.footer-modern-newsletter-form input {
    flex: 1;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 13px 52px 13px 16px;
    color: #ffffff;
    font-size: 14px;
}

.footer-modern-newsletter-form input::placeholder {
    color: #8a939b;
}

.footer-modern-newsletter-form input:focus {
    outline: none;
    border-color: var(--color-turquoise);
}

.footer-modern-newsletter-form button {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    width: 40px;
    border: none;
    border-radius: 7px;
    background-color: var(--color-bordeaux);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.footer-modern-newsletter-form button:hover {
    transform: scale(1.08);
}

.footer-modern-newsletter-form button svg {
    transition: transform 0.25s ease;
}

.footer-modern-newsletter-form button:hover svg {
    transform: translateX(2px);
}

/* Animation d'apparition au scroll (dégradation propre sans JS) */
.footer-modern.js-ready .footer-modern-logo,
.footer-modern.js-ready .footer-modern-brand,
.footer-modern.js-ready .footer-modern-col {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-modern.js-ready.in-view .footer-modern-logo,
.footer-modern.js-ready.in-view .footer-modern-brand,
.footer-modern.js-ready.in-view .footer-modern-col {
    opacity: 1;
    transform: translateY(0);
}

.footer-modern.js-ready.in-view .footer-modern-col:nth-child(2) {
    transition-delay: 0.08s;
}

.footer-modern.js-ready.in-view .footer-modern-col:nth-child(3) {
    transition-delay: 0.16s;
}

.footer-modern.js-ready.in-view .footer-modern-col:nth-child(4) {
    transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {

    .footer-modern.js-ready .footer-modern-logo,
    .footer-modern.js-ready .footer-modern-brand,
    .footer-modern.js-ready .footer-modern-col {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 991px) {
    .footer-modern-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-modern-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .footer-modern-grid {
        grid-template-columns: 1fr;
    }

    .footer-modern-logo img {
        height: 110px;
    }
}

.property-card-actions button.btn-favorite.is-active,
.property-hero-actions a.btn-favorite.is-active {
    background-color: #8b3033;
    border-color: #8b3033;
    color: #ffffff;
}

/* Comparateur de projets (cartes) */
.property-card-actions button.btn-compare.is-active {
    background-color: #5fc5be;
    border-color: #5fc5be;
    color: #ffffff;
}

.compare-tray {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #161e2d;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(22, 30, 45, .25);
}

.compare-tray-thumbs {
    display: flex;
}

.compare-tray-thumbs img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #161e2d;
    margin-left: -10px;
}

.compare-tray-thumbs img:first-child {
    margin-left: 0;
}

.compare-tray .tf-btn {
    min-width: auto;
    min-height: 40px;
    padding: 8px 18px;
    font-size: 14px;
}

.compare-tray-clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.compare-tray-clear:hover {
    color: #fff;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e4e4e4;
    text-align: center;
    vertical-align: middle;
}

.compare-table .compare-label {
    text-align: left;
    color: #8a939b;
    font-weight: 600;
    white-space: nowrap;
}

.compare-table th a {
    font-weight: 700;
    color: #161e2d;
}

.compare-table .compare-img {
    width: 100%;
    max-width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* ===== En-tete : alignement et espacements =====
   Une seule ligne : logo a gauche, menu centre dans la page, actions a droite.
   Tous les boutons d'action ont la meme hauteur (40 px) et le meme ecart entre eux.
   - 1300 a 1439 px : on resserre (code langue masque, Connexion en icone seule).
   - Sous 1300 px  : le menu passe dans le bouton menu mobile.
   - Sous 768 px   : Connexion et Promos passent en icone seule.
   « Promos » reste visible a toutes les tailles d'ecran. */
#header.chrijdid-header .header-lower .header-container {
    padding-left: clamp(16px, 2.5vw, 48px);
    padding-right: clamp(16px, 2.5vw, 48px);
}

#header.chrijdid-header .inner-header {
    gap: clamp(16px, 2vw, 32px);
}

#header.chrijdid-header .inner-header-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(24px, 2.5vw, 48px);
}

#header.chrijdid-header .logo-box .logo .logo-img-default {
    height: 90px;
    width: auto;
}

#header.chrijdid-header .logo-box .logo .logo-img-light {
    height: 100px;
    width: auto;
}

/* Menu centre : grille a 3 colonnes (logo | menu | actions). Les deux colonnes
   laterales ont la meme largeur, donc le menu tombe au milieu de la page.
   "display: contents" laisse le logo et le menu se placer chacun dans sa colonne. */
@media (min-width: 1300px) {
    #header.chrijdid-header .inner-header {
        /* display: grid; */
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    #header.chrijdid-header .inner-header-left {
        display: contents;
    }

    #header.chrijdid-header .logo-box {
        justify-self: start;
    }

    #header.chrijdid-header .inner-header-right.header-account {
        justify-self: end;
    }
}

/* Menu : ecart identique entre chaque lien */
#header.chrijdid-header .header-lower .nav-outer {
    padding-left: 0;
    padding-right: 0;
}

#header.chrijdid-header .main-menu .navigation {
    gap: clamp(20px, 2vw, 40px);
}

#header.chrijdid-header .main-menu .navigation>li,
#header.chrijdid-header .main-menu .navigation>li:last-child {
    padding-right: 0;
}

#header.chrijdid-header .main-menu .navigation>li>a {
    font-size: 15px;
}

/* Actions : meme hauteur, meme ecart */
#header.chrijdid-header .inner-header-right.header-account {
    flex-shrink: 0;
    margin-right: 0;
    gap: 16px;
}

#header.chrijdid-header .header-quick-actions {
    gap: 8px;
}

#header.chrijdid-header .header-divider {
    height: 24px;
    margin: 0 8px;
}

#header.chrijdid-header .lang-switcher-toggle,
#header.chrijdid-header .btn-login-header,
#header.chrijdid-header .btn-promo-header {
    height: 40px;
    line-height: 1;
}

#header.chrijdid-header .lang-switcher-toggle {
    padding: 0 10px;
}

#header.chrijdid-header .btn-login-header,
#header.chrijdid-header .btn-promo-header {
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

#header.chrijdid-header .btn-login-header svg,
#header.chrijdid-header .btn-promo-header svg {
    flex-shrink: 0;
}

.header-logout-form {
    display: flex;
    margin: 0;
}

/* Le code de la devise (MAD / EUR / USD) reste toujours visible */
.currency-switcher .lang-switcher-toggle .js-currency-current {
    display: inline !important;
}

/* Bouton menu mobile : dans le flux, a droite des actions (et non plus en position absolue) */
#header.chrijdid-header .inner-header .mobile-nav-toggler {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

@media (max-width: 1439px) {
    #header.chrijdid-header .header-lower .header-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    #header.chrijdid-header .inner-header-left {
        gap: 28px;
    }

    #header.chrijdid-header .logo-box .logo .logo-img-default {
        height: 76px;
    }

    #header.chrijdid-header .main-menu .navigation {
        gap: clamp(16px, 1.4vw, 24px);
    }

    #header.chrijdid-header .main-menu .navigation>li>a {
        font-size: 14px;
    }

    #header.chrijdid-header .lang-switcher:not(.currency-switcher) .lang-switcher-toggle span,
    #header.chrijdid-header .btn-login-header .btn-header-label {
        display: none;
    }

    #header.chrijdid-header .btn-login-header {
        width: 40px;
        padding: 0;
    }
}

@media (max-width: 1299px) {
    .main-header .main-menu {
        display: none;
    }

    .mobile-button {
        display: block !important;
    }

    /* Liens du menu mobile visibles (le theme ne les affiche que sous 1100 px) */
    .mobile-menu .navbar-collapse {
        display: block !important;
    }

    /* Le menu est passe dans le bouton mobile : il y a de nouveau la place pour « Connexion » */
    #header.chrijdid-header .btn-login-header .btn-header-label {
        display: inline;
    }

    #header.chrijdid-header .btn-login-header {
        width: auto;
        padding: 0 18px;
    }
}

@media (max-width: 1099px) {
    #header.chrijdid-header {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    #header.chrijdid-header .inner-header {
        gap: 12px;
    }

    #header.chrijdid-header .inner-header-right.header-account {
        gap: 12px;
    }

    #header.chrijdid-header .header-quick-actions {
        gap: 4px;
    }

    #header.chrijdid-header .logo-box .logo .logo-img-default {
        height: 52px;
    }

    #header.chrijdid-header .logo-box .logo .logo-img-light {
        height: 64px;
    }

    #header.chrijdid-header .header-divider {
        display: none;
    }

    #header.chrijdid-header .lang-switcher-toggle {
        padding: 0 8px;
    }

    #header.chrijdid-header .lang-switcher-toggle .icon {
        display: none;
    }

    #header.chrijdid-header .btn-login-header .btn-header-label,
    #header.chrijdid-header .btn-promo-header .btn-header-label {
        display: none;
    }

    #header.chrijdid-header .btn-login-header,
    #header.chrijdid-header .btn-promo-header {
        width: 40px;
        padding: 0;
    }
}

@media (max-width: 400px) {
    #header.chrijdid-header .header-lower .header-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    #header.chrijdid-header .logo-box .logo .logo-img-default {
        height: 40px;
    }

    .main-header .logo-box .logo img {
        height: 76px;
    }

    #header.chrijdid-header .lang-switcher-toggle {
        padding: 0 6px;
    }

    #header.chrijdid-header .btn-login-header,
    #header.chrijdid-header .btn-promo-header {
        width: 36px;
        height: 36px;
    }
}

/* ===== En-tete sur mobile et tablette (menu ☰) =====
   - Le theme ajoute 15px de padding au header + 16px de marge a droite des
     actions : le bouton ☰ depassait de l'ecran (bande blanche a droite).
   - Le logo etait force a 112px de haut alors que le PNG est a ~45% transparent
     en hauteur : d'ou le grand vide au-dessus. On recadre l'image sur le logo
     visible (object-fit) pour une barre compacte de 64px.
   Selecteurs renforces (.main-header) pour passer devant ceux de home.css. */
.btn-login-icon {
    display: none;
}

@media (max-width: 1149px) {
    .btn-login-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin: 0 4px;
        border-radius: 50%;
        border: 1.5px solid #e4e4e4;
        color: #161e2d;
    }

    .btn-login-icon svg path {
        stroke: currentColor;
    }
}

@media (max-width: 991px) {
    #header.chrijdid-header.main-header {
        height: 64px;
        padding: 0;
        min-height: 0;
    }

    #header.chrijdid-header.main-header.has-hero {
        margin-bottom: -64px;
    }

    #header.chrijdid-header.main-header.has-hero.is-fixed {
        min-height: 0;
    }

    #header.chrijdid-header.main-header .header-lower .header-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    #header.chrijdid-header.main-header .inner-header {
        height: 64px;
        gap: 10px;
    }

    #header.chrijdid-header.main-header .inner-header-left {
        min-width: 0;
    }

    #header.chrijdid-header.main-header .logo-box .logo img {
        width: 136px;
        height: 32px;
        min-width: 0;
        min-height: 0;
        object-fit: cover;
        object-position: center;
        /* aligne visuellement le logo sur les icones de droite */
        transform: translateY(2px);
    }

    #header.chrijdid-header.main-header .header-lower .nav-outer {
        padding: 0;
    }

    #header.chrijdid-header.main-header .inner-header-right.header-account {
        margin: 0 0 0 auto;
    }

    #header.chrijdid-header.main-header .header-quick-actions {
        gap: 2px;
    }

    #header.chrijdid-header.main-header .lang-switcher-toggle {
        padding: 6px;
    }

    #header.chrijdid-header.main-header .lang-switcher-toggle .icon {
        display: none;
    }

    #header.chrijdid-header.main-header .lang-switcher-menu {
        top: calc(100% + 14px);
    }

    /* Le theme le place a top: 50% (prevu pour un positionnement absolu) */
    #header.chrijdid-header.main-header .inner-header .mobile-nav-toggler {
        top: auto;
        margin-left: 6px;
    }
}

@media (max-width: 400px) {
    #header.chrijdid-header.main-header .header-lower .header-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    #header.chrijdid-header.main-header .logo-box .logo img {
        width: 116px;
        height: 28px;
    }
}