/* Style général */
:root {
    --primary-color: #1a5276;
    --secondary-color: #2980b9;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    padding-top: 80px; /* Espace pour éviter que le header fixe ne cache le contenu */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: white;
}

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

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logo p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.9)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
}
.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-info {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    margin: 0 20px;
    font-size: 1.2rem;
}

.info-item i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    background-color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Highlights Section */
.highlights {
    background-color: #f1f8fe;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-card {
    background-color: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Speakers Section */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.speaker-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-image {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.speaker-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.speaker-title {
    padding: 0 20px 20px;
    color: var(--secondary-color);
    font-style: italic;
}

.speakers.brush-obscure .speaker-image { position: relative; overflow: hidden; background: #e9eaec; }
.speakers.brush-obscure .speaker-image img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px) contrast(1.1) brightness(.95) saturate(1.05); transform: scale(1.12); }
.speakers.brush-obscure h3,
.speakers.brush-obscure .speaker-title,
.speakers.brush-obscure .speaker-card > p { position: relative; color: transparent; }
.speakers.brush-obscure .speaker-image::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'><path d='M15,70 C60,20 120,45 165,65 C210,85 240,100 280,95 C320,90 355,70 385,60 L385,240 C345,235 305,225 265,215 C225,205 185,200 145,210 C105,220 65,240 25,230 Z' fill='%23f2f2f2'/><path d='M35,120 C80,90 120,115 155,140 C190,165 220,155 250,145 C280,135 315,125 365,105 L365,230 C325,220 285,210 245,205 C205,200 165,205 125,215 C85,225 60,230 40,220 Z' fill='%23ededed'/></svg>"); background-repeat: no-repeat; background-size: 100% 100%; opacity: 1; pointer-events: none; mix-blend-mode: normal; }
.speakers.brush-obscure .speaker-image::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' preserveAspectRatio='none'><defs><style><![CDATA[text{font-family:Arial,Segoe UI,Roboto,sans-serif;font-weight:800}]]></style></defs><rect x='0' y='0' width='400' height='260' fill='none'/><path d='M25,60 C70,40 120,60 160,90 C200,120 235,110 270,100 C305,90 335,80 370,70 L370,210 C330,205 290,198 250,195 C210,192 170,195 130,205 C90,215 60,220 30,210 Z' fill='%23e6e6e6'/><text x='50%' y='52%' text-anchor='middle' dominant-baseline='middle' font-size='64' fill='%23f39c12'>CIL25</text></svg>"); background-repeat: no-repeat; background-size: 100% 100%; opacity: 1; pointer-events: none; mix-blend-mode: normal; }
.speakers.brush-obscure h3::after,
.speakers.brush-obscure .speaker-title::after,
.speakers.brush-obscure .speaker-card > p::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); height: 1.2em; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23f3f3f3'/><stop offset='1' stop-color='%23eaeaea'/></linearGradient></defs><path d='M10,20 C40,5 80,10 120,20 C160,30 200,40 250,30 C300,20 350,25 390,15 L390,85 C350,75 300,80 250,70 C200,60 160,55 120,65 C80,75 40,90 10,80 Z' fill='url(%23g)'/></svg>"); background-repeat: no-repeat; background-size: 100% 100%; opacity: .9; pointer-events: none; }

/* Sponsors Section */
.sponsors {
    background-color: white;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
}

.sponsor-logo {
    height: 100px;
    padding: 8px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(26, 82, 118, 0.9), rgba(26, 82, 118, 0.9)), url('../images/cta-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #adb5bd;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 20px;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1102;
    }
    
    nav {
        display: none;
    }
    
    nav.active {
        display: block !important;
        position: fixed;
        right: 20px;
        top: 80px;
        background: white;
        padding: 14px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        z-index: 1101;
        max-width: 320px;
        width: auto;
    }
    nav.active ul {
        flex-direction: column;
        gap: 12px;
    }
    nav ul.open {
        display: flex !important;
        position: fixed;
        right: 20px;
        top: 80px;
        background: white;
        padding: 14px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        z-index: 1101;
        flex-direction: column;
        gap: 12px;
        max-width: 320px;
        width: auto;
    }
    .menu-toggle { touch-action: manipulation; }
    nav ul li a { display: block; }
}
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .event-info {
        flex-direction: column;
    }
    
    .info-item {
        margin: 10px 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .stat-item, .highlight-card, .speaker-card {
        padding: 20px 15px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 992px) {
  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Compte à rebours ergonomique dans le hero */
.hero #countdown.countdown {
    margin-top: 16px;
    color: #fff;
    text-align: center;
}
.hero .countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(88px, 1fr));
    gap: 14px;
    justify-items: center;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
}
.hero .countdown-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 110px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: saturate(1.05) blur(2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero .countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    background: rgba(0, 0, 0, 0.42);
}
.hero .countdown-item span {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums lining-nums;
}
.hero .countdown-item small {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}
.hero .countdown-note {
    margin-top: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}
.hero #countdown-status {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .hero .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 460px;
    }
    .hero .countdown-item {
        min-width: 100px;
        padding: 12px;
    }
    .hero .countdown-item span {
        font-size: 1.9rem;
    }
    .hero .countdown-item small {
        font-size: 0.85rem;
    }
}
}

/* Event info (pour cohérence visuelle à côté du countdown) */
.event-info {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.info-item {
    display: flex;
    align-items: center;
    margin: 0 20px;
    font-size: 1.2rem;
}
.info-item i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--accent-color);
}
}

/* Lecteur PDF — page argumentaire */
.pdf-section {
    padding: 60px 0 80px;
    background: #f6f8fb;
}
.pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.pdf-toolbar .btn,
.pdf-toolbar .btn-outline {
    padding: 8px 12px;
    font-size: 0.95rem;
}
.pdf-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}
#pdf-page-num {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.pdf-zoom {
    display: flex;
    gap: 8px;
}
.pdf-viewer {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
}
.pdf-canvas-wrapper {
    position: relative;
    overflow: auto;
    max-height: 78vh;
    background: repeating-linear-gradient(
        45deg,
        #fafafa,
        #fafafa 10px,
        #f5f5f5 10px,
        #f5f5f5 20px
    );
}
#pdf-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    background: #fff;
    border-radius: 8px;
}
.pdf-status {
    margin-top: 10px;
    text-align: center;
    color: var(--dark-color);
    font-weight: 600;
}
.pdf-fallback {
    margin-top: 10px;
    text-align: center;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .pdf-pages { justify-content: center; }
    .pdf-zoom { justify-content: center; }
    #pdf-page-num { width: 70px; }
}
}
