/* Import de la police Bungee */
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Sansita:ital,wght@0,400;0,700;0,800;0,900;1,400;1,700;1,800;1,900&display=swap');

/* Application de la police Bungee aux balises de titre */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bungee', sans-serif;
    color: #fff;
    /* Bordure noire 2px autour des lettres et ombre nette en bas à gauche */
    -webkit-text-stroke: .4px #000;
    text-stroke: 2px #000;
    text-shadow: -6px 6px 0px #000;
    letter-spacing: -4px;
}

/* Styles spécifiques pour différents niveaux de titres */
h1 {
    font-weight: 900;
    /* Bungee Black */
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 1;
}

h2 {
    font-weight: 900;
    /* Bungee Bold */
    font-size: clamp(2.5rem, 5vw, 6rem);
    line-height: 1;
}

h3 {
    font-weight: 900;
    /* Bungee SemiBold */
    font-size: clamp(2.5rem, 3vw, 4rem);
    line-height: 1;
}

h4 {
    font-weight: 500;
    /* Bungee Regular */
    font-size: 1.25rem;
    line-height: 1.4;
}

h5 {
    font-weight: 400;
    /* Bungee Regular */
    font-size: 1.125rem;
    line-height: 1.5;
}

h6 {
    font-weight: 300;
    /* Bungee Light */
    font-size: 1rem;
    line-height: 1.5;
}

p {
    font-family: Arial, Helvetica, sans-serif;
}

.page-text h1 {
    font-size: clamp(3rem, 4vw, 3.5rem);
    line-height: 1.1;
}


.page-text h2 {
    font-weight: 900;
    /* Bungee Bold */
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1;
    -webkit-text-stroke: .8px #000;
    text-stroke: .8px #000;
    text-shadow: -3px 3px 0px #000;
    letter-spacing: -2px;
    color: #ffd601;
}

.page-text h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1;
    -webkit-text-stroke: .8px #000;
    text-stroke: .8px #000;
    text-shadow: -3px 3px 0px #000;
    letter-spacing: -2px;
    color: #ffd601;
}

.page-text h4 {
    font-weight: 700;
    /* Bungee Regular */
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1;
    -webkit-text-stroke: .8px #000;
    text-stroke: .8px #000;
    text-shadow: none;
    letter-spacing: 0px;
    color: #353532;
}

.page-text h5 {
    font-weight: 400;
    /* Bungee Regular */
    font-size: 1.125rem;
    line-height: 1.5;
}

.page-text h6 {
    font-weight: 300;
    /* Bungee Light */
    font-size: 1rem;
    line-height: 1.5;
}

.page-text p {
    font-family: Arial, Helvetica, sans-serif;
}

/* =================================
   SYSTÈME DE HIGHLIGHT DES MOTS AVEC OVERLAY
   ================================= */

/* Conteneur de base pour les mots avec highlight */
.word.has-highlight {
    position: relative;
    display: inline-block;
}

/* Élément overlay - base commune */
.word-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(-2deg) !important;
    font-style: normal;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    pointer-events: none;
    z-index: 2;
}

/* Overlay principal - Couleur brand WYW */
.word-overlay.overlay-primary {
    color: #4EEF72;
}

@keyframes glow-primary {
    from {
        text-shadow:
            -6px 6px 0px #000,
            0 0 20px rgba(78, 239, 114, 0.6),
            0 0 40px rgba(78, 239, 114, 0.3);
    }

    to {
        text-shadow:
            -6px 6px 0px #000,
            0 0 30px rgba(78, 239, 114, 0.8),
            0 0 50px rgba(78, 239, 114, 0.5);
    }
}

/* Overlay secondaire - Couleur jaune */
.word-overlay.overlay-secondary {
    color: #FFD600;
    text-shadow:
        -6px 6px 0px #000,
        0 0 15px rgba(255, 214, 0, 0.7);
}

/* Overlay accent - Couleur orange */
.word-overlay.overlay-accent {
    color: #FF6B35;
    text-shadow:
        -6px 6px 0px #000,
        0 0 15px rgba(255, 107, 53, 0.6);
}

/* Overlay lumineux - Blanc éclatant */
.word-overlay.overlay-glow {
    color: #FFFFFF;
    text-shadow:
        -6px 6px 0px #000,
        0 0 25px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4);
}

/* Overlay avec animation pulsante */
.word-overlay.overlay-pulse {
    color: #4EEF72;
    animation: pulse-highlight 1.5s ease-in-out infinite;
}

@keyframes pulse-highlight {
    0% {
        transform: scale(1);
        text-shadow: -6px 6px 0px #000;
    }

    50% {
        transform: scale(1.05);
        text-shadow:
            -6px 6px 0px #000,
            0 0 20px rgba(78, 239, 114, 0.8);
    }

    100% {
        transform: scale(1);
        text-shadow: -6px 6px 0px #000;
    }
}

/* Nouveaux effets spéciaux pour overlay */

/* Overlay flottant - Monte et descend */
.word-overlay.overlay-float {
    color: #4EEF72;
    animation: float-highlight 3s ease-in-out infinite;
}

@keyframes float-highlight {

    0%,
    100% {
        transform: translateY(0px);
        text-shadow: -6px 6px 0px #000;
    }

    50% {
        transform: translateY(-3px);
        text-shadow:
            -6px 9px 0px #000,
            0 0 15px rgba(78, 239, 114, 0.6);
    }
}

/* Overlay brillant - Effet de balayage lumineux */
.word-overlay.overlay-shine {
    color: #FFD600;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine-highlight 2s linear infinite;
}

@keyframes shine-highlight {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* =================================
   SYSTÈME DE STICKERS NOMINATIFS
   ================================= */

/* Base commune pour tous les stickers */
.word-overlay.sticker-base {
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: none;
    transform: rotate(-2deg);
    transition: transform 0.2s ease;
}

.word-overlay.sticker-base:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Sticker 0 - Orange avec style rétro */
.word-overlay.sticker0 {
    background-color: #FF6B35;
    border: 3px solid #8B0000;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: clamp(3rem, 6vw, 6rem);
    text-shadow: 1px 1px 0px #8B0000;
    transform: rotate(2deg);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    white-space: pre;
}

/* Sticker 1 - Jaune avec bordure noire */
.word-overlay.sticker1 {
    background-color: #FFD600;
    border: 4px solid #000;
    color: #000;
    padding: 19px 29px 20px 15px;
    border-radius: 0px;
    font-family: unset;
    font-weight: 100;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 0.7;
    text-shadow: none;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    box-shadow: -8px 8px 0px #000;
}

/* Sticker 2 - Rose avec bordure et écriture blanche */
.word-overlay.sticker2 {
    background-color: #4def73;
    border: 0px solid #fff;
    color: #000000;
    padding: 3px 8px;
    border-radius: 11px;
    font-family: revert;
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-style: italic;
    text-shadow: initial;
    transform: rotate(1deg);
    box-shadow: initial;
    letter-spacing: .4rem;
}

/* Sticker 3 - Vert menthe avec bordure foncée */
.word-overlay.sticker3 {
    background-color: #6b0bff;
    border: 2px solid #6b0bff;
    color: #ffffff;
    padding: 11px 14px 10px 14px;
    line-height: 0.8;
    border-radius: 8px;
    font-family: monospace;
    font-weight: bold;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-style: italic;
    text-shadow: none;
    letter-spacing: 2px;
    transform: rotate(-2deg);
    text-shadow: none;
    box-shadow: -6px 8px 0px rgb(0 0 0);
}

/* Sticker 4 - Orange avec style rétro */
.word-overlay.sticker4 {
    background-color: #FF6B35;
    border: 3px solid #8B0000;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: clamp(2.5rem, 4vw, 4rem);
    text-shadow: 1px 1px 0px #8B0000;
    transform: rotate(2deg);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    white-space: pre;
}

/* Sticker 5 - Violet avec effet néon */
.word-overlay.sticker5 {
    background-color: #8A2BE2;
    border: 2px solid #E0E0E0;
    color: #E0E0E0;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 0.85em;
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor;
    transform: rotate(-1deg);
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(224, 224, 224, 0.2);
}

/* Sticker 6 - Bleu ciel avec style moderne */
.word-overlay.sticker6 {
    background: linear-gradient(135deg, #87CEEB, #4169E1);
    border: 2px solid #000080;
    color: #000080;
    padding: 3px 8px;
    border-radius: 10px;
    font-family: 'Verdana', sans-serif;
    font-weight: bold;
    font-size: 0.8em;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
    transform: rotate(1deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animations spéciales pour les stickers */
.word-overlay.sticker1:hover,
.word-overlay.sticker2:hover,
.word-overlay.sticker3:hover,
.word-overlay.sticker4:hover,
.word-overlay.sticker5:hover,
.word-overlay.sticker6:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
}

/* ============================================
   STICKER5 - VRAIE ÉTOILE À 9 BRANCHES
   ============================================ */

.sticker7 {
    position: relative;
    display: inline-block;
    background: #FFD600;
    color: #000;
    font-weight: bold;
    font-size: 0.9em;
    padding: 12px 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid #000;
    /* Forme d'étoile à 9 branches correcte */
    clip-path: polygon(50% 0%,
            61% 35%,
            98% 35%,
            73% 57%,
            85% 91%,
            50% 70%,
            15% 91%,
            27% 57%,
            2% 35%,
            39% 35%);
    box-shadow: -6px 6px 0px #000;
    animation: star9Spin 6s linear infinite;
    transform-origin: center;
}

@keyframes star9Spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sticker7:hover {
    background: #5C0FFF;
    color: #fff;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* ============================================
   STICKER6 - VRAI CADRE (RECTANGLE AVEC BORDURE)
   ============================================ */

.sticker8 {
    position: relative;
    display: inline-block;
    background: #FDFBEF;
    color: #000;
    font-weight: bold;
    font-size: 0.95em;
    padding: 12px 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 4px solid #000;
    box-shadow: -6px 6px 0px #000;
    /* Animation de pulsation simple */
    animation: framePulse 3s ease-in-out infinite;
}

@keyframes framePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: -6px 6px 0px #000;
    }

    50% {
        transform: scale(1.02);
        box-shadow: -8px 8px 0px #000;
    }
}

.sticker8:hover {
    background: #FFD600;
    transform: scale(1.05) rotate(-1deg);
    transition: all 0.3s ease;
    box-shadow: -8px 8px 0px #000;
}

/* =================================
   CLASSES CSS PERSONNALISÉES
   ================================= */

/* Exemples de classes CSS simples pour {mot|class:nom-classe} */

/* Classe pour texte souligné */
.word.underline {
    text-decoration: underline;
    text-decoration-color: #4EEF72;
    text-decoration-thickness: 3px;
}

/* Classe pour texte barré */
.word.strikethrough {
    text-decoration: line-through;
    text-decoration-color: #FF6B35;
    text-decoration-thickness: 2px;
}

/* Classe pour texte en italique coloré */
.word.italic-color {
    font-style: italic;
    color: #FFD600 !important;
}

/* Classe pour texte avec bordure */
.word.bordered {
    border: 2px solid #4EEF72;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Classe pour texte avec fond coloré */
.word.bg-highlight {
    background-color: rgba(78, 239, 114, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Classe pour texte plus grand */
.word.big {
    font-size: 1.2em;
    font-weight: bold;
}

/* Classe pour texte plus petit */
.word.small {
    font-size: 0.8em;
}

/* Classe pour texte avec ombre colorée */
.word.shadow-color {
    text-shadow:
        -6px 6px 0px #000,
        0 0 10px #FF69B4;
}

/* Classe pour animation de tremblement */
.word.shake {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

/* Classes CSS supplémentaires pour combinaisons */

/* Classe pour rotation */
.word.rotate {
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.word.rotate:hover {
    transform: rotate(-5deg);
}

/* Classe pour effet bounce au hover */
.word.bounce:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    20%,
    60%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    80% {
        transform: translateY(-5px);
    }
}

/* Classe pour texte clignotant */
.word.blink {
    animation: blink 2s linear infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

/* Classe pour effet gradient text */
.word.gradient-text {
    background: linear-gradient(45deg, #4EEF72, #FFD600, #FF6B35);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.word.big1 {
    font-size: clamp(3.5rem, 13vw, 15rem);
    font-weight: bold;
    color: #5C0FFF;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #fff;
    text-shadow: -6px 6px 0px #ffffff;
    transform: translateY(0%) rotate(-2deg);
}

.word.big2 {
    font-size: clamp(3.5rem, 18vw, 12rem);
    font-weight: bold;
    color: #FFD600;
    -webkit-text-stroke: 3.5px #000000;
    text-stroke: 2px #fff;
    text-shadow: -6px 6px 0px #ffffff;
    transform: translateX(-0%) rotate(-2deg);
}

.word.big3 {
    display: block;
    position: relative;
    left: 50%;
    font-size: clamp(4.5rem, 15vw, 18rem);
    font-weight: bold;
    color: #00FFB3;
    -webkit-text-stroke: 2px #000000;
    text-stroke: 2px #fff;
    text-shadow: -6px 6px 0px #ffffff;
    transform: translateX(-50%) rotate(-1deg);
    margin: -43px 0 -35px 0;
    line-height: 1.1;
}

.word.textMiddle {
    display: inline-block;
    z-index: 9;
    top: 50%;
    left: 50%;
    position: absolute;
    /* margin: -100px 0; */
    background: #4def73;
    padding: 1vw 2vw 1vw 1vw;
    transform: rotate(-1deg) translateX(-50%) translateY(-50%);
    -webkit-text-stroke: initial;
    text-stroke: inherit;
    text-shadow: none;
    letter-spacing: 0px;
    box-shadow: -6px 6px 0px #000000;
    font-family: 'Bungee';
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 11rem);
    color: #000;
}

@media screen and (max-width: 960px) {
    .word.textMiddle {}

    .word.big3 {
        /* transform: translateX(-65%) rotate(-1deg); */
        margin: -15px 0;
    }
}