/* ===== RESET & VARIABLES ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Palette professionnelle - inspirée des annuaires modernes */
	--primary: #0a2463;      		/* Bleu profond (comme Kompass) */
	--primary-light: #3e5a8c;
	--primary-soft: #eef2f9;  		/* bleu très clair */
	--secondary: #d32f2f;      		/* Rouge accent (comme Pages Jaunes) */
	--secondary-light: #fde7e7;
	--accent: #ff8a00;         		/* Orange pour la recherche */
	
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;		/* bleu clair */
	--primary-soft: #eef2f9;  		
    --secondary-color: #764ba2;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);	
	
	--gray-50: #f9fafc;
	--gray-100: #f0f2f5;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-600: #4b5563;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #111827;
	--white: #ffffff;
	
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
	--shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
	--shadow-inner: inset 0 2px 4px 0 rgba(0,0,0,0.05);
	
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--radius-full: 9999px;
}

/* =========================================================
   OPTIMISATION TYPOGRAPHIQUE ARABE (services.php)
   ========================================================= */

/* Activation du lissage global des polices */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Règles spécifiques lorsque la langue est l'arabe (RTL) */
html[dir="rtl"], 
body[dir="rtl"] {
    font-family: 'Cairo', sans-serif !important;
    line-height: 1.75;
}

/* Annulation stricte du letter-spacing pour l'arabe */
[dir="rtl"] *, 
html[dir="rtl"] * {
    letter-spacing: 0 !important;
}

/* Ajustements typographiques pour les titres & textes en arabe */
html[dir="rtl"] .hero-header h1 {
    font-weight: 800;
    line-height: 1.3;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

html[dir="rtl"] .hero-header p {
    font-size: 1.15rem;
    line-height: 1.8;
}

html[dir="rtl"] .glass-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
}

html[dir="rtl"] .features li {
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Ajustement des icônes et boutons en mode RTL */
html[dir="rtl"] .features li i {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] .badge-pro {
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0;
}

html[dir="rtl"] .btn-glass {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

/* ======= */

body {
	font-family: 'Inter', sans-serif;
	color: var(--gray-800);
	line-height: 1.5;
	background-color: var(--white);
}

h1, h2, h3, h4 {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
}

a {
	text-decoration: none;
	color: inherit;
}

/* ===== UTILITAIRES ===== */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 2rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
	white-space: nowrap;
}

.btn--primary {
	background: var(--primary);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--primary-light);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
	background: #b71c1c;
	transform: translateY(-1px);
}

.btn--outline {
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
}

.btn--outline:hover {
	background: var(--primary-soft);
}

.btn--large {
	padding: 1rem 2rem;
	font-size: 1.1rem;
}

.btn-success {
	background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
	color: white;
}

.btn-danger {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
}

.badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Début:	badge--notified */
/* Style pour le badge de notification */
.badge--notified {
    position: relative;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    margin-left: 8px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* Animation pulse pour attirer l'attention */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Pour mobile */
@media (max-width: 768px) {
    .badge--notified {
        font-size: 0.7rem;
        padding: 2px 6px;
        min-width: 18px;
    }
}

/* Version pour le menu mobile */
.navbar__menu .navbar__link .badge--notified {
    background: #ef4444;
    color: white;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

/* Tooltip optionnel */
.badge--notified:hover::after {
    content: attr(data-count) " nouvelle(s) adresse(s)";
    position: absolute;
    top: -30px;
    right: 0;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}
/* Fin:	badge--notified */

.badge--premium {
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	color: var(--gray-900);
}

.badge--verified {
	background: #10b981;
	color: white;
}

.section-title {
	font-size: 2rem;
	font-weight: 800;
	color: var(--gray-900);
	max-width: 100%;
	margin: 0 auto 0.5rem;
}

.section-subtitle {
	font-size: 1.25rem;
	color: var(--gray-600);
	max-width: 60%;
	margin: 0 auto 2rem;
}

/*	------------------------------------		*/
/* ========== MENU DÉROULANT ========== */
.navbar__dropdown {
    position: relative;
    display: inline-block;
}

.navbar__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 12px;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.navbar__dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.navbar__dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

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

.navbar__dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.navbar__dropdown-item:last-child {
    border-bottom: none;
}

.navbar__dropdown-item:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
    color: #667eea;
    padding-right: 25px;
}

.navbar__dropdown-item i {
    width: 25px;
    color: #667eea;
    font-size: 1.1em;
}

.dropdown-badge {
    background: #667eea;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 10px;
}

.dropdown-badge.new {
    background: #ff4757;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Flèche décorative */
.navbar__dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(102, 126, 234, 0.1);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* Version mobile */
@media (max-width: 768px) {
    .navbar__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9ff;
        border-radius: 8px;
        margin: 5px 15px;
        min-width: auto;
        display: none;
    }
    
    .navbar__dropdown.active .navbar__dropdown-menu {
        display: block;
    }
    
    .navbar__dropdown-menu::before {
        display: none;
    }
    
    .navbar__dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
}
/*	------------------------------------		*/

/* ===== HEADER / NAVBAR ===== */
.navbar {
	background: var(--white);
	padding: 1rem 2rem;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: var(--shadow-sm);
	border-bottom: 2px solid var(--primary);
}

.navbar__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1280px;
	margin: 0 auto;
}

.navbar__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.navbar__logo-icon {
	width: 45px;
	height: 45px;
	background: var(--primary);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.5rem;
	margin-bottom: 3px;
}

.navbar__logo-text {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--gray-900);
}

.navbar__logo-text span {
	color: var(--secondary);
}

.navbar__menu {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.navbar__link i {
	color: var(--primary-color);	/*bleu clair*/
}
    
.navbar__link {
	font-weight: 800;
	color: var(--gray-700);
	transition: color 0.2s;
	position: relative;
}

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

.navbar__link .badge {
    position: relative;  	
    top: auto;
    right: auto;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    margin-left: 5px;
    display: inline-block;
}


.navbar__link--active {
	color: var(--primary);
	font-weight: 600;
}

.navbar__link--active::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--secondary);
	border-radius: var(--radius-full);
}

.navbar__buttons {
	display: flex;
	gap: 1rem;
}

.navbar__toggle {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: gray-50;
}


/* Hamburger - caché en desktop */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* Style mobile */
@media (max-width: 1024px) {
    .hamburger-btn {
        display: block;
    }
    
    .navbar__menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #667eea, #764ba2);
        flex-direction: column;
        padding: 80px 20px 20px;
        z-index: 999;
        transition: right 0.3s;
    }
    
    .navbar__menu.active {
        display: flex;
        right: 0;
    }
    
    .navbar__link {
        color: white;
        width: 100%;
        padding: 15px;
    }
    
    .navbar__link i {
        color: white;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* Animation hamburger */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar__menu {
        z-index: 1000 !important; /* Menu au-dessus */
    }
    
	.navbar__menu {
			padding-top:200px !important; /* Augmentez cette valeur jusqu'à voir le premier lien */
		}     
		
    .navbar__link {
        position: relative;
        z-index: 1001 !important; /* Liens au-dessus du menu */
        pointer-events: auto !important; /* Forcer la clicabilité */
        cursor: pointer;
    }
    
    .nav-overlay {
        z-index: 999 !important; /* Overlay en dessous du menu */
    }
    
    /* S'assurer que les liens sont bien cliquables */
    .navbar__link a, 
    .navbar__link i, 
    .navbar__link span {
        pointer-events: none; /* Empêcher les sous-éléments de bloquer */
    }
}


/* ===== HERO SEARCH SECTION ===== */
.hero {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	color: var(--white);
	padding: 4rem 0;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="rgba(255,255,255,0.03)"/></svg>');
	opacity: 0.1;
}

.hero__container {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 900px;
}

.hero__title {
	font-size: 3.0rem;
	font-weight: 700;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.hero__title span {
	color: var(--accent);
	background: rgba(255,255,255,0.1);
	padding: 0.2rem 0.5rem;
	border-radius: var(--radius-md);
}

.hero__subtitle {
	font-size: 1.25rem;
	margin-bottom: 2.5rem;
	opacity: 0.9;
}

.hero__bismiallah {
	font-size: 2.0rem;
	margin-bottom: 0.5rem;
	opacity: 0.9;
}


.hero__stats {
	display: flex;
	justify-content: center;
	gap: 3rem;
	margin: 2rem 0;
}

.hero__stat-item {
	text-align: center;
}

.hero__stat-number {
	font-size: 2rem;
	font-weight: 800;
	display: block;
}

.hero__stat-label {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* Barre de recherche avancée */
.search-box {
	background: var(--white);
	border-radius: var(--radius-xl);
	padding: 0.5rem;
	margin-bottom: 0.5rem;
	box-shadow: var(--shadow-xl);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
}

.search-box__input {
	flex: 1 1 250px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--gray-50);
	padding: 0.75rem 1rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--gray-200);
}

.search-box__input i {
	color: var(--gray-400);
}

.search-box__input input,

.search-box__input select {
	cursor: pointer;
}

.search-box__btn {
	background: var(--secondary);
	color: white;
	border: none;
	padding: 1rem 2.5rem;
	border-radius: var(--radius-lg);
	font-weight: 600;
	font-size: 1.5rem;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.search-box-p  {
	color: white;
}

.search-box__btn:hover {
	background: #b71c1c;
}

        /* Advanced Search */
        .advanced-search {
            background: var(--bg-main);
            padding: 1rem;
            border-radius: var(--radius);
            margin-top: 0.5rem;
            display: none;
        }

        .advanced-search.show {
            display: bloc;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .form-row {
            display: flex;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 1rem;
            margin-top: 0.5rem;
        }

        .form-group {
            display: flex;
            justify-items: legacy;
            gap: 0.5rem;
        }

        .form-group label {
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .form-group select {
            padding: 0.75rem;
            border: 2px solid var(--border);
            border-radius: var(--radius);
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
        }


.sector-card:hover .sector-card__icon {
	background: var(--primary);
	color: white;
}

.sector-card__name {
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.sector-card__count {
	font-size: 0.85rem;
	color: var(--gray-500);
}

/* ===== ENTREPRISES EN VEDETTE ===== */
.featured {
	padding: 5rem 0;
	background: var(--gray-50);
}

.featured__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.company-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--gray-200);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden; /* Pour éviter que le contenu dépasse */
}

.company-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary);
}

.company-card__badges {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	gap: 0.5rem;
}

/* Conteneur du logo */
.company-card__logo {
    width: 100%;            /* Prend toute la largeur de la carte */
    height: 100px;          /* Hauteur fixe de 100px */
    overflow: hidden;       /* Cache les parties qui dépassent */
    position: relative;
    background-color: #f5f5f5; /* Couleur de fond par défaut */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.50rem;
}

/* Pour les images (logos réels) */
.company-card__logo img {
    width: 100%;            /* Prend toute la largeur */
    height: 100%;           /* Prend toute la hauteur */
    object-fit: cover;      /* Couvre tout l'espace sans déformation */
    object-position: center; /* Centre l'image */
}

/* Pour les icônes Font Awesome */
.company-card__logo i {
    font-size: 48px;        /* Taille de l'icône */
    color: #999;            /* Couleur de l'icône */
}

.company-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.company-card__sector {
	color: var(--primary);
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
}

.company-card__location {
	color: var(--gray-600);
	font-size: 0.9rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.company-card__location i {
	color: var(--accent);
}

.company-card__contact {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gray-200);
}

.company-card__contact a {
	width: 35px;
	height: 35px;
	border-radius: var(--radius-full);
	background: var(--gray-100);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gray-600);
	transition: all 0.2s;
}

.company-card__contact a:hover {
	background: var(--primary);
	color: white;
}

/* ===== ANNONCES / OFFRES D'EMPLOI ===== */
.offers {
	padding: 5rem 0;
	background: var(--white);
}

.offers__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.offer-card {
	background: var(--gray-50);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	border-left: 4px solid var(--primary);
	transition: transform 0.3s;
}

.offer-card:hover {
	transform: translateX(5px);
}

.offer-card__title {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.offer-card__company {
	color: var(--primary);
	font-weight: 500;
	margin-bottom: 0.75rem;
}

.offer-card__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.9rem;
	color: var(--gray-600);
	margin-bottom: 1rem;
}

.offer-card__tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--primary-soft);
	color: var(--primary);
	border-radius: var(--radius-full);
	font-size: 0.8rem;
	font-weight: 500;
}

/* ===== TÉMOIGNAGES ===== */
.testimonials {
	padding: 5rem 0;
	background: var(--primary);
	color: var(--white);
}

.testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.testimonial-card {
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(10px);
	padding: 2rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-card__text {
	font-style: italic;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.testimonial-card__author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.testimonial-card__avatar {
	width: 50px;
	height: 50px;
	border-radius: var(--radius-full);
	background: rgba(255,255,255,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.testimonial-card__info strong {
	display: block;
}

.testimonial-card__info span {
	font-size: 0.9rem;
	opacity: 0.8;
}



/* Affichage des vues adresses */
.vues-counter {
    transition: all 0.3s ease;
    font-weight: 500;
}

.vues-counter.trending {
    background: linear-gradient(135deg, #ff6b6b, #ee5253) !important;
}

.vues-counter.popular {
    background: linear-gradient(135deg, #ff9f43, #ee5a24) !important;
}

.vues-counter.rising {
    background: linear-gradient(135deg, #10ac84, #1dd1a1) !important;
}

.vues-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}


/* Sidebar en overlay (recommandé pour mobile) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar principale */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px; /* Pour une sidebar à droite */
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 100;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
    padding: 2rem 1.5rem;
}

.sidebar.left {
    left: -350px;
    right: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar.left.active {
    left: 0;
}

/* En-tête de la sidebar */
.sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.sidebar__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.sidebar__close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.sidebar__close:hover {
    background: var(--secondary);
    color: white;
}

/* Menu de la sidebar */
.sidebar__menu {
    list-style: none;
}

.sidebar__menu-item {
    margin-bottom: 0.5rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    transition: all 0.2s;
}

.sidebar__link i {
    width: 24px;
    color: var(--primary);
}

.sidebar__link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar__link.active {
    background: var(--primary);
    color: white;
}

.sidebar__link.active i {
    color: white;
}

/* Section dans la sidebar */
.sidebar__section {
    margin-bottom: 2rem;
}

.sidebar__section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Bouton pour ouvrir la sidebar */
.sidebar-toggle {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Sidebar hybride - visible sur desktop, overlay sur mobile */
.sidebar-hybrid {
    position: sticky;
    top: 100px;
    width: 280px;
    height: calc(100vh - 120px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
}

/* Pour l'intégrer dans une page avec contenu */
.page-with-sidebar {
    display: flex;
    gap: 2rem;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-with-sidebar .main-content {
    flex: 1;
    min-width: 0; /* Évite les débordements */
}

/* Version mobile */
@media (max-width: 768px) {
    .page-with-sidebar {
        flex-direction: column;
    }
    
    .sidebar-hybrid {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
}

/* Styles pour les badges selon etatpub */
.badge--premium {
    background: linear-gradient(135deg, #f5b041, #f39c12);
    color: white;
    /*cursor: pointer;*/
    transition: transform 0.2s;
}

.badge--premium:hover {
    transform: scale(1.05);
}

.badge--clickable {
    cursor: pointer;
}

.badge--free {
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 0.75rem;
}

.badge--whatsapp {
    background: #25D366;
    color: white;
}

/* 
 Entreprises à la une: Après clic afficher ça:
  📞 : 0686727885
  📧 : mon_exemple@gmail.com 
*/
.company-card__contacts {
	margin-top: 10px;
}

.contact-icons {
	display: flex;
	justify-content: left;
	gap: 20px;
}

.contact-trigger {
	font-size: 1rem;
	text-decoration: none;
	transition: opacity 0.3s;
}

.contact-trigger.hidden {
	display: none;
}

.contact-revealed {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: left;
	font-size: 0.9rem;
}
/*	affichage tel1-email */



/* Animation pour les liens premium */
.premium-link {
    color: #f39c12 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.company-card__contact a {
    transition: all 0.3s ease;
}

.company-card__contact a:hover {
    transform: translateY(-2px);
}

/* Style pour la description */
.company-card__description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.company-card__footer {
    margin-top: 0.5rem;
    text-align: center;
}
/*	fin-etatpub	*/

/* Styles pour les messages de recherche */
.search-prompt {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.search-prompt__icon {
    width: 80px;
    height: 80px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

.search-prompt__title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.search-prompt__text {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.search-prompt__tips {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-prompt__tips h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.search-prompt__tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-prompt__tips li {
    padding: 10px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-prompt__tips li i {
    width: 24px;
    color: #007bff;
}

.search-prompt__examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.example-badge {
    padding: 10px 20px;
    background: white;
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.example-badge:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

/* Style pour aucun résultat */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff3f3;
    border-radius: 16px;
    margin: 30px 0;
    border: 2px dashed #ff6b6b;
}

.no-results__icon {
    font-size: 64px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.no-results__title {
    font-size: 24px;
    color: #d63031;
    margin-bottom: 15px;
}

.no-results__text {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.no-results__suggestions {
    max-width: 400px;
    margin: 0 auto 25px;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.no-results__suggestions p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.no-results__suggestions ul {
    list-style: disc;
    padding-left: 20px;
    color: #666;
}

.no-results__suggestions li {
    margin: 8px 0;
}

/* Style pour l'en-tête des résultats */
.results-header {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0,123,255,0.1);
    border-radius: 8px;
}

.results-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Style pour la pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination .btn {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
}

.pagination .btn-primary {
    background: #007bff;
    color: white;
}

.pagination .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-prompt, .no-results {
    animation: fadeInUp 0.5s ease;
}
/*	Fin Search		*/




/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
	.sectors__grid { grid-template-columns: repeat(4, 1fr); }
	.featured__grid { grid-template-columns: repeat(3, 1fr); }
	.offers__grid { grid-template-columns: repeat(2, 1fr); }
	.testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar__menu { display: none; }
    .navbar__toggle { display: block; }
    
    .hero__title { font-size: 2.5rem; }
    .hero__stats { flex-direction: column; gap: 1.5rem; }
    
    /* CORRECTION DU SEARCH-BOX POUR MOBILE */
    .search-box { 
        flex-direction: column; 
        gap: 0.5rem;
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .search-box__input {
        flex: 1 1 auto;
        padding: 0.4rem 0.75rem;  /* Réduit de 0.75rem à 0.4rem */
        width: 100%;
    }
    
    .search-box__input i {
        font-size: 0.9rem;
    }
    
    .search-box__input input,
    .search-box__input select {
        padding: 0.4rem 0;  /* Réduit le padding interne */
        font-size: 0.85rem;
        width: 100%;
        background: transparent;
        border: none;
    }
    
    .search-box__btn {
        padding: 0.6rem 1.5rem;  /* Réduit de 1rem 2.5rem à 0.6rem 1.5rem */
        font-size: 1rem;  /* Réduit de 1.5rem à 1rem */
        justify-content: center;
        width: 100%;
    }
    
    .sectors__grid { grid-template-columns: repeat(3, 1fr); }
    .featured__grid { grid-template-columns: repeat(2, 1fr); }
    .offers__grid { grid-template-columns: 1fr; }
    .testimonials__grid { grid-template-columns: 1fr; }
    
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter__form { flex-direction: column; }
}

/*	carousel	*/
.testimonials {
    background: linear-gradient(100deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
    width: 100%;
    overflow: hidden;
}

.testimonials .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
    will-change: transform;
}

.carousel-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 35px -8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.25);
}

.carousel-card__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;  
}

.carousel-card__avatar i {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.carousel-card__content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
    text-align: center;
}

.carousel-card__secteur, 
.carousel-card__ville {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-card__secteur i,
.carousel-card__ville i {
    width: 16px;
    font-size: 0.8rem;
}

.carousel-card__content small {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.7rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 10;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 100%;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .testimonials .container {
        padding: 0 1rem;
    }
}
/*	carousel	*/


@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .sectors__grid { grid-template-columns: repeat(2, 1fr); }
    .featured__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    
    /* Réduction supplémentaire pour très petits écrans */
    .search-box {
        padding: 0.5rem;
    }
    
    .search-box__input {
        padding: 0.3rem 0.6rem;
    }
    
    .search-box__input input,
    .search-box__input select {
        font-size: 0.8rem;
    }
    
    .search-box__btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== CARROUSEL HERO MENU PRINCIPAL ===== */
.hero-menu-carousel {
    max-width: 1320px; /* Évite qu'il ne s'étire à l'infini sur les très grands écrans */
    margin: 15px auto;
}

.heroSwiper {
    width: 100%;
    height: 280px !important; /* Hauteur compacte et élégante sur PC */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.heroSwiper .swiper-slide {
    height: 100% !important;
    overflow: hidden;
}

.hero-slide-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #ffffff;
}

/* Force l'image à s'adapter exactement au cadre sans déborder */
.hero-slide-link img {
    width: 100% !important;
    height: 100% !important;
    max-height: 280px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transition: transform 0.6s ease;
}

.hero-slide-link:hover img {
    transform: scale(1.05);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 36, 99, 0.92) 0%,
        rgba(10, 36, 99, 0.45) 55%,
        rgba(10, 36, 99, 0.08) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
}

.hero-badge {
    align-self: flex-start;
    background: var(--accent, #ff8a00);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 6px;
}

.hero-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 0.88rem;
    color: #e2e8f0;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease, color 0.25s ease;
}

.hero-slide-link:hover .hero-cta {
    color: #ffffff;
    transform: translateX(4px);
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
}

.hero-nav-btn:hover {
    background: var(--primary, #0a2463);
}

.hero-nav-btn::after {
    font-size: 14px;
    font-weight: bold;
}

.hero-pagination .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--accent, #ff8a00);
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .heroSwiper {
        height: 210px !important;
        border-radius: 10px;
    }
    .hero-slide-link img {
        max-height: 210px !important;
    }
    .hero-slide-overlay {
        padding: 1rem 1.25rem;
    }
    .hero-title {
        font-size: 1.1rem;
    }
    .hero-subtitle {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    .hero-nav-btn {
        display: none;
    }
}

/* ===== BOUTONS DE RECHERCHE RAPIDE ===== */
.quick-searches {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.quick-searches__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.quick-searches__label i {
    color: var(--accent, #ff8a00);
}

.quick-searches__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.quick-tag {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.quick-tag i {
    font-size: 0.8rem;
    color: #ffd166;
    transition: color 0.2s ease;
}

.quick-tag:hover {
    background: var(--accent, #ff8a00);
    border-color: var(--accent, #ff8a00);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.quick-tag:hover i {
    color: #ffffff;
}

/* Adaptation mobile : défilement horizontal fluide pour ne pas encombrer l'écran */
@media (max-width: 768px) {
    .quick-searches {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .quick-searches::-webkit-scrollbar {
        display: none;
    }
    .quick-searches__label {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .quick-searches__list {
        flex-wrap: nowrap;
    }
    .quick-tag {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.35rem 0.8rem;
    }
}
