* {
    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;
}

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

h2,
h3 {
    font-family: "poppins-Bold", "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: 50px;
}

.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: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

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

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

/* 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;
}

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

.partner-logo {
    height: 80px;
    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: 48px;
    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 {
    background-color: #f9f9f9;
    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;
}

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

.wp-tab {
    flex: 1;
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #4ecdc4;
}

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

.wp-content {
    background-color: #4ecdc4;
    padding: 40px;
    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;
    transition: opacity 0.3s;
}

.wp-content a:hover {
    opacity: 0.8;
}

/* 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-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;
}

/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(28, 174, 89, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1cae59 0%, #4ecdc4 100%);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1cae59 0%, #4ecdc4 100%);
    border-radius: 50%;
    color: white;
    margin: 0 auto 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 174, 89, 0.3);
}

.contact-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1cae59;
    margin-bottom: 20px;
    font-family: "poppins-Bold", sans-serif;
}

.contact-card p {
    font-size: 16px;
    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: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(28, 174, 89, 0.2);
    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 ease;
}

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

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 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: linear-gradient(0deg, #1cae59 0%, #4ecdc4 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
}

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

/* 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;
    }

    /* 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 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(78, 205, 196, 0.2);
    }

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

    /* 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: 50px 0;
    }

    .contact-card {
        padding: 40px 25px;
        border-radius: 15px;
        margin: 0 15px;
    }

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

    .contact-icon svg {
        width: 32px;
        height: 32px;
    }

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

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

    .contact-btn {
        padding: 14px 28px;
        font-size: 15px;
        gap: 10px;
    }

    .contact-btn svg {
        width: 18px;
        height: 18px;
    }

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

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

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

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

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

    .videos-grid {
        gap: 15px;
    }

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

    /* Contact Section Small Mobile */
    .contact-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .contact-card h2 {
        font-size: 22px;
    }

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

    .contact-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

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