/* Custom Global Styles for sciencesconf.org Template */

/* Define your color palette and fonts consistently */
:root {
    --primary-color: #004D40; /* Dark Teal - for main titles, links, active elements */
    --secondary-color: #FFC107; /* Amber - for accents, borders, hover states */
    --accent-color: #D32F2F; /* Red - for alerts, strong highlights, contact links */
    --text-color: #333333; /* Dark Grey for main body text */
    --light-bg: #F8F8F8; /* Light background for sections/cards */
    --header-bg: #FFFFFF; /* White background for the main header */
    --nav-bg-lighter: #3F5F5D; /* A slightly lighter shade of the primary color for the horizontal navigation */
    --menu-left-bg: #E8F5E9; /* Very light green/grey for the left menu background - NEW */
    --border-radius: 8px;
    --font-heading: 'Playfair Display', serif; /* Elegant serif for titles */
    --font-body: 'Roboto', sans-serif; /* Clean sans-serif for body text */
}

/* Hide specific menu sections in the left sidebar */
#template_foot {
 
  display: None;
}

.titre, stitre{
  display: None;
}


/* Hide the "SUPPORT" / "Contact" section */
#menu_contact {
    display: none !important;
}

/* If you also want to hide the "SUPPORT" cartouche (header) if it remains visible */
/* This targets the cartouche specifically if it's the header for menu_contact */
#menu_contact .menu_cartouche {
    display: none !important;
}



/* ---------------------------------- */
/* Global Body & Layout Adjustments */
/* ---------------------------------- */
body {
    font-family: var(--font-body) !important;
    color: var(--text-color) !important;
    background-color: var(--light-bg) !important;
}

#template_wrapper {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ---------------------------------- */
/* Header Styling (Top Section) */
/* ---------------------------------- */
#template_header {
    background-color: var(--header-bg) !important;
    padding: 15px 0 !important;
    border-bottom: 5px solid var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#header_logo {
  max-height: 93px !important;
  width: auto !important;
  margin-right: 15px !important;
  border-radius: var(--border-radius);
  margin-left: 10px;
}


#header_title a,
#header_title {
    font-family: var(--font-heading) !important;
    font-size: 1.5em !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    text-align : center;

}

#header_subtitle {
    font-size: 1em !important;
    color: #666 !important;
    margin-top: 3px !important;
}

#header_wheredate {
    font-size: 0.8em !important;
    color: #777 !important;
    margin-top: 5px !important;
text-align : center;

}

/* ---------------------------------- */
/* Main Navigation (Horizontal) */
/* ---------------------------------- */
#mainmenu {
    background-color: var(--nav-bg-lighter) !important;
    padding: 0.8rem 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#mainmenu ul li a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease, background-color 0.3s ease !important;
    padding: 10px 15px !important;
    border-radius: 4px;
}

#mainmenu ul li a:hover,
#mainmenu ul li.menu_h_on a {
    color: var(--secondary-color) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* ---------------------------------- */
/* Vertical Menu (Left Sidebar) - Adjusted for much brighter content */
/* ---------------------------------- */

/* Overall menu background */
#menu {
    background-color: var(--menu-left-bg) !important; /* Apply new lighter background */
    border-radius: var(--border-radius) !important; /* Match border-radius of content blocks */
    padding: 10px 0 !important; /* Add some padding inside the menu block */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow for the menu block */
}

/* Menu section headers (e.g., Navigation, Espace connecté, SUPPORT) */
#menu .menu_cartouche,


/* Styling for all main menu links (Accueil, Dates importantes, etc.) */
#menu_public a,
#menu_gestion a,
#menu_contact a {
    background-color: transparent !important; /* Ensure transparent background */
    color: var(--primary-color) !important; /* Dark Teal for active/default links */
    text-decoration: none !important;
    padding: 8px 15px !important;
    display: block !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    font-weight: 400 !important; /* Standard weight for readability */
}

/* Hover state for all main menu links */
#menu_public a:hover,
#menu_gestion a:hover,
#menu_contact a:hover {
    background-color: var(--secondary-color) !important; /* Amber background on hover */
    color: white !important; /* White text on hover for good contrast */
}

/* Active menu item state (e.g., Accueil if on homepage) */
#menu_public .menu_niveau_1_on a {
    background-color: var(--secondary-color) !important; /* Amber background for active item */
    color: white !important; /* White text for active item */
    font-weight: 700 !important; /* Bold for active item */
    border-radius: 4px !important; /* Slight rounding for active item */
    margin: 0 5px !important; /* Reduce width slightly to show border-radius */
}

/* Specific icons in the left menu */
#menu .glyphicon,
#menu .icon {
    color: var(--accent-color) !important; /* Red for icons */
    margin-right: 8px;
}
/* Icons color on hover/active */
#menu_public a:hover .glyphicon,
#menu_public a:hover .icon,
#menu_gestion a:hover .glyphicon,
#menu_gestion a:hover .icon,
#menu_contact a:hover .glyphicon,
#menu_contact a:hover .icon,
#menu_public .menu_niveau_1_on .glyphicon,
#menu_public .menu_niveau_1_on .icon {
    color: white !important; /* White icons on hover/active for good contrast */
}

/* For nested menu items (e.g., under Gestion des mails) */
#menu .sousmenu_dir a {
    background-color: #F0F0F0 !important; /* Slightly darker background for nested items */
    color: var(--text-color) !important; /* Dark text for nested items */
    padding-left: 30px !important; /* Indent nested items */
    font-size: 0.95em !important;
}

#menu .sousmenu_dir a:hover {
    background-color: #E0E0E0 !important; /* Lighter hover for nested items */
    color: var(--primary-color) !important;
}


/* ---------------------------------- */
/* Breadcrumb / Quick Login Bar */
/* ---------------------------------- */
#template_link {
    background-color: var(--light-bg) !important;
    border-bottom: 1px solid #eee !important;
    padding: 10px 0 !important;
}

.filariane_quicklogin button.dropbtn2 {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
    transition: background-color 0.3s ease !important;
}

.filariane_quicklogin button.dropbtn2:hover {
    background-color: var(--secondary-color) !important;
}

.dropdown-content a {
    color: var(--primary-color) !important;
    padding: 8px 15px !important;
    transition: background-color 0.3s ease !important;
}

.dropdown-content a:hover {
    background-color: var(--light-bg) !important;
}

/* ---------------------------------- */
/* Main Content Area (where your content widget lives) */
/* ---------------------------------- */
#template_content {
    background-color: var(--light-bg) !important;
}

/* Styles for your specific content widgets (like wp_55897) */
#wp_55897 {
    background-color: white !important;
    padding: 2.5rem !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    margin-bottom: 2rem !important;
}

#wp_55897 .titre {
    font-family: var(--font-heading) !important;
    font-size: 2em !important;
    color: var(--primary-color) !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--secondary-color) !important;
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ---------------------------------- */
/* Footer Styling */
/* ---------------------------------- */
#template_foot {
    background-color: var(--nav-bg-lighter) !important;
    color: white !important;
    padding: 20px 0 !important;
    margin-top: 30px !important;
    border-top: 5px solid var(--primary-color) !important;
}

#template_foot a {
    color: var(--secondary-color) !important;
    text-decoration: none !important;
}

#template_foot a:hover {
    text-decoration: underline !important;
}

/* Footer logos */
#template_foot img {
    max-height: 30px !important;
    width: auto !important;
    margin: 0 10px !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#template_foot img:hover {
    opacity: 1;
}

.program-container ul li {
  margin-bottom: 1em;
  padding-left: 20px;
  position: relative;
  margin-left: 1em;
}

/* ---------------------------------- */
/* Responsive Adjustments for template elements */
/* ---------------------------------- */
@media (max-width: 768px) {
    #template_header {
        padding: 10px 0 !important;
    }
    #header_logo {
        max-height: 50px !important;
    }
    #header_title a,
    #header_title {
        font-size: 1.5em !important;
    }
    #header_subtitle {
        font-size: 0.9em !important;
    }
    #header_wheredate {
        font-size: 0.7em !important;
    }

    /* Adjust main menu items for mobile if they go horizontal */
    #mainmenu ul li a {
        padding: 8px 10px !important;
        font-size: 0.9em !important;
    }

    /* Adjust vertical menu cartouches on mobile */
    #menu .menu_cartouche,
    #menu .sousmenu_cartouche {
        font-size: 1em !important;
        padding: 8px 10px !important;
    }
    #menu_public a,
    #menu_gestion a,
    #menu_contact a {
        padding: 6px 10px !important;
        font-size: 0.9em !important;
    }
    #template_foot {
        padding: 15px 0 !important;
    }
}