/* Footer Responsive CSS - EXPLOSION DE PAILLETTES ! */

/* Base footer styles */
.footer {
    background: #30323d;
    color: #fff;
    padding: 6rem 0 2rem;
    overflow: hidden;
    margin-top: -6px;
    position: relative;
}

.footer-section {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Titres des sections */
.footer h4 {
    color: #5E72AF;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    font-size: 1.2em;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.footer h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #5E72AF, #6b7fd1);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.footer h4:hover {
    color: #6b7fd1;
    transform: translateX(3px);
}

.footer h4:hover::before {
    width: 6px;
    box-shadow: 0 0 10px rgba(94, 114, 175, 0.5);
}

/* Navigation links */
.footer .footer-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    color: #aaa;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding-left: 15px;
}

.footer-nav ul li a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #5E72AF;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #5E72AF;
    background: rgba(94, 114, 175, 0.1);
    padding-left: 20px;
    transform: translateX(5px);
}

.footer-nav ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Widget Discord */
.discord-widget {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(94, 114, 175, 0.2);
    transition: all 0.3s ease;
    background: rgba(94, 114, 175, 0.05);
}

.discord-widget:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(94, 114, 175, 0.4),
        0 0 20px rgba(94, 114, 175, 0.2);
}

.discord-widget iframe {
    display: block;
    border: none;
}

/* ================= IMAGES ANIMÉES AVEC PAILLETTES ================= */

/* Images thématiques avec mouvement */
.footer-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* CHÂTEAU MYSTÉRIEUX (COLLÉ À GAUCHE) - MOUVEMENT FLOTTANT */
.castle-mystic {
    position: absolute;
    left: 20px;
    top: 20%;
    z-index: 1;
    animation: floatLeft 6s ease-in-out infinite;
}

.deco-castle {
    max-width: 520px;
    height: auto;
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    animation: gentleGlow 4s ease-in-out infinite alternate;
}

/* DRAGON PUISSANT (COLLÉ À DROITE) - MOUVEMENT FLOTTANT */
.dragon-power {
    position: absolute;
    right: 0px;
    top: 15%;
    z-index: 1;
    animation: floatRight 5s ease-in-out infinite;
}

.deco-dragon {
    max-width: 470px;
    height: auto;
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.3));
    animation: dragonBreath 3.5s ease-in-out infinite alternate;
}

/* DITT AU CENTRE - MOUVEMENT FLOTTANT */
.ditt-footer {
    position: absolute;
    left: 750px;
    top: 55%;
    z-index: 1;
    animation: floatLeft 6s ease-in-out infinite;
}

.deco-ditt {
    width: 414px;
    height: auto;
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    animation: gentleGlow 4s ease-in-out infinite alternate;
}

/* ANIMATIONS DE MOUVEMENT */
@keyframes floatLeft {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateX(-10px) translateY(-8px) rotate(-1deg); 
    }
    50% { 
        transform: translateX(5px) translateY(-15px) rotate(0.5deg); 
    }
    75% { 
        transform: translateX(-5px) translateY(-10px) rotate(-0.5deg); 
    }
}

@keyframes floatRight {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg); 
    }
    30% { 
        transform: translateX(8px) translateY(-12px) rotate(1deg); 
    }
    60% { 
        transform: translateX(-6px) translateY(-18px) rotate(-0.8deg); 
    }
    80% { 
        transform: translateX(4px) translateY(-8px) rotate(0.3deg); 
    }
}

@keyframes gentleGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); 
    }
    100% { 
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)); 
    }
}

@keyframes dragonBreath {
    0% { 
        filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.3)); 
    }
    100% { 
        filter: drop-shadow(0 0 25px rgba(220, 20, 60, 0.7)); 
    }
}

/* ================= SYSTÈME DE VRAIES PAILLETTES ================= */

/* Vraies petites paillettes - FORCER LES STYLES */
.sparkle {
    position: absolute !important;
    width: 1.5px !important;
    height: 1.5px !important;
    background: currentColor !important;
    border-radius: 50% !important;
    animation: sparkleMotion 3s infinite ease-in-out !important;
    pointer-events: none !important;
    box-shadow: 0 0 2px currentColor !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    z-index: 10 !important;
}

/* Couleurs des paillettes - FORCER */
.sparkle.gold { color: #FFD700 !important; }
.sparkle.yellow { color: #FFFF00 !important; }
.sparkle.orange { color: #FF8800 !important; }
.sparkle.white { color: #FFFFFF !important; }
.sparkle.silver { color: #C0C0C0 !important; }
.sparkle.red { color: #FF0000 !important; }
.sparkle.pink { color: #FF69B4 !important; }
.sparkle.purple { color: #9370DB !important; }

/* Animation des petites paillettes scintillantes */
@keyframes sparkleMotion {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5) translateY(0px); 
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1) translateY(-12px); 
    }
}

/* PAILLETTES DU CHÂTEAU */
.castle-sparkles {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120%;
    height: 120%;
    pointer-events: none;
}

.castle-sparkles .sparkle-1 { top: 10%; left: 20%; animation-delay: 0s; }
.castle-sparkles .sparkle-2 { top: 25%; left: 60%; animation-delay: 0.3s; }
.castle-sparkles .sparkle-3 { top: 40%; left: 15%; animation-delay: 0.6s; }
.castle-sparkles .sparkle-4 { top: 55%; left: 70%; animation-delay: 0.9s; }
.castle-sparkles .sparkle-5 { top: 70%; left: 35%; animation-delay: 1.2s; }
.castle-sparkles .sparkle-6 { top: 15%; left: 80%; animation-delay: 1.5s; }
.castle-sparkles .sparkle-7 { top: 30%; left: 10%; animation-delay: 1.8s; }
.castle-sparkles .sparkle-8 { top: 45%; left: 85%; animation-delay: 2.1s; }
.castle-sparkles .sparkle-9 { top: 60%; left: 25%; animation-delay: 2.4s; }
.castle-sparkles .sparkle-10 { top: 75%; left: 65%; animation-delay: 2.7s; }
.castle-sparkles .sparkle-11 { top: 20%; left: 45%; animation-delay: 0.15s; }
.castle-sparkles .sparkle-12 { top: 35%; left: 75%; animation-delay: 0.45s; }
.castle-sparkles .sparkle-13 { top: 50%; left: 5%; animation-delay: 0.75s; }
.castle-sparkles .sparkle-14 { top: 65%; left: 55%; animation-delay: 1.05s; }
.castle-sparkles .sparkle-15 { top: 80%; left: 90%; animation-delay: 1.35s; }

/* PAILLETTES DU DITT */
.ditt-sparkles {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120%;
    height: 120%;
    pointer-events: none;
}

.ditt-sparkles .sparkle-1 { top: 15%; left: 25%; animation-delay: 0.2s; }
.ditt-sparkles .sparkle-2 { top: 30%; left: 65%; animation-delay: 0.5s; }
.ditt-sparkles .sparkle-3 { top: 45%; left: 10%; animation-delay: 0.8s; }
.ditt-sparkles .sparkle-4 { top: 60%; left: 75%; animation-delay: 1.1s; }
.ditt-sparkles .sparkle-5 { top: 75%; left: 40%; animation-delay: 1.4s; }
.ditt-sparkles .sparkle-6 { top: 20%; left: 85%; animation-delay: 1.7s; }
.ditt-sparkles .sparkle-7 { top: 35%; left: 15%; animation-delay: 2.0s; }
.ditt-sparkles .sparkle-8 { top: 50%; left: 80%; animation-delay: 2.3s; }
.ditt-sparkles .sparkle-9 { top: 65%; left: 30%; animation-delay: 2.6s; }
.ditt-sparkles .sparkle-10 { top: 80%; left: 70%; animation-delay: 2.9s; }
.ditt-sparkles .sparkle-11 { top: 25%; left: 50%; animation-delay: 0.3s; }
.ditt-sparkles .sparkle-12 { top: 40%; left: 90%; animation-delay: 0.6s; }
.ditt-sparkles .sparkle-13 { top: 55%; left: 20%; animation-delay: 0.9s; }
.ditt-sparkles .sparkle-14 { top: 70%; left: 60%; animation-delay: 1.2s; }
.ditt-sparkles .sparkle-15 { top: 85%; left: 35%; animation-delay: 1.5s; }

/* PAILLETTES DU DRAGON */
.dragon-sparkles {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120%;
    height: 120%;
    pointer-events: none;
}

.dragon-sparkles .sparkle-1 { top: 15%; left: 25%; animation-delay: 0.1s; }
.dragon-sparkles .sparkle-2 { top: 30%; left: 65%; animation-delay: 0.4s; }
.dragon-sparkles .sparkle-3 { top: 45%; left: 10%; animation-delay: 0.7s; }
.dragon-sparkles .sparkle-4 { top: 60%; left: 75%; animation-delay: 1.0s; }
.dragon-sparkles .sparkle-5 { top: 75%; left: 40%; animation-delay: 1.3s; }
.dragon-sparkles .sparkle-6 { top: 20%; left: 85%; animation-delay: 1.6s; }
.dragon-sparkles .sparkle-7 { top: 35%; left: 15%; animation-delay: 1.9s; }
.dragon-sparkles .sparkle-8 { top: 50%; left: 80%; animation-delay: 2.2s; }
.dragon-sparkles .sparkle-9 { top: 65%; left: 30%; animation-delay: 2.5s; }
.dragon-sparkles .sparkle-10 { top: 80%; left: 70%; animation-delay: 2.8s; }
.dragon-sparkles .sparkle-11 { top: 25%; left: 50%; animation-delay: 0.2s; }
.dragon-sparkles .sparkle-12 { top: 40%; left: 90%; animation-delay: 0.5s; }
.dragon-sparkles .sparkle-13 { top: 55%; left: 20%; animation-delay: 0.8s; }
.dragon-sparkles .sparkle-14 { top: 70%; left: 60%; animation-delay: 1.1s; }
.dragon-sparkles .sparkle-15 { top: 85%; left: 35%; animation-delay: 1.4s; }
.dragon-sparkles .sparkle-16 { top: 12%; left: 70%; animation-delay: 1.7s; }
.dragon-sparkles .sparkle-17 { top: 28%; left: 5%; animation-delay: 2.0s; }
.dragon-sparkles .sparkle-18 { top: 42%; left: 45%; animation-delay: 2.3s; }
.dragon-sparkles .sparkle-19 { top: 58%; left: 85%; animation-delay: 2.6s; }
.dragon-sparkles .sparkle-20 { top: 72%; left: 15%; animation-delay: 2.9s; }

/* Animations générales */
@keyframes slideInUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Animation d'entrée des sections */
.footer-section {
    animation: slideInUp 0.8s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Styles pour la section copyright */
.copyright {
    background: #2a2c37;
    padding: 3rem 0 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(94, 114, 175, 0.2);
}

.copyright-text {
    color: #bbb;
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.copyright-text a {
    color: #5E72AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-text a:hover {
    color: #6b7fd1;
}

/* Logos du footer côte à côte */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.copyright img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.copyright img:hover {
    transform: scale(1.05);
    opacity: 1;
}

.logo-spacing {
    margin: 0 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ditt-footer {
        left: 60%;
    }
}

@media (max-width: 992px) {
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .castle-mystic .deco-castle {
        max-width: 280px;
    }
    
    .dragon-power .deco-dragon {
        max-width: 300px;
    }
    
    .ditt-footer .deco-ditt {
        width: 250px;
    }
    
    /* Positionnement plus harmonieux pour tablette */
    .castle-mystic {
        left: 10px;
        top: 30%;
    }
    
    .dragon-power {
        right: 10px;
        top: 25%;
    }
    
    .ditt-footer {
        left: 45%;
        transform: translateX(-50%);
        top: 60%;
    }
    
    /* Assurer que le contenu reste lisible */
    .footer-section {
        position: relative;
        z-index: 3;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer h4 {
        font-size: 1.1em;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer h4::before {
        display: none;
    }
    
    .footer-nav ul li a {
        text-align: center;
        padding-left: 15px;
    }
    
    .footer-nav ul li a::before {
        display: none;
    }
    
    .discord-widget iframe {
        height: 350px;
    }
    
    /* Images plus subtiles mais bien positionnées */
    .castle-mystic, .dragon-power, .ditt-footer {
        opacity: 0.2;
        z-index: 0;
    }
    
    .deco-castle, .deco-dragon, .deco-ditt {
        max-width: 150px;
    }
    
    /* Château côté gauche mais pas collé au bord */
    .castle-mystic {
        left: 15px;
        top: 40%;
        bottom: auto;
    }
    
    /* Dragon côté droit mais pas collé au bord */
    .dragon-power {
        right: 15px;
        top: 35%;
        bottom: auto;
    }
    
    /* Ditt centré en milieu */
    .ditt-footer {
        left: 50%;
        transform: translateX(-50%);
        top: 65%;
        bottom: auto;
    }
    
    /* Assurer que le texte reste au-dessus */
    .footer-section {
        position: relative;
        z-index: 5;
        background: rgba(48, 50, 61, 0.85);
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 2rem 0 1rem;
        min-height: 450px;
    }
    
    .footer h4 {
        font-size: 1em;
    }
    
    .discord-widget iframe {
        height: 350px;
    }
    
    .footer-nav ul li a {
        padding: 6px 0;
        font-size: 0.9em;
    }
    
    /* Images compactes et bien intégrées */
    .castle-mystic, .dragon-power, .ditt-footer {
        opacity: 0.25;
        z-index: 0;
    }
    
    .deco-castle, .deco-dragon, .deco-ditt {
        max-width: 100px;
    }
    
    /* Positionnement équilibré sur mobile */
    .castle-mystic {
        left: 10px;
        top: 50%;
        bottom: auto;
    }
    
    .dragon-power {
        right: 10px;
        top: 45%;
        bottom: auto;
    }
    
    .ditt-footer {
        left: 50%;
        transform: translateX(-50%);
        top: 70%;
        bottom: auto;
    }
    
    /* Background pour lisibilité */
    .footer-section {
        background: rgba(48, 50, 61, 0.9);
        padding: 1.5rem;
        border-radius: 10px;
        margin-bottom: 2rem;
        position: relative;
        z-index: 5;
    }
}

/* Effet de hover général sur le footer */
.footer:hover {
    background: #32343f;
}

/* Transition douce pour tous les éléments */
* {
    transition: all 0.3s ease;
}

/* ================= STYLES POUR LES PAGES LÉGALES ================= */

.legal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.8;
}

.legal-content h3 {
    color: #5E72AF;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    font-size: 1.3em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(94, 114, 175, 0.2);
}

.legal-content h4 {
    color: #6b7fd1;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1em;
}

.legal-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.legal-content ul li::before {
    content: '▸';
    color: #5E72AF;
    position: absolute;
    left: -1.5rem;
    top: 0;
}

.legal-content a {
    color: #5E72AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #6b7fd1;
    text-decoration: underline;
}

.legal-content strong {
    color: #5E72AF;
    font-weight: 600;
}

.legal-content small {
    color: #666;
    font-style: italic;
}

/* Responsive pour les pages légales */
@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .legal-content h3 {
        font-size: 1.2em;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .legal-content h4 {
        font-size: 1.05em;
        margin: 1.2rem 0 0.6rem 0;
    }
    
    .legal-content ul {
        padding-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .legal-content {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .legal-content h3 {
        font-size: 1.1em;
    }
    
    .legal-content p {
        text-align: left;
    }
}

  <!-- CSS Anti-FOUC avec spinner de chargement pour les screenshots -->
  /* Container de chargement pour les screenshots */
  .screenshots-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: 8px;
    backdrop-filter: blur(2px);
  }
  
  /* Spinner de chargement */
  .screenshots-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  /* Animation du spinner */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Texte de chargement */
  .screenshots-loading-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  /* Container relatif pour les screenshots */
  .screenshots-container {
    position: relative;
    min-height: 200px;
  }
  
  /* Masquer les screenshots non initialisés */
  .screenshots:not(.slick-initialized) {
    visibility: hidden;
  }
  
  /* Cacher l'overlay quand Slick est prêt */
  .screenshots.slick-initialized ~ .screenshots-loading-overlay,
  .screenshots.slick-initialized + .screenshots-loading-overlay {
    display: none;
  }
  
  /* Fallback pour les utilisateurs sans JavaScript */
  .no-js .screenshots-loading-overlay {
    display: none;
  }
  
  .no-js .screenshots {
    visibility: visible !important;
  }
  