/* Header horizontal */
/* Logo */

.navbar-brand img{
    max-height:70px;
    width:auto;
}

/* Liens du menu */

.mod-menu a{
    color: #507f6b !important; /* Force la couleur claire par défaut */
    font-weight: 600;
    font-size: 18px;
}

.mod-menu a:hover{
    color: #507f6b !important; /* Force votre nouveau vert au survol */
}


/* Taille du logo */

.navbar-brand img {
    max-height: 80px;
    width: auto;
}

.container-header{
    background:#ffffff;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:999;
}
.container-header::after{
    content:"";
    display:block;
    height:4px;
    background:#7cad98;
}

/* Version plus petite */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 80px;
    }
}



.navbar-brand img{
    max-height:90px;
}

.mod-menu{
    margin-top:15px;
}


/* MENU MODERNE */

.fss-header .mod-menu{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:12px;
    margin:0;
    padding:0;
    list-style:none;
}

.fss-header .mod-menu li{
    list-style:none;
}

.fss-header .mod-menu a{
    display:block;
    text-decoration:none;
    color:#507f6b;
    font-size:18px;
    font-weight:600;
    padding:10px 16px;
    border-radius:8px;
    transition:all .3s ease;
}

.fss-header .mod-menu a:hover{
    background:#507f6b;
    color:#ffffff;
}

.fss-header .mod-menu .current > a,
.fss-header .mod-menu .active > a{
    background:#507f6b;
    color:#ffffff;
}




/* ===========================
   HEADER FSS
   =========================== */

.fss-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 40px;
    background:white;
}

.navbar-brand img{
    max-height:90px;
    width:auto;
}

.fss-header .container-nav{
    flex:1;
    margin-left:50px;
}

.fss-header .mod-menu{
    display:flex;
    justify-content:flex-end;
    gap:30px;
    margin:0;
    padding:0;
    list-style:none;
}

.fss-header .mod-menu li{
    list-style:none;
}

.fss-header .mod-menu a{
    color:#2d6cdf;
    text-decoration:none;
    
}



.hero-univ{
    min-height:550px;

    background:
    linear-gradient(
        rgba(0, 102, 2, 0.75),
        rgba(0, 102, 2, 0.75)
    ),
    url('/fss_2026/images/campusfss.jpg');

    background-size:cover;
    background-position:center;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,51,102,.20);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    color:white;
}

.hero-overlay h1{
    font-size:70px;
    font-weight:700;
}

.hero-overlay p{
    font-size:24px;
}

.btn-univ{
    padding:15px 35px;
    border-radius:8px;
    background:#f4b400;
    color:#507f6b;
    text-decoration:none;
    font-weight:700;
}

/* Forcer l'affichage du menu */

.fss-header .mod-menu a,
.mod-menu a,
.metismenu.mod-menu a{
    color:#507f6b !important;
    opacity:1 !important;
    visibility:visible !important;
}

/* Menu actif */

.mod-menu .current > a,
.mod-menu .active > a{
    background:#507f6b;
    color:#ffffff !important;
}

/* Survol */

.mod-menu a:hover{
    background:#507f6b;
    color:#ffffff !important;
}


/* ===========================
   ACTUALITES UCONN STYLE
   =========================== */

.news-cards .mod-articles{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.news-cards article{
    background:#ffffff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.news-cards article:hover{
    transform:translateY(-8px);
}

.news-cards img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.news-cards .mod-articles-title{
    padding:20px;
    font-size:28px;
    font-weight:700;
    color:#006605;
}

.news-cards .mod-articles-category-title{
    padding:0 20px;
}

.news-cards .readmore{
    padding:20px;
}

.news-cards .readmore a{
    color:#0056b3;
    font-weight:700;
    text-decoration:none;
}


.uconn-news .mod-articles{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.uconn-news article,
.uconn-news li{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
    list-style:none;
}

.uconn-news article:hover,
.uconn-news li:hover{
    transform:translateY(-8px);
}



.uconn-news h4{
    font-size:24px;
    font-weight:700;
    padding:20px;
    margin:0;
}

.uconn-news .mod-articles-category-date{
    padding:0 20px;
}

.uconn-news .readmore{
    padding:20px;
}

/* ==========================
   ACTUALITES UNIVERSITE
   ========================== */

.container-top-a .mod-articles{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.container-top-a article,
.container-top-a li{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
    transition:.3s;
    list-style:none;
}

.container-top-a article:hover,
.container-top-a li:hover{
    transform:translateY(-8px);
}

.container-top-a img{
    width:100%;
    height:250px;
    object-fit:cover;
    display:block;
}

/* .uconn-news img{
    width:50%;
    height:300px;
    object-fit:cover;
    display:block;
} */

.uconn-news img{
    display:block;
    margin:0 auto;
    width:85%;   /* ajuste selon la taille souhaitée */
    height:90%;
    object-fit:cover;
}

.container-top-a h3,
.container-top-a h4{
    font-size:24px;
    font-weight:700;
    color:#006605;
    padding:20px;
    margin:0;
}

.container-top-a p{
    padding:0 20px 15px 20px;
}

.container-top-a .readmore{
    padding:0 20px 20px 20px;
}

.container-top-a .readmore a{
    display:inline-block;
    background:#006605;
    color:#080000;
    text-decoration:none;
    padding:10px 18px;
    border-radius:8px;
}

/* =========================================================
   FOOTER FSS - JOOMLA 6 / CASSIOPEIA
   ========================================================= */


/* =========================================================
   CONTENEUR PRINCIPAL JOOMLA
   ========================================================= */

.container-footer {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 30px 0 0 !important;

    background: #b6cfc4;
    border-top: 4px solid #507f6b;

    box-sizing: border-box;
}


/* =========================================================
   CONTENEUR CASSIOPEIA
   ========================================================= */

.container-footer .grid-child {
    width: 100% !important;
    max-width: none !important;

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

    box-sizing: border-box;
}


/* =========================================================
   FOOTER PRINCIPAL
   ========================================================= */

.fss-footer {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 30px;

    display: grid;

    grid-template-columns:
        1.3fr
        1fr
        1fr
        1.3fr;

    gap: 35px;

    align-items: start;

    box-sizing: border-box;
}


/* =========================================================
   COLONNES
   ========================================================= */

.footer-col {
    min-width: 0;
}


/* Première colonne centrée */
.footer-col:first-child {
    text-align: center;
}


/* =========================================================
   TITRES DES COLONNES
   ========================================================= */

.footer-col h3 {
    display: flex;
    align-items: center;

    width: 100%;

    background: #507f6b;
    color: #ffffff;

    padding: 9px 14px;
    margin: 0 0 15px 0;

    font-size: 18px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;

    box-sizing: border-box;
}


/* Ligne décorative après le titre */

.footer-col h3::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #ffffff;

    opacity: 0.35;

    margin-left: 12px;
}


/* =========================================================
   LOGO (Correction de la ligne coupée)
   ========================================================= */

.footer-logo {
    width: 118px;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* =========================================================
   CORRECTION ET INTEGRATION DES SOUS-MENUS FSS
   ========================================================= */

/* 1. Préparer les éléments parents pour accueillir le sous-menu absolu */
.fss-header .mod-menu li {
    position: relative;
}

/* 2. Cacher le sous-menu par défaut */
.fss-header .mod-menu li ul,
.mod-menu li ul {
    display: none !important; /* Caché par défaut */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff !important;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.15);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    border-top: 3px solid #006605;
    z-index: 9999;
    border-radius: 4px;
}

/* 3. LIGNE ESSENTIELLE : Afficher le sous-menu au survol de la souris */
.fss-header .mod-menu li:hover > ul,
.mod-menu li:hover > ul {
    display: block !important; /* Devient visible au survol */
}

/* 4. Forcer l'alignement vertical à l'intérieur du sous-menu */
.fss-header .mod-menu li ul li {
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
}

/* 5. Restyler les liens du sous-menu */
.fss-header .mod-menu li ul a {
    display: block !important;
    color: #006605 !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    text-align: left !important;
    white-space: nowrap;
}

/* 6. Style de survol spécifique aux éléments du sous-menu */
.fss-header .mod-menu li ul a:hover {
    background: #f4b400 !important; /* Fond jaune au survol */
    color: #006605 !important;       /* Texte vert au survol */
}

/* Style de l'encadré de l'annonce */
#mod-custom117 {
    background-color: #ffffff;
    border-left: 5px solid #006605; /* Barre bleue sur le côté (couleur modifiable) */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin: 15px 0;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Style du titre à l'intérieur de l'annonce */
#mod-custom117 h3 {
    color: #507f6b;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Style du texte de l'annonce */
#mod-custom117 p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* =========================================================
   HARMONISATION DES SOUS-MENUS AVEC LE MENU PRINCIPAL
   ========================================================= */

/* Force l'écriture des sous-menus en vert #507f6b au repos */
.mod-menu li li a,
.mod-menu ul a,
.mod-menu .nav-child a,
.mod-menu .dropdown-menu a {
    color: #507f6b !important;
    background-color: transparent !important;
}

/* Force l'écriture en blanc et le fond en vert #507f6b au survol */
.mod-menu li li a:hover,
.mod-menu ul a:hover,
.mod-menu .nav-child a:hover,
.mod-menu .dropdown-menu a:hover {
    color: #ffffff !important;
    background-color: #507f6b !important;
}

/* =========================================================
   FORCER LE VERT #507F6B SUR LES LIENS DE SOUS-MENUS
   ========================================================= */

/* 1. Ciblage chirurgical des liens du sous-menu au repos */
.fss-header .mod-menu .metismenu-item .mm-collapse a,
.fss-header .mod-menu .metismenu-item ul a,
.mod-menu li li a,
.mod-menu .dropdown-menu a {
    color: #507f6b !important;
    background-color: transparent !important; /* Garde le fond transparent au repos */
}

/* 2. Ciblage des liens du sous-menu au SURVOL (Hover) */
.fss-header .mod-menu .metismenu-item .mm-collapse a:hover,
.fss-header .mod-menu .metismenu-item ul a:hover,
.mod-menu li li a:hover,
.mod-menu .dropdown-menu a:hover {
    color: #ffffff !important;             /* L'écriture devient blanche */
    background-color: #6c7a74 !important; /* Le fond devient vert */
}


