/* CISTEM 2026 - Style v3 (ICEM 2025 Inspired) */

/* 1. Variables & Basic Reset */
:root {
    --color-primary-dark: #0A2239; /* Bleu Nuit Profond */
    --color-primary-light: #FFFFFF;
    --color-secondary-light: #F8F9FA; /* Gris Très Clair */
    --color-accent: #F58A07; /* Orange Vif */
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --header-height: 70px; /* Adjust as needed */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Offset for sticky header */
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-primary-light);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e07b06; /* Darken accent color */
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 2. Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-brand a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-primary-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 3. Hero Section */
.hero-section {
    padding: 140px 0 180px; /* Increased padding */
    min-height: 60vh; /* Adjusted height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center center;
    position: relative;
    background-image: linear-gradient(rgba(10, 34, 57, 0.7), rgba(10, 34, 57, 0.7)), url('../images/pont_sidi_mcid_constantine.jpeg'); /* Dark blue overlay + image */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.2rem; /* Adjusted size */
    margin-bottom: 1rem;
}

.hero-section .subtitle {
    font-size: 1.3rem; /* Adjusted size */
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* 4. Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 25px; /* Rounded corners */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0.5rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #e07b06; /* Darken accent */
    color: var(--color-text-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    text-decoration: none;
    transform: translateY(-2px);
}

/* 5. Content Sections */
.content-section {
    padding: 80px 0; /* Increased padding */
}

.bg-light {
    background-color: var(--color-secondary-light);
}

.bg-dark {
    background-color: var(--color-primary-dark);
}

.text-light {
    color: var(--color-text-light);
}

.text-light h2,
.text-light h3,
.text-light h4 {
    color: var(--color-text-light);
}

.text-light a {
    color: var(--color-accent);
}
.text-light a:hover {
    color: #ff9d2b; /* Lighten accent */
}

/* Specific Section Styles */
.dates-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.date-card-v3 {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background */
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-card-v3 h4 {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.topic-list {
    list-style: disc;
    margin-left: 20px;
    columns: 2;
    column-gap: 2rem;
}

.topic-list li {
    margin-bottom: 0.5rem;
}

.committee-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.committee-grid-v3 h4 {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.venue-container-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.venue-image-v3 img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 6. Footer */
.site-footer {
    padding: 50px 0 30px; /* Increased padding */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a,
.footer-col p a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover,
.footer-col p a:hover {
    color: var(--color-text-light);
    text-decoration: none;
}

.footer-col p {
     color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack copyright and logos */
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 1rem; /* Space between copyright and logos */
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.footer-logos img {
    max-height: 40px; /* Adjust as needed */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
}
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* 7. Responsive Design */
@media (max-width: https://lec-umc.org/cistem2026/navbarpx) {
    .hero-section h1 { font-size: 2.8rem; }
    .navbar-nav {
        gap: 1rem;
    }
    .topic-list { columns: 1; }
    .venue-container-v3 {
        grid-template-columns: 1fr;
    }
    .venue-image-v3 {
        order: -1	; /* Move image above text on smaller screens */
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .navbar-nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-primary-light);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .navbar-nav.active {
        display: flex; /* Shown when active */
    }
    .nav-link {
        padding: 0.8rem 1.5rem;
        color: var(--color-primary-dark);
        width: 100%;
        text-align: center;
    }
    .nav-link::after {
        display: none; /* Remove underline effect on mobile */
    }
    .nav-link:hover, .nav-link.active {
        background-color: var(--color-secondary-light);
        color: var(--color-accent);
    }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section .subtitle { font-size: 1.1rem; }
    .content-section { padding: 60px 0; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
    }
	.tracks-grid {
    grid-template-columns: 1fr;
	}
}
/* Navbar plus large */
.site-header .container {
    max-width: 1200px;   /* 1400px ou 1600px */
}
.nav-link {
    font-size: 0.95rem;
}
/* ====================
   DROPDOWN MENU STYLES
   ==================== */

/* Dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown trigger link */
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-primary-light);
    border: 1px solid rgba(10, 34, 57, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-top: 5px;
}

/* Dropdown menu items */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--color-secondary-light);
    color: var(--color-accent);
    padding-left: 25px;
    text-decoration: none;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Active state for dropdown parent */
.dropdown .nav-link.active {
    color: var(--color-accent);
}

.dropdown .nav-link.active::after {
    width: 100%;
}

/* Mobile styles for dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(10, 34, 57, 0.1);
        margin: 5px 0 5px 15px;
        padding: 0;
        min-width: auto;
        background-color: transparent;
    }
    
    .dropdown-menu.active {
        display: block !important;
    }
    
    .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 0.9em;
        color: var(--color-primary-dark);
    }
    
    .dropdown-menu li a:hover {
        background-color: rgba(10, 34, 57, 0.05);
        padding-left: 20px;
    }
    
    /* Remove hover effects on mobile */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown-menu.active {
        display: block;
    }
}

/* Adjust navbar for dropdown */
.navbar-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-nav li {
    position: relative;
}

/* Ensure proper z-index stacking */
.site-header {
    z-index: 1000;
}

.navbar {
    position: relative;
}
/* Ajoutez ceci à la fin de votre fichier CSS, après toutes les autres règles */

/* Amélioration du logo dans la navbar */
.navbar-brand {
    display: flex;
    align-items: center;
    height: 90%;
}

.navbar-brand a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 5px 0; /* Ajuste l'espace vertical si nécessaire */
}

.navbar-brand img {
    max-height: 50px; /* Assure que le logo ne dépasse pas la hauteur de la navbar */
    width: auto;
    object-fit: contain;
}

/* Pour les écrans mobiles */
@media (max-width: 768px) {
    .navbar-brand {
        flex: 1; /* Prend l'espace disponible */
    }
    
    .navbar-brand img {
        max-height: 50px; /* Réduit légèrement sur mobile */
    }
}
/* Réduire la distance entre le logo et le menu */
.navbar {
    justify-content: flex-start; /* Change de space-between à flex-start */
    gap: 0rem; /* Ajoute un espacement contrôlé entre le logo et le menu */
}

.navbar-brand {
    margin-right: 0; /* Enlève la marge par défaut */
}

.navbar-brand a {
    margin-right: 0; /* Enlève la marge du lien */
}

.navbar-nav {
    margin-left: 0; /* Enlève la marge gauche */
}

/* OU pour une solution plus précise, ajustez ces valeurs */
.site-header .navbar.container {
    padding: 0 15px; /* Réduit le padding si nécessaire */
}

/* Pour un contrôle plus fin, ajustez spécifiquement l'espace */
.navbar > .navbar-brand + .navbar-nav {
    margin-left: 20px; /* Réduisez cette valeur selon vos besoins */
}
/* Layout en deux colonnes pour la session */
.session-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.session-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.session-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.session-list li {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .session-two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .session-col {
        gap: 1rem;
    }
    
    .session-list {
        padding-left: 15px;
    }
    
    .session-list li {
        margin-bottom: 8px;
    }
}
/*  */
/* ====================================
   STYLES POUR LES SESSIONS SPÉCIALES
   ==================================== */

/* Titres h4 avec couleur orange (même que committee-grid-v3) */
.session-title {
    color: var(--color-accent) !important;  /* Couleur orange */
    font-size: 1.2rem;                      /* Taille similaire à committee-grid-v3 */
    margin-bottom: -1rem;                  /* Espace réduit sous le titre */
    padding-bottom: 0;
    font-weight: 600;                       /* Gras comme dans committee-grid-v3 */
}

/* Layout en deux colonnes */
.session-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.session-col {
    display: flex;
    flex-direction: column;
}

/* Liste des topics - espacement réduit */
.session-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0.2rem 0 1rem 0;
}

.tight-list {
    line-height: 1.2;          /* Réduit l'espace entre les lignes */
}

.tight-list li {
    margin-bottom: 3px;        /* Espace réduit entre les éléments de liste */
    padding-bottom: 3px;
    line-height: 1.2;
}

/* Paragraphes avec espacement réduit */
.tight-paragraph {
    margin-top: 0.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Comité - espacement réduit entre les lignes */
.tight-committee {
    margin-top: 0.2rem;
    line-height: 1.2;
}

.tight-committee p {
    margin-bottom: 3px;        /* Espace réduit entre les noms */
    padding-bottom: 3px;
    line-height: 1.2;
}

.tight-committee p:last-child {
    margin-bottom: 0;          /* Pas d'espace après le dernier nom */
}

/* Responsive design */
@media (max-width: 768px) {
    .session-two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .session-list {
        padding-left: 15px;
    }
    
    .tight-list li {
        margin-bottom: 2px;
        padding-bottom: 2px;
    }
    
    .tight-committee p {
        margin-bottom: 2px;
        padding-bottom: 2px;
    }
}
/* session 2 */
