/* =========================================================
   TASI3A MATHS
   Cassiopeia Extended - Global Site CSS
   Joomla 6.1.3
   ========================================================= */


/* =========================================================
   1. HEADER
   ========================================================= */

.container-header {
    direction: rtl;

    background: linear-gradient(
        135deg,
        #173f78 0%,
        #126fa3 55%,
        #20a9d4 100%
    );

    box-shadow: 0 4px 18px rgba(20, 55, 95, 0.18);
    border-bottom: 4px solid #f5b82e;
}

.container-header .grid-child {
    padding-top: 18px;
    padding-bottom: 18px;
}


/* Nom du site */

.container-header .navbar-brand,
.container-header .navbar-brand span {
    color: #ffffff !important;

    font-weight: 800;
    font-size: 2rem;

    letter-spacing: .3px;
    text-decoration: none;

    text-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}


/* Description sous le nom */

.container-header .site-description {
    color: #ffffff !important;

    opacity: .92;

    font-size: 1rem;
    font-weight: 500;

    margin-top: 4px;
}


/* Conteneur navigation */

.container-header .container-nav {
    background: transparent;
}


/* Organisation du nom et de la description */

.container-header .navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* =========================================================
   2. BODY
   ========================================================= */

body {
    background: #f4f7fb;
}


/* =========================================================
   3. MAIN CONTENT
   ========================================================= */

.site-grid {
    background: transparent;
}


/* =========================================================
   4. LINKS
   ========================================================= */

a {
    transition: all .2s ease;
}


/* =========================================================
   5. FOOTER
   ========================================================= */

.footer {
    width: 100%;
    color: rgba(255, 255, 255, 0.92);
}


/* Organisation générale du footer */

.footer .grid-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}


/* Menu horizontal */

.footer .mod-menu,
.footer ul.mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center !important;

    gap: 32px;

    margin: 0 auto !important;
    padding: 0 !important;
}


/* Éléments du menu */

.footer .mod-menu > li,
.footer ul.mod-menu > li {
    display: inline-flex !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Liens du footer */

.footer .mod-menu a,
.footer ul.mod-menu a {
    color: rgba(255, 255, 255, 0.92);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color .2s ease,
        opacity .2s ease;
}


/* Survol des liens */

.footer .mod-menu a:hover,
.footer ul.mod-menu a:hover {
    color: #ffffff;
    opacity: 1;
}


/* =========================================================
   6. MOD_WHOSONLINE
   Tasi3a Maths - Minimal Footer Style
   ========================================================= */

.footer .mod-whosonline {
    display: inline-flex;
    align-items: center;

    padding: 3px 4px;
    margin: 0;

    background: transparent;
    border: none;
    border-radius: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.5;
    white-space: nowrap;

    box-shadow: none;

    transition:
        color .25s ease,
        opacity .25s ease;
}


/* Point vert de présence */

.footer .mod-whosonline::before {
    content: "";

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    margin-right: 8px;

    background: #63e697;

    border-radius: 50%;

    box-shadow:
        0 0 0 3px rgba(99, 230, 151, 0.10),
        0 0 7px rgba(99, 230, 151, 0.25);

    animation: tasi3a-online 2.8s ease-in-out infinite;
}


/* Animation très légère */

@keyframes tasi3a-online {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .55;
        transform: scale(.88);
    }
}


/* Survol */

.footer .mod-whosonline:hover {
    color: #ffffff;
    background: transparent;
    border: none;
    transform: none;
}


/* =========================================================
   7. MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .container-header .grid-child {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .container-header .navbar-brand,
    .container-header .navbar-brand span {
        font-size: 1.55rem;
    }

    .container-header .site-description {
        font-size: .85rem;
    }


    /* Footer sur tablette/mobile */

    .footer .grid-child {
        flex-direction: column;
        gap: 18px;
    }

    .footer .mod-menu,
    .footer ul.mod-menu {
        gap: 18px !important;
    }


    /* Module visiteurs */

    .footer .mod-whosonline {
        font-size: 12px;
        padding: 4px 5px;
    }

    .footer .mod-whosonline::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
        margin-right: 7px;
    }
}


/* =========================================================
   8. VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 480px) {

    .container-header .navbar-brand,
    .container-header .navbar-brand span {
        font-size: 1.35rem;
    }

    .container-header .site-description {
        font-size: .78rem;
    }


    /* Footer */

    .footer .grid-child {
        gap: 14px;
    }

    .footer .mod-menu,
    .footer ul.mod-menu {
        gap: 12px !important;
    }

    .footer .mod-menu a,
    .footer ul.mod-menu a {
        font-size: 13px;
    }
}
