/* ========================================
   CORRECTIONS FINALES - MENU & HERO
   ======================================== */

/* 1. CENTRER LE MENU À DROITE */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FFF8E7 0%, #F5E6D3 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto; /* POUSSE LE MENU À DROITE */
    list-style: none;
    padding: 0;
    margin-right: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(196, 30, 58, 0.1);
    color: #1C3A5F;
    transform: translateY(-2px);
}

/* Logo à gauche */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* 2. HERO COLLIOURE POUR TOUTES LES PAGES */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(196, 30, 58, 0.5) 0%, 
        rgba(139, 21, 56, 0.6) 100%);
    z-index: 2;
}

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

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

/* 3. CENTRER LES CADRES DE LA 2ÈME RANGÉE */
.services-grid,
.translation-grid,
.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Quand il n'y a que 2 cartes (2ème rangée) */
.services-grid:has(.service-card:nth-child(3):last-child),
.translation-grid:has(.translation-card:nth-child(3):last-child),
.seo-features-grid:has(.seo-card:nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(300px, 500px));
    justify-content: center;
}

/* Style des cartes */
.service-card,
.translation-card,
.seo-card,
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover,
.translation-card:hover,
.seo-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
}

.service-card i,
.translation-card i,
.seo-card i,
.feature-card i {
    font-size: 3em;
    color: #1C3A5F;
    margin-bottom: 1rem;
}

.service-card h3,
.translation-card h3,
.seo-card h3,
.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.service-card p,
.translation-card p,
.seo-card p,
.feature-card p {
    color: #6C7A89;
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        margin-left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .hero-content p {
        font-size: 1.1em;
    }
    
    .services-grid,
    .translation-grid,
    .seo-features-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
