/* ============================================================
   FEKAMT — Thème Magazine Complet (fusion magazine + site)
   ============================================================ */

/* ====== VARIABLES & THÈMES ====== */
:root {
    --couleur-dominante: #0a3fa8;              /* Bleu Nova */
    --couleur-dominante-soutenue: #072c75;     /* Bleu profond martial */
    --couleur-secondaire: #e6efff;             /* Bleu pastel moderne */
    --couleur-texte: #ffffff;
}

/* Thème bleu */
.theme-bleu {
    --couleur-dominante: #0057c8;
    --couleur-dominante-soutenue: #003c8a;
    --couleur-texte: #ffffff;
}

/* Thème rouge */
.theme-rouge {
    --couleur-dominante: #b30000;
    --couleur-dominante-soutenue: #7a0000;
    --couleur-texte: #ffffff;
}

/* Thème vert */
.theme-vert {
    --couleur-dominante: #009b00;
    --couleur-dominante-soutenue: #006b00;
    --couleur-texte: #ffffff;
}

/* ====== GLOBAL ====== */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #f5f7fc;
    color: #222;
    line-height: 1.7;
}

/* ====== HEADER (magazine) ====== */
.site-header {
    background: var(--couleur-dominante);
    border-bottom: 4px solid var(--couleur-dominante-soutenue);
    padding: 1.4rem 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: transform .2s ease;
}
.site-logo:hover {
    transform: scale(1.07);
}

.header-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.site-subtitle {
    margin: .2rem 0 0;
    font-size: 1rem;
    color: #dce6ff;
    font-weight: 400;
}

/* ===== BLOC SHIN GI TAÏ À DROITE ===== */
.shin-gi-tai-bloc {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    text-align: center;
}

.shin-gi-tai-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 6px;
}

.shin-gi-tai-texte {
    line-height: 1.2;
}

.sgt-titre {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.sgt-soustitre {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.9;
    color: #dce6ff;
}

.shin-gi-tai-bloc .sgt-titre,
.shin-gi-tai-bloc .sgt-soustitre {
    color: white !important;
}


/* ===== THÈMES SHIN GI TAÏ ===== */
.theme-bleu .shin-gi-tai-img {
    content: url("Shin_Gi_Tai_Blanc2r.png");
}
.theme-bleu .sgt-titre,
.theme-bleu .sgt-soustitre {
    color: #0057c8;
}

.theme-rouge .shin-gi-tai-img {
    content: url("Shin_Gi_Tai_Rouge.png");
}
.theme-rouge .sgt-titre,
.theme-rouge .sgt-soustitre {
    color: #b30000;
}

.theme-vert .shin-gi-tai-img {
    content: url("Shin_Gi_Tai_Vert.png");
}
.theme-vert .sgt-titre,
.theme-vert .sgt-soustitre {
    color: #009b00;
}

/* ====== CONTENT ====== */
main {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.content {
    background: white;
    padding: 2.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid #dce3f0;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ====== FOOTER COMPACT ====== */
.site-footer {
    background: #ffffff;
    border-top: 3px solid var(--couleur-dominante-soutenue);
    margin-top: 2rem;
    padding: 1rem 1rem 0.6rem;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-block {
    flex: 1 1 220px;
}

.footer-block h3 {
    margin: 0 0 .3rem 0;
    font-size: 1.1rem;
    color: var(--couleur-dominante);
    font-weight: 700;
}

.footer-block p {
    margin: .2rem 0;
    color: #444;
    font-size: .9rem;
    line-height: 1.4;
}

.footer-block a {
    color: var(--couleur-dominante-soutenue);
    text-decoration: none;
    font-size: .9rem;
}

.footer-block a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: .5rem;
    font-size: .85rem;
    color: #666;
    border-top: 1px solid #eee;
}

.facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}

.facebook-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.facebook-icon .fb-svg {
    width: 30px;
    height: 30px;
    color: #1877f2;
}

/* ====== FICHES / ACTUALITÉS ====== */
.fiche-ligne {
    border: 1px solid #999;
    border-radius: 5px;
    padding: 8px 10px;
    margin-bottom: 10px;
    background: #fafafa;
}

.fiche-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.fiche-titre {
    font-weight: bold;
    color: #333;
}

.fiche-toggle {
    font-size: 0.9em;
    color: #555;
    padding: 2px 6px;
    border-radius: 3px;
    transition: 0.2s;
}

.fiche-toggle:hover {
    background: #e3e3e3;
}

.fiche-description {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #ddd;
    display: none;
    color: #444;
    line-height: 1.4em;
}

.fiche-droite {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fiche-icone svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ====== BOUTONS ICÔNES ====== */
.icone-btn {
    background: #eee;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.icone-btn:hover {
    background: var(--accent_rouge);
    color: white;
}

/* ====== FIELDSETS ====== */
.fieldset_actualites {
    border: 1px solid #ddd;
    border-left: 4px solid var(--couleur-dominante);
    padding: 15px 20px;
    border-radius: 8px;
    background: #fafafa;
    margin: 25px 0;
}

.fieldset_evenements {
    border: 1px solid #ddd;
    border-right: 4px solid var(--couleur-dominante);
    padding: 15px 20px;
    border-radius: 8px;
    background: #fafafa;
    margin: 25px 0;
    position: relative;
    background: #fafafa;
}

.fieldset_evenements legend {
    position: absolute;
    right: 1rem;
    top: -1rem;
    background: #fafafa;
    padding: 0 6px;
    font-weight: 700;
    color: var(--couleur-dominante);
    font-size: 1.05rem;
}

.fieldset_actualites > legend {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--couleur-dominante);
    padding: 0 8px;
}

.fieldset_actualites .fiche-ligne {
    margin-bottom: 15px;
}

.fieldset_actualites .fiche-ligne:last-child {
    margin-bottom: 0;
}

/* ====== MENU DÉROULANT ====== */
.menu-principal {
    background: var(--couleur-dominante-soutenue);
    border-bottom: 3px solid #051f52;
    position: relative;
    z-index: 9999;
}

.submenu {
    position: absolute;
    z-index: 10000;
}

/* Menu horizontal */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

.menu > li > a:hover {
    background: #051f52;
}

/* Sous-menus verticaux */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.submenu li a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.submenu li a:hover {
    background: var(--couleur-secondaire);
    color: #222;
}

/* Affichage au survol */
.has-sub:hover .submenu {
    display: block;
}

/* ====== TITRES ====== */
.page-titre {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--couleur-dominante);
    text-align: center;
    margin: 35px 0 15px;
    position: relative;
    display: block;
    /*display: inline-block;*/
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: -0.5px;
}

.page-titre::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--couleur-dominante);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-soustitre {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--couleur-dominante);
    text-align: left;
    margin: 18px 0 8px 0;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.page-soustitre::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--couleur-dominante);
    margin-top: 2px;
    border-radius: 2px;
}

/* ====== PARAGRAPHES ====== */
p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin: 18px 0;
    max-width: none;
}

/* ====== COMITÉ ====== */
.comite-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px auto;
    max-width: 1100px;
}

.comite-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    padding: 14px 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.comite-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 3px solid var(--couleur-dominante);
}

.comite-nom {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.comite-fonction {
    font-size: 1rem;
    font-weight: 600;
    color: var(--couleur-dominante);
    margin-bottom: 8px;
}

.comite-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

/* ====== MEMBRES ====== */
.membre-fiche {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid var(--couleur-dominante);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 15px;
}

.membre-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--couleur-dominante);
    flex-shrink: 0;
}

.membre-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.membre-nom {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.membre-texte {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.3;
}

/* ====== IN MEMORIAM ====== */
.in-memoriam {
    position: relative;
    background: #fff;
    border-left: 4px solid #000;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    margin: 12px 0;
}

/* ====== IMAGES CENTRÉES ====== */
.images-centrees {
    text-align: center;
}

.images-centrees img {
    display: inline-block;
}

/* ====== BOUTON DÉBRANCHEMENT ====== */
.btn-debranchement {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--couleur-dominante);
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #800000;
    line-height: 1.2;
    transition: 0.2s ease-in-out;
}

.btn-debranchement:hover {
    background-color: var(--couleur-dominante-soutenue);
    border-color: #4d0000;
}

/* ====== RECHERCHE ====== */
#search-container {
    padding: 20px;
    background: white;
}

#search-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#search-results {
    margin-top: 20px;
    padding: 0 20px 40px 20px;
}

.result-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.result-item a {
    font-size: 1.2em;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
}

.result-item small {
    color: #666;
}

/* ====== RESPONSIVE / BURGER ====== */
#toggle,
label[for="toggle"] {
    display: none;
}

/* Mobile */
@media all and (max-width: 991px) {

    label[for="toggle"] {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        font-size: 40px;
        color: white;
        cursor: pointer;
        background: var(--couleur-dominante);
        height: 60px;
    }

    #toggle {
        display: block;
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    nav.menu-principal > ul.menu {
        display: none;
        flex-direction: column;
        background: var(--couleur-dominante);
        width: 100%;
    }

    #toggle:checked + nav.menu-principal > ul.menu {
        display: flex;
    }

    nav.menu-principal .submenu {
        display: block !important;
        position: static;
        background: var(--couleur-dominante-soutenue);
        border: none;
        margin-top: 0;
    }

    .submenu li a {
        color: #fff;
        padding: 10px 20px;
    }

    .menu > li {
        padding-bottom: 1px;
    }

    .has-sub:hover .submenu {
        display: block;
    }
}

/* Popin pour le détail des disciplines */
.popin {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.popin.hidden { display: none; }

.popin-content {
    background: white;
    padding: 20px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.popin-close {
    float: right;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

.btn-ryu {
    display: inline-block;
    padding: 6px 12px;
    background: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-ryu:hover {
    background: #fff;
    border-color: #999;
    color: #000;
}

/* Centre les images uniquement dans la popin */
.popin-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}
