@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

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

/* Amélioration des performances de rendu */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #000;
    color: #f4f1e8;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 1.05rem;
    /* Désactive les animations pour les utilisateurs qui préfèrent les réductions de mouvement */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
}

/* Background jungle immersif */
.jungle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a4a3a 0%, #2d5a3d 30%, #1e3a2e 70%, #0f2419 100%), url('img/bg_1.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    z-index: -2;
}

/* Overlay pour effet cinématique */
.jungle-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

/* Effet de texture jungle et motifs géométriques */
.jungle-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Motifs géométriques 
        repeating-linear-gradient(45deg, rgba(255, 215, 0, 0.03), rgba(255, 215, 0, 0.03) 1px, transparent 1px, transparent 30px),
        repeating-linear-gradient(-45deg, rgba(255, 215, 0, 0.03), rgba(255, 215, 0, 0.03) 1px, transparent 1px, transparent 30px),*/
        /* Texture jungle */
        radial-gradient(circle at 25% 25%, rgba(34, 139, 34, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(107, 142, 35, 0.1) 0%, transparent 40%);
    background-blend-mode: screen;
    opacity: 0.7;
    z-index: -1;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: none;
    border: none;
    color: #f4f1e8;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.lang-btn.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: 700;
}

.language-switcher span {
    color: rgba(244, 241, 232, 0.5);
    font-weight: 300;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 4px 8px;
    }
    
    .lang-btn {
        font-size: 0.8rem;
        padding: 2px 8px;
    }
}

/* Animation de pulsation */
@keyframes subtlePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 4px 15px rgba(255, 140, 0, 0.4));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 6px 20px rgba(255, 140, 0, 0.6));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 15px rgba(255, 140, 0, 0.4));
    }
}

/* Logo */
.logo-container {
    margin-top: 30px;
    text-align: center;
    animation: fadeInDown 1s ease-out, subtlePulse 4s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, filter;
}

.logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(255, 140, 0, 0.4));
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(255, 140, 0, 0.6));
}

/* Countdown Timer */
.countdown-container {
    margin: 80px 0 0 0;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.countdown-title {
    font-family: 'Cinzel', serif;
    color: #f4f1e8;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    line-height: 1;
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-size: 0.8rem;
    color: rgba(244, 241, 232, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.countdown-separator {
    color: #ffd700;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 5px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    height: 100%;
    padding-bottom: 20px; /* Ajustement pour l'alignement visuel avec les chiffres */
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Responsive adjustments for countdown */
@media (max-width: 768px) {
    .countdown {
        gap: 5px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
        min-width: 60px;
        padding: 8px 10px;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .countdown-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        flex-wrap: wrap;
        max-width: 280px;
        margin: 20px auto 0;
    }
    
    .countdown-item {
        min-width: 45%;
        margin-bottom: 15px;
    }
    
    .countdown-separator {
        display: none;
    }
    
    .countdown-separator:nth-child(4) {
        display: block;
        width: 100%;
        height: 1px;
        margin: 5px 0;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    padding: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.content p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/liana.png') no-repeat center center;
    background-size: 100%;
    opacity: 0.1;
    z-index: -1;
    border-radius: 8px;
}

.content p::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.3);*/
    z-index: -2;
    border-radius: 8px;
}

.footer-logo {
    max-width: 200px;
    margin: 0 auto;
    display: block;
    opacity: 0.9;
}

.footer-logo-2 {
    max-width: 150px;
    margin: 0 auto 10px;
    display: block;
    opacity: 0.9;
}

footer p {
    margin: 15px 0 0;
    font-size: 0.9rem;
    color: rgba(244, 241, 232, 0.7);
    line-height: 1.6;
}

.legal-notice {
    font-size: 0.7rem !important;
    opacity: 0.7;
    max-width: 800px;
    margin: 10px auto 0 !important;
    padding: 0 20px;
    line-height: 1.4 !important;
}

@media (max-width: 768px) {
    .legal-notice {
        font-size: 0.65rem !important;
        max-width: 90%;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}

/* Décorations tiki */
.tiki-decoration {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    pointer-events: none;
}

.tiki {
    position: absolute;
    z-index: 10000;
    max-width: 100px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.tiki-left {
    left: 120px;
    top: 1550px;
    transform: rotate(-15deg);

}

.tiki-right {
    right: 120px;
    top: 1000px;
    transform: rotate(15deg);

}

/* Animation au survol */
.tiki:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .tiki-decoration {
        display: none;
    }
}

@media (max-width: 992px) {
    .tiki {
        max-width: 120px;
    }
    
    .tiki-left {
        left: -20px;
    }
    
    .tiki-right {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .tiki {
        max-width: 80px;
    }
    
    .tiki-left {
        left: -15px;
        top: 30px;
    }
    
    .tiki-right {
        right: -15px;
        top: 30px;
    }
}

/* Logo alternatif si l'image n'est pas disponible */
.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 140, 0, 0.6),
        3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Vidéo YouTube */
.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    position: relative;
    border-radius: 50px 15px; /* Bordures asymétriques */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: #000;
    aspect-ratio: 16/9; /* Maintient le ratio 16:9 */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    width: 100%;
}

/* Styles pour le lecteur vidéo personnalisé */
.custom-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: #000;
    cursor: pointer;
    object-fit: cover; /* Pour que le poster couvre tout l'espace */
    object-position: center; /* Centre l'image du poster */
}

/* Masquer les contrôles natifs */
.custom-video::-webkit-media-controls {
    display: none !important;
}

/* Style du bouton play personnalisé */
.video-control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 215, 0, 0.9);
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    opacity: 1; /* Toujours visible par défaut */
    pointer-events: auto; /* Toujours cliquable par défaut */
}

.play-icon {
    transition: transform 0.2s ease-in-out;
    margin-left: 4px; /* Petit ajustement pour un centrage visuel parfait du triangle */
}

.video-control:hover .play-icon {
    transform: scale(1.1);
}

/* Cacher le bouton quand la vidéo est en lecture */
.video-container:not(.paused) .video-control {
    opacity: 0;
    pointer-events: none;
}

/* Afficher le bouton avec animation quand la vidéo est en pause */
.video-container.paused .video-control {
    opacity: 1;
    pointer-events: auto;
    animation: pulse 2s infinite;
}

.video-control:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
}

.play-icon {
    margin-left: 5px;
    line-height: 1;
}

/* Animation de pulsation pour le bouton play */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Contenu textuel */
.content {
    max-width: 1000px;
    text-align: left;
    margin: 0 auto;
    /* Optimisation du rendu */
    transform: translate3d(0, 0, 0);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Amélioration du rendu des polices */
    -webkit-font-smoothing: subpixel-antialiased;
    /* Padding pour éviter que le contenu ne soit collé aux bords sur mobile */
    padding: 1.5rem 2rem;
}

.content .highlight {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.6;
    text-transform: uppercase;
    color: #ffd700;
    /* margin: 4rem 0; */
    padding: 1.5rem 2rem;
    background: transparent;
    border-left: 3px solid #ffd700;
    border-radius: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: auto;
}

.content p:not(.highlight) {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #f4f1e8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding: 1.2rem 1.5rem;
    /* background: rgba(0, 0, 0, 0.4);
    border-radius: 25px 8px;
    Optimisation des performances */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    /* Effets visuels */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content p:nth-child(odd) {
    border-left-color: #ff8c00;
    background: rgba(0, 0, 0, 0.1);
}

.content p.highlight {
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Effet de lucioles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.8;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #fffacd; /* Cœur de la luciole */
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #fffacd, 0 0 20px 5px #ffd700, 0 0 30px 8px rgba(255, 140, 0, 0.2);
    animation: firefly-flight 20s infinite;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes firefly-flight {
    0%, 100% {
        transform: translate(var(--x-start), var(--y-start)) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(var(--x-end), var(--y-end)) scale(1.2);
        opacity: 0.5;
    }
    60% {
        opacity: 1;
    }
    70% {
        opacity: 0;
    }
}

/* Positionnement et animations variés pour un effet naturel */
.particle:nth-child(1) { --x-start: 10vw; --y-start: 90vh; --x-end: 80vw; --y-end: 10vh; animation-duration: 15s; animation-delay: -2s; }
.particle:nth-child(2) { --x-start: 85vw; --y-start: 80vh; --x-end: 15vw; --y-end: 20vh; animation-duration: 18s; animation-delay: -4s; }
.particle:nth-child(3) { --x-start: 5vw; --y-start: 50vh; --x-end: 95vw; --y-end: 60vh; animation-duration: 22s; animation-delay: -1s; }

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.footer-logo {
    width: 180px;
    opacity: 1;
}

.footer-logo-2 {
    width: 180px;
    opacity: 0.6;
}

footer p {
    margin: 0;
}

/* Responsive Design */

/* Tablette */
/* Styles responsifs pour le lecteur vidéo */
@media (max-width: 768px) {
    .video-container {
        margin: 0 auto 25px;
        border-radius: 6px;
    }
    
    .custom-video::-webkit-media-controls {
        font-size: 12px;
    }
    .logo-text {
        font-size: 2.5rem;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .content p {
        font-size: 1rem;
        padding: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .logo-container {
        margin: 1.5rem 0 2rem;
    }
    
    .content {
        padding: 0 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .logo-text {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .logo {
        max-width: 250px;
    }
    
    .content p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 10px 12px;
        margin-bottom: 15px;
    }
    
    .container {
        padding: 10px;
    }
    
    .video-container {
        margin-bottom: 30px;
    }
    
    .logo-container {
        margin-top: 15px;
        margin-bottom: 25px;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .logo-text {
        font-size: 1.8rem;
    }
    
    .content p {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}

/* Desktop large */
@media (min-width: 1200px) {
    .content p {
        font-size: 1.2rem;
        padding: 20px 25px;
    }
    
    .logo-text {
        font-size: 4rem;
    }
}

/* Styles pour le sous-titre du logo */
.logo-container div {
    font-family: 'Cinzel', serif;
    font-size: 1.8em;
    color: #ffb74d;
    margin-top: 0.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
}
/* Styles pour le sous-titre du logo */
.logo-container-2 div {
    font-family: 'Cinzel', serif;
    font-size: 1.8em;
    color: #ffb74d;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
}