 /* Reset basique */
        * {
            box-sizing: border-box;
        }
        body, html {
            margin: 0; padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #002f68;
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .txt-color-white{
            color: #fff;
        }
        .txt-color-black{
            color: #000;
        }
        .txt-color-dark-grey{
            color: #333;
        }
        .txt-color-green{
            color: #2f855a;
        }
        .txt-color-red{
            color: #e53935;
        }

        .txt-color-blue{
            color: #002f68;
        }
        .txt-color-dark-blue{
            color: #0e2748;
        }
        .txt-color-yellow,{
            color: #ffcc00;
        }
        .txt-color-orange{
            color: #db991d;
        }

        .txt-color-noresponse{
            color: #aaa;
        }

        .star{
            color: #ffcc00;
            margin-right:5px;
        }


        /* HEADER */
        header {
            width: 100%;
            background: #fff;
            border-bottom: 3px solid #002f68;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 1rem;
            position: relative;
            z-index: 1001;
        }

        /* Logo à gauche */
        .logo {
            font-weight: bold;
            font-size: 1.5rem;
            color: #002f68;
            user-select: none;
        }

        .logo img{
            max-height:35px;
        }

        /* Burger menu à droite */
       .burger {
            width: 30px;
            height: 22px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.3s ease;
            user-select: none;
        }

        .burger span {
            display: block;
            height: 4px;
            background: #002f68;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* Burger transformé en X quand ouvert */
        .burger.open span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .burger.open span:nth-child(2) {
            opacity: 0;
        }

        .burger.open span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }


        /* Sidebar menu */
        #sidebar {
            position: fixed;
            top: 0; right: -280px;
            width: 280px;
            height: 100vh;
            background-color: #51637a;
            color: white;
            padding: 1rem;
            box-shadow: -3px 0 6px rgba(0,0,0,0.2);
            transition: right 0.3s ease;
            z-index: 1000;
            display: flex;
            flex-direction: column;
        }

        #sidebar.open {
            right: 0;
        }

        /* Bouton fermer */
        #sidebar .close-btn {
            align-self: flex-end;
            font-size: 1.5rem;
            cursor: pointer;
            background: none;
            border: none;
            color: white;
            font-weight: bold;
            padding: 0;
            margin-bottom: 1rem;
            user-select: none;
        }

        /* Contenu sidebar (exemple) */
        #sidebar nav a {
            display: flex;
            align-items: center;
            color: white;
            text-decoration: none;
            padding: 0.75rem 0.5rem;
            font-size: 1.1rem;
            border-bottom: 1px solid rgba(255 255 255 / 0.3);
            user-select: none;
            transition: background-color 0.2s;
        }

        #sidebar nav a:hover {
            background-color: rgba(255 255 255 / 0.2);
        }

        /* Icône emoji avant le texte */
        #sidebar nav a::before {
            /*content: "🎩"; */ /* Par défaut un chapeau */
            display: inline-block;
            width: 1.5em;
            margin-right: 0.5em;
            text-align: center;
            font-size: 1.2em;
            flex-shrink: 0;
        }
        a[class^="icon-"] i {
            margin-right: 8px; /* espace entre l'icône et le texte */
            vertical-align: middle; /* pour bien aligner l'icône avec le texte */
        }

        /* MAIN */
        main#main {
            flex: 1 0 auto;
            max-width: 1000px;
            width: 100%;
            margin: 1rem auto;
            padding: 1rem;
            background-color: #0e2748;
            box-sizing: border-box;
            border: 1px solid #ffffff;
            border-radius: 8px;
            margin-bottom:45px;
        }

        main#main a{
            text-decoration:none;
        }
        main#main a:hover{
            
        }

        main table{

        }
        section{
            margin-bottom: 20px;
        }

        main h1,section p{
            color:#002f68;
        }

        .page {
            padding:60px 20px; max-width:900px; margin:0 auto;
            color:#fff;
        }

        .teamDiv{
            background-color: #fff;
        }

        .HomeLogo.HomeLogo{
            text-align:center;
            width:100%;
        }
         .HomeLogo.HomeLogo img{
            max-width:300px;
        }
        .page h1, .page h2, .page h3{
            color:#ccc;
        }
        .page h1{
            text-align:center; 
            margin-bottom:40px;
        }

        .interface-container{
            max-width:900px;
            margin:auto;
            padding:20px;
            color: #fff;
        }
        .interface-container h2{
            text-align:center;
            margin-bottom:20px;
        }
        .page section.aide p, .content-page p, .page .aide, .white-txt, .white-txt p{
            color: #fff;
        }

        .page section.aide a, .white-txt a, .page .content-page a{
            color: #ccc;
        }

        .page.home h1{
            font-size:2.5em; color:#0e2748; margin-bottom:20px;
        }

        .error-msg{
            background:#e53935;
            padding:10px;
            border-radius:5px;
            margin-bottom:20px;
        }
        .sucess-msg{
            background:#38a169;
            padding:10px;
            border-radius:5px;
            margin-bottom:20px;
        }

        #participants-table {
            border-collapse: separate; /* important pour les bords arrondis */
            border: 1px solid #002f68;
            border-radius: 10px;
            overflow: hidden; /* pour que l’arrondi s’applique aussi à l’intérieur */
            width: 100%;
            font-family: sans-serif;
        }

        #participants-table th {
            background-color: #002f68;
            color: #fff;
            padding: 5px;
            text-align: left;
        }
/*
        #participants-table tr, #participants-table thead {
            border: 1px solid #002f68;
            border-radius: 10px;
        }
*/

        #participants-table td {
            padding: 5px;
            border-bottom: 1px solid #f2c69a;
        }

        #participants-table tr:last-child td {
            border-bottom: none; /* propre à la fin */
        }

        #participants-table tbody tr:nth-child(even) {
            background: #fff7ef;
        }

        /* FORMULAIRES */
        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="datetime-local"],
        textarea,
        select {
            width: 100%;
            max-width: 100%;
            padding: 0.6rem 1rem;
            margin: 0.5rem 0 1rem 0;
            border: 1.5px solid #ffffff;
            border-radius: 8px;
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.3s;
            box-sizing: border-box;
        }

        input:disabled {
            color: #ccc;
        }


        /* Stylisation des checkbox et radio pour harmoniser */

        /* Amélioration présentation des labels de checkbox / radio */
        label {
            display: flex;
            align-items: center;   /* centre verticalement */
            gap: 8px;              /* espace entre la checkbox et le texte */
            margin-top: 20px;    /* aération entre les lignes */
            cursor: pointer;       /* améliore l'UX */
        }

        .title-label{
            font-weight:bold;
            display:block;
            margin-bottom:8px;
        }

        /* Évite que le texte colle au bord si tu utilises padding sur des conteneurs */
        label input[type="checkbox"],
        label input[type="radio"] {
            flex-shrink: 0;        /* évite que la checkbox soit compressée */
        }


        input[type="checkbox"],
        input[type="radio"] {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            width: 25px;
            height: 25px;
            border: 2px solid #fff;
            border-radius: 4px;
            background-color: #4c627e;
            position: relative;
            cursor: pointer;
        }

        input[type="checkbox"]:checked,
        input[type="radio"]:checked {
            background-color: #38a169;
            border-color: #fff;
        }

        input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #002f68;
            font-size: 14px;
            font-weight: bold;
        }

       input[type="radio"]:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 14px;       /* taille du check */
            color: #0e2748;        /* couleur du "vu" */
            line-height: 1;
            font-weight: bold;
            width: auto;
            height: auto;
            background: none;      /* plus de fond */
            border-radius: 0;      /* pas de cercle */
            text-align: center;
        }

        /* radio label*/
        .option-label {
            display: flex;
            align-items: center;   /* aligne verticalement radio + texte */
            gap: 8px;              /* espace entre la radio et le texte */
            padding: 10px;
            margin-bottom: 8px;    /* aération entre les lignes */
            cursor: pointer;
        }
        .option-label input[type="radio"] {
            margin-top: -2px;
        }

       


        .Actionbutton {
            max-width: 100%;
            padding: 0.6rem 1rem;
            margin: 0.5rem 0 1rem 0;
            border: 1.5px solid #ffffff;
            border-radius: 8px;
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.3s;
            box-sizing: border-box;
            
            display: inline-block;
            color: white;
            cursor: pointer;
            user-select: none;
        }
       
        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="password"]:focus,
        textarea:focus,
        select:focus {
            border-color: #002f68;
            outline: none;
            background-color: #fff8f0;
        }

        .buttonOrange {
            background-color: #002f68;
            color: white;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s;
            border-radius: 8px;
        }
        .buttonOrange:hover,
        .buttonOrange:focus {
            background-color: #d35400;
            outline: none;
        }

        .buttonGreen,.buttonGreen a {
            background-color: #1d9c52ff;
            color: white;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s;
            border-radius: 8px;
            text-decoration:none;
        }
        .buttonGreen:hover,
        .buttonGreen:focus {
            background-color: #16743dff;
            outline: none;
        }

        
        button a, .Actionbutton a, .buttonGreen a, .buttonOrange a {
            color:#fff !important;
        }

        .borderbox{
            border: 1.5px solid white;
            border-radius: 8px;
            padding:3px;
        }


/* LoginForm OTP */

    #otp-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 15px 0;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 26px;
        text-align: center;
        border: 2px solid #ccc;
        border-radius: 8px;
        outline: none;
        transition: 0.2s;
    }

    .otp-input:focus {
        border-color: #38a169;
        box-shadow: 0 0 5px rgba(56, 161, 105, 0.4);
    }


/* mise en page */

/* Container responsive des créneaux */
.options-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Carte générique */
.card {
    background: #fafafa;
    border: 1px solid #bbb;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.05);
}

.option-card{
    color: #333;        /* PLUS LISIBLE */
}

/* Groupes de champs */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 600;
    color: #333;        /* PLUS LISIBLE */
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* Inputs */
.form-group input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* Boutons génériques */
.btn {
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px; /* espace icône */
    font-size: 0.95rem;
}


.btn i {
    font-size: 0.95rem;
}

.btn:hover {
    opacity: 0.88;
}

.btn-primary {
    background: #2f855a;
    color: white !important;
}

.btn-secondary {
    padding: 10px 20px;
    border-radius: 5px;
    background: #718096; /* gris foncé */
    color: white !important;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #4a5568; /* gris un peu plus foncé au survol */
}

.btn-danger {
    background: #e53935;
    color: white !important;
}

.btn-border-fonce{
   border: 1.5px solid #0e2748
}

.action-btn{
    display: inline-block;
    padding:10px 20px;
    border-radius:5px;
    text-decoration:none;
    width: auto;
}

.back-btn, .update-btn{
    background:#2b6cb0;
    color:#fff;
}
.get-link-green-btn, .green-btn{
    background:#2f855a;
    color:#fff;

}

.blue-btn{
    background-color: #2b6cb0;
}

.red-btn{
    background-color: #e53935;
}
/* Row des boutons */
.button-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* bouton création/ajout */

.create-poll-container, .btn-container {
    text-align: center;
    margin-bottom: 20px;
}

.btn-create-poll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2b6cb0;
    color: #fff;
    height: 45px;
    padding: 0 25px;
    /*border-radius: 9999px;*/ /* effet pilule (extrémités super arrondies) */
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    gap: 10px;
}


.btn-action-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    height: 45px;
    padding: 0 25px;
    /*border-radius: 9999px;*/ /* effet pilule (extrémités super arrondies) */
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    gap: 10px;
    border:none;
}


.btn-create-poll a, .btn-action-with-icon a {
    color: #fff;
    text-decoration:none;
}

.btn-create-poll:hover, .btn-action-with-icon a:hover {
    background-color: #4a5568;
    color: #fff;
    text-decoration:none;
}

.btn-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #0e2748;
    height: 45px;
    padding: 0 25px;
   /* border-radius: 9999px;*/ /* effet pilule (extrémités super arrondies) */
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    gap: 10px;
}

.btn-create:hover {
    background-color: #4a5568;
    color: #fff;
}

.create-poll-container button, .btn-container button{
    width: unset;
}
.create-poll-container button:hover, .btn-container button:hover{
    border: 1.5px solid #4a5568;
}

/* Cercle autour du + */
.plus-icon, .btn-cicle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: white;
    color: #718096;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25); /* effet volume */
}


/* Carte générale pour participants */
.participant-card {
    background: #f7f7f7;
    border: 1px solid #bbb;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Surlignage du créneau le plus voté */
.participant-card.highlight {
    background: #e6fffa;
    border-color: #38a169;
}

/* Header créneau + compteur vote */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

/* Badge du nombre de vote */
.vote-count {
    background: #2b6cb0;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Liste des participants */
.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Badge individuel */
.participant-badge {
    display: inline-block;
    background: #2b6cb0;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: default;
    font-size: 0.85rem;
}



        /* FOOTER */
        footer {
            flex-shrink: 0;
            position: fixed;
            bottom: 0;
            width: 100%;
            background: #fff;
            border-top: 3px solid #002f68;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 2rem;
            font-size: 0.9rem;
            color: #555;
            box-sizing: border-box;
            z-index:1001;
        }

        footer .left,
        footer .right {
            user-select: none;
        }


        footer .right {
            position: relative;
            width: 200px; /* largeur fixe pour mobile */
            overflow: hidden;
            text-align: right;
        }
        footer a{
            color: #555;
            text-decoration:none;
        }
        footer a:hover{
            text-decoration:underline;
        }

        #footer-slider {
            position: relative;
            display: flex;
            width: 100%;
        }

        .slide {
            min-width: 100%;
            white-space: nowrap;
            padding-left: 5px;
            transition: transform 0.6s ease-in-out;
        }


        /* install Banner*/

      #installBanner {
        position: fixed;
        top: 60px;           /* Desktop */
        left: 10px;
        background-color: #fff;
        border: 2px solid #0e2748;
        border-radius: 10px;
        padding: 8px 15px;
        color: #0e2748;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 9999;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        font-family: sans-serif;
        white-space: nowrap;
        cursor: pointer;

        /* Animation */
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;
        }

        #installBanner.show {
        transform: translateY(0);
        opacity: 1;
        }

        #installBanner img#installIcon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        }

        #installBanner span#installText {
        font-weight: bold;
        flex-grow: 1;
        }

        #installBanner span#installClose {
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0;
        }

        /* Mobile: bannière en bas, pleine largeur */
        @media (max-width: 768px) {
        #installBanner {
            bottom: 35px;   /* juste au dessus du footer */
            top: auto;
            left: 0;
            right: 0;
            width: 100%;
            border-radius: 0;
            justify-content: center;
            transform: translateY(100%);
        }
        #installBanner.show {
            transform: translateY(0);
        }
        }





        /* Responsive */
        @media (max-width: 1024px) {
            main#main {
                padding: 0.5rem;
                margin: 0.5rem;
            }
        }

        @media (max-width: 600px) {
            main#main {
                max-width: 100%;
                margin: 0;
                padding: 0.5rem;
                border:none;
                margin-bottom:45px;
            }
            main h1{
                font-size:25px;
            }
            main h2{
                font-size:22px;
            }
            main h2{
                font-size:20px;
            }
            
            main table{
                font-size:14px;
            }
            header {
                padding: 0.5rem 1rem;
            }

            .btn {
                padding: 5px 8px;
                cursor: pointer;
                font-weight: 400;
                font-size: 0.75rem;  
            }
            footer {
                padding: 0.5rem 1rem;
                font-size: 0.7rem;
            }
        }


        @media print {
    /* Masquer tout le reste */
    body * {
        visibility: hidden;
    }

    /* Afficher uniquement la section des équipes */
    #teams, #teams * {
        visibility: visible;
    }

    /* S’assurer que la section des équipes s’imprime correctement */
    #teams {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
        padding: 0;
    }

    /* Styles simplifiés pour chaque colonne */
    #teams > div {
        flex: 1 1 200px;
        background: #fff !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
        padding: 10px;
        page-break-inside: avoid;
    }

    /* Texte lisible */
    #teams h3 {
        color: #000 !important;
    }
    #teams ul {
        padding-left: 20px;
        list-style: disc;
    }

    /* Supprimer marges inutiles */
    body {
        margin: 0;
        padding: 0;
    }
}
