/* ============================================
   MABSTUDIO - PUNK / STREET DECORATIONS
   Éléments graphiques agressifs et street art
   ============================================ */

/* ==================== 
   TEXTURES & OVERLAYS 
   ==================== */

/* Grain/Noise plus visible */
.noise-overlay {
    opacity: 0.06 !important;
    mix-blend-mode: overlay;
}

/* Scanlines subtiles style VHS */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8999;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
}

/* ==================== 
   DECORATIVE CROSSES 
   ==================== */

/* Croix décoratives fixes dans les coins */
.deco-cross {
    position: fixed;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 50;
    animation: wiggle 4s ease-in-out infinite;
}

.deco-cross--tl {
    top: 100px;
    left: 30px;
}

.deco-cross--tr {
    top: 100px;
    right: 30px;
    animation-delay: -1s;
}

.deco-cross--bl {
    bottom: 100px;
    left: 30px;
    animation-delay: -2s;
}

.deco-cross--br {
    bottom: 100px;
    right: 30px;
    animation-delay: -3s;
}

/* Croix qui tournent au scroll */
.deco-cross.spin {
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

/* ==================== 
   FLOATING ELEMENTS 
   ==================== */

.deco-float {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ==================== 
   ZIGZAG UNDERLINES 
   ==================== */

.zigzag-underline {
    position: relative;
    display: inline-block;
}

.zigzag-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2em;
    /* Remonté un peu plus près du texte */
    width: 100%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12 L10 2 L20 12' stroke='%23FF0000' stroke-width='3' fill='none'/%3E%3C/svg%3E");
    background-size: 15px 12px;
    background-repeat: repeat-x;
    transform: skew(-10deg);
    /* Petit effet dynamique */
}

/* Underline style wave */
.wave-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4' stroke='%23FF0000' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size: 20px 8px;
}

/* ==================== 
   STICKERS / BADGES 
   ==================== */

.sticker {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--red);
    color: var(--white);
    transform: rotate(-3deg);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.sticker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.sticker--white {
    background: var(--white);
    color: var(--black);
}

.sticker--outline {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
}

/* ==================== 
   DECORATIVE SYMBOLS 
   ==================== */

/* Séparateur avec croix */
.separator-crosses {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1em;
}

.separator-crosses::before,
.separator-crosses::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Bullets décoratifs */
.deco-bullets {
    display: flex;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ==================== 
   SECTION DECORATIONS 
   ==================== */

/* Coins décoratifs pour sections */
.section-decorated {
    position: relative;
}

.section-decorated::before,
.section-decorated::after {
    content: '✕';
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
}

.section-decorated::before {
    top: 2rem;
    left: 2rem;
}

.section-decorated::after {
    bottom: 2rem;
    right: 2rem;
}

/* Numéros géants en arrière-plan */
.bg-number {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(15rem, 30vw, 40rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* ==================== 
   ANIMATED DECORATIONS 
   ==================== */

/* Croix qui pulse */
.pulse-cross {
    animation: pulse-scale 2s ease-in-out infinite;
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Éclair animé */
.lightning {
    display: inline-block;
    color: #E11D2A;
    /* Symbole en rouge */
    animation: flash 3s ease-in-out infinite;
}

@keyframes flash {

    0%,
    90%,
    100% {
        opacity: 0.3;
    }

    92%,
    98% {
        opacity: 1;
    }
}

/* ==================== 
   BARRÉ / STRIKETHROUGH 
   ==================== */

.strikethrough {
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
    opacity: 0.5;
}

.strikethrough-reveal {
    position: relative;
}

.strikethrough-reveal .old {
    text-decoration: line-through;
    text-decoration-color: var(--red);
    opacity: 0.4;
    margin-right: 0.5em;
}

.strikethrough-reveal .new {
    color: var(--red);
    font-weight: 700;
}

/* ==================== 
   ARROWS / DIRECTIONS 
   ==================== */

.arrow-deco {
    display: inline-block;
    font-size: 1.5rem;
    color: #E11D2A;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {

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

    50% {
        transform: translateX(5px);
    }
}

/* ==================== 
   BRACKETS / ENCADREMENT 
   ==================== */

.bracketed {
    position: relative;
    padding: 0 1.5rem;
}

.bracketed::before {
    content: '[';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

.bracketed::after {
    content: ']';
    position: absolute;
    right: 0;
    color: var(--red);
    font-weight: 700;
}

/* ==================== 
   HALFTONE DOTS 
   ==================== */

.halftone-bg {
    position: relative;
}

.halftone-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
    z-index: 1;
}

/* ==================== 
   CORNER MARKERS 
   ==================== */

.corner-marks {
    position: relative;
}

.corner-marks::before,
.corner-marks::after,
.corner-marks .corner-bl,
.corner-marks .corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(255, 255, 255, 0.2);
    border-style: solid;
    border-width: 0;
}

.corner-marks::before {
    content: '';
    top: 0;
    left: 0;
    border-top-width: 2px;
    border-left-width: 2px;
}

.corner-marks::after {
    content: '';
    top: 0;
    right: 0;
    border-top-width: 2px;
    border-right-width: 2px;
}

/* ==================== 
   GLITCH TEXT EFFECT 
   ==================== */

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--red);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: cyan;
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

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

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

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

    60% {
        transform: translateX(-1px);
    }

    80% {
        transform: translateX(1px);
    }
}

@keyframes glitch-2 {

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

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

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

    60% {
        transform: translateX(1px);
    }

    80% {
        transform: translateX(-1px);
    }
}

/* ==================== 
   ROTATING ELEMENTS 
   ==================== */

.rotate-hover {
    transition: transform 0.3s ease;
}

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

/* ==================== 
   SECTION LABEL ENHANCED
   ==================== */

.section-label {
    position: relative;
    font-family: 'Space Grotesk', monospace !important;
    font-weight: 600 !important;
}

/* Éclair après le label */
.section-label .icon-flash::after {
    content: '⚡';
    margin-left: 0.5rem;
    animation: flash 2s ease-in-out infinite;
}

/* ==================== 
   MARQUEE DECORATION 
   ==================== */

.deco-marquee {
    position: absolute;
    bottom: 3rem;
    left: 0;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    background: var(--red);
    z-index: 100;
}

.deco-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-fast 10s linear infinite;
}

.deco-marquee-track span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0 2rem;
    color: var(--black);
}

@keyframes marquee-fast {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ==================== 
   PUNK FOOTER STYLE 
   ==================== */

.footer-punk-deco {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.1);
}

/* ==================== 
   HERO DECORATIONS 
   ==================== */

.hero-deco-left,
.hero-deco-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.15);
    writing-mode: vertical-rl;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-deco-left {
    left: 2rem;
    text-orientation: mixed;
}

.hero-deco-right {
    right: 2rem;
    text-orientation: mixed;
    transform: translateY(-50%) rotate(180deg);
}

/* ==================== 
   RESPONSIVE ADJUSTMENTS 
   ==================== */

@media (max-width: 768px) {
    .deco-cross {
        display: none;
    }

    .hero-deco-left,
    .hero-deco-right {
        display: none;
    }

    .bg-number {
        font-size: 10rem;
    }
}

/* ==================== 
   FIXED DECORATIVE TEXTS 
   ==================== */

.deco-text,
.hero-deco-text {
    position: fixed !important;
    z-index: 40;
    pointer-events: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Space Grotesk', monospace;
    text-transform: uppercase;
    font-weight: 500;
}

.deco-text--left,
.deco-left {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.deco-text--right,
.deco-right {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.deco-bottom {
    bottom: 2rem;
    left: 2rem;
    z-index: 50;
}