/* ---------------------------------------
   POLICES
---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=IBM+Plex+Serif&family=Inconsolata:wght@200..900&display=swap');
@font-face {
    font-family: 'victor';
    src: url('webfonts/VictorMono-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Publifluor';
    src: url('webfonts/PubliFluorDroiteOuverte.woff') format('woff');
}
/* ---------------------------------------
   STRUCTURE GÉNÉRALE
---------------------------------------- */
body {
    margin: 0;
    background: rgba(139, 65, 213, 0.425);
    color: black;
    font-family: "IBM Plex Serif", serif;
    line-height: 1.6;
}
/* ---------------------------------------
   SECTION HERO
---------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px 100px 20px;
}
.hero h1 {
    font-family: 'Publifluor', sans-serif;
    font-size: 13vw;
    margin: 0 auto;
    letter-spacing: 0.1em;
}
/* Animation des lettres */
#fete-anim span {
    display: inline-block;
    animation: feteWave 0.4s infinite alternate ease-out;
}
#fete-anim .space {
    width: 0.4em;
    display: inline-block;
    animation: none !important;
}
@keyframes feteWave {
    0% { transform: translateY(0); }
    100% { transform: translateY(12px); }
}
/* ---------------------------------------
   PERSONNAGE QUI MARCHE
---------------------------------------- */
.walking-character {
    position: fixed;
    bottom: 30px;
    left: -200px;
    width: 120px;
    z-index: 9999;
    animation: walkAcross 12s linear infinite;
}
.walking-character video {
    width: 190%;
    height: auto;
    
    border-radius: 70%;     
}
@keyframes walkAcross {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 300px)); }
}
/* ---------------------------------------
   BLOCS TEXTE
---------------------------------------- */
.block {
    max-width: 900px;
    margin: 100px auto;
    padding: 20px;
}
.block h3 {
    font-family: 'Publifluor', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
/* ---------------------------------------
   SKETCHES P5
---------------------------------------- */
.sketch-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
}
.sketch-container canvas {
    width: 100% !important;
    height: 500px !important;
    border-radius: 8px;
    box-shadow: 0 0 30px #00000020;
}
/* ---------------------------------------
   SLIDER IMAGES (Taille uniforme)
---------------------------------------- */
.slider-section {
    width: 100%;
    overflow: hidden;
    margin: 60px 0;
}
.slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
}
.slide {
    flex: 0 0 auto;
}
.slide img {
    width: 100%;
    max-width: 800px;       
    height: 500px;     
    object-fit: cover; 
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------
   GRILLE D'IMAGES
---------------------------------------- */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 15px;
    margin-top: 20px;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
/* ---------------------------------------
   LISTE
---------------------------------------- */
ul {
    margin-top: 15px;
    padding-left: 20px;
}
/* ---------------------------------------
   FOOTER
---------------------------------------- */
footer {
    padding: 40px;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* ---------------------------------------
   LIGHTBOX PLEIN ÉCRAN
---------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    font-weight: 300;
    transition: transform 0.2s ease;
    user-select: none;
    line-height: 1;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}