/* 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;
}

/* 7. Responsive Design */
@media (max-width: 992px) {
    .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;
    }
}

