/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #0d1b2a; /* Bleu nuit très pro */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.logo span { color: #00a8e8; } /* Touche de bleu clair */

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #00a8e8;
}

.btn-client {
    background-color: #00a8e8;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.btn-client:hover {
    background-color: #0077b6;
}

/* HERO SECTION */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.buttons {
    margin-top: 30px;
}

.btn-primary {
    background-color: #00a8e8;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    padding: 10px 23px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* CARDS SERVICES */
.services-preview {
    padding: 50px 5%;
    text-align: center;
}

.services-preview h2 {
    margin-bottom: 40px;
    color: #0d1b2a;
}

.cards-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: white;
    padding: 30px;
    width: 30%;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px); /* Petit effet dynamique */
}

.card h3 {
    color: #0077b6;
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background-color: #0d1b2a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}
footer a { color: #00a8e8; }

/* --- AJOUTS POUR LA PAGE CONTACT --- */

.contact-page {
    padding: 60px 20px;
    background-color: #e9ecef; /* Fond légèrement gris pour le contraste */
    min-height: 80vh; /* Prend au moins 80% de la hauteur de l'écran */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px; /* Pas trop large, ça fait plus propre */
    text-align: center;
}

.contact-container h1 {
    color: #0d1b2a;
    margin-bottom: 10px;
}

.contact-container p {
    color: #666;
    margin-bottom: 30px;
}

/* Style du Formulaire */
.contact-form {
    text-align: left; /* Les labels à gauche, c'est plus lisible */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

/* Champs de texte (Inputs) */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: 0.3s;
    background-color: #f9f9f9;
}

/* Effet quand on clique dans la case */
.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    border-color: #00a8e8; /* Bordure bleue */
    outline: none;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 168, 232, 0.3);
}

/* Bouton Envoyer */
.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #00a8e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #0077b6; /* Devient plus foncé au survol */
}


/* --- AJOUTS POUR LA PAGE SERVICES --- */

/* Petit header spécifique pour les pages internes (moins haut que l'accueil) */
.page-header {
    height: 40vh;
    background: linear-gradient(to right, #0d1b2a, #1b263b); /* Dégradé bleu nuit */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Conteneur global */
.services-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Une rangée de service (Texte + Visuel) */
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}

/* Pour inverser l'ordre (Image à gauche, Texte à droite) */
.service-row.reverse {
    flex-direction: row-reverse;
}

/* Partie Texte */
.service-text {
    flex: 1; /* Prend la moitié de la place */
}

.service-text h2 {
    color: #00a8e8;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.service-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
}

/* Liste à puces stylisée */
.service-list {
    list-style: none;
    margin-bottom: 30px;
}

.service-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.service-list li::before {
    content: "✔"; /* Petite coche bleue */
    color: #00a8e8;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Petit bouton sous le texte */
.btn-small {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0d1b2a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-small:hover {
    background-color: #00a8e8;
}

/* Partie Visuelle (Simule une image) */
.service-visual {
    flex: 1;
    height: 300px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem; /* Taille de l'émoji */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.visual-blue {
    background: linear-gradient(135deg, #a8dadc, #457b9d);
}

.visual-dark {
    background: linear-gradient(135deg, #e9ecef, #adb5bd);
}

/* Séparateur entre les sections */
.separator {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 60px 0;
}

/* Bannière du bas (Call to Action) */
.cta-banner {
    background-color: #00a8e8;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.cta-banner h2 { margin-bottom: 15px; }
.cta-banner p { margin-bottom: 30px; font-size: 1.2rem; }
.cta-banner .btn-primary {
    background-color: white;
    color: #00a8e8; /* Inverse les couleurs pour le contraste */
}
.cta-banner .btn-primary:hover {
    background-color: #f1f1f1;
}

/* RESPONSIVE (Pour mobile) */
@media (max-width: 768px) {
    .service-row, .service-row.reverse {
        flex-direction: column; /* Empile tout sur mobile */
        text-align: left;
    }
    
    .service-visual {
        width: 100%;
        height: 200px;
    }
}


/* --- AJOUTS POUR LA PAGE MATERIEL --- */

/* Petit ajustement du fond du header pour varier */
.header-materiel {
    background: linear-gradient(to right, #2b2d42, #8d99ae);
}

.catalog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.category-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #0d1b2a;
    border-bottom: 2px solid #00a8e8;
    display: inline-block;
    padding-bottom: 5px;
}

/* La Grille de Produits (Magique !) */
.products-grid {
    display: grid;
    /* Cela crée autant de colonnes que possible, minimum 300px de large */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Carte Produit Individuelle */
.product-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, border 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pousse le bouton vers le bas */
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #00a8e8;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Badge (Sur devis / En stock) */
.badge {
    background-color: #e9ecef;
    color: #555;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    align-self: center; /* Centre le badge */
    margin-bottom: 20px;
}

/* Bouton transparent avec bordure */
.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #00a8e8;
    color: #00a8e8;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #00a8e8;
    color: white;
}


.header-fibre { background: linear-gradient(to right, #111, #333); }
.fibre-section { padding: 60px 20px; background: white; }
.fibre-container { display: flex; align-items: center; gap: 40px; max-width: 1000px; margin: 0 auto; }
.fibre-text { flex: 1; }
.fibre-text h2 { margin-bottom: 20px; color: #00a8e8; }
.fibre-image { flex: 1; }
.fibre-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.router-box { background: #eef; padding: 15px; border-left: 4px solid #00a8e8; margin: 20px 0; }
@media (max-width: 768px) { .fibre-container { flex-direction: column; } }
.visual-photo {
    flex: 1;
    position: relative;
    /* On passe de 400px à 250px pour que ce soit moins "géant" */
    min-height: 250px; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #eee;
}

.visual-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image sera recadrée proprement */
}

/* On garde la version mobile plus petite */
@media (max-width: 768px) {
    .visual-photo {
        min-height: 200px;
    }
}



/* --- NOUVEAU DESIGN CONTACT (CENTRÉ & PROPRE) --- */

.contact-section {
    background-color: #f4f4f4; /* Fond gris léger pour faire ressortir le formulaire */
    padding: 60px 20px;
    min-height: 80vh; /* Prend une bonne hauteur d'écran */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: flex-start; /* Aligne en haut (mieux si le formulaire est long) */
}

.contact-container {
    background: white;
    width: 100%;
    max-width: 600px; /* Largeur idéale pour un formulaire centré */
    padding: 40px;
    border-radius: 12px; /* Coins arrondis */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Belle ombre portée */
    
    /* On empile le formulaire et les infos verticalement */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* On centre le titre "Nos Coordonnées" et le texte en bas */
.contact-info {
    text-align: center;
    border-top: 1px solid #eee; /* Petite ligne de séparation */
    padding-top: 20px;
}

.contact-info h3 {
    color: #00a8e8;
    margin-bottom: 15px;
}

/* Style des champs pour qu'ils soient bien larges */
.form-group input, 
.form-group textarea {
    width: 100%; /* Remplit bien la boîte */
    box-sizing: border-box; /* Évite que ça dépasse */
}

.btn-primary {
    width: 100%; /* Le bouton prend toute la largeur aussi, c'est plus moderne */
    justify-content: center;
}