/* 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 .logo-text {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    line-height: 1.1;
}

.logo .logo-text:hover {
    color: var(--secondary-color);
}

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

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

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-color: var(--primary-color);
    background-image: linear-gradient(rgba(26, 82, 118, 0.85), rgba(26, 82, 118, 0.95)), url('../images/hero-bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 150px 0 90px;
}

.hero .edition {
    display: inline-block;
    background-color: rgba(243, 156, 18, 0.9);
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 8px 22px;
    border-radius: 30px;
    margin-bottom: 25px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Compte à rebours */
.countdown {
    margin-top: 40px;
    color: #fff;
    text-align: center;
}

.countdown-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.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;
}

.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;
}

.countdown-item .number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.countdown-item .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.countdown-status {
    margin-top: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

/* About Section */
.about p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

.about .lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
}

/* 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.4rem;
    margin-bottom: 15px;
}

/* Objectifs */
.objectifs ul {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.objectifs ul li {
    background-color: white;
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px 25px;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.objectifs ul li i {
    color: var(--accent-color);
    margin-right: 12px;
}

/* Axes / Thématiques */
.axes {
    background-color: #f1f8fe;
}

.axes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}

.axe-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 26px;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.25s ease;
}

.axe-card:hover {
    transform: translateY(-6px);
}

.axe-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    margin-bottom: 14px;
}

.axe-card h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.axe-card ul {
    list-style: none;
}

.axe-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.98rem;
}

.axe-card ul li:before {
    content: '\2022';
    color: var(--accent-color);
    font-weight: 700;
    position: absolute;
    left: 4px;
}

.axes-note {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0;
    font-style: italic;
    color: #555;
}

/* Calendrier */
.timeline {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 12px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 18px 22px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -34px;
    top: 24px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-item .date {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.timeline-item h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

/* Organisation / Comités */
.organisation {
    background-color: #f1f8fe;
}

.committee-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 50px 0 30px;
}

.committee-title:first-of-type {
    margin-top: 0;
}

.coordinator {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 6px solid var(--accent-color);
    padding: 24px 28px;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.coordinator h3 {
    margin-bottom: 6px;
}

.coordinator p {
    color: var(--secondary-color);
    font-style: italic;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}

.member-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
    padding: 14px 18px;
    border-left: 4px solid var(--secondary-color);
}

.member-card strong {
    display: block;
    color: var(--primary-color);
}

.member-card span {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}

.contact-card i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-card a {
    word-break: break-word;
}

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

.sponsors-note {
    text-align: center;
    color: #666;
    max-width: 760px;
    margin: 0 auto;
}

/* 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) {
    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        touch-action: manipulation;
    }

    nav ul {
        display: none;
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul.open {
        display: flex;
        position: fixed;
        right: 20px;
        top: 90px;
        background: white;
        padding: 18px 26px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        z-index: 1101;
        gap: 12px;
        max-width: 320px;
    }

    nav ul li a {
        display: block;
    }

    section {
        padding: 60px 0;
    }

    .event-info {
        flex-direction: column;
    }

    .info-item {
        margin: 10px 0;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(88px, 1fr));
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-item:before {
        left: -22px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 130px 0 70px;
    }

    .highlight-card, .contact-card {
        padding: 22px 16px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo, .footer-links, .footer-contact {
        width: 100%;
        margin-bottom: 30px;
    }

    .countdown-item {
        min-width: 92px;
        padding: 10px 12px;
    }

    .countdown-item .number {
        font-size: 1.7rem;
    }
}
