/* ================================
   HAIR DESIGN 57 - NEO-BRUTALIST CSS
   Light Theme Edition
   ================================ */

/* === ROOT VARIABLES === */
:root {
    --brutal-cream: #FFF8E7;
    --brutal-white: #FFFFFF;
    --brutal-black: #000000;
    --brutal-navy: #1E3A8A;
    --brutal-gold: #D4AF37;
    --brutal-cyan: #00CED1;
    --brutal-dark-gray: #374151;
    --brutal-gray: #F5F5F5;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--brutal-cream);
    color: var(--brutal-black);
    overflow-x: hidden;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--brutal-cream);
    border-left: 4px solid var(--brutal-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--brutal-navy);
    border: 2px solid var(--brutal-white);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brutal-gold);
}

/* === TEXT STROKE EFFECT === */
.text-stroke {
    -webkit-text-stroke: 3px var(--brutal-white);
    text-stroke: 3px var(--brutal-white);
    paint-order: stroke fill;
}

/* === BUTTON STYLES === */
.btn-brutal {
    position: relative;
    display: inline-block;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    text-decoration: none;
}

.btn-brutal:hover {
    transform: translate(-2px, -2px);
}

.btn-brutal:active {
    transform: translate(4px, 4px);
    box-shadow: 4px 4px 0px 0px var(--brutal-black) !important;
}

/* === SCROLL REVEAL ANIMATIONS === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === SERVICE CARD HOVER EFFECTS === */
.service-card {
    position: relative;
    transition: all 0.3s ease;
    background: var(--brutal-gray);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 215, 0, 0.05), rgba(0, 206, 209, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    background: var(--brutal-white);
}

/* === NAVIGATION STYLES === */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brutal-navy);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === FLOAT ANIMATION === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* === MOBILE MENU ANIMATION === */
#mobile-menu {
    transition: all 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 600px;
}

/* === PARALLAX EFFECT === */
.parallax {
    transition: transform 0.1s ease-out;
}

/* === SECTION TRANSITIONS === */
section {
    position: relative;
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 640px) {
    .text-stroke {
        -webkit-text-stroke: 2px var(--brutal-white);
        text-stroke: 2px var(--brutal-white);
    }
}

/* === ACCESSIBILITY === */
@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;
    }
}

/* === FOCUS STYLES === */
a:focus,
button:focus {
    outline: 3px solid var(--brutal-navy);
    outline-offset: 4px;
}

/* === PRINT STYLES === */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* === SELECTION STYLES === */
::selection {
    background: var(--brutal-navy);
    color: var(--brutal-white);
}

::-moz-selection {
    background: var(--brutal-navy);
    color: var(--brutal-white);
}

/* === CUSTOM ANIMATIONS FOR ELEMENTS === */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === BRUTAL SHADOW HOVER === */
.shadow-brutal:hover {
    animation: shadowPulse 0.3s ease-in-out;
}

@keyframes shadowPulse {

    0%,
    100% {
        box-shadow: 8px 8px 0px 0px var(--brutal-black);
    }

    50% {
        box-shadow: 12px 12px 0px 0px var(--brutal-black);
    }
}

/* === LOADING ANIMATION === */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* === LINK UNDERLINE ANIMATION === */
a {
    text-decoration: none;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }

    .btn-brutal {
        width: 100%;
        text-align: center;
    }
}

/* === IMAGE EFFECTS === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === HERO BACKGROUND OVERLAY === */
#accueil .absolute.inset-0.z-0 img {
    filter: brightness(1.1) contrast(0.9);
}

/* === GALLERY HOVER EFFECTS === */
#galerie img {
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* === GALLERY — ZONE 1: NOUVEAU SALON GRID === */
.gallery-nouveau {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 12px;
    border: 4px solid var(--brutal-black);
    padding: 12px;
    background: var(--brutal-white);
    box-shadow: 8px 8px 0px 0px var(--brutal-black);
}

.gallery-nouveau-featured {
    grid-row: 1 / 3;
    grid-column: 1;
}

.gallery-nouveau-side {
    grid-row: 1;
    grid-column: 2;
}

.gallery-nouveau-bottom-left {
    grid-row: 2;
    grid-column: 2;
}

@media (max-width: 768px) {
    .gallery-nouveau {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 250px 250px 250px;
    }

    .gallery-nouveau-featured {
        grid-row: auto;
        grid-column: auto;
    }

    .gallery-nouveau-side,
    .gallery-nouveau-bottom-left,
    .gallery-nouveau-bottom-right {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-nouveau {
        grid-template-rows: 220px 220px;
    }
}

@media (min-width: 1025px) {
    .gallery-nouveau {
        grid-template-rows: 300px 300px;
    }
}

/* === GALLERY — ZONE 2: MASONRY GRID === */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
    border: 4px solid var(--brutal-black);
    padding: 12px;
    background: var(--brutal-white);
    box-shadow: 8px 8px 0px 0px var(--brutal-black);
}

.gallery-masonry-item {
    overflow: hidden;
    position: relative;
    border: 2px solid var(--brutal-black);
}

.gallery-masonry-tall {
    grid-row: span 2;
}

.gallery-masonry-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-masonry-tall {
        grid-row: span 1;
    }

    .gallery-masonry-wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-masonry-wide {
        grid-column: span 1;
    }
}

/* === GALLERY ITEM — COMMON STYLES === */
.gallery-item {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--brutal-black);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* === LIGHTBOX === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 4px solid var(--brutal-gold);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--brutal-gold);
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    background: var(--brutal-navy);
    border: 3px solid var(--brutal-gold);
    cursor: pointer;
    padding: 10px 18px;
    z-index: 10001;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--brutal-gold);
    color: var(--brutal-black);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.15em;
    background: var(--brutal-navy);
    padding: 6px 20px;
    border: 2px solid var(--brutal-gold);
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 8px 14px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.2rem;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 70vh;
    }
}

/* === STATS ANIMATION === */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, var(--brutal-navy), var(--brutal-dark-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === CARD TILT EFFECT === */
.tilt-card {
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: rotate(0deg) !important;
}

/* === NEON GLOW (SUBTLE FOR LIGHT THEME) === */
.neon-glow {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.2),
        0 0 30px rgba(255, 0, 0, 0.1);
}

/* === SMOOTH TRANSITIONS === */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === FOOTER LOGO === */

/* === PREMIUM PACK GRADIENT === */
.premium-pack {
    position: relative;
    overflow: hidden;
}

.premium-pack::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

/* === SPACING UTILITIES === */
.section-spacing {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .section-spacing {
        padding: 8rem 0;
    }
}

/* === Z-INDEX MANAGEMENT === */
nav {
    z-index: 1000;
}

/* === PERFORMANCE OPTIMIZATIONS === */
.service-card,
.btn-brutal,
.scroll-reveal {
    will-change: transform, opacity;
}

/* === GRID BREAKOUT === */
.breakout {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}