/*
  ___________.__              _____  .__   _____.__  __
  \__    ___/|  |__   ____   /  _  \ |  |_/ ____\__|/  |_  ____ _____    _____   ______
    |    |   |  |  \_/ __ \ /  /_\  \|  |\   __\|  \   __\/ __ \\__  \  /     \ /  ___/
    |    |   |   Y  \  ___//    |    \  |_|  |  |  ||  | \  ___/ / __ \|  Y Y  \\___ \
    |____|   |___|  /\___  >____|__  /____/__|  |__||__|  \___  >____  /__|_|  /____  >
                  \/     \/        \/                         \/     \/      \/     \/

        Ce site a été conçu et réalisé par TheAlfiTeams.
        Toute reproduction, modification ou redistribution
        est strictement interdite sans autorisation préalable.

                     (https://thealfiteams.com)
*/

/* GLOBAL STYLES */
html, body {
    height: 100%; /* Assure que l'html et le body occupent toute la hauteur */
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #303030;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    min-height: 100vh; /* Prend au moins toute la hauteur de l'écran */
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background-color: #1f1f1f;
    min-height: 100vh; /* Prend toute la hauteur de la fenêtre */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column; /* Permet d'aligner verticalement le contenu */
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #f97ade;
}

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

.sidebar .menu ul li {
    margin: 10px 0;
}

.sidebar .section-title {
    margin: 20px 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    color: #bbb;
    font-weight: bold;
}

/* LINKS AND BUTTONS */
.sidebar .menu ul li a,
.dropdown-btn {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar .menu ul li a:hover,
.dropdown-btn:hover {
    background-color: #f97ade;
    color: #000;
}

/* ICONS */
.menu-icon {
    object-fit: contain;
    border-radius: 5px; /* Coins arrondis */
}

/* Catégories principales (comme Bien débuter) */
.dropdown-btn .menu-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

/* Sous-options dans le menu déroulant */
.dropdown-content li .menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background-color: #1f1f1f;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    justify-content: space-between;
    border-radius: 10px;
}

.dropdown-content {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 0;
    background-color: #121212;
    border-left: 2px solid #f97ade;
}

.dropdown-content li {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.dropdown-content li a {
    gap: 15px; /* Espacement constant entre icône et texte */
    white-space: normal; /* Permet le retour à la ligne si nécessaire */
    flex-grow: 1;
}

.dropdown-content li a:hover {
    background-color: #f97ade;
    color: #000;
}

/* ACTIVE STATE */
.dropdown.open .dropdown-content {
    display: block;
}

.arrow {
    transition: transform 0.3s;
}

.dropdown.open .arrow {
    transform: rotate(180deg);
}

/* MAIN CONTENT */
.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #2e2e2e;
}

/* Masque les sections sauf celle active */
.content-section {
    display: none;
}

/* Section visible */
.content-section.active {
    display: block;
}

/* Conteneur de la bannière */
.banner-container {
    width: 100%; /* Prend toute la largeur de la section */
    max-height: 300px; /* Limite la hauteur maximale */
    overflow: hidden; /* Coupe les parties débordantes */
    display: flex;
    justify-content: center; /* Centre horizontalement l'image */
    align-items: center; /* Centre verticalement l'image */
    background-color: #1f1f1f; /* Fond pour combler les marges */
    border-radius: 10px; /* Coins arrondis */
}

/* Image de la bannière */
.banner-image {
    width: 100%; /* L'image prend toute la largeur */
    height: auto; /* Ajuste la hauteur automatiquement pour respecter les proportions */
    object-fit: cover; /* Remplit le conteneur sans déformer l'image */
    border-radius: 10px; /* Coins arrondis pour l'image */
}

