:root {
    --primary-color: #1a5276;
    --accent-color: #f39c12;
    --secondary-color: #6c757d;
    --dark-color: #09324a;
    --shadow: 0 10px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: white; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 40px; height: 40px; }
.logo-text h1 { margin: 0; font-size: 1.5rem; color: var(--primary-color); }
.logo-text p { margin: 0; color: var(--secondary-color); font-size: .9rem; }
header .container { display: flex; align-items: center; justify-content: space-between; }
nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 18px; }
nav a { text-decoration: none; color: #333; font-weight: 600; }
nav a:hover { color: var(--accent-color); }
.menu-toggle { display: none; }

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(26,82,118,.95), rgba(26,82,118,.80));
    color: white;
    text-align: center;
    padding: 100px 0 70px;
}
.hero h2 { margin: 0 0 12px; color: white; font-size: 2rem; }
.hero .event-info { display: flex; justify-content: center; gap: 20px; margin: 24px 0; }
.info-item { display: flex; align-items: center; gap: 8px; color: #eaf2f8; }
.btn { background: var(--accent-color); color: white; border: none; padding: 10px 18px; border-radius: 6px; cursor: pointer; font-weight: 700; }
.btn:hover { filter: brightness(1.05); }
.btn-small { padding: 6px 12px; font-size: .9rem; }

/* Sections */
section { padding: 60px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
h2 { margin: 0 0 10px; color: var(--primary-color); }

/* Speakers */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}
.act-card{background:#fff;border-radius:10px;box-shadow:var(--shadow);padding:14px}
.act-card h3{margin:0 0 6px;color:var(--primary-color);font-size:1.1rem}
.act-card .meta{color:var(--secondary-color);font-style:italic}
.act-card .actions{display:flex;gap:10px;margin-top:10px}
.act-card .full{display:none;white-space:pre-wrap;margin-top:8px}
.speaker-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease;
}
.speaker-card:hover { transform: translateY(-6px); }
.speaker-image { height: 240px; background: #ddd; display: flex; align-items: center; justify-content: center; }
.speaker-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speaker-card h3 { padding: 16px 16px 8px; margin: 0; font-size: 1.2rem; }
.speaker-title { padding: 0 16px 10px; color: var(--secondary-color); font-style: italic; }
.speaker-card p { padding: 0 16px 16px; margin: 0; }

/* Blur toggle (par défaut ON via .blur-on sur la section) */
.speakers.blur-on .speaker-image img { filter: blur(8px); transform: scale(1.05); }
.speakers.blur-on .speaker-card h3,
.speakers.blur-on .speaker-title,
.speakers.blur-on .speaker-card > p { filter: blur(5px); }

/* Sponsors */
.sponsors { background: white; }
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; align-items: center; }
.sponsor-logo { height: 80px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.sponsor-logo:hover { transform: scale(1.05); }

/* Footer */
footer { background: var(--dark-color); color: white; padding: 50px 0 20px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; margin-bottom: 24px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #adb5bd; text-decoration: none; }
.footer-links a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; color: #adb5bd; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; color: var(--primary-color); }
    nav ul { display: none; }
    nav ul.open { display: flex; flex-direction: column; gap: 12px; background: white; position: absolute; right: 20px; top: 70px; padding: 14px; border-radius: 8px; box-shadow: var(--shadow); }
}

.programme-hero {
    text-align: center;
    padding: 40px 0 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.programme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.programme-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.programme-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.programme-card .card-body {
    padding: 14px;
}

.programme-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.programme-card .actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.programme-card .actions a {
    text-decoration: none;
    color: white;
    background: var(--accent-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.pdf-viewer { background: white; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.pdf-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eee; background: #f8f9fa; }
.pdf-toolbar .btn { display: inline-flex; align-items: center; gap: 6px; }
.pdf-toolbar .spacer { flex: 1; }
.pdf-toolbar .page-info { color: var(--secondary-color); font-weight: 600; }
.pdf-canvas-wrapper { display: flex; align-items: center; justify-content: center; background: #fff; }
.pdf-canvas-wrapper canvas { max-width: 100%; height: auto; display: block; }
.pdf-note { padding: 12px 16px; color: var(--secondary-color); border-top: 1px solid #eee; background: #fafafa; }
.pdf-embed { width: 100%; min-height: 70vh; display: block; }
.pdf-toolbar .btn.disabled { opacity: .5; pointer-events: none; }

/* Supprimer tout flou sur les intervenants */
.speakers .speaker-image img {
    filter: none !important;
    transform: none !important;
}
.speakers .speaker-card h3,
.speakers .speaker-title,
.speakers .speaker-card > p {
    filter: none !important;
}

/* Neutraliser d’anciennes règles de flou si présentes */
.speakers.blur-on .speaker-image img { filter: none !important; transform: none !important; }
.speakers.blur-on .speaker-card h3,
.speakers.blur-on .speaker-title,
.speakers.blur-on .speaker-card > p { filter: none !important; }

/* Sponsors */
.sponsors { background: white; }
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; align-items: center; }
.sponsor-logo { height: 80px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.sponsor-logo:hover { transform: scale(1.05); }

/* Footer */
footer { background: var(--dark-color); color: white; padding: 50px 0 20px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; margin-bottom: 24px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #adb5bd; text-decoration: none; }
.footer-links a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; color: #adb5bd; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; color: var(--primary-color); }
    nav ul { display: none; }
    nav ul.open { display: flex; flex-direction: column; gap: 12px; background: white; position: absolute; right: 20px; top: 70px; padding: 14px; border-radius: 8px; box-shadow: var(--shadow); }
}

.programme-hero {
    text-align: center;
    padding: 40px 0 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.programme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.programme-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.programme-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.programme-card .card-body {
    padding: 14px;
}

.programme-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.programme-card .actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.programme-card .actions a {
    text-decoration: none;
    color: white;
    background: var(--accent-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
}

/* Galerie CIL-24 */
.gallery-hero {
    text-align: center;
    padding: 40px 0 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: zoom-in;
    transition: transform .2s ease;
}
.gallery-item:hover { transform: translateY(-4px); }

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    padding: 10px 12px;
    font-size: .95rem;
    color: var(--secondary-color);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lightbox.open { display: flex; }

.lightbox img {
    max-width: min(90vw, 1200px);
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

/* Compte à rebours */
.countdown {
    padding: 60px 20px;
    background: #0b1f33;
    color: #fff;
    text-align: center;
}
.countdown h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 16px;
    justify-items: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 12px;
}
.countdown-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px;
    min-width: 120px;
}
.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}
.countdown-item small {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    opacity: 0.9;
}
.countdown-note {
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.85;
}
#countdown-status {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .countdown-item {
        min-width: 100px;
    }
}
