/* Fichier : ./assets/css/style.css */

/* === GLOBAL === */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;

}

/* === TITRES === */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

h3 {
    color: #0033ff9e !important; /* Bleu Bootstrap classique */

}

ul {
    list-style: none; /* Supprimer les puces */
    padding-left: 0; /* Supprimer l'indentation */
}
ul li {
    margin-bottom: 8px; /* Un petit espace entre chaque ligne */
}

/* === BOUTONS === */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004494;
}

/* === NAV TABS === */
.nav-tabs .nav-link.active {
    font-weight: bold;
}

/* === DESCRIPTION TAB === */
.tab-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.tab-pane h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* NE PAS mettre de bordure au tout premier h3 */
.tab-pane h3:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.tab-pane p {
    margin-bottom: 1.5rem;
}


.table tbody tr {
    height: 70px; /* Donne de l'air entre chaque ligne */
    vertical-align: middle; /* Centre le texte verticalement */
}

.table td, .table th {
    padding: 1rem; /* Plus d'espace dans chaque cellule */
    vertical-align: middle; /* Centre les textes */
}

/* === CAROUSEL PRINCIPAL (IMAGE/VIDEO) === */
.carousel-inner img, 
.carousel-inner video {
    max-height: 400px; /* hauteur max pour l'image principale */
    width: auto;
    margin: auto;
    object-fit: contain;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* === THUMBNAILS === */

/* Correction miniatures pour mobile */
.thumbnail-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
}

.img-thumbnail {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover; /* Important : remplit toute la case */
    border: 2px solid #ddd;
    transition: 0.3s;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent;
}
.img-thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.05);
}


/* === CEE MENTION === */
.cee-highlight {
    font-weight: bold;
    color: #28a745;
}

.certif-img {
    height: auto;
    max-width: 150px; /* Elles ne dépasseront jamais */
    width: 100%;
    object-fit: contain;
}

.certifications {
    max-width: 100%;
    overflow: hidden;
}


/* Correction container mobile */
.container {
    overflow-x: hidden;
}

.carousel-inner img, .carousel-inner video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    footer {
        font-size: 14px;
    }
    h1 {
        font-size: 28px;
    }

    .logo-hydro {
        height: 40px;
    }
    .site-title {
        display: none; /* On cache le titre sur mobile */
    }
    .btn-contact {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    
    /* Correction ul li mobile */
    ul li {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    /* Correction affichage carousel mobile */
    .carousel-inner img, .carousel-inner video {
        max-height: 300px;
        object-fit: contain;
    }

    #documentation {
        text-align: left;
    }
    h3 {
        font-size: 20px !important; /* Réduit la taille du titre sur mobile */
        text-align: left;
    }
    #documentation .btn {
        width: 100%; /* Les boutons prennent toute la largeur */
        text-align: left;
        font-size: 14px; /* Texte plus petit dans les boutons */
        justify-content: flex-start; /* Aligne le contenu à gauche */
        display: flex;
        align-items: center;
        gap: 8px; /* Petit espace entre l'icône et le texte */
    }
}

