/* Tout en haut du fichier */
html {
    scroll-behavior: smooth;
}
/* public/iktcreation.css */
:root {
    --primary-red: #E30613;
    --primary-gold: #FFC20E;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fcfcfc;
    /* Simulation motif africain subtil en background */
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Header */
header {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid var(--primary-red);
    
    /* --- AJOUTS POUR QUE LE HEADER SUIVE --- */
    position: sticky; /* On confirme qu'il reste fixe aussi sur mobile */
    padding: 10px 20px; /* On réduit un peu le padding sur mobile si besoin */    
    top: 0;
    left: 0;
    width: 100%; /* Il prend toute la largeur */
    box-sizing: border-box; /* Pour que le padding ne casse pas la largeur */
    z-index: 1000; /* Toujours au-dessus du reste */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Une petite ombre pour le détacher du fond */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary-white);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/img/hero-default.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px #000;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary-red);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s;
}

.cta-button:hover {
    background: var(--primary-gold);
    color: black;
    transform: scale(1.05);
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    color: var(--primary-red);
    text-transform: uppercase;
    border-left: 5px solid var(--primary-gold);
    padding-left: 15px;
    margin-bottom: 2rem;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary-gold);
}

footer {
    background: var(--primary-black);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 5px solid var(--primary-gold);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    /* On cache le menu par défaut sur mobile */
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #000;
        padding: 0;
        margin-top: 15px;
        text-align: center;
    }

    /* Quand la classe .active est ajoutée par le JS */
    nav ul.active {
        display: flex;
    }

    nav li {
        padding: 15px 0;
        border-bottom: 1px solid #333;
    }

    /* On affiche le bouton burger */
    #burger-menu {
        display: block !important;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}

/* --- SECTION PARTENAIRES --- */
.partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espace entre les logos */
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    display: block;
    width: 20%; /* Ta demande stricte : 20% de la largeur du parent */
    height: auto;
    object-fit: contain; /* Garde les proportions sans écraser le logo */
    
    /* STYLE PREMIUM */
    filter: none; /* AUCUN filtre gris, couleurs d'origine forcées */
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    background: white; /* Fond blanc propre si le logo est un jpg */
    border-radius: 5px;
}

/* Effet au survol souris */
.partner-logo:hover {
    transform: scale(1.1); /* Zoom léger */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Ombre portée douce */
    z-index: 2;
}

/* RESPONSIVE : Sur mobile, 20% c'est trop petit (illisible), on passe à 45% (2 par ligne) */
@media (max-width: 768px) {
    .partner-logo {
        width: 45%; 
        margin-bottom: 15px;
    }
}

/* --- RESPONSIVE MOBILE (Smooth Binter Style - CORRIGÉ) --- */

/* 1. Style du Burger */
.burger {
    /* Force le burger à aller tout à droite */
    margin-left: auto; 
    display: none; /* Caché sur PC */
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Transformation en Croix (X) */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: white; }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: white; }

/* 2. Animation Keyframes */
@keyframes linkFadeIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 3. Media Query Mobile */
@media (max-width: 768px) {
    /* On force l'affichage du burger */
    .burger {
        display: block !important;
    }

    header {
        position: sticky; 
        z-index: 1000;
        /* S'assure que le logo est à gauche et le burger à droite */
        justify-content: space-between; 
    }

    /* Le Menu Latéral */
    nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 400px;
        background-color: #1a1a1a;
        
        padding: 0;
        margin: 0;
        z-index: 999;
        
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    nav ul.active {
        transform: translateX(0%);
    }

    nav li {
        width: 100%;
        text-align: center;
        margin: 20px 0;
        opacity: 0;
        transform: translateX(50px);
        border: none;
    }

    /* FORCE LA COULEUR BLANCHE */
    nav a {
        font-size: 1.5rem;
        color: #ffffff !important; /* Force le blanc */
        text-decoration: none;
        display: block;
    }
}

/* 4. Reset Desktop */
@media (min-width: 769px) {
    .burger { display: none !important; }
    
    nav ul {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        flex-direction: row;
        transform: none;
        transition: none;
        justify-content: flex-end;
    }
    
    nav li { opacity: 1; transform: none; margin: 0; width: auto; }
    nav a { color: var(--primary-gold); } /* Retour au doré sur PC */
}
/* --- 1. NOUVEAU LOGO --- */
.site-logo {
    font-family: 'Helvetica', 'Arial', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.6rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px; /* Espace entre IKT et CREATION */
}

.logo-bold {
    font-weight: 900; /* Très gras */
    color: #ffffff;
}

.logo-light {
    font-weight: 300; /* Plus fin */
    color: var(--primary-red); 
}

/* --- 2. CONFIGURATION DU FOND MENU MOBILE --- */
/* Cherche le bloc "nav ul" dans ta media query mobile (@media max-width: 768px) */
/* Et remplace la ligne background-color par L'UNE de ces options : */

@media (max-width: 768px) {
    nav ul {
        /* OPTION A : COULEUR UNIE (Sobre) */
        /* background-color: #1a1a1a; */

        /* OPTION B : DÉGRADÉ (Moderne - RECOMMANDÉ) */
        background: linear-gradient(135deg, #1a1a1a 0%, #2c0505 100%);

        /* OPTION C : IMAGE (Immersif) */
        /* background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('assets/img/menu-bg.jpg'); */
        /* background-size: cover; background-position: center; */
    }
}

/* --- SECTION PRO (Standardisation des espacements) --- */
.section-pro {
    padding: 100px 20px; /* Padding généreux haut/bas */
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 10px;
}

.text-red { color: var(--primary-red); }

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- GRILLE SERVICES MODERNE --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive auto */
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px; /* Bords arrondis modernes */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Ombre très douce */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

/* Effet "Lift" au survol */
.service-card:hover {
    transform: translateY(-10px); /* La carte monte */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary-red);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #222;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.learn-more {
    text-decoration: none;
    color: var(--primary-red);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- STYLE GALERIE --- */
.mini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 250px; /* Hauteur fixe pour uniformiser */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit la case sans être déformée */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom doux au survol */
}

/* --- BOUTONS --- */
.btn-primary {
    background-color: var(--primary-red);
    color: white;
    padding: 15px 30px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #333;
}

/* --- SECTION CTA (Call to Action) --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a1040e 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-white {
    background-color: white;
    color: var(--primary-red);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-white:hover {
    transform: scale(1.05);
    color: black;
}

