
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    margin: 0;
    background-color: #ffffff !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
    font-size: 2rem;
    margin-top: 2rem;
}

.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    margin-bottom: 120px;
    width: 100%;
}
.content {
    width: 100%;
}

a.link-without-style {
    text-decoration: none;
    color: inherit;
}


/* =========== début header / menu ============================= */


header {
    /*padding: 10px 0;*/
    padding-bottom: 10px;
}

.header-bad-beta{
    background-color: chocolate;
    color: white;
    text-align: center;
}

header .header-content{
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav.nav-principale {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}



header nav.nav-principale a div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #D3D3D3;
    border-radius: 10px;
    color: #555555;
    width: 170px;
    height: 100px;
    margin: 0 10px;
    text-align: center;
    text-decoration: none;
}
header nav.nav-principale a div:hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #D3D3D3;
    border-radius: 10px;
    color: #555555;
    width: 170px;
    height: 100px;
    margin: 0 10px;
    text-align: center;
    text-decoration: none;
    background: lightblue;
}

/* Container */
 {
    /*background: #1f2937; !* gris foncé *!*/
}

/* Liste principale */
.nav-principale-vpn .menu__list {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

/* Item de menu */
.nav-principale-vpn .menu__item a {
    display: inline-block;
    white-space: nowrap;
    padding: 0.5rem 0.9rem;
    color: #fff;
    text-decoration: none;
    background: rgb(59, 89, 152);
    margin-left: 0.4rem;
}

/* hover / focus */
.nav-principale-vpn .menu__item a:hover,
.nav-principale-vpn .menu__item a:focus {
    /*background: #489f00;*/
    background: #008ad2;
    outline: none;
}

/* Position pour sous-menu */
.nav-principale-vpn .menu__item--has-sub {
    position: relative;
}

/* Sous-menu (initialement caché) */
.nav-principale-vpn .submenu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 10rem;
    white-space: nowrap;
    list-style: none;
    background: rgb(59, 89, 152);
    color: white;
    transform-origin: top center;

    /* pour l'animation / visibilité */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scaleY(0.98);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
    z-index: 999;
}
.nav-principale-vpn ul.submenu {
    padding-left: 1px;
    background: lightgrey;
}

/* Items du sous-menu */
.nav-principale-vpn .submenu__item a {
    display: block;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.nav-principale-vpn .submenu__item a:hover,
.nav-principale-vpn .submenu__item a:focus {
    background: #489f00;
}

/* Afficher le sous-menu au survol ou quand on a le focus (clavier) */
.nav-principale-vpn .menu__item--has-sub:hover .submenu,
.nav-principale-vpn .menu__item--has-sub:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

/* Option pour aligner le sous-menu à droite si besoin */
.nav-principale-vpn .menu__item--has-sub.menu__item--align-right .submenu {
    left: auto;
    right: 0;
}

/* Responsive : empile les items sur petits écrans */
/*@media (max-width: 720px) {*/
/*    .nav-principale-vpn .menu__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }*/
/*    .nav-principale-vpn .submenu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border-radius: 6px; margin-top: 0.25rem; }*/
/*    !* Sur mobile, on pourrait masquer le submenu par défaut et l'ouvrir via JS au clic *!*/
/*}*/


/* =========== fin menu ============================= */


footer {
    background-color: #24272c;
    padding: 30px 0;
    color: #e4e4e4;
}

footer a:link,
footer a:visited,
footer a:hover,
footer a:active {
    color: #e4e4e4;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

footer .footer-content{
    max-width: 960px;
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
}

footer .footer-content div ul {
    padding: 0 15px;
    list-style-type: none;
}



/**
 TABLEAU
 */

table.table-isf-bad {
    font-size: 0.857em;
    line-height: 1.5;
    word-wrap: break-word;
    width: 100%;
}

table.table-isf-bad tr td,
table.table-isf-bad tr th {
    padding: 4px 9px;
    border: 1px solid #fff;
    text-align: left;
}

table.table-isf-bad tbody tr:nth-child(even) {
    background: #e4e4e4;
    background: rgba(0, 0, 0, 0.105);
}
table.table-isf-bad tbody tr:nth-child(odd) {
    background: #efefef;
    background: rgba(0, 0, 0, 0.063);
}

table.table-isf-bad tr.table-isf-bad-header-line {
    color: #FFF;
    font-weight: bold;
    background: #757575;
    background: rgba(0, 0, 0, 0.51);
    border-bottom-style: none;
}

/**
 FORMULAIRE
 */

form.form-login div.login {
    display: none;
}

form.form-filter {
    margin: 10px;
}

form.form-filter,
form.form-filter > div{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

form.form-transfer-file > div > div,
form.form-filter > div > div {
    display: flex;
    flex-direction: column;
    padding-right: 14px;
    padding-top: 7px;
}

form.form-filter select {
    border-radius: 0;
}

form.adh-confirm button,
form.form-transfer-file button,
form.form-filter button {
    padding: 10px;
    margin-right: 14px;
    margin-top: 7px;
    align-self: flex-end;
}

form.adh-confirm button,
form.form-transfer-file button {
    margin-top: 20px;
}

/**
 ALERTE FLASH
 */

.alert {
    /*font-weight: bold;*/
    padding: 10px;
    width: 100%;
    margin: 3px;
    border-radius: 10px;
    border: 1px solid #e4e4e4;
}
.alert.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.alert.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.alert.alert-info {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}
.alert.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* ============================ Display User Page ================================= */

.display-user-page h1 {
    color: #3b5998;
}
.display-user-page .color-title {
    color: #3b5998;
}

.table-coordonnees-utilisateurice th {
    color: #bbbbbb;
    text-align: right;
    width: 200px;
    padding: 2px 9px;
}
.table-coordonnees-utilisateurice td {
    padding: 2px 9px;
}
.table-coordonnees-utilisateurice.secondaire {
    margin-top: 10px;
    font-size: 0.8em;
}

.display-user-tabs {
    margin-top: 30px;
}

/* cache propre des inputs mais garde le focus accessible */
.display-user-tabs input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* style des labels (les "onglets") */
.display-user-tabs label {
    display: inline-block;
    padding: 0.6rem 1rem;
    margin-right: 0.25rem;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    background: #489f00;
    user-select: none;
    color: white;
}

/* focus visible pour l'accessibilité clavier */
.display-user-tabs input[type="radio"]:focus + label {
    outline: 3px solid Highlight;
    outline-offset: 2px;
}

/* conteneur des panels */
.display-user-tabs .panels {
    border: 2px solid #3b5998;
    border-radius: 0 6px 6px 6px;
    background: #fff;
    margin-top: -1px; /* pour superposer avec les labels */
}

/* par défaut, tous les panels sont cachés */
.display-user-tabs .panel { display: none; }

/* afficher le panel correspondant au radio checked
   on utilise l'ordre: input#tabN + ... + .panel-N
   pour ça on place les panels après les inputs/labels dans le DOM.
*/
#tab-adhesions:checked ~ .panels .panel-adhesions,
#tab-mandats-groupe:checked ~ .panels .panel-mandats-groupe,
#tab-mandats-nationaux:checked ~ .panels .panel-mandats-nationaux,
#tab-activites-cn:checked ~ .panels .panel-activites-cn,
#tab-dons:checked ~ .panels .panel-dons,
#tab-postes-salaries:checked ~ .panels .panel-postes-salaries,
#tab-mailings:checked ~ .panels .panel-mailings
{
    display: block;
}

/* style pour l'onglet actif (label) */
#tab-adhesions:checked + label,
#tab-mandats-groupe:checked + label,
#tab-mandats-nationaux:checked + label,
#tab-activites-cn:checked + label,
#tab-dons:checked + label,
#tab-postes-salaries:checked + label,
#tab-mailings:checked + label {
    background: #3b5998;
    box-shadow: 0 -2px 0 0 rgba(0,0,0,0.02) inset;
}

/* petite transition proposé par chat GPT ?  */
.display-user-tabs .panel { transition: opacity 180ms ease; }

#pagination a {
    margin-left: 3px;
    margin-right: 3px;
}

.table-ajout-activite-utilisateurice {
    margin: 10px 0px;
    background: rgba(0, 0, 0, 0.063);
    width: 100%;
}

.table-ajout-activite-utilisateurice tr{
    width: 100%;
}

.table-ajout-activite-utilisateurice td {
    padding: 4px 9px;
    border: 1px solid #fff;
    text-align: left;
}

.table-ajout-activite-utilisateurice a.disabled-link {
    pointer-events: none;
}

.table-ajout-activite-utilisateurice a {
    color: #3b5998;
    text-decoration: none;
    cursor: pointer;
}
.table-ajout-activite-utilisateurice a:hover {
    text-decoration: underline;
}

/* ==== Page CA ==== */
.content.ca-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 0;
}
.content.ca-content .ca-left-column {
    flex: 5;
}
.content.ca-content .ca-right-column {
    border: 1px solid lightgray;
    padding: 0.5em;
    margin-left: 0.5em;
    flex: 2;
}

table.table-isf-bad.margin-under-table {
    margin-bottom: 30px;
}
