/* Styles généraux */
/* Styles de la page Player */
        :root {
            --primary-color: #007bff;
            --accent-color: #28a745;
            --background-color: #1a1a1a;
            --card-background: #2a2a2a;
            --text-color: #fff;
            --text-color-light: rgba(255, 255, 255, 0.7);
            --border-color: #444;
            --white: #fff;
            --soft-black: rgba(0, 0, 0, 0.85);
        }

        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
            font-family: 'Inter', sans-serif;
            background-color: var(--background-color);
            color: var(--text-color);
        }

        #player-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: var(--background-color);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .video-js {
            width: 100% !important;
            height: 100% !important;
            z-index: 1;
        }

        .video-js.vjs-radio-mode {
            z-index: -1;
            opacity: 0;
        }

        .video-js .vjs-control-bar {
            display: flex !important;
        }
        .video-js .vjs-big-play-button {
            display: none !important;
        }

        .video-js .vjs-error-display .vjs-modal-dialog-content {
            background-color: var(--primary-color) !important;
            color: var(--white) !important;
            text-align: center !important;
            font-size: 1.5em !important;
            padding: 20px !important;
        }

        #player-splash-image {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: var(--background-color);
            z-index: 1002;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 1;
            transition: opacity 0.5s ease-out;
        }

        #player-splash-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        #radio-info-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: var(--soft-black);
            z-index: 1003;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--text-color);
            text-align: center;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }
        #radio-info-overlay.active {
            opacity: 1;
        }

        #radio-logo-display {
            max-width: 200px;
            max-height: 200px;
            width: auto;
            height: auto;
            border-radius: 10px;
            margin-bottom: 5px;
            object-fit: contain;
        }

        #radio-name-display {
            font-size: 1.5em;
            font-weight: bold;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        #vod-poster-grid-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1004;
            display: none;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding: 30px;
            box-sizing: border-box;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        #vod-poster-grid-overlay.active {
            opacity: 1;
        }

        #vod-genre-title {
            color: var(--primary-color);
            font-size: 1.5em;
            margin-bottom: 30px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        #vod-posters-container {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            padding: 20px;
            max-height: calc(100vh - 150px);
            overflow-y: auto;
            justify-content: center;
            width: 100%;
            max-width: 1200px;
        }

        .vod-poster-item {
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            overflow: hidden;
            text-align: center;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding-bottom: 10px;
            position: relative;
        }

        /* Correction ici: Style pour le tag VIP sur le poster VOD */
        .vod-poster-item.vip::after {
            content: "VIP";
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #fff;
            color: #ffa500;
            font-weight: bold;
            padding: 2px 5px;
            border-radius: 5px;
            font-size: 0.8em;
        }

        .vod-poster-item:hover,
        .vod-poster-item.active {
            background-color: rgba(255, 255, 255, 0.15);
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
        }

        .channel-id {
            font-weight: bold;
            margin-right: 10px;
            color: orange;
            width: 30px;
            text-align: right;
        }

        .channel-name {
            flex-grow: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 1.1em;
        }

        /* Menu latéral */
        #side-menu {
            position: fixed;
            top: 0;
            left: -65%; /* Caché par défaut */
            width: 30%;
            height: 90%;
            background-color: rgba(30, 29, 29, 0.9); /* Fond semi-transparent */
            z-index: 1005; /* Le plus élevé, au-dessus de tout */
            transition: left 0.3s ease-in-out; /* Animation d'apparition/disparition */
            padding: 0px 0;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            margin-top: 30px;
            margin-left: 40px;
        }

        #side-menu.active {
            left: 0; /* Visible */
        }
        /* Style pour le conteneur du logo de l'application dans le menu */
        .app-logo-container {
            text-align: center;
            padding: 5px 0;


        }

        .app-logo-container img {
            height: auto; /* Hauteur légèrement réduite */
            max-width: 300px;
        }
        #menu-categories {
            display: flex;
            justify-content: space-around;
            padding: 5px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            border-top:1px solid rgba(255, 255, 255, 0.2);
            margin-bottom: 10px;
        }

        .category-item {
            padding: 10px 15px;
            cursor: pointer;
            font-size: 1.2em;
            font-weight: bold;
            color: rgba(255, 255, 255, 0.6);
            transition: color 0.2s ease, background-color 0.2s ease;

        }

        .category-item.active {
            color: #fff;
            background-color: blue;
        }

        #channel-list {
            flex-grow: 1;
            overflow-y: auto; /* Permet le défilement si beaucoup de chaînes */
            list-style: none;
            padding: 0 5px;
            margin: 0;
        }

        /* MISE À JOUR: Nouveaux styles pour les listes EPG */
        #channel-list.epg-list {
            position: relative;
            z-index: 10;
        }

        .channel-item {
            display: flex;
            align-items: center;
            padding: 10px 5px;
            margin-bottom: 0px;
            cursor: pointer;
            border-bottom: 1px solid rgba(106, 106, 106, 0.2);
            transition: background-color 0.2s ease, transform 0.2s ease;
        }

        .channel-item:hover,
        .channel-item.active {
            background-color: blue;
            transform: translateX(0px);
        }

        .channel-id {
            font-weight: bold;
            margin-right: 10px;
            color: orange; /* Couleur dorée pour l'ID */
            width: 30px; /* Largeur fixe pour alignement */
            text-align: right;
        }
        
        /* Correction : Centrage vertical des éléments dans l'onglet EPG */
        .epg-channel-item-content {
            display: flex;
            align-items: center;
            width: 100%;
        }

        /* NOUVEAU: Style pour le logo de la chaîne dans la liste */
        .channel-logo-list {
            height: 30px;
            width: 30px;
            object-fit: contain;
            margin-right: 10px;
        }

        .channel-name {
            flex-grow: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 1em;
        }

        /* Styles pour le tag VIP dans le menu latéral */
        .channel-item.vip .vip-tag {
            background-color: #4f4f4e; /* Correction : fond or */
            color: black; /* Correction : texte noir */
            font-weight: bold;
            padding: 2px 5px;
            border-radius: 5px;
            font-size: 0.8em;
        }
        /* Bannière d'informations */
        #info-banner {
            position: fixed;
            bottom: -150px;
            left: 0;
            width: 100%;
            height: 120px;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1004;
            transition: bottom 0.3s ease-in-out;
            display: flex;
            padding: 5px 20px;
            box-sizing: border-box;
            align-items: center;
            margin-bottom: 0px;
            border-top: 1px solid rgba(221, 221, 221, 0.2);
        }

        #info-banner.active {
            bottom: 0;
        }

        .banner-section {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 10px;
            height: 100%;
        }

        #banner-left {
            width: 30%;
            text-align: right;
            border-right: 1px solid rgba(255, 255, 255, 0.2);
            padding-right: 20px;
            position: relative; /* Nécessaire pour le positionnement absolu du message d'alerte */
            background-color: #242424;
        }
        /* AJOUT : Styles pour le message d'alerte d'abonnement */
        #subscription-alert {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #dc3545; /* Rouge pour l'alerte */
            color: white;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 5px;
            box-sizing: border-box;
            font-size: 0.9em;
            font-weight: bold;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }
        #subscription-alert.active {
            opacity: 1;
        }

        #banner-left .channel-id-banner {
            font-size: 1.2em;
            font-weight: bold;
            color: white;
            line-height: 1;
        }

        #banner-left .channel-logo-name {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            margin-top: 5px;
        }

        #banner-left .channel-logo {
            height: 40px;
            width: auto;
            margin-right: 10px;

        }

        #banner-left .channel-name-banner {
            font-size: 1em;
            font-weight: bold;
        }

        #banner-middle {
            width: 50%;
            padding-left: 10px;
            padding-top: 0px;
            border-right: 1px solid rgba(255, 255, 255, 0.2);

        }

        /* Correction : Ajout de styles pour le titre du programme */
        #banner-middle .program-title {
            font-size: 1.2em;
            font-weight: bold;
            margin-bottom: 5px;
        }

        #banner-middle .country-name {
            font-size: 0.8em;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 5px;
            padding-top: 0px;
            margin-top: 0px;
        }

        .progress-bar-container {
            background-color: var(--border-color);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
            flex-grow: 0;
            margin-top: 8px;
            margin-bottom: 20px;
        }

        .epg-progress-bar {
            height: 100%;
            background-color: var(--primary-color);
            width: 0%;
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        /* Styles pour le programme EPG en cours */
        .epg-program-item.live-program {
            background-color: var(--primary-color);
            color: var(--white);
            box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
            border-left-color: var(--primary-color);
        }
        .epg-program-item.live-program h4,
        .epg-program-item.live-program .epg-start-time,
        .epg-program-item.live-program .epg-end-time {
            color: inherit;
        }
        #banner-right {
        width: 20%;
        text-align: center;
        }

        #banner-right .current-time {
        font-size: 1.8em;
        font-weight: bold;
        margin-bottom: 5px;
        }

        #banner-right .view-count {
        font-size: 1.1em;
        color: rgba(255, 255, 255, 0.7);
        }

        /* Loader */
        #loader {
            position: fixed;
            top: 0;
            left: 50px;
            width: 50%;
            height: 50%;
            background-color: transparent;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            color: white;
            font-size: 1.5em;
            flex-direction: column;
        }

        .spinner {
            border: 8px solid #f3f3f3;
            border-top: 8px solid #3498db;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 2s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Affichage des chiffres tapés pour la sélection de chaîne */
        #typed-channel-display {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: #FFD700;
            font-size: 4em;
            padding: 20px 40px;
            border-radius: 15px;
            z-index: 1006;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }
        #typed-channel-display.active {
            opacity: 1;
        }

        /* Styles de la pop-up publicitaire */
        #ad-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            display: none;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        #ad-popup-overlay.active {
            opacity: 1;
        }

        /* NOUVEAU: Styles pour le conteneur du logo en dehors de la pop-up */
        .ad-popup-logo-container {
             background-color: transparent;
            height: 25%;
            display: flex;
            align-items: center;
            justify-content: center; /* Centrer le titre */
            text-align: center;
            font-size: 1.5em;
            font-weight: bold;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .ad-popup-overlay.active .ad-popup-logo-container {
            display: block;
        }
        .ad-popup-logo {
            max-height: 80px;
            width: auto;
        }

        /* NOUVEAU: Styles pour le contenu de la pop-up */
        .ad-popup-content {
            background-color: transparent;
            color: #fff;
            width: 60vw;
            height: 80vh;
            border-radius: 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .ad-popup-section {
            padding: 10px 20px;
            box-sizing: border-box;
        }

        .ad-popup-header {
            background-color: blue;
            height: 15%;
            display: flex;
            align-items: center;
            justify-content: center; /* Centrer le titre */
            text-align: center;
            font-size: 1.5em;
            font-weight: bold;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ad-popup-body {
            background-color: black;
            height: 50%;
            overflow-y: auto;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ad-popup-body p {
            margin: 0;
            line-height: 1.8;
            font-size: 1.2em;
            text-align: left;
        }

        .ad-popup-footer {
            height: 10%;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.6);
            text-align: right;
            background-color: #333;
        }

        /* Styles pour la publicité bannière */
        #ad-banner-overlay {
            position: fixed;
            left: 0;
            bottom: -200px;
            width: 100%;
            z-index: 1004;
            display: none;
            justify-content: center;
            align-items: center;
            transition: bottom 0.3s ease-in-out;
            pointer-events: none;
            height: 100px;
        }

        #ad-banner-overlay.active {
            bottom: 120px;
            display: flex;
        }

        #ad-banner-content {
             width: 100%;
             height: 100%;
             display: flex;
             justify-content: center;
             align-items: center;
        }

        #ad-banner-content img,
        #ad-banner-content video {
            max-width: 100%;
            max-height: 100%;
            height: auto;
            object-fit: contain;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }

        /* Styles pour la publicité bannière de type 'text' */
        #ad-banner-content .ad-text {
            font-size: 1.5em;
            font-weight: bold;
            color: white;
            padding: 10px 20px;
            background-color: rgba(0, 0, 0, 0.8);
            border-radius: 10px;
            text-align: center;
        }

        .vip-content-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            display: none;
            justify-content: center;
            align-items: center;
            text-align: center;
            z-index: 10;
        }
        .vip-content-overlay.active {
            display: flex;
        }
        /* Styles pour le message VIP */
        #vip-message {
            background-color: rgba(0, 0, 0, 0.8);
            border: 2px solid gold;
            border-radius: 10px;
            padding: 30px;
            max-width: 800px;
            font-size: 1.8em;
            font-weight: bold;
            color: #fff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        /* Correction ici: Styles de la section d'assistance dans le menu */
        .assistance-section {
            background-color: #d0cfcf;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding: 8px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            text-align: left;
            margin-top: auto;
            color: black;

        }

        .assistance-section span {
            font-size: 1em;
            margin-bottom: 5px;
        }

        .assistance-link {
            color: var(--primary-color);
            text-decoration: none;
            margin: 0 10px;
            font-size: 1em;
        }
        .assistance-link:hover {
            color: black;
        }
        /* Style pour l'onglet de compte */
        .account-info {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .account-info h3 {
            margin-top: 0;
            color: var(--primary-color);
        }
        .account-info p {
            margin: 0;
            font-size: 1em;
        }
        .account-info .label {
            font-weight: bold;
        }
        .account-info .vip-status {
            color: #FFD700;
            font-weight: bold;
        }
        .account-info .standard-status {
            color: #8c8c8c;
            font-weight: bold;
        }
        .logout-button {
            background-color: #dc3545;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            text-align: center;
            margin-top: 10px;
            transition: background-color 0.3s ease;
        }
        .logout-button:hover,
        .logout-button.active {
            background-color: #c82333;
        }

        /* NOUVEAU: Style pour le focus des éléments du menu du compte */
        #channel-list .account-info.active,
        #channel-list .logout-button.active {
            border: 1px solid var(--primary-color);
            box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
            transform: scale(1);
        }

        #channel-list .logout-button.active {
            background-color: #c82333;
        }

        .qr-code-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 10px;
            text-align: center;
        }

        .qr-code-container p {
            font-weight: bold;
            margin-bottom: 5px;
        }

        .qr-code-container img {
            max-width: 350px;
            height: auto;
            border-radius: 8px;
        }

        .qr-code-container.active {
            border: 1px solid var(--primary-color);
            box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
            transform: scale(1);
        }

        /* Styles pour le conteneur de la politique de confidentialité */
        .privacy-policy-container {
            color: white;
            padding: 20px;
            font-size: 0.9em;
            overflow-y: auto;
            height: 100%;
            box-sizing: border-box;
            -webkit-overflow-scrolling: touch;
        }

        .privacy-policy-container h1, .privacy-policy-container h2 {
            color: var(--primary-color);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 5px;
            margin-top: 20px;
            font-size: 1.5em;
        }
        .privacy-policy-container p, .privacy-policy-container li {
            margin-bottom: 10px;
            line-height: 1.5;
        }
        .privacy-policy-container ul {
            padding-left: 20px;
        }
        .privacy-policy-container li {
            list-style-type: disc;
        }
        .privacy-policy-item {
             padding: 10px;
             transition: background-color 0.2s ease;
             border-radius: 5px;
             margin-bottom: 5px;
        }
        .privacy-policy-item.active {
            background-color: rgba(255, 255, 255, 0.1);
            outline: 2px solid var(--primary-color);
        }


        /* MENU EPG BLOC*/

        .epg-program-item .epg-time {
            margin: 0;
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.6);
        }

        .epg-program-item .epg-description {
            margin: 5px 0 0 0;
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.8);
        }

        /* NOUVEAU: Styles pour le sélecteur de jours EPG */
        #epg-day-selector {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 20px;
            margin-left: 10px;
            margin-right: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        .epg-date-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 5px 10px;
            cursor: pointer;
            border-radius: 5px;
            transition: background-color 0.2s ease, transform 0.2s ease;
        }

        .epg-date-item:hover,
        .epg-date-item.active {
            background-color: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }

        .epg-date-item.active {
            background-color: var(--primary-color);
        }

        .epg-day {
            font-weight: bold;
            font-size: 0.9em;
            margin: 0;
        }

        .epg-day-number {
            font-size: 1.2em;
            font-weight: bold;
            margin: 0;
        }


/* Styles pour l'écran de démarrage (index.php) */
#splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Commence invisible */
    transition: opacity 0.5s ease-in-out; /* Transition pour l'opacité */
}

/* Animations de fondu pour les images de splash */
.fade-in {
    opacity: 1 !important;
}

.fade-out {
    opacity: 0 !important;
}

/* Styles pour le lecteur (player.php) */
#player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* --- Styles pour la page d'administration (admin.php) --- */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.admin-container h1 {
    text-align: center;
    color: #FFD700;
    margin-bottom: 30px;
}

.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.success-message {
    background-color: #28a745;
    color: white;
}

.error-message {
    background-color: #dc3545;
    color: white;
}

/* Onglets de navigation */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
}

.tab-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin: 0 5px;
}

.tab-button:hover {
    background-color: #555;
}

.tab-button.active {
    background-color: #007bff;
    color: #fff;
    border-bottom: 2px solid #007bff;
}

.tab-content {
    display: none; /* Caché par défaut */
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 0 0 10px 10px;
}

.tab-content h2 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Formulaires d'administration */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #333;
    border-radius: 8px;
    margin-bottom: 30px;
}

.admin-form label {
    font-weight: bold;
    color: #fff;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="url"],
.admin-form textarea,
.admin-form select {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box; /* Inclure le padding et la bordure dans la largeur */
}

.admin-form textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-form input[type="checkbox"] {
    margin-right: 10px;
}

.admin-form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Aligner le bouton à gauche */
}

.admin-form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Tableaux d'affichage des données */
.table-container {
    margin-top: 20px;
    background-color: #333;
    border-radius: 8px;
    overflow-x: auto; /* Permet le défilement horizontal si le tableau est trop large */
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

table tbody tr:nth-child(even) {
    background-color: #3a3a3a;
}

table tbody tr:hover {
    background-color: #4a4a4a;
}

.btn-edit, .btn-delete {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}

.btn-edit:hover {
    background-color: #5a6268;
}

.btn-delete {
    background-color: #dc3545;
}

.btn-delete:hover {
    background-color: #c82333;
}
