/* Minou Connecté - Neo-Brutalist Playful Design */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;800&family=Manrope:wght@400;500;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
    --cream: #F5F1E8;
    --charcoal: #1A1A1A;
    --coral: #FF6B35;
    --sage: #7FB069;
    --warm-gray: #D4C5B9;
    --dark-sage: #5C8A54;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    cursor: default;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Grid background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--charcoal) 1px, transparent 1px),
        linear-gradient(90deg, var(--charcoal) 1px, transparent 1px);
    background-size: 40px 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Header - Asymmetric & Bold */
header {
    position: relative;
    padding: 80px 60px;
    margin-bottom: 80px;
    background: var(--charcoal);
    color: var(--cream);
    border: 6px solid var(--charcoal);
    box-shadow: 12px 12px 0 var(--coral);
    transform: rotate(-0.5deg);
    animation: slideInRotate 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRotate {
    from {
        opacity: 0;
        transform: rotate(-0.5deg) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: rotate(-0.5deg) translateY(0);
    }
}

header h1 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 8px;
    background: var(--coral);
    animation: expandWidth 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60%;
    }
}

.subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warm-gray);
    font-weight: 400;
    margin-top: 20px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Content Layout */
.content {
    padding: 0;
}

/* Video Section - Breaking Grid */
.video-section {
    margin-bottom: 100px;
    position: relative;
}

.video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border: 6px solid var(--charcoal);
    background: var(--charcoal);
    box-shadow:
        16px 16px 0 var(--sage),
        16px 16px 0 6px var(--charcoal);
    transform: rotate(0.8deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: floatIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s backwards;
    overflow: hidden;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: rotate(0.8deg) translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0.8deg) translateY(0) scale(1);
    }
}

.video-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow:
        20px 20px 0 var(--sage),
        20px 20px 0 6px var(--charcoal);
}

.video-wrapper::before {
    content: '◉ REC';
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--coral);
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border: 2px solid var(--coral);
    z-index: 10;
    letter-spacing: 0.1em;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

video {
    width: 100%;
    display: block;
    filter: contrast(1.05) saturate(1.1);
}

/* Cards - Brutalist Style */
.project-overview,
.description-section {
    margin: 80px 0;
    position: relative;
}

.card {
    background: white;
    border: 5px solid var(--charcoal);
    padding: 50px;
    position: relative;
    box-shadow: 8px 8px 0 var(--coral);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: cardReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateX(-40px);
        box-shadow: 0 0 0 var(--coral);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        box-shadow: 8px 8px 0 var(--coral);
    }
}

.project-overview .card {
    animation-delay: 0.8s;
    transform: rotate(-0.3deg);
}

.description-section .card {
    animation-delay: 1s;
    transform: rotate(0.4deg);
}

.card:hover {
    transform: translateY(-4px) rotate(0deg);
    box-shadow: 12px 12px 0 var(--coral);
}

/* Corner brackets decoration */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--sage);
}

.card::before {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.card::after {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.card h2 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    color: var(--charcoal);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--coral);
}

.card h3 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-left: 20px;
}

.card h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-size: 1.2em;
}

.card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.card strong {
    font-weight: 700;
    color: var(--coral);
    background: linear-gradient(180deg, transparent 60%, rgba(255, 107, 53, 0.2) 60%);
}

.card em {
    font-family: 'IBM Plex Mono', monospace;
    font-style: normal;
    background: var(--charcoal);
    color: var(--cream);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

.card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.card li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    font-size: 1.05rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.card li:hover {
    transform: translateX(5px);
    color: var(--sage);
}

.card li::before {
    content: '■';
    position: absolute;
    left: 10px;
    color: var(--sage);
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.card li:hover::before {
    transform: rotate(45deg);
}

/* Footer - Strong Finish */
footer {
    margin-top: 100px;
    padding: 60px 40px;
    background: var(--charcoal);
    color: var(--cream);
    border: 6px solid var(--charcoal);
    box-shadow: -12px 12px 0 var(--sage);
    transform: rotate(0.3deg);
    text-align: center;
    position: relative;
}

footer::before {
    content: '◆ ◆ ◆';
    display: block;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--coral);
    letter-spacing: 1em;
}

footer p {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 15px;
}

/* Custom Cursor Effect */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none;
    }

    body {
        cursor: none;
    }
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--coral);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, background 0.15s ease;
    mix-blend-mode: difference;
}

.cursor.active {
    transform: scale(1.5);
    background: var(--coral);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    header {
        padding: 50px 30px;
        margin-bottom: 50px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .video-wrapper {
        box-shadow:
            10px 10px 0 var(--sage),
            10px 10px 0 6px var(--charcoal);
    }

    .card {
        padding: 30px 25px;
        box-shadow: 6px 6px 0 var(--coral);
    }

    .card h2 {
        font-size: 1.8rem;
    }

    .card::before,
    .card::after {
        width: 20px;
        height: 20px;
    }

    footer {
        padding: 40px 25px;
        box-shadow: -8px 8px 0 var(--sage);
    }
}

/* Print styles */
@media print {
    body::before,
    body::after {
        display: none;
    }

    .video-wrapper::before {
        display: none;
    }

    * {
        box-shadow: none !important;
    }
}
