/* --- CONFIGURATION DES COULEURS (Palette) --- */
:root {
    /* CHANGEZ CETTE COULEUR pour l'accorder à votre logo */
    --primary-color: #0056b3; /* Bleu Tech par défaut */
    
    /* Couleurs secondaires (générées pour aller avec tout) */
    --secondary-color: #333333;
    --light-bg: #f4f7f9;
    --white: #ffffff;
    --text-color: #444444;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--text-color); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- NAVIGATION --- */
.navbar { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); }
.btn-contact { background: var(--primary-color); color: var(--white) !important; padding: 10px 20px; border-radius: 5px; }
.btn-contact:hover { opacity: 0.9; }

/* Burger Menu (Mobile) */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--secondary-color); margin: 5px; transition: 0.3s; }

/* --- HERO SECTION --- */
/* --- HERO SECTION (Version Dégradé Pro) --- */
.hero {
    /* AJOUTEZ ceci pour que la hauteur s'adapte au contenu : */
    min-height: 50vh; /* Hauteur minimum (sur PC) */
    height: auto;     /* Permet au bloc de grandir si le texte est long */
	/* AJOUTEZ du rembourrage pour que le texte ne touche pas les bords */
    padding-top: 100px; /* Espace en haut pour ne pas être caché par le menu */
    padding-bottom: 50px; /* Espace en bas */
    /* Dégradé diagonal : Du gris foncé (gauche) vers votre Bleu Logo (droite) */
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Ajout d'un petit motif subtil par-dessus le dégradé (Optionnel) */

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Un léger voile pour donner de la texture */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-logo-corner {
    position: absolute; /* Positionnement libre */
    top: 30px;         /* Espace depuis le haut */
    right: 30px;       /* Espace depuis la droite */
    width: 150px;      /* TAILLE DU LOGO : Ajustez cette valeur selon votre goût */
    height: auto;      /* Garde les proportions */
    z-index: 10;       /* S'assure qu'il est au-dessus du fond */
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; z-index: 2; position: relative; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin: 0 auto 30px auto; z-index: 2; position: relative; }
.hero-btns { z-index: 2; position: relative; }

/* Ajustement couleur du texte en surbrillance */
.highlight { color: #8ecae6; /* Bleu très clair pour ressortir sur le fond foncé */ }
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; margin: 0 10px; transition: 0.3s; font-weight: bold; }
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-secondary { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn:hover { transform: translateY(-3px); }

/* --- SERVICES --- */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 50px; color: var(--secondary-color); }
/* --- GRILLE DE SERVICES (2x2) --- */
.services-grid {
    display: grid;
    /* Force exactement 2 colonnes de taille égale */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; /* Espace entre les cartes */
	/* C'est ici que se joue le centrage du bloc */
    max-width: 1000px;  /* On limite la largeur pour que les cartes restent groupées */
    margin: 0 auto;     /* On centre le bloc grille horizontalement */
}

/* --- VERSION MOBILE (On repasse à 1 colonne) --- */
@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur petit écran */
    }
	/* AJOUT : Ajustement du Hero sur mobile */
    .hero {
        padding-top: 120px; /* Plus d'espace car le menu prend de la place */
        min-height: auto;   /* Sur mobile, pas de hauteur mini, juste le texte */
    }

    .hero h1 {
        font-size: 1.8rem; /* Titre plus petit */
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;   /* Texte plus petit (au lieu de 1.2rem) */
        padding: 0 10px;   /* Marge de sécurité sur les côtés */
    }
}
.card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--primary-color); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 15px; color: var(--primary-color); }

/* --- FOOTER --- */
footer { background: var(--secondary-color); color: var(--white); text-align: center; padding: 20px 0; margin-top: 50px; }
.hosting-info { font-size: 0.8rem; opacity: 0.6; margin-top: 10px; }

/* =========================================
   RESPONSIVE (MOBILE & TABLETTE)
   ========================================= */

@media screen and (max-width: 768px) {
    
    /* 1. GESTION DU MENU DÉROULANT */
    body {
        overflow-x: hidden; /* Empêche le défilement horizontal */
    }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%; /* Menu prend toute la largeur sur mobile */
        transform: translateX(100%); /* Caché par défaut vers la droite */
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        z-index: 99; /* Par dessus le reste */
    }
    
    .nav-links li {
        opacity: 0; /* Caché pour l'animation */
        margin: 20px 0;
    }

    /* La classe qui active le menu (ajoutée par le JS) */
    .nav-active {
        transform: translateX(0%);
    }

    /* Affiche le Burger */
    .burger {
        display: block;
        z-index: 100;
    }

    /* 2. GESTION DU LOGO SUR MOBILE */
    /* On cache le logo de droite par défaut... */
    .logo-droite {
        display: block;      /* ...MAIS on le force à s'afficher ici */
        position: absolute;  /* Position libre */
        right: 60px;         /* Juste à gauche du burger */
        top: 15px;           /* Centré verticalement */
    }

    .logo-droite img {
        height: 35px;        /* Taille réduite pour le mobile */
        width: auto;
    }

    /* 3. AUTRES AJUSTEMENTS */
    .hero h1 { font-size: 2rem; } /* Titre plus petit */
    
    .hero-logo-corner { display: none; } /* Cache le logo décoratif en coin */
    
    .about-content {
        flex-direction: column; /* Photo au-dessus du texte */
        text-align: center;
    }
    
    .about-image img {
        width: 180px; height: 180px; margin-bottom: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
}

/* Animations d'apparition du menu */
@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

.nav-links li.fade {
    opacity: 1;
}

/* --- ETAT ACTIF DU MENU --- */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

/* --- STYLE LOGO BUREAU --- */
.logo-droite img {
    height: 50px;
    width: auto;
    margin-left: 20px;
    vertical-align: middle;
}

/* --- FORMULAIRE --- */
.form-container {
    max-width: 600px; margin: 0 auto; background: var(--white);
    padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary-color); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid #ccc;
    border-radius: 5px; font-size: 16px; font-family: 'Roboto', sans-serif;
    box-sizing: border-box; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}
.form-container button { width: 100%; padding: 15px; font-size: 1.1rem; margin-top: 10px; }

/* --- SECTIONS SPÉCIFIQUES --- */
.about-content { display: flex; align-items: center; justify-content: center; gap: 50px; }
.about-image img {
    width: 250px; height: 250px; object-fit: cover; border-radius: 50%;
    border: 5px solid var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.about-text { max-width: 600px; font-size: 1.1rem; color: var(--text-color); }

/* --- GRILLE PROJETS --- */
@media screen and (min-width: 769px) {
    .card-full {
        grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center;
    }
}

/* --- LOGO GOOGLE --- */
.google-logo {
    width: 40px; height: 40px; object-fit: contain; display: block;
    margin-bottom: 15px; margin-left: auto; margin-right: auto;
}

/* --- ANIMATION DU BURGER (TRANSFORMATION EN CROIX) --- */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0; /* La ligne du milieu disparait */
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- PAGE VEILLE TECHNO --- */

/* Mise en page Colonnes */
.veille-grid {
    display: grid;
    /* ON CHANGE ICI : 350px -> 300px pour permettre aux 3 colonnes de tenir côte à côte */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; /* On réduit un peu l'écart (50px -> 30px) pour gagner de la place */
}