/* ===============================
   VARIABLES CSS
   =============================== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #000000;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    /* Card styling variables */
    --card-bg: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    --card-border: #e3e8f3;
    --card-shadow: 0 4px 15px rgba(0, 86, 179, 0.08);
}

/* ===============================
   RESET & GLOBAL STYLES
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    /* darker, professional overlay over the background image */
    background-image: linear-gradient(rgba(3,8,20,0.72), rgba(6,10,30,0.72)), url(../images/Pc.png);
    background-size: cover;
    background-attachment: fixed;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Background helper for selected pages: gradient base -> mid -> deep */
.page-bg-2f2758 {
    /* Nouveau gradient bleu moderne avec effets lumineux optimisé */
    background-color: hsl(220, 60%, 12%);
    background-image: 
        radial-gradient(1px 1px at 5% 10%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 12% 25%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 18% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 75%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 32% 15%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 38% 60%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 35%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 52% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 58% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 45%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 72% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 12%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 55%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 92% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 85%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
        radial-gradient(circle 400px at 80% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 100%),
        radial-gradient(circle 600px at -10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 100%),
        radial-gradient(circle 700px at 110% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 100%),
        linear-gradient(180deg, hsl(220, 60%, 12%) 0%, hsl(225, 55%, 18%) 50%, hsl(235, 50%, 25%) 100%);
    background-size: 100% 100%;
    background-attachment: scroll;
    color: #e9e6f6;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ===============================
   NAVBAR / HEADER
   =============================== */
.navbar {
    background-color: #1760B1;
    border-bottom: 2px solid #0a63d8;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.navbar-left {
    flex-shrink: 0;
}

.logo {
    height: 35px;
    width: auto;
    max-width: 250px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.navbar-menu {
    display: flex;
    gap: 45px;
    margin-left: 60px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #e0e7ff;
}

.nav-link.active {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
}

/* Profile avatar in navbar */
.nav-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.nav-profile img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.08);
    display: inline-block;
}
.nav-profile i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.search-input {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 15px;
    width: 300px;
    transition: var(--transition);
    min-width: 180px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.search-input.searching {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
    position: relative;
}

.search-input.searching::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Search Suggestions */
.search-suggestions {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.search-suggestion-item span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.btn-connexion {
    padding: 12px 28px;
    background-color: rgba(0, 66, 0, 0.842);
    color: var(--white);
    border: 1px solid #e7cccc;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    white-space: nowrap;
    list-style: none;
    text-decoration: none;
}

.btn-connexion:hover {
    background-color: rgb(0, 75, 0);
    color: whitesmoke;
}

.btn-inscription {
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-inscription:hover {
    background-color: #003d82;
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
    color: var(--white);
    padding: 150px 20px;
    text-align: center;
    min-height: 600px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.596);
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 35px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 60px;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-cta {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-cta:hover {
    background-color: #f0f0f0;
}

/* ===============================
   STATS SECTION
   =============================== */
.stats {
    padding: 50px 20px;
    background-color: white;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-top: 6px solid var(--primary-color);
    padding: 50px 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--card-shadow);
}
    

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: rgba(0, 86, 179, 0.12) 2px 2px 6px;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 500;
}

.stat-label {
    font-size: 15px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===============================
   CATEGORIES SECTION
   =============================== */
.categories {
    padding: 50px 20px;
    position: relative;
    z-index: 2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    gap: 15px;
}

.section-header h2 {
    font-size: 40px;
    text-align: center;
    color: #c6fdff;
    text-shadow: rgb(0, 42, 230) 2px 2px 6px;
    font-weight: 700;
    flex: 1;
    min-width: 200px;
}

.voir-tout {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
}

.voir-tout:hover {
    gap: 5px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 40px 30px;
    border-radius: 14px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e3e8f3;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.08);
}
.category-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 14px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #0041a3, var(--primary-color));
    border-radius: 14px 14px 0 0;
}

.category-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 28px rgba(0, 86, 179, 0.25);
}

.category-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.category-count {
    font-size: 15px;
    color: #000000;
}

/* ===============================
   LISTINGS SECTION
   =============================== */
.listings {
    padding: 50px 20px;
    background-color: var(--light-color);
    position: relative;
    z-index: 2;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.listing-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 5px solid var(--primary-color);
    position: relative;
}
.listing-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #0041a3);
    z-index: 1;
}

.listing-card:hover {
    box-shadow: 0 8px 28px rgba(0, 86, 179, 0.25);
    transform: translateY(-8px);
    border-left-color: #0041a3;
}

.listing-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge.stock {
    background-color: #28a745;
}

.listing-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #000000;
}

.listing-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.listing-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary-color);
}

.stars {
    color: #ffc107;
    font-weight: 700;
}

.btn-details {
    width: 100%;
    padding: 10px;
    margin-top: auto;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.btn-details:hover {
    background-color: #003d82;
}

/* Override for announcement certified cards */
.listing-card.announcement-card-certified .btn-details {
    border-radius: 8px;
    margin: 0.5rem 1.2rem 1.2rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===============================
   EXPERTS SECTION
   =============================== */
.experts {
    padding: 40px 20px;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.expert-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
    transition: var(--transition);
    border: 2px solid #e3e8f3;
    position: relative;
    overflow: hidden;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #0041a3);
    border-radius: 12px 12px 0 0;
}

.expert-card:hover {
    box-shadow: 0 8px 28px rgba(0, 86, 179, 0.25);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid var(--white);
}

.expert-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000000;
}

.expert-specialty {
    font-size: 14px;
    color: #000000;
    margin-bottom: 10px;
}

.expert-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.rating-score {
    color: var(--secondary-color);
    font-size: 12px;
}

.expert-view-btn {
    margin-top: 15px;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0041a3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.expert-view-btn:hover {
    background: linear-gradient(135deg, #0041a3 0%, #002966 100%);
    transform: translateY(-2px);
}

.expert-view-btn:active {
    transform: translateY(0);
}

/* ===============================
   EXPERTS SLIDER STYLES
   =============================== */
.experts-slider-section {
    padding: 50px 20px;
    background: #0053B1;
}

.experts-slider-section .section-header h2 {
    color: #ffffff !important;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.experts-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.experts-slider-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.experts-slider {
    display: flex;
    position: relative;
}

.experts-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    width: 100%;
    animation: autoScroll 25s linear infinite;
}

.expert-card-slide {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: calc(25% - 1.125rem);
    animation: slideIn 0.5s ease-out;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 2rem));
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pause animation on hover */
.experts-slider-wrapper:hover .experts-track {
    animation-play-state: paused;
}

.certified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.certified-badge i {
    font-size: 0.85rem;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.slider-nav-btn:hover {
    background: #0041a3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.4);
}

.slider-prev {
    left: -25px;
}

.slider-next {
    right: -25px;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slider-indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Responsive design for experts */
@media (max-width: 1400px) {
    .experts-slider-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .expert-card-slide {
        flex: 0 0 calc(20% - 1.2rem);
        min-width: calc(20% - 1.2rem);
    }
    
    .experts-track {
        gap: 1.2rem;
    }
    
    .slider-nav-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 1024px) {
    .expert-card-slide {
        flex: 0 0 calc(33.33% - 1rem);
        min-width: calc(33.33% - 1rem);
    }
    
    .experts-track {
        gap: 1rem;
    }
    
    .expert-avatar {
        width: 70px;
        height: 70px;
    }
    
    .expert-name {
        font-size: 16px;
    }
    
    .expert-specialty {
        font-size: 13px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .experts-slider-section {
        padding: 40px 15px;
    }
    
    .expert-card-slide {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
    
    .experts-track {
        gap: 0.75rem;
    }
    
    .experts-slider-wrapper {
        gap: 0.5rem;
    }
    
    .slider-prev {
        left: -18px;
    }

    .slider-next {
        right: -18px;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
        margin-bottom: 0.3rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .expert-avatar {
        width: 65px;
        height: 65px;
        margin-bottom: 10px;
    }
    
    .expert-name {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .expert-specialty {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .expert-rating {
        font-size: 12px;
    }
    
    .expert-view-btn {
        margin-top: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .slider-indicators {
        margin-top: 1.5rem;
    }
}

/* Mobile landscape (640px - 768px) */
@media (max-width: 768px) and (min-width: 601px) {
    .expert-card-slide {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

/* Mobile landscape (600px) */
@media (max-width: 600px) {
    .experts-slider-section {
        padding: 28px 12px;
    }
    
    .expert-card-slide {
        flex: 0 0 calc(60% - 0.4rem);
        min-width: calc(60% - 0.4rem);
    }
    
    .experts-track {
        gap: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .expert-card {
        padding: 20px;
    }
    
    .expert-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    
    .expert-name {
        font-size: 14px;
    }
    
    .expert-specialty {
        font-size: 12px;
    }
    
    .expert-rating {
        font-size: 12px;
    }
    
    .expert-view-btn {
        margin-top: 12px;
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .experts-slider-section {
        padding: 20px 8px;
    }
    
    .expert-card-slide {
        flex: 0 0 calc(60% - 0.4rem);
        min-width: calc(60% - 0.4rem);
    }
    
    .experts-slider-wrapper {
        gap: 0;
    }
    
    .experts-track {
        gap: 0.8rem;
        padding: 0.4rem 0;
    }
    
    .slider-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        display: none;
    }
    
    .slider-prev {
        left: -20px;
    }

    .slider-next {
        right: -20px;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .section-header {
        margin-bottom: 1.3rem;
    }
    
    .expert-card {
        padding: 18px;
    }
    
    .expert-avatar {
        width: 65px;
        height: 65px;
        margin-bottom: 10px;
    }
    
    .expert-name {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .expert-specialty {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .expert-rating {
        font-size: 11px;
        gap: 4px;
    }
    
    .expert-view-btn {
        margin-top: 12px;
        padding: 7px 11px;
        font-size: 11px;
    }
    
    .slider-indicators {
        gap: 6px;
        margin-top: 1rem;
    }
    
    .slider-indicator {
        width: 8px;
        height: 8px;
    }
    
    .slider-indicator.active {
        width: 24px;
    }
}

/* Extra small mobile (360px and below) */
@media (max-width: 360px) {
    .experts-slider-section {
        padding: 18px 6px;
    }
    
    .expert-card-slide {
        flex: 0 0 calc(60% - 0.3rem);
        min-width: calc(60% - 0.3rem);
    }
    
    .expert-card {
        padding: 15px;
    }
    
    .expert-avatar {
        width: 60px;
        height: 60px;
    }
    
    .expert-name {
        font-size: 12px;
    }
    
    .expert-specialty {
        font-size: 10px;
    }
    
    .expert-rating {
        font-size: 10px;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
}

.expert-view-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===============================
   CERTIFIED ANNOUNCEMENTS SLIDER
   =============================== */
.certified-announcements-slider-section {
    padding: 50px 20px;
    background: #0053B1;
    width: 100%;
}

.certified-announcements-slider-section .section-header {
    margin-bottom: 2rem;
}

.certified-announcements-slider-section .section-header h2 {
    color: #ffffff !important;
    font-size: 1.8rem;
    margin: 0;
}

.announcements-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.announcements-slider-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
}

.announcements-slider {
    display: flex;
    position: relative;
    width: 100%;
}

.announcements-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    width: 100%;
    animation: autoScrollAnnouncements 25s linear infinite;
}

.announcement-card-slide {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: calc(25% - 1.125rem);
    animation: slideIn 0.5s ease-out;
}

@keyframes autoScrollAnnouncements {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 2rem));
    }
}

/* Pause animation on hover */
.announcements-slider-wrapper:hover .announcements-track {
    animation-play-state: paused;
}

.announcement-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.announcement-card:hover {
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.15);
    transform: translateY(-4px);
}

.announcement-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-image img {
    transform: scale(1.05);
}

.announcement-certified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3);
}

.announcement-certified-badge i {
    font-size: 0.8rem;
}

.announcement-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.announcement-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-tech-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.announcement-tech-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0056b3;
    flex-shrink: 0;
}

.announcement-tech-details {
    flex: 1;
    min-width: 0;
}

.announcement-tech-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.announcement-tech-specialty {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.announcement-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0056b3;
    margin: 0.5rem 0 0 0;
}

.announcement-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.announcement-rating .stars {
    color: #ffc107;
    letter-spacing: 2px;
}

.announcement-view-btn {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    margin: 0.5rem 1.2rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.announcement-view-btn:hover {
    background: linear-gradient(135deg, #003d82 0%, #002a5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.announcement-view-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive design for announcements */
@media (max-width: 1400px) {
    .announcements-slider-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .announcement-card-slide {
        flex: 0 0 calc(20% - 1.2rem);
        min-width: calc(20% - 1.2rem);
    }
    
    .announcements-track {
        gap: 1.2rem;
    }
    
    .certified-announcements-slider-section .section-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 1024px) {
    .announcement-card-slide {
        flex: 0 0 calc(33.33% - 1rem);
        min-width: calc(33.33% - 1rem);
    }
    
    .announcements-track {
        gap: 1rem;
    }
    
    .announcement-title {
        font-size: 0.95rem;
    }
    
    .announcement-content {
        padding: 1rem;
    }
    
    .announcement-image {
        height: 180px;
    }
    
    .certified-announcements-slider-section .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .certified-announcements-slider-section {
        padding: 35px 15px;
    }
    
    .announcement-card-slide {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
    
    .announcements-track {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .announcements-slider-wrapper {
        gap: 0;
    }
    
    .announcement-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .announcement-price {
        font-size: 1rem;
    }
    
    .announcement-content {
        padding: 0.9rem;
        gap: 0.6rem;
    }
    
    .announcement-image {
        height: 160px;
        min-height: 160px;
    }
    
    .announcement-tech-avatar {
        width: 36px;
        height: 36px;
    }
    
    .announcement-tech-name {
        font-size: 0.8rem;
    }
    
    .announcement-tech-specialty {
        font-size: 0.7rem;
    }
    
    .announcement-view-btn {
        margin: 0.3rem 0.9rem 0.9rem;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .certified-announcements-slider-section .section-header h2 {
        font-size: 1.3rem;
    }
}

/* Tablet landscape (600px - 768px) */
@media (max-width: 768px) and (min-width: 600px) {
    .announcement-card-slide {
        flex: 0 0 calc(33.33% - 0.7rem);
        min-width: calc(33.33% - 0.7rem);
    }
    
    .announcements-track {
        gap: 0.7rem;
    }
}

/* Mobile landscape (600px) */
@media (max-width: 600px) {
    .certified-announcements-slider-section {
        padding: 28px 12px;
    }
    
    .announcement-card-slide {
        flex: 0 0 calc(50% - 0.6rem);
        min-width: calc(50% - 0.6rem);
    }
    
    .announcements-track {
        gap: 0.8rem;
        padding: 0.8rem 0;
    }
    
    .announcement-image {
        height: 140px;
        min-height: 140px;
    }
    
    .announcement-title {
        font-size: 0.85rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .announcement-content {
        padding: 0.9rem;
        gap: 0.6rem;
    }
    
    .announcement-price {
        font-size: 0.95rem;
        margin: 0.2rem 0;
    }
    
    .announcement-tech-info {
        gap: 0.6rem;
        padding-top: 0.4rem;
    }
    
    .announcement-tech-avatar {
        width: 36px;
        height: 36px;
    }
    
    .announcement-tech-name {
        font-size: 0.8rem;
    }
    
    .announcement-tech-specialty {
        font-size: 0.7rem;
    }
    
    .announcement-rating {
        font-size: 0.75rem;
    }
    
    .announcement-rating .stars {
        letter-spacing: 0.8px;
    }
    
    .announcement-view-btn {
        margin: 0.4rem 0.9rem 0.9rem;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .certified-announcements-slider-section .section-header h2 {
        font-size: 1.2rem;
    }
    
    .announcement-certified-badge {
        padding: 0.35rem 0.55rem;
        font-size: 0.6rem;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .certified-announcements-slider-section {
        padding: 20px 8px;
    }
    
    .announcement-card-slide {
        flex: 0 0 calc(50% - 0.6rem);
        min-width: calc(50% - 0.6rem);
    }
    
    .announcements-slider-wrapper {
        gap: 0;
    }
    
    .announcements-track {
        gap: 0.8rem;
        padding: 0.8rem 0;
    }
    
    .announcement-image {
        height: 140px;
        min-height: 140px;
    }
    
    .announcement-title {
        font-size: 0.85rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .announcement-content {
        padding: 0.85rem;
        gap: 0.55rem;
    }
    
    .announcement-price {
        font-size: 0.95rem;
        margin: 0.2rem 0;
    }
    
    .announcement-tech-info {
        gap: 0.6rem;
        padding-top: 0.35rem;
    }
    
    .announcement-tech-avatar {
        width: 34px;
        height: 34px;
    }
    
    .announcement-tech-name {
        font-size: 0.78rem;
    }
    
    .announcement-tech-specialty {
        font-size: 0.68rem;
    }
    
    .announcement-rating {
        font-size: 0.72rem;
    }
    
    .announcement-rating .stars {
        letter-spacing: 0.6px;
    }
    
    .announcement-view-btn {
        margin: 0.4rem 0.85rem 0.85rem;
        padding: 0.55rem 0.75rem;
        font-size: 0.78rem;
        gap: 0.3rem;
    }
    
    .certified-announcements-slider-section .section-header h2 {
        font-size: 1.15rem;
    }
    
    .announcement-certified-badge {
        top: 6px;
        right: 6px;
        padding: 0.35rem 0.55rem;
        font-size: 0.62rem;
    }
    
    .announcement-certified-badge i {
        font-size: 0.72rem;
    }
}

/* Extra small mobile (360px and below) */
@media (max-width: 360px) {
    .certified-announcements-slider-section {
        padding: 20px 8px;
    }
    
    .announcement-card-slide {
        flex: 0 0 calc(50% - 0.6rem);
        min-width: calc(50% - 0.6rem);
    }
    
    .announcement-image {
        height: 140px;
        min-height: 140px;
    }
    
    .announcement-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .announcement-content {
        padding: 0.8rem;
    }
    
    .announcement-price {
        font-size: 0.9rem;
    }
    
    .announcement-tech-avatar {
        width: 32px;
        height: 32px;
    }
    
    .announcement-view-btn {
        margin: 0.3rem 0.6rem 0.6rem;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .certified-announcements-slider-section .section-header h2 {
        font-size: 1.15rem;
    }
}

/* ===============================
   WHY CHOOSE SECTION
   =============================== */
.why-choose {
    padding: 40px 20px;
    background-color: var(--light-color);
}

.why-choose h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #000000;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.reason-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
    transition: var(--transition);
    border: 2px solid #e3e8f3;
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #0041a3);
    border-radius: 12px 12px 0 0;
}

.reason-card:hover {
    box-shadow: 0 8px 28px rgba(0, 86, 179, 0.25);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.reason-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.reason-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
}

.reason-card p {
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
}

/* ===============================
   CTA SECTION
   =============================== */
.cta-section {
    background: linear-gradient(135deg, #0056b3 0%, #0041a3 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ===============================
   FOOTER
   =============================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #404040;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.social-link:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 13px;
    color: #b8b8b8;
}

/* ===============================
   HAMBURGER MENU
   =============================== */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    flex-direction: column;
    padding: 15px 0;
    gap: 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
    background-color: var(--light-color);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-mobile {
    margin: 5px 15px;
    width: calc(100% - 30px);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Desktop Extra Large - 1024px and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .navbar-content {
        padding: 0 15px;
    }

    .navbar-menu {
        gap: 20px;
        margin-left: 20px;
    }

    .nav-link {
        font-size: 13px;
    }

    .search-input {
        width: 150px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero {
        padding: 60px 20px;
    }

    .stats {
        padding: 50px 20px;
    }

    .categories,
    .listings,
    .experts,
    .why-choose {
        padding: 50px 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 20px;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .experts-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Tablets - 850px and below */
@media (max-width: 850px) {
    .navbar-content {
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0 12px;
        position: relative;
    }

    .navbar-left {
        flex-shrink: 0;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-right {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 3;
        margin-left: auto;
    }

    .mobile-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        border-radius: 0;
    }

    .search-input {
        flex: 1;
        min-width: 150px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .btn-connexion,
    .btn-inscription {
        flex: 1;
        padding: 6px 12px;
        font-size: 12px;
    }

    .logo {
        height: 35px;
    }

    .hero {
        padding: 50px 15px;
        min-height: 400px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }

    .stats {
        padding: 40px 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 12px;
    }

    .categories,
    .listings,
    .experts,
    .why-choose {
        padding: 40px 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .voir-tout {
        font-size: 13px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .category-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .category-count {
        font-size: 12px;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .listing-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .listing-image {
        height: 160px;
    }

    .listing-content {
        padding: 12px;
    }

    .listing-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .listing-price {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .listing-rating {
        font-size: 11px;
    }

    .btn-details {
        padding: 8px;
        font-size: 12px;
    }

    .experts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .expert-card {
        padding: 20px;
    }

    .expert-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }

    .expert-name {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .expert-specialty {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .expert-rating {
        font-size: 11px;
    }

    .why-choose h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .reason-card {
        padding: 20px 15px;
    }

    .reason-icon {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .reason-card h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .reason-card p {
        font-size: 12px;
    }

    .cta-section {
        padding: 50px 15px;
    }

    .cta-section h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .cta-section p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .footer {
        padding: 40px 15px 15px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 25px;
    }

    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-section ul li a {
        font-size: 12px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* Mobiles - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar-content {
        flex-direction: row;
        gap: 0;
        padding: 0 10px;
        position: relative;
    }

    .navbar-left {
        flex: 1;
        text-align: left;
    }

    .logo {
        height: 30px;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .mobile-menu {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 50px);
        overflow-y: auto;
        border-radius: 0;
    }

    .mobile-nav-link {
        padding: 12px 20px;
        border-left: 4px solid transparent;
    }

    .btn-mobile {
        margin: 5px 15px;
        width: calc(100% - 30px);
    }

    .navbar-right {
        display: none;
    }

    .hero {
        padding: 35px 12px;
        min-height: 350px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 13px;
    }

    .stats {
        padding: 30px 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 11px;
        line-height: 1.4;
    }

    .categories,
    .listings,
    .experts,
    .why-choose {
        padding: 30px 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 20px;
        width: 100%;
    }

    .voir-tout {
        font-size: 12px;
        align-self: flex-end;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .category-name {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .category-count {
        font-size: 11px;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .listing-card {
        display: flex;
        flex-direction: column;
    }

    .listing-image {
        width: 100%;
        height: 120px;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .listing-content {
        padding: 10px;
    }

    .listing-title {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .listing-price {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .listing-rating {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .btn-details {
        padding: 6px;
        font-size: 11px;
        width: 100%;
    }

    .experts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .expert-card {
        padding: 15px;
        text-align: center;
    }

    .expert-avatar {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
    }

    .expert-name {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .expert-specialty {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .expert-rating {
        font-size: 10px;
        justify-content: center;
    }

    .rating-score {
        font-size: 10px;
    }

    .why-choose h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .reason-card {
        padding: 15px 12px;
    }

    .reason-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .reason-card h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .reason-card p {
        font-size: 11px;
        line-height: 1.5;
    }

    .cta-section {
        padding: 35px 12px;
    }

    .cta-content {
        max-width: 100%;
    }

    .cta-section h2 {
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .cta-section p {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .footer {
        padding: 30px 12px 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #404040;
        padding-bottom: 20px;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-section ul {
        list-style: none;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-section ul li a {
        font-size: 11px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .footer-bottom p {
        font-size: 11px;
        text-align: center;
    }
}

/* Ultra small screens - 360px and below */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .navbar-content {
        padding: 0 8px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 12px 8px;
    }

    .category-icon {
        font-size: 24px;
    }

    .listing-image {
        width: 100%;
        height: 100px;
    }

    .listing-title {
        font-size: 12px;
    }

    .footer-content {
        gap: 15px;
    }
}

/* ===============================
   MODAL STYLES (Login Prompts & Contacts)
   =============================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-panel {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    z-index: 1;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-panel h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--dark-color);
    font-weight: 600;
}

.modal-panel p {
    margin-bottom: 30px;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-modal-login,
.btn-modal-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-login {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: var(--white);
}

.btn-modal-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3);
}

.btn-modal-cancel {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-modal-cancel:hover {
    background: #e5e7eb;
}

/* Contact Modal Specific */
.contact-modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #0056b3;
}

.contact-method i {
    font-size: 18px;
    color: #0056b3;
    margin-right: 12px;
}

.contact-method span {
    font-weight: 500;
    color: var(--dark-color);
}

.btn-copy {
    padding: 6px 12px;
    background: #0056b3;
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-copy:hover {
    background: #004494;
}

.btn-copy.copied {
    background: #28a745;
}

/* Disabled State for Contact Buttons */
.btn-contact.needs-credits {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-contact:disabled,
.btn-contact[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-contact:disabled:hover,
.btn-contact[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-panel {
        padding: 30px 20px;
        max-width: 90%;
    }

    .modal-panel h3 {
        font-size: 20px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-modal-login,
    .btn-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================
   LOGIN MODAL STYLES
   =============================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s ease-in-out;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e3e8f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #e7f3ff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-color);
}

.modal-message i {
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-message p {
    margin: 0;
    color: #000000;
    font-weight: 600;
    font-size: 15px;
}

.modal-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e3e8f3;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-footer .btn-outline {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.modal-footer .btn-outline:hover {
    background-color: #e8e8e8;
}

.modal-footer .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.modal-footer .btn-primary:hover {
    background-color: #0041a3;
}

.modal-footer .btn-success {
    background-color: var(--success-color);
    color: white;
}

.modal-footer .btn-success:hover {
    background-color: #218838;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}
