:root {
    --primary-color: #2ecc71;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --bg-light: #f8fafd;
    --bg-white: #fff;
    --text-color: #222;
    --text-secondary: #3498db;

    /* Points de rupture principaux */
    --desktop-large: 1200px;
    --desktop: 992px;
    --tablet: 768px;
    --mobile: 576px;
}

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

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-light);
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Conteneur principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

/* Header */
.main-header {
    background: linear-gradient(120deg, var(--primary-color) 60%, var(--secondary-color) 100%);
    color: white;
    height: 85vh;           /* Augmenté de 70vh à 85vh */
    min-height: 500px;      /* Augmenté de 420px à 500px */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(52,152,219,0.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 2rem; }

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;  /* Augmenté de 1rem à 1.2rem */
    font-weight: 500;   /* Ajout d'un peu de gras */
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--secondary-color); }

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 .year {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Buttons */
.cta-button {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button-large {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.cta-button:hover,
.cta-button-large:hover {
    background-color: var(--secondary-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.secondary-button {
    background-color: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 2px solid white;
}

.secondary-button:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Style pour l'option 1 - Bouton amélioré */
.download-program-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.download-program-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-program-btn:hover:before {
    left: 100%;
}

.download-program-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    border-color: rgba(255,255,255,0.3);
}

/* Style pour l'option 2 - Bannière */
.resume-alert-banner {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    animation: slideInDown 0.8s ease-out;
}

.alert-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.alert-resume-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-resume-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    color: white;
}

/* Sections */
.section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
}

.section { padding: 5rem 0; background: var(--bg-white); }
.section h2 { text-align: center; margin-bottom: 3rem; color: var(--dark-color); }
#team h2, #sponsors h2 {
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(46,204,113,0.07);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.mission-title {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Objectives Section */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.objective-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.objective-card:hover {
    transform: translateY(-5px);
}

/* Objectifs - Taille fixe pour les images */
.objective-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.objective-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Themes Section */
#themes {
    position: relative;
    padding: 5rem 0;
    color: var(--text-color); /* Changé de white à var(--text-color) */
    overflow: hidden;
}

#themes > .container > h2 {
    position: relative;
    z-index: 2;
    color: var(--text-color); /* Changé de var(--primary-color) à var(--text-color) pour le noir */
    text-align: center;
    font-size: 4rem; /* Augmenté de 3.5rem à 4rem */
    margin-bottom: 4rem;
    font-weight: 700; /* Augmenté de 600 à 700 pour plus d'impact */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Themes grid layout */
.themes-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
}

/* Center last card when alone on a row */
.themes-grid::after {
    content: '';
    grid-column: 1/-1;
}

.theme-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    border: 1.5px solid var(--secondary-color);
    box-shadow: 0 4px 16px rgba(52,152,219,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 350px;
    margin: 0 auto; /* Centre chaque carte */
}

/* Force center alignment for the last card */
.themes-grid > :last-child {
    grid-column: 1/-1;
    justify-self: center;
    margin: 0 auto;
}

/* Style des cartes */
.theme-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85); /* Background plus transparent */
    backdrop-filter: blur(5px); /* Effet verre dépoli */
    border-radius: 16px;
    border: 1.5px solid var(--secondary-color);
    box-shadow: 0 4px 16px rgba(52,152,219,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 2rem;
    text-align: center;
    max-width: 350px;
    margin: 0 auto;
}

.theme-card h2 {
    color: var(--primary-color); /* Texte en vert */
    margin: 1rem 0;
}

.theme-card p {
    color: var(--text-color); /* Texte en couleur standard */
}

.theme-card i {
    color: var(--secondary-color); /* Icônes en bleu */
}

/* Background vidéo avec filtre */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Audience Section */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Footer */
.main-footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}
.main-footer p { color: white; opacity: 0.9; margin: 0; }

/* Logo Styles */
.logo { display: flex; align-items: center; }
.logo-img { max-height: 60px; width: auto; object-fit: contain; }

/* Program Section */
#program {
    background: var(--bg-light);
    color: var(--text-color);
}

.program-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.program-day {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 3rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.day-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
}

.time-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-block i {
    font-size: 1.5rem;
}

.event-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.event-content:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.event-content h4 {
    color: #3498db;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.location {
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.event-schedule {
    list-style: none;
    padding: 0;
}

.event-schedule li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.event-schedule li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.speakers {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.speakers h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speakers p {
    color: #3498db;
    opacity: 0.9;
}

/* Add smooth scrolling for program navigation */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .about-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .themes-grid { grid-template-columns: 1fr; padding: 0 1rem; }
    #themes { padding: 3rem 0; }
    .logo-img { max-height: 50px; }
    .program-day { padding: 1rem; }
    .timeline { padding-left: 1rem; }
}

/* Desktop Large (1200px et plus) - Configuration par défaut */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop (992px - 1199px) */
@media screen and (max-width: 1200px) {
    html {
        font-size: 95%;
    }

    .container {
        max-width: 960px;
    }

    .team-grid,
    .sponsor-grid,
    .objective-grid {
        gap: 1.5rem;
    }
}

/* Tablet (768px - 991px) */
@media screen and (max-width: 992px) {
    html {
        font-size: 90%;
    }

    .container {
        max-width: 720px;
    }

    .team-grid,
    .sponsor-grid,
    .objective-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .main-header {
        height: 60vh;
    }

    .navbar {
        padding: 1rem;
    }
}

/* Mobile Large (576px - 767px) */
@media screen and (max-width: 768px) {
    html {
        font-size: 85%;
    }

    .container {
        max-width: 540px;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .team-grid,
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .objective-grid {
        grid-template-columns: 1fr;
    }

    .navbar .nav-links {
        display: none; /* Prévoir un menu burger */
    }
}

/* Mobile (575px et moins) */
@media screen and (max-width: 576px) {
    html {
        font-size: 80%;
    }

    .container {
        padding: 0 10px;
    }

    .team-grid,
    .sponsor-grid {
        grid-template-columns: 1fr;
    }

    .main-header {
        height: 50vh;
    }

    .mission-content {
        padding: 1.5rem;
    }
}

/* Team Section */
.team-category { margin-bottom: 4rem; }
.team-category h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;      /* Ajouté pour centrer le titre */
    width: 100%;             /* S'assure que le centrage fonctionne */
    margin-left: auto;
    margin-right: auto;
}
.team-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Toutes les cartes ont la même hauteur dans une rangée */
}

.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Si vous préférez que chaque carte ait sa propre hauteur */
.team-grid.flexible-height {
    align-items: start;
}

.team-grid.flexible-height .team-card {
    justify-content: flex-start;
}
.member-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.team-card:hover .member-image img { transform: scale(1.05); }
.member-info {
    flex: 1 1 auto;
    width: 100%;
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(200, 200, 200, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.member-info h4, .member-info .position {
    color: var(--secondary-color);
}
.member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.member-info .position {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Section Sponsors */
#sponsors {
    background: var(--bg-white);
    padding: 5rem 0;
}
#sponsors h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    justify-items: center;
}
.sponsor-item {
    background: rgba(46, 204, 113, 0.13); /* vert clair, non flashy */
    border: 1.5px solid var(--primary-color);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(52,152,219,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
    min-width: 170px;
    min-height: 170px;
    max-width: 200px;
    max-height: 200px;
    padding: 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.sponsor-item:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 32px rgba(46,204,113,0.15);
    background: rgba(46, 204, 113, 0.18);
}
.sponsor-item img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
    .sponsor-item { width: 160px; height: 100px; }
}

/* Program Table Styles */
.program-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.program-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(52,152,219,0.07);
  border-radius: 12px;
  overflow: hidden;
}
.program-table th, .program-table td {
  border: 1px solid var(--secondary-color);
  padding: 12px 10px;
  vertical-align: top;
  font-size: 1em;
}
.program-table .day-header th {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
  color: #fff;
  text-align: left;
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 1px;
  border: none;
}
.program-table .break td {
  background-color: #eafaf1;
  color: var(--primary-color);
  text-align: center;
  font-weight: bold;
  border: none;
}
.program-table .location {
  display: block;
  font-size: 0.95em;
  color: var(--secondary-color);
  margin-top: 5px;
  font-weight: 500;
}
.program-table .time {
  width: 15%;
  background-color: #f8fafd;
  color: var(--primary-color);
  font-weight: bold;
  border-right: 2px solid var(--secondary-color);
}
.program-table .names {
    min-width: 200px;
    font-size: 0.9em;
    color: var(--text-color);
    padding: 10px;
    border-left: 1px solid #ddd;
}
.program-table .names br {
    margin: 5px 0;
}
.program-table strong { color: var(--secondary-color); }
@media (max-width: 900px) {
  .program-table th, .program-table td { font-size: 0.95em; padding: 8px 5px; }
  .program-table .time, .program-table .names { width: auto; min-width: 120px; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Style spécifique pour la page de confirmation */
.confirmation-container {
    animation: fadeInUp 1s ease;
}

.success-icon {
    animation: bounceIn 1s ease;
}

.info-box {
    animation: fadeIn 1s ease 0.5s both;
}

/* Timeline - Amélioration de la lisibilité */
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.timeline-item.evening .time-block i {
    color: #4b0082;
}

.timeline-item.full-day .time-block i {
    color: #20b2aa;
}

.fas.fa-building,
.fas.fa-camera {
    font-size: 1.2rem;
}

.fas.fa-glass-cheers {
    color: #ff69b4;
}

/* Add animation for full day events */
.timeline-item.full-day .event-content {
    border-left: 4px solid var(--primary-color);
}

/* Enhance hover effects */
.timeline-item.full-day:hover .event-content,
.timeline-item.evening:hover .event-content {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

/* Section Équipe - Améliorations visuelles */
.team-category {
    margin-bottom: 4rem;
}

.team-category h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;      /* Ajouté pour centrer le titre */
    width: 100%;             /* S'assure que le centrage fonctionne */
    margin-left: auto;
    margin-right: auto;
}

.team-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Toutes les cartes ont la même hauteur dans une rangée */
}

.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Si vous préférez que chaque carte ait sa propre hauteur */
.team-grid.flexible-height {
    align-items: start;
}

.team-grid.flexible-height .team-card {
    justify-content: flex-start;
}
.member-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.team-card:hover .member-image img { transform: scale(1.05); }
.member-info {
    flex: 1 1 auto;
    width: 100%;
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(200, 200, 200, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.member-info h4, .member-info .position {
    color: var(--secondary-color);
}
.member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.member-info .position {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Section UNESCO */
.unesco-bg {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 5rem 0;
    background: none;
}

.unesco-bg-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    width: max-content;
    animation: unesco-scroll 40s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.unesco-bg-slider img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    flex-shrink: 0;
    filter: blur(1px) grayscale(20%);
    transition: opacity 0.5s;
}

/* Animation dynamique selon le nombre d’images */
@keyframes unesco-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contenu UNESCO au-dessus du slider */
.unesco-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    background: rgba(52,152,219,0.55);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(46,204,113,0.10);
    backdrop-filter: blur(2px);
}

.unesco-content h2 { color: #fff; margin-bottom: 2rem; }
.unesco-content p { font-size: 1.2rem; line-height: 1.8; color: #fff; }
@media (max-width: 768px) {
    .unesco-content { padding: 1.2rem 0.5rem; }
    .unesco-bg-slider img { width: 100vw; }
}

/* Program Table Styles */
.program-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.program-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(52,152,219,0.07);
  border-radius: 12px;
  overflow: hidden;
}
.program-table th, .program-table td {
  border: 1px solid var(--secondary-color);
  padding: 12px 10px;
  vertical-align: top;
  font-size: 1em;
}
.program-table .day-header th {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
  color: #fff;
  text-align: left;
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 1px;
  border: none;
}
.program-table .break td {
  background-color: #eafaf1;
  color: var(--primary-color);
  text-align: center;
  font-weight: bold;
  border: none;
}
.program-table .location {
  display: block;
  font-size: 0.95em;
  color: var(--secondary-color);
  margin-top: 5px;
  font-weight: 500;
}
.program-table .time {
  width: 15%;
  background-color: #f8fafd;
  color: var(--primary-color);
  font-weight: bold;
  border-right: 2px solid var(--secondary-color);
}
.program-table .names {
    min-width: 200px;
    font-size: 0.9em;
    color: var(--text-color);
    padding: 10px;
    border-left: 1px solid #ddd;
}
.program-table .names br {
    margin: 5px 0;
}
.program-table strong { color: var(--secondary-color); }
@media (max-width: 900px) {
  .program-table th, .program-table td { font-size: 0.95em; padding: 8px 5px; }
  .program-table .time, .program-table .names { width: auto; min-width: 120px; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Style spécifique pour la page de confirmation */
.confirmation-container {
    animation: fadeInUp 1s ease;
}

.success-icon {
    animation: bounceIn 1s ease;
}

.info-box {
    animation: fadeIn 1s ease 0.5s both;
}

/* Timeline - Amélioration de la lisibilité */
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.timeline-item.evening .time-block i {
    color: #4b0082;
}

.timeline-item.full-day .time-block i {
    color: #20b2aa;
}

.fas.fa-building,
.fas.fa-camera {
    font-size: 1.2rem;
}

.fas.fa-glass-cheers {
    color: #ff69b4;
}

/* Add animation for full day events */
.timeline-item.full-day .event-content {
    border-left: 4px solid var(--primary-color);
}

/* Enhance hover effects */
.timeline-item.full-day:hover .event-content,
.timeline-item.evening:hover .event-content {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

/* Section Équipe - Améliorations visuelles */
.team-category {
    margin-bottom: 4rem;
}

.team-category h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;      /* Ajouté pour centrer le titre */
    width: 100%;             /* S'assure que le centrage fonctionne */
    margin-left: auto;
    margin-right: auto;
}

.team-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Toutes les cartes ont la même hauteur dans une rangée */
}

.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Si vous préférez que chaque carte ait sa propre hauteur */
.team-grid.flexible-height {
    align-items: start;
}

.team-grid.flexible-height .team-card {
    justify-content: flex-start;
}
.member-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.team-card:hover .member-image img { transform: scale(1.05); }
/* Cartes d'équipe cliquables */
.team-card.presentation-available {
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-card.presentation-available:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    border: 2px solid var(--primary-color);
}

/* Indicateur de présentation */
.presentation-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.presentation-indicator:not(.unavailable) {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.presentation-indicator.unavailable {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.team-card.presentation-available:hover .presentation-indicator {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.05);
}

/* Animation pour l'icône PDF */
.presentation-indicator i {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Overlay de chargement PDF */
/* ...existing code... */

/* Modal PDF simplifié */
.pdf-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pdf-preview {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.pdf-preview:hover {
    border-color: #e74c3c;
    background: #fff !important;
}

.pdf-modal {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.pdf-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.pdf-modal .close-btn:hover {
    background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-modal {
        max-width: 90vw;
        padding: 1.5rem;
    }
    
    .pdf-options {
        flex-direction: column;
        align-items: center;
    }
    
    .pdf-options .cta-button {
        width: 200px;
        text-align: center;
    }
}

/* ...existing code... */
.pdf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.pdf-modal {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pdf-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.pdf-modal .close-btn:hover {
    background: #c0392b;
}

.pdf-modal iframe {
    width: 80vw;
    height: 70vh;
    border: none;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-modal iframe {
        width: 85vw;
        height: 60vh;
    }
    
    .presentation-indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
.member-info {
    flex: 1 1 auto;
    width: 100%;
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(200, 200, 200, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.member-info h4, .member-info .position {
    color: var(--secondary-color);
}
.member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.member-info .position {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Gallery Section */
#gallery {
    background: var(--bg-light);
    padding: 5rem 0;
}

#gallery h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

/* Galerie - Photos simplifiée */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Ajouter ces propriétés pour améliorer la qualité */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: crisp-edges;
}

/* Tabs de navigation */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-tab {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tab.active,
.gallery-tab:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-tab {
        padding: 0.6rem 1.5rem;
        width: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Regrouper toutes les media queries à la fin du fichier */
@media screen and (max-width: 1200px) {
    html {
        font-size: 95%;
    }

    .container {
        max-width: 960px;
    }

    .team-grid,
    .sponsor-grid,
    .objective-grid {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 90%;
    }

    .container {
        max-width: 720px;
    }

    .team-grid,
    .sponsor-grid,
    .objective-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .main-header {
        height: 60vh;
    }

    .navbar {
        padding: 1rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 85%;
    }

    .container {
        max-width: 540px;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .team-grid,
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .objective-grid {
        grid-template-columns: 1fr;
    }

    .navbar .nav-links {
        display: none; /* Prévoir un menu burger */
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 80%;
    }

    .container {
        padding: 0 10px;
    }

    .team-grid,
    .sponsor-grid {
        grid-template-columns: 1fr;
    }

    .main-header {
        height: 50vh;
    }

    .mission-content {
        padding: 1.5rem;
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 32px;
    z-index: 999;
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(52,152,219,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.3s;
    font-size: 1.5rem;
}
#backToTop:hover {
    background: var(--secondary-color);
}
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

.mission-bg {
    max-width: 850px;
    margin: 0 auto 2rem auto;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(46,204,113,0.07);
    padding: 2rem 2rem;
    background: 
        linear-gradient(rgba(234,250,241,0.70), rgba(134, 136, 135,0.70)),
        url('../images/mission-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
.mission-content {
    position: relative;
    z-index: 2;
}

.mission-bg-fullwidth {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.mission-bg-fullwidth .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mission-content {
    max-width: 850px;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(46,204,113,0.07);
    background: rgba(255,255,255,0.60); /* Opacité réduite pour plus de transparence */
    padding: 2rem 2rem;
    position: relative;
    z-index: 2;
}

#program .cta-button {
    display: block;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-unesco {
    width: 150px;  /* Au lieu de 150px */
    height:150px; /* Au lieu de 150px */
    object-fit: contain;
    border-left: 1px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ajustement responsive pour le header */
@media screen and (max-width: 992px) {
    .main-header {
        height: 75vh;
        min-height: 450px;
    }
}

@media screen and (max-width: 768px) {
    .main-header {
        height: 65vh;
        min-height: 400px;
    }
}

/* Nouveau styles pour la section Thèmes */
.theme-section {
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.themes-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Retour à la disposition flexible */
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.names strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* Style pour l'option 3 - Bouton flottant - CORRIGER VERSION MOBILE */
.floating-resume-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.floating-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    min-width: fit-content; /* S'assurer que le bouton ne se compresse pas */
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.5);
    border-color: rgba(255,255,255,0.3);
    color: white !important;
    text-decoration: none;
}

/* Animation d'apparition depuis la gauche */
.floating-resume-button.loaded {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive - CORRIGER pour garder le texte visible */
@media (max-width: 768px) {
    .floating-resume-button {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-btn {
        padding: 0.7rem 1rem; /* Réduire légèrement le padding */
        font-size: 0.85rem; /* Réduire la taille de police */
        gap: 0.3rem; /* Réduire l'espace entre icône et texte */
    }
    
    .floating-btn i {
        font-size: 0.9rem; /* Réduire légèrement l'icône */
    }
}

/* Pour les très petits écrans (320px et moins) */
@media (max-width: 320px) {
    .floating-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .floating-btn span {
        font-size: 0.75rem; /* Texte plus petit mais toujours visible */
    }
}

/* Conteneur des boutons flottants */
.floating-buttons-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    min-width: fit-content;
}

/* Style spécifique pour le bouton galerie */
.floating-gallery-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.floating-gallery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
    border-color: rgba(255,255,255,0.3);
    color: white !important;
    text-decoration: none;
}

/* Style pour le bouton résumés (garde l'ancien style) */
.floating-resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.5);
    border-color: rgba(255,255,255,0.3);
    color: white !important;
    text-decoration: none;
}

/* Animation d'apparition */
.floating-buttons-container.loaded {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-buttons-container {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }
    
    .floating-btn i {
        font-size: 0.9rem;
    }
}

/* Supprimer l'ancien CSS du bouton flottant simple */
/* .floating-resume-button { ... } - SUPPRIMER */

/* Ajouter ces règles globales pour les images */
.gallery-grid img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}