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

@font-face {
    font-family: "poppins";
    src: url(./fonts/poppins/Poppins-Regular.ttf);
    font-display: swap;
}
@font-face {
    font-family: "poppins-Bold";
    src: url(./fonts/poppins/Poppins-Bold.ttf);
    font-display: swap;
}
@font-face {
    font-family: "ubuntu";
    src: url(./fonts/Ubuntu/Ubuntu-Regular.ttf);
    font-display: swap;
}
@font-face {
    font-family: "ubuntu-Bold";
    src: url(./fonts/Ubuntu/Ubuntu-Bold.ttf);
    font-display: swap;
}

body {
    font-family: "poppins", BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
        sans-serif;
    background-color: #ffffff;
    color: #011627;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: "ubuntu", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h3 {
    color: #555555;
}
a {
    color: gray;
}
a:hover {
    text-decoration: none;
}

/* Header Styles */
.header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    width: 100%;
    top: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    animation: headerFadeIn 0.8s ease forwards;
}

@keyframes headerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 70px;
}

.logo-text {
    font-size: 24px;
    font-weight: 300;
    color: #666;
}

.logo-text span {
    font-weight: 700;
    color: #333;
}

/* Hero Section */
.hero {
    background: url(./img/bg-home.webp) center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.hero-content {
    text-align: left;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 950px;
    padding: 0 20px;
    margin-top: -6rem;
}

.hero h1 {
    font-size: 48px; /* Taille de police spécifiée explicitement pour éviter l'avertissement d'API déconseillée */
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: black;
    text-align: left;
}

.hero span {
    color: #5fd6fd;
    font-size: 1.4rem;
}

/* Text reveal animation for H1 */
.hero-word {
    display: inline-block;
    margin-right: 0.3em;
    will-change: transform, opacity, filter;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-word:not(.revealed) {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px) scale(0.9);
}

.hero-word.revealed {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
}

.hero-bubble {
    position: absolute;
    bottom: 50px;
    right: 50%;
    transform: translateX(50%);
    width: 300px;
    height: 300px;
}

/* Section animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for elements */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Special animation for number figures */
.figure-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.figure-item.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Partners Logo Strip */
.partners-strip {
    background-color: white;
    padding: 40px 0;
}

.section-title {
    background: linear-gradient(135deg, #f18849 0%, #f8ae42 100%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 15px 40px;
    margin: 0 auto 30px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: white;
    border-radius: 1rem;
    max-width: 1030px;
    margin-inline: auto;
    margin-top: 6rem;
    padding: 2rem 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.partner-logo {
    height: 150px;
    transition: opacity 0.3s;
}

/* Style pour les icônes de papier */
.paper-icon {
    width: auto;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

/* What is Section */
.what-is-section {
    background-color: white;
    padding: 80px 0;
}

.what-is-section h2 {
    color: #1cae59;
    font-size: 36px;
    margin-bottom: 30px;
}

.what-is-section p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.what-is-section strong {
    font-weight: 600;
}

/* Project Figures */
.project-figures {
    padding: 60px 20px;
    text-align: center;
}

.figures-container {
    background-color: #4ecdc4;
    border-radius: 20px;
    padding: 20px 40px;
    max-width: 1100px;
    margin: 0 auto;
    color: white;
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.figure-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    color: white;
}

.figure-item p {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
}

.resources-section h2 {
    color: #1cae59;
    font-size: 36px;
    margin-bottom: 40px;
}

.resources-section h3 {
    color: #333;
    font-size: 28px;
    margin: 40px 0 30px;
}

/* Resources Board Section */
.resources-board-section {
    padding: 80px 0;
    /* background-color: #f9f9f9; */
}

.resources-board-section h3 {
    color: #333;
    font-size: 28px;
    margin: 40px 0 30px;
}

/* Work Packages */
.wp-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background-color: #fdf2ec;
    border-radius: 10px;
    overflow: hidden;
    flex-wrap: wrap;
}

.wp-tab {
    flex: 1;
    padding: 15px 20px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #f18849e9;
    min-width: 120px;
    text-align: center;
}

.wp-tab.active {
    background-color: #f18849e9;
    color: white;
}

.wp-content {
    background-color: #f18849e9;
    padding: 40px 5rem;
    border-radius: 10px;
    color: white;
}

.wp-content h4 {
    font-size: 24px;
    margin-bottom: 20px;
}

.wp-content p {
    font-size: 16px;
    line-height: 1.6;
}

.wp-content a {
    color: white;
    text-decoration: underline;
    opacity: 0.8;

    transition: opacity 0.3s;
}

.wp-content a:hover {
    opacity: 1;
    text-decoration: none;
}

/* Board Tabs */
.board-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background-color: #fdf2ec;
    border-radius: 10px;
    overflow: hidden;
    flex-wrap: wrap;
}

.board-tab {
    flex: 1;
    padding: 15px 20px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #f18849e9;
    min-width: 120px;
    text-align: center;
}

.board-tab.active {
    background-color: #f18849e9;
    color: white;
}

.board-content {
    background-color: #f18849e9;
    padding: 40px 5rem;
    border-radius: 10px;
    color: white;
}

.board-members ul {
    padding: 0;
    margin: 0;
}

.board-members li {
    padding: 6px 0;
    line-height: 1.6;
}

.board-members li:last-child {
    border-bottom: none;
}

.board-members strong {
    color: white;
    font-weight: 600;
}

/* End User Group Organizations Layout */
.eug-organizations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.eug-column ul {
    list-style: inside;
    padding: 0;
    margin: 0;
}

.eug-column li {
    padding: 8px 0;
    line-height: 1.6;
}

/* Background Papers */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.paper-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.paper-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.paper-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.paper-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.paper-card small {
    font-size: 12px;
    color: #999;
}

/* Media Section */
.media-section {
    background-color: white;
    padding: 80px 0;
}

.media-section h2 {
    color: #1cae59;
    font-size: 36px;
    margin-bottom: 40px;
}

.media-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.media-btn {
    background: linear-gradient(0deg, #1cae59 0%, #4ecdc4 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.media-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(28, 174, 89, 0.3);
    background: linear-gradient(135deg, #4ecdc4 0%, #4ecdc4 100%);
}

/* Videos Section */
.videos-section h2 {
    color: #1cae59;
    font-size: 36px;
    margin-bottom: 40px;
}

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

.video-card {
    padding-inline: 5px;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: url(./img/video-bg.webp) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button::after {
    content: "▶";
    font-size: 24px;
    color: #333;
    margin-left: 5px;
}

.video-info {
    padding: 20px;
    background-color: white;
}

.video-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.cookie-btn:hover {
    opacity: 0.8;
}

.cookie-accept {
    background-color: #1cae59;
    color: white;
}

.cookie-decline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* Video blocked state */
.video-blocked {
    background-color: #f0f0f0;
    padding: 40px;
    text-align: center;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-blocked p {
    color: #666;
    margin-bottom: 20px;
}

.enable-cookies-btn {
    background-color: #1cae59;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

/* About METIS Section */
.about-metis-section {
    padding: 80px 0;
}

.about-metis-section h2 {
    text-align: center;
    font-size: 3rem;
    color: #575856;
    margin-bottom: 60px;
    font-weight: bold;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.about-text h3 {
    color: #f18849e9;
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.eu-funding-box {
    background-color: #f1884921;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.eu-funding-box img {
    width: 100px;
    margin-bottom: 20px;
}

.eu-funding-box p {
    font-size: 14px;
    line-height: 27px;
    color: #666;
}

.about-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-image img {
    width: 100%;
    border-radius: 10px;
    max-width: 420px;
}

.coordinator-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .about-content,
    .about-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-metis-section h2 {
        font-size: 36px;
    }

    .about-text h3 {
        font-size: 20px;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 80%,
            rgba(28, 174, 89, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(78, 205, 196, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #1cae59 0%, #4ecdc4 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.contact-icon::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #1cae59 0%, #4ecdc4 100%);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(8px);
}

.contact-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-family: "ubuntu-Bold", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.contact-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1cae59 0%, #4ecdc4 100%);
    color: white;
    text-decoration: none;
    padding: 18px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(28, 174, 89, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(28, 174, 89, 0.4);
    text-decoration: none;
    color: white;
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover svg {
    transform: translateX(4px);
}

/* Footer */
.footer {
    background-color: #f18849e9;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

.footer a {
    color: white;
    text-decoration: underline;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.team-image {
    text-align: center;
}

/* Enhanced Responsive */
@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        padding: 15px 0;
    }

    .logo {
        flex-wrap: wrap;
        font-size: 20px;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    /* Hero Mobile */
    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: 1px;
        line-height: 1.3;
    }

    .hero-word {
        margin-right: 0.2em;
    }

    .hero-bubble {
        width: 200px;
        height: 200px;
        bottom: 30px;
    }

    /* Partners Mobile */
    .partners-strip {
        padding: 30px 0;
    }

    .partners-logos {
        gap: 20px;
        padding: 0 10px;
    }

    .partner-logo {
        height: 35px;
        min-height: 100px;
    }

    /* Sections Mobile */
    .what-is-section,
    .resources-section,
    .media-section {
        padding: 50px 0;
    }

    .what-is-section h2,
    .resources-section h2,
    .media-section h2,
    .videos-section h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .what-is-section p {
        font-size: 15px;
        text-align: left;
    }

    /* Project Figures Mobile */
    .project-figures {
        padding: 40px 15px;
    }

    .figures-container {
        padding: 40px 20px;
        border-radius: 15px;
    }

    .figures-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .figure-item h3 {
        font-size: 36px;
    }

    .figure-item p {
        font-size: 16px;
    }

    /* Work Packages Mobile */
    .wp-tabs {
        flex-direction: column;
        border-radius: 8px;
    }

    .wp-tab {
        padding: 12px 15px;
        font-size: 14px;
        border-bottom: 1px solid rgba(241, 136, 73, 0.2);
        text-align: center;
    }

    .wp-tab:last-child {
        border-bottom: none;
    }

    .wp-content {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .wp-content h4 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .wp-content p {
        font-size: 14px;
    }

    /* Board Tabs Mobile */
    .board-tabs {
        flex-direction: column;
        border-radius: 8px;
    }

    .board-tab {
        padding: 12px 15px;
        font-size: 14px;
        border-bottom: 1px solid rgba(241, 136, 73, 0.2);
        text-align: center;
    }

    .board-tab:last-child {
        border-bottom: none;
    }

    .board-content {
        padding: 25px 20px;
        border-radius: 8px;
    }

    /* End User Group Mobile */
    .eug-organizations {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Papers Grid Mobile */
    .papers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .paper-card {
        padding: 25px;
    }

    /* Media Buttons Mobile */
    .media-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .media-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 30px;
        font-size: 15px;
    }

    /* Videos Mobile */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-card {
        max-width: 100%;
    }

    /* Cookie Banner Mobile */
    .cookie-banner {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .cookie-text {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    /* Contact Section Mobile */
    .contact-section {
        padding: 60px 0;
    }

    .contact-card {
        margin: 0 20px;
        padding: 40px 30px;
        border-radius: 20px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 25px;
    }

    .contact-card h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .contact-card p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .contact-btn {
        padding: 16px 28px;
        font-size: 0.95rem;
        gap: 10px;
    }

    /* Footer Mobile */
    .footer {
        padding: 30px 20px;
    }

    .footer p {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* Tablet Responsive for Work Packages */
@media (max-width: 1024px) {
    .wp-tabs {
        flex-wrap: wrap;
    }

    .wp-tab {
        flex: 1 1 calc(50% - 2px);
        min-width: 140px;
        font-size: 15px;
        padding: 12px 15px;
    }

    /* Board Tabs Tablet */
    .board-tabs {
        flex-wrap: wrap;
    }

    .board-tab {
        flex: 1 1 calc(50% - 2px);
        min-width: 140px;
        font-size: 15px;
        padding: 12px 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .wp-tab {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 100px;
    }

    .container {
        padding: 0 15px;
    }

    .what-is-section h2,
    .resources-section h2,
    .media-section h2,
    .videos-section h2 {
        font-size: 24px;
    }

    .resources-section h3 {
        font-size: 22px;
        margin: 30px 0 20px;
    }

    .figures-container {
        padding: 30px 15px;
    }

    .figure-item h3 {
        font-size: 32px;
    }

    .wp-tab {
        font-size: 14px;
        padding: 10px 15px;
    }

    .board-tab {
        font-size: 13px;
        padding: 10px 12px;
        min-width: 100px;
    }

    .media-btn {
        font-size: 14px;
        padding: 10px 25px;
    }

    .videos-grid {
        gap: 15px;
    }

    .video-info h4 {
        font-size: 14px;
    }

    /* Contact Section Small Mobile */
    .contact-section {
        padding: 40px 0;
    }

    .contact-card {
        margin: 0 15px;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .contact-card h2 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .contact-card p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .contact-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
        gap: 8px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .figures-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .wp-tab,
    .media-btn,
    .cookie-btn,
    .play-button {
        -webkit-tap-highlight-color: transparent;
    }

    .partner-logo:hover,
    .paper-card:hover,
    .video-card:hover,
    .media-btn:hover {
        transform: none;
    }
}

/* *-------------INTERSECTION OBSEVER------------------------------ */

/* Selecteur sur les atttribut */
[class*="reveal-"] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0px);
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

/* Les elements 2 et plus seront révélé avec un délai, ce qui n'est pas le cas de reveal-1 */
.reveal-2 {
    transition-delay: 0.1s;
}
.reveal-3 {
    transition-delay: 0.2s;
}
.reveal-4 {
    transition-delay: 0.3s;
}
.reveal-5 {
    transition-delay: 0.4s;
}
.reveal-6 {
    transition-delay: 0.5s;
}
.reveal-7 {
    transition-delay: 0.6s;
}
/* Open Source Tools Section */
.opensource-tools-section {
    padding: 80px 0;
}

.opensource-tools-section h2 {
    color: #f18849e9;
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
    letter-spacing: 1px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-button {
    display: block;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #f1894977;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 20px;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #f18849e9;
}

.tool-button img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tool-description {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    min-height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.tool-description p {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.tools-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}

.tools-link {
    color: #f18849e9;
    font-size: 18px;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.3s ease;
    padding: 10px 0;
}

.tools-link:hover {
    color: #f18849e9;
    text-decoration: none;
}

.tools-link .highlight {
    font-weight: bold;
}

/* Mobile Responsive for Open Source Tools */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .opensource-tools-section {
        padding: 60px 0;
    }

    .opensource-tools-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .tool-button {
        max-width: 150px;
        padding: 15px;
    }

    .tool-description {
        padding: 12px;
        min-height: 70px;
    }

    .tool-description p {
        font-size: 13px;
    }

    .tools-link {
        font-size: 16px;
    }
}

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

    .tool-button {
        max-width: 200px;
        margin: 0 auto 15px;
    }

    .tools-links {
        gap: 15px;
    }

    .tools-link {
        font-size: 15px;
        text-align: center;
    }
}

/* Project Impacts Section */
.project-impacts-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.project-impacts-section h2 {
    color: #575856;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
    letter-spacing: 2px;
}

.impacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #f189498f;
    transition: all 0.3s ease;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.impact-card h3 {
    color: #f18849e9;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
}

.impact-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Mobile Responsive for Project Impacts */
@media (max-width: 1024px) {
    .impacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .project-impacts-section {
        padding: 60px 0;
    }

    .project-impacts-section h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .impact-card {
        padding: 30px 25px;
        min-height: 220px;
    }

    .impact-card h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .impact-card p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .project-impacts-section h2 {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .impact-card {
        padding: 25px 20px;
        min-height: 200px;
    }

    .impact-card h3 {
        font-size: 15px;
    }

    .impact-card p {
        font-size: 14px;
    }
}

.eu-flag {
    padding: 2rem;
    width: 80%;
    max-width: 800px;
    min-width: 220px;
    border: 1px solid rgb(182, 182, 182);
    border-radius: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-inline: auto;
    margin-block: 2rem 4rem;
    text-align: justify;
    font-size: 16px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .eu-flag {
        flex-direction: column;
    }
}

/* Gallery Carousel Styles */
.gallery-section {
    padding: 60px 0;
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding-bottom: 1rem;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 700%; /* 7 slides × 100% */
}

.carousel-slide {
    min-width: 14.285714%; /* 100% / 7 slides = width of container / number of slides */
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

/* Dots Indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #007bff;
    transform: scale(1.2);
}

.dot:hover {
    background: #007bff;
    opacity: 0.7;
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 250px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
}
