/* --- VARIABLES & RESET --- */
:root {
    --primary-red: #D32F2F; 
    --primary-red-hover: #b71c1c;
    --dark-bg: #121212;
    --text-dark: #333333;
    --light-bg: #f4f6f8;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; background-color: #fff; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.text-red { color: var(--primary-red); }
.text-white { color: #ffffff; }
.text-white-dim { color: #b0b0b0; }

/* --- BOUTONS --- */
.btn { display: inline-block; padding: 12px 30px; font-weight: 700; text-transform: uppercase; border-radius: 4px; font-family: var(--font-heading); letter-spacing: 1px; }
.btn-primary { background-color: var(--primary-red); color: white; border: 2px solid var(--primary-red); cursor: pointer; }
.btn-primary:hover { background-color: var(--primary-red-hover); border-color: var(--primary-red-hover); }
.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background-color: white; color: var(--dark-bg); }

/* --- TOP BAR (MODIFIE) --- */
.top-bar { background-color: var(--dark-bg); color: #b0b0b0; padding: 12px 0; border-bottom: 1px solid #333; }
.top-bar-center { display: flex; justify-content: center; align-items: center; text-align: center; }
.slogan { 
    font-family: var(--font-body); 
    font-style: italic; 
    font-size: 1.1rem; 
    color: #fff; 
    letter-spacing: 1px; 
    font-weight: 400; 
}

/* --- HEADER --- */
header { background-color: #000000; padding: 10px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 80px; width: auto; display: block; }
.main-nav ul { display: flex; align-items: center; }
.main-nav li { margin-left: 30px; }
.main-nav a { color: white; font-family: var(--font-heading); font-weight: 500; text-transform: uppercase; font-size: 1.1rem; }
.main-nav a:hover { color: var(--primary-red); }
.btn-nav { background: var(--primary-red); padding: 8px 20px; border-radius: 3px; color: white !important; }
.btn-nav:hover { background: var(--primary-red-hover); }

/* --- HERO --- */
.hero { background: url('https://images.unsplash.com/photo-1581094288338-2314dddb7ece?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; height: 600px; position: relative; display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); }
.hero-text { position: relative; z-index: 2; color: white; }
.subtitle-badge { background: var(--primary-red); color: white; padding: 5px 10px; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.hero h1 { font-family: var(--font-heading); font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin-bottom: 30px; color: #ddd; }
.cta-group { display: flex; gap: 15px; }

/* --- TRUST BAR --- */
.trust-bar { background-color: #f8f9fa; border-bottom: 1px solid #e9ecef; padding: 30px 0; }
.trust-grid { display: flex; justify-content: space-around; text-align: center; }
.trust-item h3 { font-family: var(--font-heading); color: var(--dark-bg); font-size: 1.4rem; margin-bottom: 5px; }
.trust-item p { color: #666; font-weight: 500; }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.about h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; color: var(--dark-bg); }
.check-list { margin-top: 20px; }
.check-list li { margin-bottom: 10px; padding-left: 25px; position: relative; font-weight: 500; }
.check-list li::before { content: "✓"; color: var(--primary-red); position: absolute; left: 0; font-weight: bold; }
.map-container { width: 100%; height: 350px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-bottom: 5px solid var(--primary-red); }

/* --- SERVICES  --- */
.section-title { text-align: center; font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 50px; color: var(--dark-bg); position: relative; }
.section-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--primary-red); margin: 15px auto 0; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-card { 
    background: white; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    transition: transform 0.3s; 
    border-radius: 8px; /* Arrondi léger */
    overflow: hidden; /* Pour que l'image ne dépasse pas des coins */
    border-bottom: 3px solid transparent; /* Préparation pour le hover */
}

.service-card:hover { 
    transform: translateY(-5px); 
    border-bottom: 3px solid var(--primary-red); 
}

/* Style de l'image en haut de la carte */

/* --- NOUVEAU CODE POUR LE DIAPORAMA --- */

/* Le cadre qui contient les images */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 220px; /* J'ai mis 220px pour une belle hauteur */
    overflow: hidden;
    border-top-left-radius: 8px;  /* Arrondi coin haut gauche */
    border-top-right-radius: 8px; /* Arrondi coin haut droit */
}

/* Les images elles-mêmes */
.slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important : remplit la case sans déformer l'image */
    opacity: 0;        /* Caché par défaut */
    transition: opacity 1s ease-in-out; /* Transition douce de 1 seconde */
}

/* L'image active (celle qu'on voit) */
.slideshow-container .slide.active {
    opacity: 1;
}

.card-content {
    padding: 30px; /* Espace à l'intérieur de la carte */
}

.service-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; color: var(--dark-bg); }
.service-card ul { margin-top: 20px; font-size: 0.95rem; color: #555; }
.service-card li { margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 5px; }

/* --- NOUVEAU DESIGN CERTIFICATIONS (Glassmorphism) --- */

.certifications {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%); /* Fond un peu plus riche */
    overflow: hidden; /* Pour contenir les animations */
}

.cert-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Style de la carte */
.cert-card {
    background: rgba(255, 255, 255, 0.03); /* Très transparent */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure fine */
    padding: 30px 20px;
    border-radius: 15px;
    width: 280px;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px); /* Effet de flou derrière */
    
    /* Pour l'animation JS de départ */
    opacity: 0; 
    transform: translateY(30px);
}

/* Effet au survol de la souris */
.cert-card:hover {
    transform: translateY(-10px); /* La carte monte */
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-red); /* Bordure devient rouge 4KER */
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.15); /* Ombre rouge douce */
}

.cert-icon-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cert-img {
    max-height: 80px;
    width: auto;
    transition: transform 0.4s;
    background: white; /* Fond blanc pour le logo */
    padding: 10px;
    border-radius: 8px;
}

.cert-card:hover .cert-img {
    transform: scale(1.1); /* Le logo grossit un peu */
}

.cert-card h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cert-card p {
    color: #bbb;
    font-size: 0.9rem;
    margin: 0;
}

/* Classe ajoutée par le Javascript pour l'apparition */
.cert-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CONTACT --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-infos h2 { font-family: var(--font-heading); margin-bottom: 20px; font-size: 2.2rem; }
.info-block { margin-bottom: 25px; }
.info-block strong { display: block; color: var(--primary-red); margin-bottom: 5px; }
.big-phone { font-size: 1.5rem; font-weight: bold; color: var(--dark-bg); }
.email-link { color: var(--text-dark); font-weight: bold; text-decoration: underline; }
.email-link:hover { color: var(--primary-red); }
.contact-form-container { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.1); }
.contact-form-container h3 { margin-bottom: 20px; font-family: var(--font-heading); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.full-width { width: 100%; }

/* --- FOOTER --- */
footer { background: black; color: white; padding: 40px 0; border-top: 3px solid var(--primary-red); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-heading); font-size: 2rem; font-weight: bold; margin-bottom: 10px; }
.footer-right a { color: #888; margin-left: 20px; font-size: 0.9rem; }
.footer-right a:hover { color: white; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .top-bar-center { padding: 0 20px; }
    .header-content, .hero-text, .footer-content { flex-direction: column; text-align: center; }
    .main-nav ul { flex-direction: column; padding: 20px 0; }
    .main-nav li { margin: 10px 0; }
    .about-grid, .contact-wrapper, .trust-grid { grid-template-columns: 1fr; gap: 30px; }
    .cert-logos { flex-direction: column; align-items: center; }
    .hero h1 { font-size: 2.5rem; }
    .map-container { height: 300px; }
}

/* --- STYLE ICONE LINKEDIN (Version intégrée au contact) --- */
.icon-linkedin {
    width: 35px;   /* Plus petit pour aller bien dans la colonne */
    height: 35px;
    fill: #333;    /* Gris foncé */
    transition: fill 0.3s, transform 0.3s;
    display: block;
    margin-top: 5px;
}

.icon-linkedin:hover {
    fill: #0077b5; /* Bleu LinkedIn */
    transform: scale(1.1);
    cursor: pointer;
}
/* --- ESPACEMENT SUPPLEMENTAIRE EXPERTISES --- */
#expertises {
    padding-bottom: 300px; /* Tu peux augmenter ce chiffre (ex: 200px) si tu veux encore plus d'espace */
}