body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #111;
}

html {
    scroll-padding-top: 75px;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
}

.logo {
    height: 45px;
}

nav a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #4aa3ff;
}

/* HERO */
.hero {
    height: 100vh;
    padding-top: 75px;
    box-sizing: border-box;
    background: url('fond.png') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.3rem;
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border-radius: 5px;
    margin-top: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #005fcc;
}

/* SECTIONS */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.dark {
    background: #111;
    color: white;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ANIMATIONS */
.fade-in, .slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.8s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 1s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NAV ACTIVE */
nav a.nav-active {
    color: #4aa3ff;
    border-bottom: 2px solid #4aa3ff;
    padding-bottom: 2px;
}

/* CONTACT HERO */
.contact-hero {
    height: 45vh;
    min-height: 280px;
    padding-top: 75px;
    box-sizing: border-box;
    background: url('fond.png') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* CONTACT SECTION */
.contact-section {
    padding: 80px 20px 100px;
    text-align: center;
    background: #f5f5f5;
}

.contact-sub {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 50px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* CONTACT CARDS */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 820px;
    margin: 0 auto 50px;
}

.contact-card {
    background: white;
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transition: transform 0.25s, box-shadow 0.25s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

.contact-icon {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link {
    display: inline-block;
    font-size: 1.1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #005fcc;
}

.contact-info {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* CONTACT CTA */
.contact-cta {
    margin-top: 10px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.topbar {
    height: auto !important;
    min-height: 140px !important; /* Donne de l'espace pour que la barre respire */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Rendre le logo gros et très visible sur toutes les pages */
.logo {
    height: 120px !important;     /* Modifie ce chiffre si tu le veux encore plus gros */
    width: auto !important;       /* Garde les proportions de ton image */
    object-fit: contain !important;
    padding: 10px 0 !important;
}

/* Empêche le courriel de déborder de son cube blanc de façon laide */
.email-text {
    display: block !important;
    font-size: 0.9rem !important;          
    white-space: nowrap !important;        
    overflow: hidden !important;           
    text-overflow: ellipsis !important;    
    max-width: 100% !important;
}

/* Ajustements pour les écrans de téléphones mobiles */
@media (max-width: 480px) {
    .topbar {
        min-height: 100px !important;
    }
    .logo {
        height: 80px !important; /* Un peu plus petit sur mobile pour que le menu reste accessible */
    }
    .email-text {
        font-size: 0.85rem !important;     
    }
}

.topbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #07181e !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    
    height: auto !important;
    min-height: 140px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 50px 0 20px !important; /* Réduit l'espace à gauche du logo et augmente à droite du menu */
    transition: transform 0.4s ease-in-out !important; 
}

.topbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #07181e !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    
    height: auto !important;
    min-height: 140px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    
    /* MODIFICATION : On passe à 90px de marge à droite pour décaler le menu vers la gauche */
    padding: 0 90px 0 20px !important; 
    box-sizing: border-box !important; 
    transition: transform 0.4s ease-in-out !important; 
}

/* Style et positionnement du conteneur du menu */
.topbar nav {
    display: flex !important;
    gap: 35px !important; /* Espace super confortable entre les pages */
    align-items: center !important;
}

/* Style des liens du menu */
.topbar nav a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important; 
    padding-bottom: 5px !important;
    border-bottom: 2px solid transparent !important; 
    transition: border-color 0.3s ease !important;
    white-space: nowrap !important; /* Empêche absolument le texte de sauter de ligne */
}

/* Ligne sous le bouton au survol (Hover) */
.topbar nav a:hover {
    border-bottom-color: #ffffff !important; 
}

/* Ligne sous le bouton de la page active */
.topbar nav a.nav-active {
    border-bottom-color: #ffffff !important; 
}

/* Cette classe cache la barre au défilement vers le bas */
.topbar-hidden {
    transform: translateY(-100%);
}

/* Logo gros et bien visible */
.logo {
    height: 120px !important;     
    width: auto !important;       
    object-fit: contain !important;
    padding: 10px 0 !important;
}

/* Empêche le courriel de déborder de son cube blanc */
.email-text {
    display: block !important;
    font-size: 0.9rem !important;          
    white-space: nowrap !important;        
    overflow: hidden !important;           
    text-overflow: ellipsis !important;    
    max-width: 100% !important;
}

/* Ajustements pour les écrans de téléphones mobiles et tablettes */
@media (max-width: 768px) {
    .topbar {
        padding: 0 30px !important; /* Réduit la marge sur mobile pour pas que ça coince */
        min-height: 110px !important;
    }
    .logo {
        height: 80px !important; 
    }
    .topbar nav {
        gap: 15px !important;
    }
    .topbar nav a {
        font-size: 0.95rem !important;
    }
    .email-text {
        font-size: 0.85rem !important;     
    }
}
/* ---- STYLE CARTE POLISSAGE GRISÉE & BADGE PREMIUM ---- */
.service-card.service-bientot {
    background: #f4f4f4 !important; 
    border: 1px solid #e0e0e0 !important;
    position: relative !important;
    overflow: hidden;
    box-shadow: none !important;
    transform: none !important; 
    cursor: not-allowed; 
}

.service-card.service-bientot h3 {
    color: #777777 !important;
    margin-top: 25px !important; 
}

.service-card.service-bientot p {
    color: #999999 !important;
}

.badge-bientot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    background: linear-gradient(135deg, #2c3238 0%, #111416 100%); 
    color: #d4af37 !important; 
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 20px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3); 
    white-space: nowrap;
}
