/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* Assurer que tout l'écran est couvert */
html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 300vh;
    overflow-y: auto; /* Permet le défilement vertical */
    overflow-x: hidden; /* Empêche juste le défilement horizontal */
    scroll-behavior: smooth; /* Effet fluide */
}
.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    transition: all 0.3s ease; /* Assure un effet fluide */
}
.container_pg{
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}
/* === PAGE ACCUEIL === */
.homepage-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: auto; /* Permet le défilement vertical */
    overflow-x: hidden; /* Empêche juste le défilement horizontal */
    scroll-behavior: smooth; /* Effet fluide */
}

/* === SECTIONS SPLIT === */
.split {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    transition: width 0.5s ease-in-out;
}

.left {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
}

.right {
    background: linear-gradient(135deg, #6A9C78, #3D6B47);
}

/* === EFFET DE SURVOL === */
.split:hover {
    width: 55%;
}

.split:not(:hover) {
    width: 45%;
}

/* Bloc gauche */
.left-block, .right-block {
    flex: 1; /* Chaque bloc prend 50% */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: white;
    transition: flex 0.3s ease;
}

/*

.left-block {
    flex: 1;
    background-color: rgba(255, 204, 0, 0.2);
    transition: background-color 0.3s ease;
}


.right-block {
    flex: 1;
    background-color: rgba(0, 150, 136, 0.2);
    transition: background-color 0.3s ease;
}
*/

/* Couleurs de base */
.left-block {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    /*background-color: rgba(255, 204, 0, 0.5); /* Jaune doré */
}

.right-block {
    background: linear-gradient(135deg, #6A9C78, #3D6B47);
    /*background-color: rgba(0, 150, 136, 0.5); /* Vert foncé */
}

/* Effet au survol */
.left-block:hover {
    background-color: rgba(255, 204, 0, 0.7);
}

.right-block:hover {
    background-color: rgba(0, 150, 136, 0.7);
}

/* Effet au survol */
.container:hover .left-block:hover {
    flex: 1.1; /* Passe à 55% */
}

.container:hover .right-block:hover {
    flex: 1.1; /* Rétrécit à 45% */
}
.container:not(:hover) .left-block:not(:hover) {
    flex: 0.9; /* Rétrécit à 45% */
}

.container:not(:hover) .right-block:not(:hover) {
    flex: 0.9; /* Rétrécit à 45% */
}

/* === CONTENU DANS CHAQUE SECTION === */
.section .content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: left;
}
.section .content h2 {
    width: 47%;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
}
/* Titre */
.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}
/* Dernière formation */
.latest-formation {
    background: #FFD700;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.latest-formation .formation-card.large {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Formations phares */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.formation-card {
    width: 250px;
    padding: 15px;
    border-radius: 8px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-align: center;
}

.formation-card:hover {
    transform: scale(1.05);
}
/* Zones d'actualités */
.news-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.news-box {
    width: 300px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.news-box h3 {
    margin-bottom: 10px;
}

.news-box .btn {
    margin-top: 10px;
}
/* Introduction */
.intro p {
    text-align: center;
    font-size: 1.2rem;
}

/* Accompagnement */
.accompagnement-type {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    text-align: center;
}

.accompagnement-type img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}


.accompagnement-type h3 {
    text-align: center;
}
/* Grille des blocs */
.accompagnement-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Cartes avec effet background flouté */
.accompagnement-card {
    position: relative;
    width: 320px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    filter: grayscale(30%);
}

.accompagnement-card:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
}

/* Contenu avec effet "carton flottant" */
.accompagnement-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: background 0.3s ease;
}

.accompagnement-card:hover .accompagnement-content {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .accompagnement-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* Accompagnement - Grand format */
.accompagnement-section {
    position: relative;
    width: 50%;
    height: 50vh; /* Prend 80% de la hauteur de l'écran */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: brightness(70%);
    margin: 25px;
}

.accompagnement-section:hover {
    transform: scale(1.02);
    filter: brightness(90%);
}

/* Contenu au-dessus de l'image */
.accompagnement-content {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 700px;
    transition: background 0.3s ease;
}

.accompagnement-section:hover .accompagnement-content {
    background: rgba(0, 0, 0, 0.9);
}

/* Cartouche pour informations complémentaires */
.cartouche {
    margin-top: 15px;
    padding: 15px;
    background: white;
    color: black;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .accompagnement-section {
        height: auto;
        padding: 20px;
    }
    .accompagnement-content {
        max-width: 90%;
        padding: 20px;
    }
}

/* Profil */
.profile-section {
    text-align: center;
    margin-bottom: 20px;
}

.profile-section img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Grille principale */
.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Boîtes de dashboard */
.dashboard-box {
    width: 280px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s;
}

.dashboard-box:hover {
    transform: scale(1.05);
}
/*
.form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-check {
    margin-top: 10px;
}
*/

/* Avantages */
.avantages {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
}

.avantage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.avantage-item {
    width: 250px;
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}



#hexagonCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10; /* Plus bas que les autres éléments */
    pointer-events: none; /* Ne bloque pas les interactions */
}

/* SECTION DE PRÉSENTATION */
#presentation {
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh; /* Assure que la section occupe au moins un écran */
    padding-top: 80px; /* Ajoute un espace sous le header */
    height: 100vh; /* Occupe tout l'écran */
    background-color: #f7f7f7; /* Fond léger */
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#presentation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CONTAINER DES ALVÉOLES */
.hexagon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px; /* Ajuste la largeur pour éviter qu'ils s'étalent trop */
    margin: 0 auto;
    padding: 40px;
    position: relative;
}

/* HEXAGONES */
.hexagon {
    position: relative;
    width: 300px;
    height: 330px;
    background-color: white;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Placement en ruche */
.hexagon:nth-child(odd) {
    margin-right: 40px; /* Décale les hexagones impairs */
    transform: translateY(30px); /* Décalage vertical pour l'effet ruche */
}

/* Apparition progressive au scroll */
.hexagon.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* Effet au survol */
.hexagon:hover {
    transform: scale(1.05);
}

/* CONTENU DANS L’HEXAGONE */
.hex-content {
    position: absolute;
    z-index: 2;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
}

/* TITRE DANS L’HEXAGONE */
.hex-content h2 {
    font-size: 16px;
    margin: 0;
}

/* SOUS-TITRE AUTOUR DE L’HEXAGONE */
.hex-content p {
    font-size: 12px;
    margin: 5px 0 0;
}

/* IMAGE DE FOND DANS L’HEXAGONE */
.hexagon img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
}
/* Conteneur principal du dashboard */
.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px; /* Juste sous le header */
    left: 0;
    width: 250px;
    height: calc(100vh - 60px); /* Toute la hauteur, moins la hauteur du header */
    background: #222;
    color: white;
    padding: 20px;
    overflow-y: auto; /* Permet de scroller si le menu est long */
    z-index: 999;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    padding: 10px;
    display: block;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background: #444;
}

.dashboard-content {
    margin-left: 250px; /* Décale le contenu pour ne pas chevaucher la sidebar */
    margin-top: 60px; /* Décale sous le header */
    padding: 20px;
    background: #f7f7f7;
    min-height: 100vh;
}
/* Page d'une entité */
.admin-entity-container {
    width: 95%;
    padding-left: 260px; /* Pour laisser la place à la sidebar */
    padding-top: 20px; /* Ajuste si besoin */
    text-align: center;
    margin: 0; /* Supprime margin:auto qui empêche l’alignement */
    position: relative; /* Assure que le container se positionne normalement */
    display: flex;
    flex-direction: column; /* Force le contenu à s’aligner en colonne */
    align-items: center;
}
#info-container #contact-info{
    text-align: left;
    padding: 35px;
}
/* Boutons d'action */
.entity-actions {
    margin-bottom: 20px;
}

.entity-actions .btn {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.entity-actions .btn:hover {
    background: #0056b3;
}
/* HEADER BACK-OFFICE */
.backoffice-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #222; /* Couleur sombre pour différencier l’admin */
    color: white;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour le distinguer */
}

/* LOGO */
.backoffice-header .logo img {
    height: 40px;
    width: auto;
}

/* TITRE BACK-OFFICE */
.backoffice-title {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
}

/* MENU NAVIGATION */
.menu {
    list-style: none;
    display: flex;
    padding: 0;
}

.menu li {
    margin: 0 10px;
}

.menu li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    transition: background 0.3s;
    border-radius: 5px;
}

.menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* Style du header public */
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding: 0 20px;
    transition: background 0.3s ease-in-out;
}

/* Conteneur */
.public-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #FFD700; /* Jaune au survol */
}
/* Changement de style au scroll */
.scrolled .header-left {
    background: #FFCC00; /* Jaune plus foncé */
}

.scrolled .header-right {
    background: #006600; /* Vert plus foncé */
}

/* Changement de style au scroll */
.scrolled {
    background: #000; /* Fond opaque au scroll */
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: none;
    }

    nav ul.open {
        display: flex;
    }
    .public-header {
        flex-direction: column;
        height: auto;
    }

    .header-left, .header-right {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .header-right nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
/* Informations des fournisseurs et solutions */
.fournisseur-info, .solution-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Grille de solutions associées */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* MENU BURGER POUR MOBILE */
.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    color: white;
    display: none; /* Caché en mode desktop */
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(34, 34, 34, 0.9);
        width: 200px;
        padding: 10px;
        border-radius: 5px;
    }

    .menu.open {
        display: flex;
    }

    .menu-toggle {
        display: block; /* Affiche le menu burger en mobile */
    }
    .sidebar {
        position: absolute;
        left: -250px;
        transition: left 0.3s ease-in-out;
    }

    .sidebar.open {
        left: 0;
    }

    .dashboard-content {
        margin-left: 0;
    }
}
/* CONTENEUR PRINCIPAL DES PAGES */
.page-container {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* HEADER DES PAGES */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    color: white;
}

/* SECTIONS GÉNÉRALES */
.section {
    width: 80%;
    max-width: 900px;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* ALTERNANCE DE COULEURS POUR DYNAMISER LA PAGE */
.alternate {
    color: white;
}

/* INTELLIGENCE COLLECTIVE - BLEU & JAUNE */
.collective {
    background-color: rgba(0, 150, 136, 0.1); /* Fond léger */
}

.collective .page-header {
    background-color: rgba(0, 150, 136, 0.8);
}

.collective .section {
    background-color: white;
}

.collective .alternate {
    background-color: rgba(255, 204, 0, 0.8);
}

/* INTELLIGENCE PERSONNELLE - JAUNE & BLEU */
.personal {
    background-color: rgba(255, 204, 0, 0.1); /* Fond léger */
}

.personal .page-header {
    background-color: rgba(255, 204, 0, 0.8);
}

.personal .section {
    background-color: white;
}

.personal .alternate {
    background-color: rgba(0, 150, 136, 0.8);
}
/* TITRE DE LA PAGE (Sous le header principal) */
.page-title {
    text-align: center;
    margin-top: 100px; /* Décale sous le menu principal */
    padding: 20px;
    background: rgba(0, 150, 136, 0.1); /* Légère teinte pour démarquer */
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Personnalisation des couleurs */
.collective .page-title {
    background: rgba(0, 150, 136, 0.8);
    color: white;
}

.personal .page-title {
    background: rgb(0 7 148 / 80%);
    color: white;
}

/* Ajustement du texte */
.page-title h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 16px;
    opacity: 0.9;
}

/* Éditeur Trix */
trix-editor {
    min-height: 150px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    background: #f8f9fa;
}

.table-container {
    margin-top: 20px;
    width: 100%;
    max-width: 100%; /* Pour éviter qu'il soit collé aux bords */
    margin-left: auto;
    margin-right: auto;
}

/* 📌 TABLEAU STYLISÉ */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}
.styled-table tr {
    display: table-row;
    width: 100%;
}
/* 🏷️ ENTÊTES */
.styled-table thead {
    background: #215a33; /* Vert */
    color: white;
}

.styled-table th, .styled-table td {
    width: auto;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* 🖱️ HOVER SUR LES LIGNES */
.styled-table tbody tr:hover {
    background: #f1c40f2e; /* Jaune clair */
    cursor: pointer;
}
.styled-table td:last-child,
.styled-table th:last-child {
    width: 180px; /* Garde de la place pour les boutons Modifier/Supprimer */
}
/*
.styled-table th {
    background-color: #007bff;
    color: white;
    text-transform: uppercase;
}

.styled-table tbody tr:hover {
    background-color: #f2f2f2;
}

 */
/* Barre de recherche */
#search-bar {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Grille de cartes (Fournisseurs) */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    width: 250px;
    padding: 15px;
    border-radius: 8px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card-content {
    text-align: center;
}
.card h3 {
    text-align: center;
}

/* Description détaillée */
.solution-description {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Image de la solution */
.solution-image {
    display: block;
    max-width: 100%;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
/* Masonry Grid (Solutions IA) */
.masonry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.masonry-item {
    width: calc(33.333% - 20px);
}

.solution-card {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Barre de recherche */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-form input {
    padding: 8px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.search-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #215a33;
    border-radius: 5px;
}

.search-form button {
    width: 120px; /* Largeur fixe */
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    background: #215a33;
    color: white;
    font-weight: bold;
}

.search-form button:hover {
    background: #1b4d2a;
}

/* Lien de tri */
.styled-table th a {
    color: white;
    text-decoration: none;
}

.styled-table th a:hover {
    text-decoration: underline;
}
/* Conteneur de l'aperçu */
.image-preview-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Image de prévisualisation */
#image-preview {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 5px;
    background: white;
}
/* ancien header */

/* HEADER PRINCIPAL */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.1); /* Léger fond transparent */
    backdrop-filter: blur(8px); /* Effet moderne flouté */
    z-index: 100;
}

/* LOGO */
.logo img {
    height: 40px; /* Taille du logo */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); /* Légère mise en valeur au survol */
}

/* MENU BURGER */
.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* MENU PRINCIPAL */
.menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    list-style: none;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

/* Liens du menu */
.menu li {
    margin: 10px 0;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #FFCC00; /* Jaune Abeïa */
}

/* MENU OUVERT */
.menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Style du slogan */
/* Conteneur du logo + slogan */
.logo {
    display: flex;
    align-items: center; /* Centre verticalement */
}

/* Style du slogan */
.slogan {
    font-size: 20px; /* Taille lisible et élégante */
    font-weight: 500; /* Équilibre entre finesse et présence */
    color: #4A3800; /* Marron foncé pour contraste sur fond jaune */
    margin-left: 15px; /* Espacement avec le logo */
    font-family: "Playfair Display", serif; /* Typographie élégante */
    letter-spacing: 0.5px; /* Aération du texte */
    display: flex;
    align-items: center; /* Assure un bon alignement vertical */
    height: 60px; /* Même hauteur que le header pour un centrage optimal */
}

/* nouveau headerAll */


.header-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.slogan {
    font-style: italic;
    font-size: 14px;
    color: #555;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0056b3;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}
.header-left {
    background: #FFD700;
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.header-right {
    background: #008000;
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}
*/

/* HEADER */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 2px solid #1a5bef2e;
}

/* LOGO */
.header-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

/* MENU NAVIGATION */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0056b3;
}

/* AVATAR UTILISATEUR */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid #007bff;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MENU DÉROULANT */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 10px;
    min-width: 180px;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu p {
    margin: 0;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: #f1f1f1;
}

.logout {
    color: red;
    font-weight: bold;
}
/* ajout pour le dashboard fournisseur */
/* 🌟 GENERAL */
body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* 🗂️ CONTAINER DU DASHBOARD */
.fournisseur-dashboard {
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 📌 ONGLET HEADER */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    background: #f5f5f5;
    border: none;
    padding: 12px 20px;
    margin: 0 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.tab-button:hover,
.tab-button.active {
    background: #007bff;
    color: white;
}

/* 📄 CONTENU DES ONGLETS */
.tab-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
    text-align: left;
}

/* 🔘 BOUTONS */
.btn {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

/* 🏷️ TAGS CATÉGORIES */
.tag {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 5px;
}
.historique-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.historique-table th, .historique-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    align-content: start;
}

.historique-table th {
    background-color: #f4f4f4;
}

.historique-note_admin {
    background-color: #fff3cd; /* Jaune pâle */
}

.historique-ajout_solution {
    background-color: #d4edda; /* Vert pâle */
}

.historique-message {
    background-color: #cce5ff; /* Bleu pâle */
}

.historique-rendez_vous {
    background-color: #f8d7da; /* Rouge pâle */
}
#nouvelle-note {
    width: 100%; /* Prend toute la largeur du container */
    height: 120px; /* Une hauteur décente */
    padding: 10px; /* Un peu d’air autour du texte */
    border: 1px solid #ccc;
    border-radius: 5px; /* Coins arrondis, c'est plus sympa */
    font-size: 14px;
    resize: vertical; /* Permet de l'agrandir si besoin */
}

#form-note-container {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

#ajouter-note {
    margin-top: 10px;
    display: block; /* Le bouton passe sous le textarea */
    width: 100%; /* Prend toute la largeur pour une meilleure ergonomie */
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#ajouter-note:hover {
    background: #0056b3;
}
.password-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: -35px;
    color: #007BFF;
}

.toggle-password:hover {
    color: #0056b3;
}
.grid-container { display: flex; flex-wrap: wrap; gap: 20px; }
.tool-card { width: 30%; border: 1px solid #ddd; padding: 15px; border-radius: 10px; text-align: center; }
.tool-card img { max-width: 100px; height: auto; }
.price-tag { background-color: #007bff; color: white; padding: 5px 10px; border-radius: 5px; }
/* 🏗️ PAGE CONTAINER */
.page-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 🎯 TITRE DE PAGE */
.page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 🔎 FORMULAIRE DE RECHERCHE */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.search-form input,
.search-form select {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #215a33;
    border-radius: 5px;
    background: white;
}

.search-form button {
    background: #215a33;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.search-form button:hover {
    background: #1b4d2a;
}

/* 📦 GRILLE DYNAMIQUE MASONRY */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* 🛠️ CARTES D'OUTILS IA */
.tool-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
}

/* 📷 IMAGE DANS LA CARTE */
.tool-image-container {
    width: 100%;
    height: 180px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* 📝 INFOS DES OUTILS */
.tool-info {
    padding: 15px;
    text-align: center;
}

.tool-info h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tool-info .description {
    font-size: 0.9rem;
    color: #666;
}

/* 💰 TAG PRIX */
.price-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    margin-top: 8px;
}

/* 🚀 RESPONSIVE */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: center;
    }

    .search-form input,
    .search-form select,
    .search-form button {
        width: 90%;
    }
}
/* 📖 EN-TÊTE DE LA PAGE DÉTAIL */
.detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* 📷 IMAGE DE L'OUTIL */
.detail-image {
    flex: 1;
    max-width: 300px;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ℹ️ INFOS DE L'OUTIL */
.detail-info {
    flex: 2;
}

.detail-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.detail-info .category {
    font-size: 1.1rem;
    color: #666;
}

.detail-info .price-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    margin-top: 8px;
}

.detail-info .description {
    margin-top: 15px;
    font-size: 1rem;
    color: #444;
}

/* 📢 SECTION AVIS */
.review-section {
    margin-bottom: 30px;
}

.review {
    background: #f8f8f8;
    padding: 10px;
    border-left: 5px solid #007bff;
    margin-bottom: 10px;
    border-radius: 5px;
}

.no-results {
    text-align: center;
    font-style: italic;
    color: #999;
}

/* 🏗️ GRILLE DES OUTILS SIMILAIRES */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* 🛠️ CARTES DES OUTILS */
.tool-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
}

/* 📷 IMAGE DANS LA CARTE */
.tool-image-container {
    width: 100%;
    height: 180px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* 📝 INFOS DES OUTILS */
.tool-info {
    padding: 15px;
    text-align: center;
}

.tool-info h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tool-info .description {
    font-size: 0.9rem;
    color: #666;
}
.alert{
    width: 553px;
    margin: auto;
    margin-top: 63px;
}