:root {
    --primary: #c5054c;
    --primary-dark: #9e033c;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #111111;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 12px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* UTILS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

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

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.special-link {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary);
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    width: 200px;
    box-shadow: var(--shadow);
    padding: 15px 0;
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
}

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

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.btn-login {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* MOBILE MENU LOGIC */
.nav-toggle, .mobile-only {
    display: none;
}

/* HERO SECTION */
.hero {
    height: 85vh;
    background-image: url('https://images.unsplash.com/photo-1507924538820-ede94a04019d?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.85), rgba(197, 5, 76, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* CARDS & GRIDS */
.grid-container {
    display: grid;
    gap: 30px;
}

.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.standard-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
}

.card-featured {
    flex-direction: row;
    height: auto;
}

.card-featured .card-img {
    width: 50%;
    min-height: 300px;
}

.card-featured .card-body {
    width: 50%;
    justify-content: center;
}

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

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.cat-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.card-meta {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h3, .card h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-featured p {
    margin-bottom: 20px;
    color: #555;
}

.btn-link {
    color: var(--primary);
    font-weight: 700;
    margin-top: auto;
}

/* SPLIT SECTION (Consultés / Commentés) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.column-title {
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.list-item:hover {
    background-color: #fff5f8; /* Very light pink */
}

.list-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    margin-right: 15px;
}

.list-info {
    flex-grow: 1;
}

.list-info h4 {
    font-size: 1rem;
}

.list-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.list-score {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

/* VILLES */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.city-card {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: var(--white);
    transition: 0.3s;
}

.city-card:hover {
    transform: scale(1.03);
}

/* COMPAGNIES */
.companies-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.company-bubble {
    text-align: center;
}

.company-bubble img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--primary);
    padding: 3px;
}

.company-bubble span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.companies-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.companies-list a {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.companies-list a:hover {
    background: var(--primary);
}

/* FOOTER */
footer {
    background-color: #0a0a0a;
    color: #aaa;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h3 span {
    color: var(--primary);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.socials a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.socials a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        transition: 0.4s;
        z-index: 999;
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateY(0);
    }

    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 10px;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--text-dark);
        height: 3px;
        width: 25px;
        border-radius: 2px;
        position: relative;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before { bottom: 8px; }
    .nav-toggle-label span::after { top: 8px; }

    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .hero h1 { font-size: 2.8rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
    
    .card-featured { flex-direction: column; }
    .card-featured .card-img, .card-featured .card-body { width: 100%; }
    
    .split-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* Ajout pour la compatibilité PHP */
.badge-local {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
}
.stars { color: #FFD700; letter-spacing: 2px; }
.show-rating span { font-weight: 700; color: var(--text-dark); margin-left: 5px; }
/* --- STYLE DU SLIDER HORIZONTAL (ASCENSEUR) --- */
.featured-grid {
    display: flex;              /* Active le mode ligne */
    overflow-x: auto;           /* Active le scroll horizontal */
    gap: 25px;                  /* Espace entre les cartes */
    padding-bottom: 20px;       /* Espace pour la barre de défilement */
    scroll-behavior: smooth;    /* Défilement fluide */
    -webkit-overflow-scrolling: touch; /* Optimisation tactile iOS */
    
    /* Scroll Snap pour que ça s'arrête pile sur une carte */
    scroll-snap-type: x mandatory;
}

/* Personnalisation de la barre de défilement (Scrollbar) */
.featured-grid::-webkit-scrollbar {
    height: 8px;
}
.featured-grid::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 4px;
}
.featured-grid::-webkit-scrollbar-thumb {
    background: var(--primary); /* Ta couleur rose/rouge */
    border-radius: 4px;
}

/* Force la taille des cartes dans le slider */
.card-featured {
    min-width: 300px;   /* Largeur fixe minimale */
    max-width: 350px;   /* Largeur max */
    flex: 0 0 auto;     /* Empêche l'écrasement des cartes */
    scroll-snap-align: start; /* Aligne la carte au début du scroll */
    
    /* Ajustement pour que l'image soit au dessus (colonne) et non à côté */
    flex-direction: column !important; 
    height: 100%;
}

.card-featured .card-img {
    width: 100% !important;
    height: 200px !important; /* Hauteur fixe pour l'image */
}

.card-featured .card-body {
    width: 100% !important;
    display: flex;
    flex-direction: column;
}

/* --- NOUVEAU STYLE POUR LA DATE --- */
.card-date {
    font-size: 0.9rem;
    color: var(--primary); /* Couleur mise en avant */
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}