body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}



.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 60px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.succes {
    color: green;
    text-align: center;
    font-weight: bold;
}


.login-container button {
    width: 100%;
    padding: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.erreur {
    color: red;
    text-align: center;
}

/* Bloc "Perdu ? Retour sur le site public" */
.public_return_box {
    margin-top: 20px;
    padding: 12px 16px;
    background-color: #f5f5f5;
    border-radius: 10px;
    text-align: center;
}

.public_return_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #333;
}

.public_return_link:hover {
    background-color: #e9e9e9;
    border-radius: 10px;
  
}

.public_return_icon {
    font-size: 20px; /* icône un peu plus grosse */
}

.public_return_text {
    font-size: 14px;
}





/*----bandeau navigation principal
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}


/* --- Bandeau de navigation principal --- */

.top-banner {
     position: sticky;   /* ou fixed, voir note dessous */
    top: 0;
    z-index: 1000;
    
    display: flex;
    align-items: stretch;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%;
}

/* Cases générales (Congés / Antibio / Ressources) */
.top-banner .nav-item {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-right: 1px solid #eeeeee;
    text-decoration: none;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-banner .nav-item:last-child {
    border-right: none;
}

/* Case "Mon compte" plus petite */
.top-banner .nav-item.account {
    flex: 0 0 150px; /* largeur fixe plus petite */
    position: relative;
}

/* Onglet actif (ici Congés) */
.top-banner .nav-item.active {
    background-color: #007BFF;
    color: #ffffff;
}

/* Hover général */
.top-banner .nav-item:hover {
    background-color: #e6f0ff;
}

/* Menu déroulant "Mon compte" */
.account-menu {
    position: relative;
}

.account-dropdown {
    display: none;
    position: absolute;
    right: 10px;
    top: 100%;
    margin-top: 5px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 10px;
    min-width: 190px;
    z-index: 10;
}

/* Affichage au survol de la case "Mon compte" */
/* Affichage du menu quand la case Mon compte est "ouverte" via JS */
.account-menu.open .account-dropdown {
    display: block;
}


/* Boutons dans le menu Mon compte */
.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 14px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    color: #333333;
}

/*style prenom nom dans la partie mon compte
.account-username {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}


.account-dropdown a:last-child,
.account-dropdown button:last-child {
    margin-bottom: 0;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background-color: #007BFF;
    color: #ffffff;
    border-color: #007BFF;
}


/* Agrandir le calendrier flatpickr */
.flatpickr-calendar {
    font-size: 16px; /* taille de base de tout le calendrier */
}

/* Taille des cases de jour */
.flatpickr-day {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;     /* pour centrer le chiffre verticalement */
    font-size: 1rem;
}

/* Mois + année un peu plus visibles */
.flatpickr-months .flatpickr-month {
    height: 3rem;
}

.flatpickr-current-month .cur-month,
.flatpickr-current-month input.cur-year {
    font-size: 1.1rem;
}

/* Les boutons précédent / suivant un peu plus gros */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    font-size: 1.4rem;
}

/* Champ de période (flatpickr) dans le formulaire de congés */
.conges_periode_input {
    width: 100%;
    max-width: 320px;      /* tu peux monter à 360/400 si tu veux plus large */
    padding: 6px 8px;
    font-size: 18px;
    box-sizing: border-box;
}

/* Pour être sûr de ne pas avoir une hauteur ridicule imposée par flatpickr */
.conges_periode_input.flatpickr-input {
    height: auto;
    line-height: 1.4;
}


.conges_commentaire_block {
    margin-top: 10px;
}

/* Zone de texte plus grande et confortable */
.conges_commentaire_textarea {
    width: 100%;
    max-width: 600px;     /* largeur max sur grand écran */
    min-height: 80px;     /* un peu plus haute */
    padding: 6px 8px;
    font-size: 14px;
    resize: vertical;     /* l'utilisateur peut l’agrandir en hauteur si besoin */
    box-sizing: border-box;
}


/* Tableaux de la page Congés (salarié) */
.conges_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 16px;
}

/* Bordures et padding */
.conges_table th,
.conges_table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    vertical-align: top;
}

/* En-têtes */
.conges_table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Colonne "Période" : moins large */
.conges_table th:nth-child(1),
.conges_table td:nth-child(1) {
    width: 30%;      /* tu peux descendre à 25% si tu veux encore plus étroit */
    white-space: nowrap;
        font-size: 18px;

}

/* Colonne "Commentaire" : prend plus de place */
.conges_table th:nth-child(2),
.conges_table td:nth-child(2) {
    width: 40%;
}

/* La 3e colonne (statut / actions) s'adapte automatiquement */
.conges_table th:nth-child(3),
.conges_table td:nth-child(3) {
    text-align: center;
}

hr {
    border: none;               /* on enlève le style par défaut */
    height: 0px;                /* épaisseur de la ligne */
    background-color: #ddd;     /* couleur de la ligne */
    margin: 20px 0;             /* espace au-dessus / en dessous */
}

.conges_layout{
    max-width: 1100px;   /* largeur max du bloc */
    margin: 0 auto;      /* centre le bloc */
    padding: 0 0px;     /* marge intérieure gauche/droite */
}


/* Cartes de contenu dans la page Congés (salarié) */
.conges_panel,
.antibio_panel,
.ressources_panel {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 12px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid #eeeeee;
}


/* Wrapper pour permettre un scroll horizontal propre sur mobile si besoin */
.conges_table_wrapper {
    width: 100%;
    overflow-x: auto;
}


/*les titres dans conges_salarié*/
.titre_conges {
    font-size: 25px;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

/* Mise en forme de la page Antibio */
.antibio_layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.antibio_section {
    margin-top: 30px;
}

.antibio_list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.antibio_list li {
    margin-bottom: 8px;
}

.antibio_list a {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
}

.antibio_list a:hover {
    text-decoration: underline;
}

.antibio_meta {
    font-size: 12px;
    color: #777;
    margin-left: 6px;
}

.antibio_poso_box {
    border-left: 4px solid #c0392b;        /* liseret rouge élégant */
    background-color: #fff5f5;             /* rouge très pâle pour rester lisible */
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.antibio_poso_box h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #a02121;
}

.antibio_poso_box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.antibio_poso_box li {
    margin-bottom: 4px;
}



/* Mise en forme de la page Ressources */
.ressources_layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.ressources_section {
    margin-top: 30px;
}

.ressources_list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.ressources_list li {
    margin-bottom: 8px;
}

.ressources_list a {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
}

.ressources_list a:hover {
    text-decoration: underline;
}

.ressources_meta {
    font-size: 12px;
    color: #777;
    margin-left: 6px;
}

.ressource_detail_card {
    margin-top: 12px;
    padding: 18px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    border: 1px solid #e5e5e5;
}

.ressource_detail_card h2 {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 17px;
    color: #2c3e50;
}

.ressource_detail_card h3 {
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 15px;
    color: #34495e;
}

.ressource_detail_card h4 {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #555;
}

.ressource_detail_card p,
.ressource_detail_card ul {
    font-size: 14px;
    line-height: 1.6;
}

.ressource_table_wrapper {
    max-width: 700px;
    margin: 16px auto 0 auto;
}

.ressource_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #ffffff;
    table-layout: fixed;
}

.ressource_table th,
.ressource_table td {
    border: 1px solid #e0e0e0;
    padding: 6px 8px;
    vertical-align: top;
}

/* En-têtes */
.ressource_table th {
    font-weight: 600;
    text-align: left;
    font-size: 20px;
    letter-spacing: 0.01em;
}


/* Couleurs douces par colonne */
.ressource_table th:first-child,
.ressource_table td:first-child {
    background-color: #fff4f4;   /* rouge très pâle */
}

.ressource_table th:last-child,
.ressource_table td:last-child {
    background-color: #f4fff6;   /* vert très pâle */
}

/* Largeur relative des colonnes */
.ressource_table th:first-child,
.ressource_table td:first-child {
    width: 52%;
}
.ressource_table th:last-child,
.ressource_table td:last-child {
    width: 48%;
}

.ressource_table strong {
    display: inline-block;
    margin-bottom: 3px;
}


.ressource_note {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}
.ressource_note a {
    text-decoration: none;
}
.ressource_note a:hover {
    text-decoration: underline;
}


/* Mobile */
@media (max-width: 768px) {
    .ressource_table_wrapper {
        max-width: 100%;
    }

    .ressource_table {
        font-size: 13px;
    }

    .ressource_table th,
    .ressource_table td {
        padding: 5px 6px;
    }
}





/* --------------------------------------------------------PAGE ADMIN------------------------------------------ */
.container{
    margin-left: 10%;  
    margin-right: 10%;/* centre le bloc */

}

/* Cellule d'actions du tableau admin – boutons sur la même ligne */
.admin_actions_cell {
    white-space: nowrap;          /* empêche le retour à la ligne entre les boutons */
}

.admin_actions_cell button {
    display: inline-block;
    margin-right: 6px;
}

.admin_actions_cell button:last-child {
    margin-right: 0;
}



/* La présentation du tableau google sheet congés chez les médecins */

.googlesheet_conges {
    max-width: 1300px;   /* à ajuster selon ton goût */
    margin: 20px auto;      /* centre le bloc */

}

.googlesheet_conges_iframe {
    width: 100%;
    height: 400px; 
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}













/* Version téléphone */
@media (max-width: 768px) {
    .top-banner {
        position: static;      /* on enlève le sticky en mobile */
        top: auto;
    }

    /* Les 3 onglets principaux prennent la place, puis la maison se colle à droite */
    .top-banner .nav-item {
        flex: 1 1 0;
        padding: 10px 4px;
        font-size: 12px;
        letter-spacing: 0.3px;
        box-sizing: border-box;
    }

    /* Le bouton "Mon compte" devient un petit icône à droite */
    .top-banner .account.account-menu {
        flex: 0 0 auto;
        margin-left: auto;           /* pousse la maison complètement à droite */
        padding: 10px 8px;
    }

    /* On cache le texte "Mon compte" sur téléphone */
    .top-banner .account-label {
        display: none;
    }

    /* On affiche une petite maison à la place */
    .top-banner .account.account-menu::before {
        content: "🔑";
        font-size: 18px;
        line-height: 1;
    }
    
       /* Marges plus fines sur téléphone pour les panneaux de congés */
    .conges_layout {
        max-width: 100%;
        padding: 0 12px;   /* beaucoup plus fin que les 40px du desktop */
    }
    
    .conges_panel {
        padding: 14px 12px;
        margin-bottom: 18px;
        box-shadow: none;      /* design plus plat sur téléphone */
        border-radius: 8px;
    }

    .conges_table {
        font-size: 14px;
    }

    .conges_table th,
    .conges_table td {
        padding: 6px;
    }

    .antibio_layout {
        max-width: 100%;
        padding: 0 12px;
    }
    
      .ressources_layout {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Google Sheet mobile */
    .googlesheet_conges {
        max-width: 100%;
        padding: 0 8px;
    }

    .googlesheet_conges_iframe {
        height: 400px;
    }
    
        .public_return_box {
        margin-top: 16px;
        padding: 10px 12px;
    }

    .public_return_text {
        font-size: 13px;
    }
}
