/* ==========================================================================
   1. VARIABLES & BASE (Inchangé)
   ========================================================================== */

:root {
	/* --- Couleurs de la Palette Flutter AppColors --- */
	--primary-color: #AC0D0D;	   /* Rouge profond */
	--secondary-color: #00796B;	 /* Vert Canard/Teal */
	--bg-light: #F4F9F9;			/* Sable / Crème (lightBackgroundColor) */
	--text-dark: #3E2723;		   /* Marron Terre (darkTextColor) */
	--text-secondary: #757575;	  /* Gris secondaire */
	--tertiary-orange: #FFA726;	 /* Orange Vif / Ambre */
	--light-gray: #AFA8A8;		  /* lightGray */
	--border-color: #E0E0E0;		/* borderColor */
	--white: #FFFFFF;
	
	/* --- Styles de Design Flutter --- */
	--font-main: 'Montserrat', sans-serif;
	--radius-btn: 8px;			  /* BorderRadius.circular(8.0) */
	--radius-card: 12px;			/* BorderRadius.circular(12.0) */
	--shadow-app: 0 4px 12px rgba(62, 39, 35, 0.15);
	--transition: all 0.25s ease-in-out;
	--text-color: #3E2723; /* Ajout pour corriger les oublis */
	--radius-lg: 20px;	 /* Ajout pour la sidebar */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: var(--font-main);
	background-color: var(--bg-light);
	color: var(--text-dark);
	line-height: 1.6;
}

.breadcrumb {
	--bs-breadcrumb-divider: '›'; /* Un séparateur plus élégant */
	font-size: 0.9rem;
}
.breadcrumb-item a {
	color: #6c757d;
	transition: color 0.2s ease-in-out;
}
.breadcrumb-item a:hover {
	color: #0d6efd; /* Le bleu primaire au survol */
}
.breadcrumb-item.active {
	color: #212529;
}
/* Ombre légère au survol du bloc complet */
.breadcrumb.shadow-sm:hover {
	shadow: 0 .125rem .25rem rgba(0,0,0,.1) !important;
}

.modal.fixed-right {
    padding-right: 0 !important;
    z-index: 1060 !important; /* Force la modal à passer DEVANT le top menu d'AdminLTE (souvent à 1030/1040) */
}

/* --- DRAWER MECANIQUE --- */
.modal.fixed-right .modal-dialog-aside {
    margin: 0;
    position: fixed;
    top: 0; 
    right: 0; 
    bottom: 0;
    width: 100%;
    max-width: 900px; /* Largeur sur grand écran */
    height: 100vh !important; /* Prend toute la hauteur de l'écran */
    transform: translate3d(100%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- CONTAINER ET INPUTS OTP (Étape 2) --- */
.otp-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 320px;
    margin: 0 auto;
}

.otp-input {
    height: 65px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-btn);
    background-color: #f8f9fa;
    transition: var(--transition);
}

.otp-input:focus {
    background-color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}
.otp-input.otp-error {
    border-color: #dc3545 !important; /* Le rouge standard bootstrap, ou ton rouge #AC0D0D */
    background-color: #fff5f5; /* Un très léger fond rosé pour accompagner l'erreur (optionnel) */
}

/* Optionnel : si tu veux un petit effet visuel de vibration quand le code est faux */
.otp-error {
    animation: shakeOTP 0.2s ease-in-out 0s 2;
}

@keyframes shakeOTP {
    0% { transform: translateX(0); }
    33% { transform: translateX(-5px); }
    66% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}
.text-underline {
    text-decoration: underline !important;
}
@media (max-width: 991px) {
    .modal.fixed-right .modal-dialog-aside { 
        max-width: 450px; /* Largeur adaptée sur tablette/mobile */
    }
}

.modal.fixed-right.show .modal-dialog-aside { transform: translate3d(0, 0, 0); }

/* Force le contenu interne et la grille à s'étirer sur toute la hauteur */
.modal.fixed-right .modal-content {
    height: 100vh !important;
    border-radius: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal.fixed-right .row.no-gutters {
    height: 100vh !important;
}

.modal.fixed-right .drawer-image-side,
.modal.fixed-right .col-lg-6 {
    height: 100vh !important;
}

/* --- DESIGN INTERNE --- */
.drawer-close-btn {
    position: absolute;
    top: 20px; right: 20px;
    z-index: 10;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-app);
    border: none; opacity: 1;
    transition: var(--transition);
}
.drawer-close-btn:hover { transform: rotate(90deg); color: var(--primary-color); }

.drawer-image-side {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex; align-items: flex-end;
    padding: 40px;
}
.drawer-image-side::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.image-overlay-content { position: relative; z-index: 2; }

.drawer-form-container {
    padding: 60px 50px;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center;
}

.drawer-title {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-dark);
}

.security-badge {
    font-size: 13px; color: var(--text-secondary);
    margin-top: 10px;
}

/* --- INPUTS & BOUTONS --- */
.premium-input {
    height: 55px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    font-size: 16px;
    padding: 0 20px;
}
.premium-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

.btn-submit-premium {
    width: 100%; height: 55px;
    background-color: var(--primary-color); /* Ton rouge #AC0D0D */
    color: white; font-weight: 700; font-size: 18px;
    border-radius: var(--radius-btn);
    border: none; transition: var(--transition);
}
.btn-submit-premium:hover {
    background-color: #ce1212; transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(172, 13, 13, 0.3);
}

.forgot-password {
    color: var(--text-secondary); text-decoration: underline; font-size: 14px;
}

/* --- SOCIAL GRID --- */
.social-separator {
    text-align: center; border-bottom: 1px solid var(--border-color);
    line-height: 0.1em; margin: 30px 0;
}
.social-separator span { background:#fff; padding:0 15px; color: var(--text-secondary); font-size: 13px; }

.social-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}

.btn-social-custom {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid var(--border-color);
    background: white; border-radius: var(--radius-btn);
    padding: 12px; font-weight: 600; font-size: 14px;
    transition: var(--transition);
}
.btn-social-custom img { width: 20px; height: 20px; }
.btn-social-custom:hover {
    background: #f8f9fa; border-color: var(--text-dark);
}

/* --- HEADER & GRID --- */
header.cdm-nav {
	background-color: var(--white);
	height: 85px;
	/*border-bottom: 2px solid var(--secondary-color);*/
	display: flex;
	align-items: center;
	padding: 0 5%;
	position: sticky;
	top: 0;
	z-index: 2000;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-grid {
	display: grid;
	grid-template-columns: 150px 1fr auto;
	width: 100%;
	align-items: center;
	gap: 20px;
}

.logo-img { height: 40px; }

/* --- NAVIGATION --- */
.nav-list {
	display: flex;
	list-style: none;
	gap: 15px;
	justify-content: center;
}

.nav-item { position: static; }

.nav-trigger {
	font-family: var(--font-main);
	font-size: 15px;
	font-weight: 700;
	color: var(--text-dark);
	background: none;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: var(--transition);
}

.nav-trigger:hover { color: var(--secondary-color); }
.nav-trigger.highlight { color: var(--primary-color); }
.nav-link i.fa-mosque { color: #27ae60 !important; }		  /* Vert pour les prières */
.nav-link i.fa-cloud-sun-rain { color: #3498db !important; }  /* Bleu pour la météo */
.nav-link i.fa-school { color: #e67e22 !important; }		 /* Orange pour les institutions */
.nav-link i.fa-camera-retro { color: #9b59b6 !important; }	/* Violet pour les médias */
.nav-link i.fa-newspaper { color: #34495e !important; }	   /* Gris/Bleu pour les actus */
.nav-link i.fa-calendar-check { color: #e74c3c !important; }  /* Rouge pour les événements */
.nav-link i.fa-calendar { color: #FF9800 !important; } /* Orange pour les événements */
.nav-link i.fa-newspaper { color: #2196F3 !important; }	/* Bleu pour l'actu */
.nav-link i.fa-clapperboard { color: #E91E63 !important; } /* Rose pour les médias */
.arrow {
	width: 6px; height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
}

/* --- MEGA MENU --- */
.mega-menu {
	position: absolute;
	top: 85px; left: 0; width: 100%;
	background: var(--white);
	padding: 40px 10%;
	border-bottom: 4px solid var(--secondary-color);
	box-shadow: var(--shadow-app);
	opacity: 0; visibility: hidden;
	transform: translateY(10px);
	transition: var(--transition);
	z-index: 100;
}

.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1.5fr;
	gap: 40px;
}

.mega-col h4 {
	color: var(--secondary-color);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 20px;
}

.mega-col a {
	display: block;
	color: var(--text-dark);
	text-decoration: none;
	padding: 8px 0;
	font-size: 15px;
	transition: color 0.2s;
}

.mega-col a:hover { color: var(--primary-color); }


.nav-item .btn-nav {
	background-color: var(--secondary-color);
	color: var(--white);
	text-decoration: none;
	padding: 10px 20px;
	border-radius: var(--radius-btn);
	font-weight: 700;
	font-size: 14px;
	transition: var(--transition);
}

.mega-promo {
	background: var(--bg-light);
	padding: 25px;
	border-radius: var(--radius-card);
	border: 1px solid var(--border-color);
}

.promo-tag {
	background: var(--tertiary-orange);
	color: var(--white);
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
}

/* --- ACTIONS DROITE --- */
.nav-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
	background: none; border: none;
	color: var(--text-dark);
	cursor: pointer; padding: 10px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	position: relative;
	transition: var(--transition);
}

.icon-btn:hover { color: var(--secondary-color); background: rgba(0,121,107,0.05); }

.nav-btn-account {
	background-color: var(--secondary-color);
	color: var(--white);
	text-decoration: none;
	padding: 10px 20px;
	border-radius: var(--radius-btn);
	font-weight: 700;
	font-size: 14px;
	transition: var(--transition);
}

/* --- SEARCH WRAPPER --- */
.search-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.search-input-container {
	width: 0;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	background: #f5f5f5;
	border-radius: 30px;
	display: flex;
	align-items: center;
}

/* Quand l'input est ouvert */
.search-input-container.open {
	width: 250px; /* Largeur sur Desktop */
	padding: 0 15px;
	margin-right: 10px;
}

/* --- POPOVERS --- */
.login-popover, .cart-popover, .lang-popover {
	position: absolute;
	top: 75px; 
	right: 0;
	width: 210px;
	background: var(--white);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-app);
	border: 1px solid var(--border-color);
	padding: 25px;
	opacity: 0; visibility: hidden;
	transform: translateY(10px);
	transition: var(--transition);
	z-index: 3000;
}
.login-popover {
	width: 310px;
}

/* Gestion spécifique pour l'Arabe (RTL) */
[dir="rtl"] .lang-popover,
[dir="rtl"] .login-popover,
[dir="rtl"] .cart-popover {
    right: auto;   /* On annule le positionnement à droite */
    left: 0;       /* On le force à gauche par rapport au parent */
}

.lang-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
	text-decoration: none;
}

.lang-option.active {
	background: #E6F7F6;
}

[dir="rtl"] .lang-option {
    flex-direction: row-reverse; /* Inverse l'ordre Drapeau / Texte */
    text-align: right;
    justify-content: flex-start;
    gap: 12px;
}

/* Simulateurs de drapeaux cerclés */

/* Style de base pour les cercles */
.flag-circle {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-size: cover;
	border: 1px solid #EEE;
	display: inline-block;
	border: 1px solid rgba(0,0,0,0.1);
	vertical-align: middle;

}

/* France */
.flag-circle.fr { background: linear-gradient(to right, #00267F 33%, var(--white) 33%, var(--white) 66%, #F31830 66%); }
/* Allemagne */
.flag-circle.de { background: linear-gradient(to bottom, #000 33%, #FF0000 33%, #FF0000 66%, #FFCC00 66%); }
/* Pays-Bas */
.flag-circle.nl { background: linear-gradient(to bottom, #AE1C28 33%, var(--white) 33%, var(--white) 66%, #21468B 66%); }
/* Italie */
.flag-circle.it { background: linear-gradient(to right, #009246 33%, var(--white) 33%, var(--white) 66%, #ce2b37 66%); }
/* Espagne (Simplifié sans blason) */
.flag-circle.es { background: linear-gradient(to bottom, #AA151B 25%, #F1BF00 25%, #F1BF00 75%, #AA151B 75%); }
/* Royaume-Uni (EN) - Version simplifiée Croix de St George */
.flag-circle.en { background: 
	radial-gradient(circle, transparent 0%, transparent 100%),
	linear-gradient(90deg, transparent 45%, #cf142b 45%, #cf142b 55%, transparent 55%),
	linear-gradient(0deg, #00247d 45%, #cf142b 45%, #cf142b 55%, #00247d 55%); 
}
/* Maroc (AR_MA) - Rouge avec centre vert (évocation de l'étoile) */
.flag-circle.ar_ma { background: radial-gradient(circle, #006233 30%, #c1272d 31%); }
/* Monde Arabe (AR - Couleurs Panarabes simplifiées) */
.flag-circle.ar { background: linear-gradient(to bottom, #000 33%, var(--white) 33%, var(--white) 66%, #007a3d 66%); border-left: 20px solid #ce1126; }
/* Chine */
.flag-circle.zh { background: #ee1c25; position: relative; }
.flag-circle.zh::after { content: "★"; color: #ffff00; font-size: 12px; position: absolute; top: 2px; left: 4px; }

#langPopover a{}

.login-popover.open, .cart-popover.open, .lang-popover.open { opacity: 1; visibility: visible; transform: translateY(0); }

/* Header avec Avatar */
.user-profile-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 5px;
}

.avatar-circle {
	width: 45px;
	height: 45px;
	background: var(--secondary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 1.2rem;
	box-shadow: 0 4px 10px rgba(0, 121, 107, 0.2);
}

.user-info {
	display: flex;
	flex-direction: column;
}

.user-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-color);
	max-width: 150px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-role {
	font-size: 0.75rem;
	color: #757575;
}

/* Menu Items */
.popover-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	text-decoration: none;
	color: var(--text-color);
	border-radius: var(--radius-btn);
	transition: background 0.2s;
	font-size: 0.9rem;
}

.menu-item i {
	color: var(--secondary-color);
	width: 20px;
	text-align: center;
}

.menu-item:hover {
	background: rgba(0, 0, 0, 0.04);
}

/* Bouton Déconnexion */
.btn-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	background: #fff1f0;
	color: #f44336;
	border-radius: var(--radius-btn);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: 0.2s;
}

.btn-logout:hover {
	background: #ffe4e1;
}

/* --- FORMULAIRES --- */
.login-form label.caption {
	display: block; font-size: 12px; font-weight: 700;
	margin-bottom: 8px; color: var(--text-dark); opacity: 0.7;
}

.login-form input[type="email"], 
.login-form input[type="password"], 
.login-form input[type="text"] {
	width: 100%; padding: 12px; margin-bottom: 20px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-btn);
}

.login-form input:focus { border: 2px solid var(--primary-color); outline: none; }

.btn-submit {
	width: 100%; background: var(--primary-color);
	color: var(--white); border: none;
	padding: 14px; border-radius: var(--radius-btn);
	font-weight: 700; cursor: pointer;
	margin-bottom: 15px;
}

.fade-field {
    display: flex; /* Reste en flex */
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
    pointer-events: auto;
}

.fade-field.is-hidden {
    opacity: 0;
    pointer-events: none; 
	display: none;
}


/* 1. On applique le flex horizontal sans retour à la ligne */
#common-location-field .ts-control {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* 2. Le tag vert reste compact et ne s'écrase pas */
#common-location-field .ts-control .item {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    border-radius: 50px !important;
}

/* 3. 🎯 LE FIX : On force l'input à rester cliquable et visible */
#common-location-field .ts-control > input {
    display: inline-block !important;
    flex: 1 1 150px !important; /* 🌟 150px sert de base minimale pour forcer l'espace de clic */
    width: auto !important; /* 🌟 Écrase le width: 0px ou width: 2px injecté par le JS de TomSelect */
    min-width: 150px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 4. Optionnel : On s'assure que le wrapper laisse l'input visible à l'intérieur */
#common-location-field .ts-wrapper {
    overflow: visible !important;
}

.separator { height: 1px; background: var(--border-color); margin: 20px 0; }

.btn-register {
	display: flex; justify-content: space-between; align-items: center;
	text-decoration: none; color: var(--text-dark); font-weight: 700;
	padding: 12px; background: var(--bg-light); border-radius: var(--radius-btn);
}

/* --- TOASTS DESIGN V3 --- */
.toast-container .auth-toast {
    display: block !important; /* Force l'affichage HTML */
    opacity: 1 !important;     /* Force la visibilité */
    margin-bottom: 12px;
    background-color: var(--white, #FFFFFF);
    min-width: 320px;
    max-width: 400px;
    border-left: 4px solid var(--primary-color, #AC0D0D) !important; /* Utilise le rouge de ton style.css */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-app); /* Utilise l'ombre de ton style.css */
}

/* Coloration de la bordure gauche pour un rappel élégant du statut */
.toast-container .bg-success + .auth-toast, .auth-toast:has(.text-success) { border-left-color: #198754 !important; }
.toast-container .bg-danger + .auth-toast, .auth-toast:has(.text-danger) { border-left-color: #dc3545 !important; }
.toast-container .bg-warning + .auth-toast, .auth-toast:has(.text-warning) { border-left-color: #ffc107 !important; }
.toast-container .bg-info + .auth-toast, .auth-toast:has(.text-primary) { border-left-color: var(--primary-color, #AC0D0D) !important; }

/* Animation de la barre de progression en bas du toast */
.toast-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: toastProgress linear forwards;
}

/* On synchronise la durée de l'animation CSS avec la fermeture (ici 6 secondes) */
@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* --- PANIER --- */
.cart-badge {
	position: absolute; top: 2px; right: 2px;
	background: var(--primary-color); color: var(--white);
	font-size: 10px; width: 18px; height: 18px;
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.cart-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.cart-total { display: flex; justify-content: space-between; margin-top: 15px; font-weight: 700; }

/* --- GRILLE DE CARTES --- */
.section-title {
	display: flex; justify-content: space-between; align-items: flex-end;
	padding: 40px 5% 20px; max-width: 1200px; margin: 0 auto;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px; padding: 0 5% 80px;
	max-width: 1200px; margin: 0 auto;
}

.card {
	background: var(--white);
	border-radius: var(--radius-card);
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition: var(--transition);
}

.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-app); }

.card-img {
	height: 200px; background-size: cover; background-position: center;
	padding: 15px; position: relative;
}

.badge {
	background: var(--tertiary-orange); color: var(--white);
	padding: 5px 12px; border-radius: 6px; font-size: 10px; font-weight: 700;
}

.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card-body p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; height: 45px; overflow: hidden; }

.card-footer { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--secondary-color); }
.price small { font-size: 0.8rem; color: var(--text-secondary); }

/* --- ADAPTATIONS RESPONSIVE --- */

/* Gestion du Menu Burger Mobile */
.burger-menu {
	display: none; /* Caché par défaut sur desktop */
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
}

.burger-menu span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--secondary-color);
	border-radius: 3px;
	transition: var(--transition);
}



/* --- NOUVEAU STYLE RECHERCHE TABS --- */
.hero {
	padding: 60px 5%;
	text-align: center;
	background: radial-gradient(circle at center, var(--white) 0%, var(--bg-light) 100%);
}

.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; margin-bottom: 15px; }
.hero h1 span { color: var(--secondary-color); }
.hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 35px; max-width: 700px; margin-inline: auto; }

.search-container {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
}

.search-tabs {
	display: inline-flex;
	background: rgba(0, 121, 107, 0.05);
	padding: 6px;
	border-radius: 40px;
	margin-bottom: 25px;
	border: 1px solid rgba(0,0,0,0.05);
}

.tab-btn {
	border: none;
	background: none;
	padding: 10px 24px;
	border-radius: 30px;
	font-family: var(--font-main);
	font-weight: 700;
	font-size: 13px;
	color: var(--secondary-color);
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
}

.tab-btn.active {
	background: var(--secondary-color);
	color: var(--white);
	box-shadow: 0 4px 15px rgba(0, 121, 107, 0.3);
}

/* Barre de recherche unifiée */
.search-box {
	background: var(--white);
	display: flex;
	align-items: center;
	padding: 10px 10px 10px 30px;
	border-radius: 60px;
	box-shadow: 0 15px 45px rgba(62, 39, 35, 0.1);
	border: 1px solid var(--border-color);
	transition: var(--transition);
}

.search-box:focus-within {
	border-color: var(--secondary-color);
	box-shadow: 0 15px 50px rgba(0, 121, 107, 0.15);
}

.search-fields-group {
	display: none;
	flex: 1;
	align-items: center;
}

.search-fields-group.active {
	display: flex;
}

.search-field {
	display: flex;
	flex-direction: column;
	text-align: left;
	padding: 0 20px;
	border-right: 1px solid #eee;
	flex: 1;
	min-width: 140px;	
}

.search-field:last-child { border-right: none; }

.search-field label {
	font-size: 10px;
	font-weight: 800;
	color: var(--light-gray);
	letter-spacing: 1px;
	margin-bottom: 2px;
}

.search-field input, .search-field select {
	border: none;
	background: none;
	outline: none;
	font-family: var(--font-main);
	font-size: 15px;
	font-weight: 600;
	color: var(--text-dark);
	width: 100%;
}

.btn-go {
	background: var(--primary-color);
	border: none;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
	flex-shrink: 0;
}

.btn-go:hover {
	transform: scale(1.05) rotate(5deg);
	background: #ce1212;
}


/* --- FOOTER STYLE LUNII --- */
footer {
	background-color: var(--white);
	padding: 80px 5% 40px;
	border-top: 1px solid var(--border-color);
	margin-top: 60px;
}

footer .btn-flutter{
	background-color: var(--secondary-color);
	color: var(--white);
	text-decoration: none;
	padding: 10px 20px;
	border-radius: var(--radius-btn);
	font-weight: 700;
	font-size: 14px;
	transition: var(--transition);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 3fr;
	gap: 60px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Newsletter */
.footer-newsletter h3 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 15px;
}

.footer-newsletter p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 25px;
	line-height: 1.5;
}

.newsletter-form {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.newsletter-form input {
	flex: 1;
	padding: 12px 20px;
	border-radius: var(--radius-btn);
	border: 1px solid var(--border-color);
	font-family: var(--font-main);
}

.newsletter-consent {
	font-size: 0.75rem;
	color: var(--text-secondary);
	line-height: 1.4;
}

/* Liens */
.footer-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.footer-col h4 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--text-dark);
}

.footer-col ul {
	list-style: none;
}

.footer-col ul li {
	margin-bottom: 12px;
}

.footer-col ul li a {
	text-decoration: none;
	color: var(--text-secondary);
	font-size: 0.9rem;
	font-weight: 600;
	transition: var(--transition);
}

.footer-col ul li a:hover {
	color: var(--secondary-color);
}

/* Bottom Footer */
.footer-bottom {
	max-width: 1200px;
	margin: 60px auto 0;
	padding-top: 30px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.social-links {
	display: flex;
	gap: 15px;
}

.social-links img {
	width: 24px;
	height: 24px;
	opacity: 0.7;
	transition: var(--transition);
}

.social-links img:hover {
	opacity: 1;
	transform: translateY(-3px);
}

/* Style pour les erreurs de validation Symfony */
.form-error-message {
	color: var(--primary-color);
	font-size: 11px;
	margin-top: 5px;
	font-weight: 600;
}

/* Alignement des Checkboxes */
.auth-checkbox-group {
	margin: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.checkbox-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--text-dark);
}

.checkbox-item input[type="checkbox"] {
	margin-top: 3px;
	cursor: pointer;
	accent-color: var(--secondary-color);
}

.checkbox-item label {
	cursor: pointer;
	line-height: 1.4;
}
/* ==========================================================================
   WIDGET AIDE / SUPPORT
   ========================================================================== */
.help-widget-card {
    background: linear-gradient(145deg, var(--white), var(--bg-light));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.05); /* Ombre très douce teintée de vert canard */
    transition: var(--transition);
}

.help-widget-card:hover {
    box-shadow: 0 8px 25px rgba(0, 121, 107, 0.12);
    transform: translateY(-3px);
}

.help-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 121, 107, 0.1); /* Fond vert canard transparent */
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.help-widget-card:hover .help-icon-wrapper {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05) rotate(-5deg);
}

.help-widget-title {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.15rem;
}

.help-widget-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Bouton Contact WhatsApp (Intégré à ton thème) */
.btn-help {
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 40px; /* Forme de pilule (pill) plus douce */
    font-weight: 700;
    padding: 10px 25px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-help:hover {
    background-color: #005a4f; /* Vert canard un peu plus sombre */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.3);
}

/* ==========================================================================
   WIDGET NEWSLETTER
   ========================================================================== */
/* ==========================================================================
   WIDGET NEWSLETTER (VERSION COMPACTE EN LIGNE)
   ========================================================================== */
.newsletter-widget-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.03);
    transition: var(--transition);
}

.newsletter-widget-card:hover {
    box-shadow: 0 8px 25px rgba(62, 39, 35, 0.07);
    transform: translateY(-2px);
}

.newsletter-icon-wrapper {
    width: 36px;
    height: 36px;
    background: rgba(172, 13, 13, 0.08);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.newsletter-widget-title {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.newsletter-widget-text {
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Structure en ligne de la barre (Pill) */
.newsletter-input-group {
    border: 1px solid var(--border-color);
    border-radius: 50px !important; /* Force la forme pilule globale */
    overflow: hidden; /* Coupe les angles du bouton et de l'icône à l'intérieur */
    transition: var(--transition);
    background: var(--white);
}

.newsletter-input-group .form-control {
    font-size: 0.88rem;
    color: var(--text-dark);
    border: none;
    padding: 10px 10px;
    font-family: var(--font-main);
}

.newsletter-input-group .input-group-text {
    border: none;
    padding-left: 16px;
}

/* Effet de focus aux couleurs Vert Canard sur toute la barre */
.newsletter-input-group:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.15);
}

/* Le bouton intégré à droite (Rouge Profond) */
.newsletter-input-group .btn-newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 0.85rem;
    padding: 0 20px;
    transition: var(--transition);
    border-radius: 0; /* Pas d'arrondi propre, c'est le conteneur parent qui gère */
}

.newsletter-input-group .btn-newsletter:hover {
    background-color: #8c0a0a;
    color: var(--white);
}

/* Pot de miel anti-spam */
.hp-wrapper {
    position: absolute;
    left: -9999px;
    overflow: hidden;
    width: 1px;
    height: 1px;
}

.newsletter-footer-text {
    font-size: 0.7rem;
    color: var(--light-gray);
}

.hp-wrapper {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Style spécifique pour le select du pays */
select.auth-input {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1em;
}

.auth-link {
	color: var(--secondary-color);
	font-weight: 700;
	text-decoration: underline;
	transition: var(--transition);
}

.auth-link:hover {
	color: var(--primary-color);
}


.flatpickr-calendar {
	box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
	border: none !important;
	border-radius: 15px !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
	background: var(--secondary-color) !important;
	border-color: var(--secondary-color) !important;
}

.flatpickr-day:hover {
	background: rgba(0, 121, 107, 0.1) !important;
}
/* Style pour le calendrier en mode Arabe */
.flatpickr-calendar.rtl {
	direction: rtl;
	text-align: right;
}

.flatpickr-calendar.rtl .flatpickr-prev-month,
.flatpickr-calendar.rtl .flatpickr-next-month {
	transform: scaleX(-1); /* Inverse les flèches */
}

.guest-field {
	position: relative;
	min-width: 180px;
}

.guest-input-wrapper {
	cursor: pointer;
}

.guest-popup {
	display: none;
	position: absolute;
	top: 110%;
	right: 0;
	width: 280px;
	background: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	padding: 20px;
	z-index: 1000;
}

.guest-popup.active { display: block; animation: fadeIn 0.2s; }

.guest-popup-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.guest-popup-counter {
	display: flex;
	align-items: center;
	gap: 10px;
}

.counter-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--secondary-color);
	background: white;
	color: var(--secondary-color);
	cursor: pointer;
	font-weight: bold;
}

.guest-popup-counter input {
	width: 42px;
	text-align: center;
	border: none;
	font-weight: bold;
}

.btn-done {
	width: 100%;
	background: var(--secondary-color);
	color: white;
	border: none;
	padding: 8px;
	border-radius: 8px;
	margin-top: 10px;
	cursor: pointer;
}

.search-box .form-control {
    padding: .25rem .25rem !important;
}


/* Style des bulles (Chips) */
.ts-wrapper.multi .ts-control > div {
	background: var(--secondary-color) !important;
	color: white !important;
	border-radius: 20px !important; /* Arrondi style pilule */
	padding: 2px 10px !important;
	margin: 2px 5px 2px 0 !important;
	border: none !important;
	display: flex;
	align-items: center;
}

/* Style de la petite croix de suppression */
.ts-wrapper.multi .ts-control > div .remove {
	border-left: 1px solid rgba(255,255,255,0.3) !important;
	margin-left: 5px !important;
	color: white !important;
}

/* Ajustement de la hauteur pour que la barre s'agrandisse si besoin */
.ts-control {
	/* min-height: 45px !important; */
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
}

/* Cacher le placeholder quand il y a des items (optionnel) */
.ts-wrapper.multi.has-items .ts-control > input::placeholder {
	color: transparent;
}

/* Éviter que les bulles ne soient trop collées au bord */
.ts-control {
	padding: 8px 12px !important;
	border-radius: 10px;
}

/* 1. On rend le conteneur TomSelect invisible (pas de bordure, pas de fond) */
.ts-control {
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	cursor: text;
}

/* 2. On stylise l'input de saisie interne pour qu'il hérite de tes polices */
.ts-control input {
	color: var(--text-color) !important;
	font-family: inherit !important;
	font-size: 0.95rem !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
    min-height: 25px !important;	
}

/* 3. On gère l'état quand le champ est focus (supprimer l'anneau bleu par défaut) */
.ts-wrapper.focus .ts-control {
	box-shadow: none !important;
	outline: none !important;
}

/* 4. Si tu es en multi-select, on ajuste les "bulles" pour ne pas casser la ligne */
.ts-wrapper.multi .ts-control > div {
	margin: 2px 5px 2px 0 !important;
	cursor: default;
}

/* Cache le message "No results" s'il est vide ou non désiré */
.ts-dropdown .no-results {
	padding: 8px 12px;
	color: #999;
	font-size: 0.85rem;
}

/* Évite que le dropdown ne s'affiche inutilement s'il est vide */
.ts-dropdown-content:empty {
	display: none !important;
}

/* Champ en erreur */
.search-field.field-error {
	border: 1.5px solid #ff4d4d !important;
	background-color: #fff5f5 !important;
	transition: all 0.3s ease;
	border-radius: 15px;
}

.search-field.field-error label {
	color: #ff4d4d !important;
}

/* Animation de secousse */
.shake {
	animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
	10%, 90% { transform: translate3d(-1px, 0, 0); }
	20%, 80% { transform: translate3d(2px, 0, 0); }
	30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
	40%, 60% { transform: translate3d(4px, 0, 0); }
}

.search-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #333;
	color: var(--white);
	padding: 12px 25px;
	border-radius: 30px;
	font-size: 0.9rem;
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	z-index: 9999;
}
.search-toast.show {
	transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   7. PAGE RÉSULTATS 
   ========================================================================== */
/* Conteneur principal après le header sticky */
.results-page {
	background-color: var(--bg-light);
	min-height: 100vh;
}

.main-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 30px 0; }

/* Sidebar de Filtres */
.filters-sidebar {
	background: var(--white);
	border-radius: var(--radius-card);
	padding: 25px;
	border: 1px solid var(--border-color);
	height: fit-content;
}
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.filters-header h3 {
	font-family: var(--font-main);
	font-weight: 800;
	color: var(--text-dark);
}
.filter-group { margin-bottom: 30px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
.filter-group h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 15px; }

/* Barre de recherche compacte (Header Sticky) */
.search-header-sticky {
	background: var(--white);
	padding: 12px 0;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	position: sticky;
	top: 85px; /* Ajusté selon la hauteur de votre nav cdm-nav */
	z-index: 1000;
	border-bottom: 1px solid var(--border-color);
}

.compact-search-form .search-inputs-wrapper {
	display: grid;
	
	gap: 15px;
	align-items: center;
	background: #f8fafc; /* Fond légèrement grisé pour détacher les inputs */
	padding: 8px 15px 8px 25px;
	border-radius: 50px;
	border: 1px solid var(--border-color);
}

.grid-template-3columns {
	grid-template-columns: 1.5fr 1fr 1fr auto;
}
.grid-template-4columns {
	grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
}
.compact-search-form .search-item {
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--border-color);
	padding-right: 10px;
}

.compact-search-form .search-item:nth-last-child(2) {
	border-right: none;
}

.compact-search-form label {
	font-size: 10px;
	font-weight: 800;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.compact-search-form input, 
.compact-search-form .traveler-summary {
	border: none;
	background: transparent;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	height: auto;
	cursor: pointer;
}

/* Grille de résultats (Utilise vos cartes existantes) */
.results-grid {
	display: grid;
	/* auto-fill permet de garder la taille fixe des cartes même s'il y en a peu */
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
	gap: 25px;
	/* Optionnel : si vous voulez que les cartes soient centrées s'il y en a peu */
	justify-content: start;
}

/* On s'assure que le wrapper de catégorie ne casse pas le flux */
.category-section { width: 100%; grid-column: 1 / -1; margin-bottom: 40px;}

.category-title {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--text-dark);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.category-title i {
	color: var(--secondary-color);
	background: rgba(0, 121, 107, 0.1);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
}

/* ==========================================================================
   5. LA CARTE (RESULT-CARD)
   ========================================================================== */
.result-card {
	background: var(--white);
	border-radius: var(--radius-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #edf2f7;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-app);
}

.card-image-wrapper { position: relative; height: 200px; }
.card-img-top { width: 100%; height: 100%; object-fit: cover; }
.result-card:hover .card-img-top { transform: scale(1.1); }

.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; }
.badge-featured { background: #ffdf00; color: #000; padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: bold; text-transform: uppercase; }
.badge-type { background: rgba(0, 0, 0, 0.6); color: var(--white); padding: 4px 10px; border-radius: 20px; font-size: 10px; backdrop-filter: blur(4px); }

.btn-wishlist {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow-app);
	transition: var(--transition);
	z-index: 10;
}

.btn-wishlist i {
	color: var(--text-secondary);
	font-size: 18px;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* État Hover */
.btn-wishlist:hover {
	background: var(--white);
	transform: scale(1.1);
}

/* État Actif (Favoris ajouté) */
.btn-wishlist.active i {
	color: var(--primary-color); /* Ton rouge profond #AC0D0D */
}

/* Animation de battement de coeur au clic */
.btn-wishlist.animating i {
	transform: scale(1.4);
}

.card-body-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.rating-stars { margin-bottom: 8px; font-size: 12px; }
.star-gold { color: #f6ad55; }
.star-muted { color: #cbd5e0; }
.review-count { color: #718096; margin-left: 5px; }

.card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.card-location { font-size: 13px; color: #718096; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }

.card-amenities { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.card-amenities span { font-size: 11px; background: #f7fafc; padding: 4px 8px; border-radius: 6px; }

.card-footer-price {
	margin-top: auto; border-top: 1px solid #f1f5f9; padding-top: 15px;
	display: flex; justify-content: space-between; align-items: center;
}

.price-amount { font-size: 20px; font-weight: 800; color: var(--secondary-color); }

.btn-book {
	background: var(--primary-color); color: var(--white); padding: 6px 5px;
	border-radius: 8px; font-weight: 600; font-size: 14px;
}

/* ==========================================================================
   6. ÉTATS & RESPONSIVE
   ========================================================================== */
/* Loader AJAX */
.loader-overlay {
	position: absolute;
	inset: 0;
	background: rgba(244, 249, 249, 0.7); /* Utilise --bg-light */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 20;
	border-radius: var(--radius-card);
}

/* Styles du tri (Sorting) */
.sort-select {
	border: 1px solid var(--border-color);
	padding: 8px 15px;
	border-radius: var(--radius-btn);
	font-family: var(--font-main);
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	background-color: var(--white);
	cursor: pointer;
}

.reading-progress-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: rgba(255,255,255,0.1);
	z-index: 9999;
} 
.reading-progress-bar {
	height: 100%;
	background: var(--bs-primary); /* Ta couleur principale */
	width: 0%;
	transition: width 0.1s ease;
}
.reading-toolbar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1050; /* Doit être au-dessus du contenu mais sous les modales */
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px); /* Effet moderne de transparence */
	transition: transform 0.3s ease-in-out;
}

/* Loader AJAX au centre du contenu */
.results-content {
	position: relative;
}

.spinner {
	width: 40px; 
	height: 40px; 
	border: 3px solid #f3f3f3; 
	border-top: 3px solid var(--primary-color); 
	border-radius: 50%; 
	animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* État vide (No results) */
.no-results-container {
	grid-column: 1 / -1; /* Force le message à occuper toutes les colonnes de la grille */
	text-align: center;
	padding: 60px;
	background: var(--white);
	border-radius: var(--radius-card);
	border: 2px dashed var(--border-color);
}

.no-results-img {
	width: 100px;
	margin-bottom: 20px;
	opacity: 0.4;
}


.btn-update-search {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 12px 28px;
	border-radius: 40px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.btn-update-search:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-reset { background: none; border: none; color: var(--primary-color); font-size: 13px; font-weight: 600; cursor: pointer; }
.search-item { border-right: 1px solid var(--border-color); padding-right: 10px; }
.search-item:nth-last-child(2) { border-right: none; }
.search-item label { 
	display: block; font-size: 10px; font-weight: 800; color: var(--text-muted); 
	text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; 
}
.search-item input { background: transparent; border: none; font-size: 14px; font-weight: 600; outline: none; width: 100%; }
.results-top-bar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
/* --- Groupe de filtre Budget --- */
.range-container {
	padding: 10px 0;
}

/* Style de base du curseur (la piste) */
.filter-input[type="range"] {
	-webkit-appearance: none;
	width: 100%;
	height: 6px;
	background: #e2e8f0;
	border-radius: 5px;
	outline: none;
	margin: 15px 0;
}

/* Style du bouton de glisse (Chrome, Safari, Edge, Opera) */
.filter-input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	background: var(--secondary-color); /* Vert canard */
	cursor: pointer;
	border-radius: 50%;
	border: 2px solid var(--white);
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: var(--transition);
}

/* Style du bouton de glisse (Firefox) */
.filter-input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	background: var(--secondary-color);
	cursor: pointer;
	border-radius: 50%;
	border: 2px solid var(--white);
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: var(--transition);
}

/* Interaction au survol */
.filter-input[type="range"]::-webkit-slider-thumb:hover {
	background: var(--primary-color); /* Devient rouge au survol */
	transform: scale(1.1);
}

/* Labels (0 DH et 5000 DH) */
.range-labels {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.range-labels span {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
}

#priceLabel {
	color: var(--secondary-color);
	background: rgba(0, 121, 107, 0.1);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 14px;
}

/* --- Groupe de Filtres (Checkboxes) --- */

.check-container {
	display: block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-dark);
	user-select: none;
	transition: var(--transition);
}

/* On cache la checkbox originale du navigateur */
.check-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Création de la checkbox personnalisée (le carré vide) */
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 20px;
	width: 20px;
	background-color: var(--white);
	border: 2px solid var(--border-color);
	border-radius: 4px; /* Un peu d'arrondi */
	transition: all 0.2s ease-in-out;
}

/* Style au survol du parent */
.check-container:hover .checkmark {
	border-color: var(--secondary-color);
}

/* Style quand la case est cochée (fond vert canard) */
.check-container input:checked ~ .checkmark {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
}

/* Création de l'indicateur (le "V" blanc) - caché par défaut */
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

/* On affiche l'indicateur quand c'est coché */
.check-container input:checked ~ .checkmark:after {
	display: block;
}

/* Style du "V" (dessiné avec des bordures) */
.check-container .checkmark:after {
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Effet de texte légèrement plus foncé au clic */
.check-container:active {
	color: var(--primary-color);
}
/* --- Groupe de Filtres (Étoiles / Radio) --- */

.stars-filter {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* On réutilise la base du check-container pour les boutons radio */
.stars-filter .check-container {
	padding-left: 35px;
	display: flex;
	align-items: center;
	min-height: 24px;
}

/* Modification de la forme pour les boutons Radio (Cercle au lieu de Carré) */
.stars-filter .checkmark {
	border-radius: 50%; /* Rend le bouton rond */
}

/* Le petit point blanc au centre du bouton radio quand il est sélectionné */
.stars-filter .check-container .checkmark:after {
	left: 6px;
	top: 6px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: white;
	border: none;
	transform: none; /* Annule la rotation du "V" des checkboxes */
}

/* Couleurs des étoiles */
.stars-gold {
	color: #FFB300; /* Or / Ambre */
	font-size: 16px;
	letter-spacing: 2px;
}

.stars-grey {
	color: #E0E0E0; /* Gris clair pour les étoiles vides */
}

/* Effet au survol d'une ligne de notation */
.stars-filter .check-container:hover {
	background: rgba(0, 121, 107, 0.03);
	border-radius: 8px;
}

/* Optionnel : mettre en gras quand c'est sélectionné */
.stars-filter input:checked ~ .stars-gold {
	font-weight: bold;
	text-shadow: 0 0 1px rgba(255, 179, 0, 0.5);
}


/* Footer de carte */
.circuit-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-top: 1px dashed #eee;
	padding-top: 20px;
}

.price-label {
	display: block;
	font-size: 0.75rem;
	color: #999;
}

.price-amount {
	font-size: 1.8rem;
	font-weight: 900;
	color: #222;
}

.btn-main {
	background: #222;
	color: white;
	padding: 12px 25px;
	border-radius: 15px;
	text-decoration: none;
	font-weight: 700;
	transition: all 0.3s;
}

.btn-main:hover {
	background: #AC0D0D;
	padding-right: 35px;
}

.toast {
	border-radius: var(--radius-card);
	font-family: var(--font-main);
	font-size: 0.9rem;
}

.bg-success {
	background-color: var(--secondary-color) !important; /* Ton vert Teal */
}

.bg-danger {
	background-color: var(--primary-color) !important; /* Ton rouge Flutter */
}

/* Style pour les tags */
.hover-primary {
	transition: all 0.2s ease;
}
.hover-primary:hover {
	background-color: var(--bs-primary) !important;
	color: white !important;
	border-color: var(--bs-primary) !important;
}

/* Positionnement collant de la sidebar */
.sticky-sidebar {
	position: -webkit-sticky;
	position: sticky;
	top: 20px; /* Espace par rapport au haut du navigateur */
	align-self: flex-start; /* Important pour que le sticky fonctionne dans un flexbox/grid */
	height: fit-content;
}

/* 1. On prépare le conteneur principal */
.homepage-wrapper {
	position: relative;
	background-color: var(--bg-light); /* On déplace le fond ici */
	overflow: hidden;
	width: 100%;
}

/* 3. Ton image de fond (Zellige) */
.homepage-wrapper::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	
	background-image: url('../img/homepage/background-zellige.png');
	background-repeat: repeat;
	background-size: 400px;
	
	/* Augmente l'opacité à 0.1 pour être sûr de la voir au début */
	opacity: 0.1; 
	z-index: 0;
	pointer-events: none;
}



/* Optionnel : Masque de fondu pour le bas de page */
/* Pour que le motif disparaisse doucement avant le footer */
.homepage-wrapper::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 300px;
	background: linear-gradient(to bottom, transparent, #ffffff);
	pointer-events: none;
	z-index: 0;
}


/* Mobile Adjustments */
/* Responsive */

@media (max-width: 1024px) {
	/* Header & Navigation */
	.nav-center {
		display: none; /* Masque la navigation classique */
		position: absolute;
		top: 85px;
		left: 0;
		width: 100%;
		background: var(--white);
		flex-direction: column;
		padding: 20px;
		box-shadow: var(--shadow-app);
		border-bottom: 2px solid var(--secondary-color);
	}

	.nav-center.active {
		display: flex; /* Affiche le menu quand activé */
	}

	.nav-list {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.nav-item {
		width: 100%;
	}

	.burger-menu {
		display: flex; /* Affiche le burger sur mobile */
	}

	.nav-grid {
		grid-template-columns: 1fr auto auto; /* Réajuste la grille du header */
	}

	/* Hero & Search Box */
	.hero h1 {
		font-size: 2rem; /* Réduit la taille du titre [cite: 88] */
	}

	.search-box {
		flex-direction: column; /* La recherche passe en colonne  */
		border-radius: 20px;
		padding: 20px;
		width: 100%;
		gap: 10px;
	}

	.search-field {
		border-right: none;
		border-bottom: 1px solid var(--border-color);
		padding: 10px 0;
		width: 100%;
	}

	.search-field:last-of-type {
		border-bottom: none;
	}

	.btn-go {
		width: 100%; /* Le bouton prend toute la largeur [cite: 99] */
		border-radius: var(--radius-btn);
	}
}

/* Cas particulier : Si vous voulez que s'il n'y a qu'un seul résultat, 
   il ne fasse pas toute la largeur de l'écran mais garde une taille raisonnable */
@media (min-width: 992px) {
	.results-grid {
		/* On limite la largeur maximale pour éviter l'effet "étiré" */
		grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
	}
	
	.sticky-sidebar {
		top: 90px; 
	}
}

.login-icon {
	display: none;
}
#cartEmpty {text-align:center;padding: 20px;}



/* Tablette et Mobile */
@media (max-width: 992px) {

	.nav-item .btn-nav {width: 100%;}

	.search-wrapper {
		position: static; /* Permet à l'input de se baser sur le parent global (nav) */
	}
	
	#cartEmpty {padding: 10px;}

	.search-input-container.open {
		position: absolute;
		/* On centre horizontalement par rapport au header */
		left: 10px; 
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
		
		width: auto; /* On laisse left/right gérer la largeur */
		max-width: none;
		height: 45px;
		z-index: 999;
		background: white;
		box-shadow: 0 8px 20px rgba(0,0,0,0.15);
		border: 1px solid #eee;
		padding: 0 15px;
		display: flex !important;
	}
	
	.icon-btn {
		padding: 4px;
	}
	.nav-btn-account {
		background: transparent !important; /* On enlève le fond du bouton si nécessaire */
		padding: 0 !important;
		border: none !important;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px; /* Aligné sur tes autres boutons icon-btn */
		height: 40px;
	}

	.login-text {
		display: none; /* On cache le texte "Connexion" */
	}

	.login-icon {
		display: block !important; /* On affiche l'icône */
		color: var(--text-dark); /* Ou ta couleur de police */
	}
	.search-header-sticky {
		top: 0; /* Si la nav devient masquée ou différente sur mobile */
	}
	
	.main-layout {
		grid-template-columns: 1fr;
		padding: 20px 15px;
	}
	.filters-sidebar { display: none; }
	.results-grid { grid-template-columns: 1fr; }

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.footer-links {
		grid-template-columns: repeat(2, 1fr);
	}
	.compact-search-form .search-inputs-wrapper {
		grid-template-columns: 1fr;
		border-radius: 20px;
		padding: 15px;
		margin: 0 15px;
	}
	
	.compact-search-form .search-item {
		border-right: none;
		border-bottom: 1px solid var(--border-color);
		padding: 10px 0;
	}
	
	.compact-search-form .btn-update-search {
		width: 100%;
		border-radius: var(--radius-btn);
		margin-top: 10px;
	}
	.results-top-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	/* On désactive le positionnement absolu */
	.mega-menu {
		position: static; 
		opacity: 1; 
		visibility: visible;
		transform: none;
		display: none; /* Masqué par défaut sur mobile, ouvert via jQuery */
		padding: 20px;
		border-bottom: none;
		border-left: 3px solid var(--secondary-color); /* Rappel visuel sur le côté */
		background: var(--bg-light);
		width: 100%;
	}

	/* On casse la grille 1fr 1fr 1.5fr pour tout empiler */
	.mega-grid {
		grid-template-columns: 1fr; 
		gap: 20px;
	}

	/* Style des liens plus "tactiles" sur mobile */
	.mega-col a {
		padding: 12px 0;
		border-bottom: 1px solid rgba(0,0,0,0.05);
	}

	/* On ajuste la promo pour qu'elle ne soit pas trop imposante */
	.mega-promo {
		margin-top: 10px;
		padding: 15px;
	}

	/* Animation de la flèche si tu en as une */
	.nav-trigger.active .arrow {
		transform: rotate(-135deg) translateY(-2px);
	}
}

@media (max-width: 850px) {
	.search-box {
		flex-direction: column;
		border-radius: 25px;
		padding: 20px;
	}
	.search-fields-group.active {
		flex-direction: column;
		width: 100%;
	}
	.search-field {
		border-right: none;
		border-bottom: 1px solid #eee;
		width: 100%;
		padding: 15px 0;
	}
	.btn-go {
		width: 100%;
		margin-top: 15px;
		border-radius: 12px;
	}
	.search-tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		border-radius: 15px;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.section-header h2 { font-size: 1.5rem; }
	.city-grid { gap: 20px; }
	.city-name { font-size: 1.3rem; }
	

	.section-header {
		padding: 0 20px;
		margin-bottom: 25px;
	}

}

@media (max-width: 600px) {
	.footer-links {
		grid-template-columns: 1fr;
	}
	.newsletter-form {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.grid {
		grid-template-columns: 1fr; /* Une seule carte par ligne sur petit mobile [cite: 73] */
	}
	.section-title {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

.search-input-container input {
	border: none;
	background: transparent;
	outline: none;
	width: 100%;
	padding: 8px 0;
	font-size: 0.9rem;
}
.ts-dropdown {
    border: none;
}

#common-location-field .form-control {
	border: none;
}

.compact-search-form .form-control {
    background-color: transparent;
	border: none;
    min-height: 30px;
}
