:root {
    /* Couleurs exactes basées sur le logo iTEQ */
    --iteq-blue: #009EE0;   /* Le bleu du texte "iTEQ" */
    --iteq-orange: #FF9900; /* L'orange des barres graphiques */
    --iteq-dark: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* --- 1. Identité (En-tête) --- */
.brand-header {
    background-color: white;
    padding: 15px 0;
    border-top: 5px solid var(--iteq-orange); /* Touche de couleur orange en haut */
}
.brand-logo {
    max-height: 90px; /* Taille du logo */
}

/* --- 2. Menu Navigation --- */
/* --- 2. Menu Navigation (Hauteur Forcée) --- */
.navbar-iteq {
    background-color: var(--iteq-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* FORCE la suppression des espaces par défaut de Bootstrap */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* Hauteur fixe pour être sûr */
    height: 50px; 
    display: flex;
    align-items: center; /* Centre verticalement le contenu */
}

.navbar-iteq .nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    /* Hauteur des liens réduite pour coller à la barre */
    padding: 0 15px !important; 
    /* Astuce : line-height égal à la hauteur de la barre pour centrer le texte */
    line-height: 50px; 
    transition: background 0.3s, color 0.3s;
}

/* Effet au survol */
.navbar-iteq .nav-link:hover, .navbar-iteq .nav-link.active {
    background-color: var(--iteq-orange);
    color: white !important;
}

/* Ajustement pour les boutons à droite (Connexion/Inscription) */
/* On doit réinitialiser leur line-height car ce sont des boutons */
.navbar-iteq .btn {
    line-height: 1.5 !important;
    padding: 5px 15px !important;
    margin-top: 0 !important;
}

/* --- 3. Bannière Carousel (Produits Phares) --- */

/* --- 3. Bannière Carousel (CORRIGÉ POUR ÉLASTICITÉ) --- */
.carousel-iteq {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    overflow: hidden;
    border-bottom: 3px solid var(--iteq-orange);
}

.product-img-container {
    /* CHANGEMENT ICI : min-height au lieu de height */
    min-height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    /* Pour que la colonne image s'étire autant que le texte */
    height: 100%; 
}

.carousel-caption-custom {
    text-align: left;
    padding: 40px;
    /* AJOUT IMPORTANT : Espace en bas pour le bouton */
    padding-bottom: 60px; 
    color: var(--iteq-dark);
    
    /* Flexbox pour centrer le texte verticalement si l'image est très haute */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .product-img-container {
        min-height: 250px;
    }
    .carousel-caption-custom {
        padding: 20px;
        padding-bottom: 40px;
    }
}

/* --- 4. Filtres et Cartes --- */
.filter-section {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 20px;
    border-left: 5px solid var(--iteq-blue);
}

.card-product {
    border: none;
    transition: all 0.3s;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.card-header-img {
    height: 180px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Boutons généraux */
.btn-iteq-orange {
    background-color: var(--iteq-orange);
    color: white;
    border: none;
    padding: 10px 25px;
}
.btn-iteq-orange:hover {
    background-color: #e68a00;
    color: white;
}
/* --- Top Bar (Contact) --- */
.top-bar {
    background-color: var(--iteq-dark);
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar i { color: var(--iteq-orange); margin-right: 5px; }
.top-bar span { margin-right: 20px; }

/* --- FOOTER DESIGN --- */
footer {
    background-color: #222222; /* Fond Noir doux */
    color: #e0e0e0; /* Texte Gris clair (lisible) */
    padding-top: 50px;
    border-top: 5px solid var(--iteq-blue); /* Bordure Bleue en haut */
}

footer h5 {
    color: var(--iteq-orange); /* Titres en Orange */
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid var(--iteq-blue); /* Petite ligne bleue à gauche du titre */
    padding-left: 10px;
}

footer p, footer li, footer span {
    color: #cccccc; /* Texte par défaut */
}

footer ul { list-style: none; padding-left: 0; }
footer ul li { margin-bottom: 12px; }

footer ul li a {
    color: #bbbbbb !important; /* Liens gris */
    text-decoration: none;
    transition: 0.3s;
}

footer ul li a:hover {
    color: var(--iteq-orange) !important; /* Devient Orange au survol */
    padding-left: 5px;
}

.footer-bottom {
    background-color: #111111; /* Noir plus profond pour le bas */
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #888;
}

.admin-link {
    color: #555 !important;
    text-decoration: none;
    transition: 0.3s;
}
.admin-link:hover {
    color: var(--iteq-blue) !important;
}

/* --- RÉSEAUX SOCIAUX --- */
.social-icon {
    color: rgba(255, 255, 255, 0.7) !important; /* Blanc légèrement transparent */
    margin-right: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--iteq-orange) !important; /* Devient Orange au survol */
    transform: translateY(-2px); /* Petit effet de saut */
}

/* Pour le Footer, on les veut un peu plus grands */
footer .social-icon {
    font-size: 1.5rem; /* Plus gros */
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
footer .social-icon:hover {
    background: var(--iteq-orange);
    color: white !important;
}
/* Animation pour le badge Promo */
@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.animate-pulse {
    animation: pulse-red 2s infinite;
}
.product-img-container {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white; /* Fond blanc comme demandé */
}

.carousel-caption-custom {
    text-align: left;
    padding: 40px; /* C'est ce padding qui empêche le texte de coller au bord */
    color: var(--iteq-dark);
}
