/* ============================================================
   common.css — Styles partagés par toutes les pages (12/12)
   ============================================================ */

body {
    font-family: 'Lato', sans-serif;
    color: #2D1A32;
    background-color: #FAF9F6;
    overflow-x: hidden;
    font-size: 18px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Berkshire Swash', cursive;
}

.brush-accent {
    font-family: 'Kaushan Script', cursive;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#energy-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

a:focus, button:focus {
    outline: none;
}

/* Hamburger menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
    position: relative;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #550D68;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.hamburger.active .hamburger-line {
    background: #550D68 !important;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger.active {
    color: white !important;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-backdrop a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.mobile-menu-backdrop.show a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-backdrop.show a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-backdrop.show a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-backdrop.show a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-backdrop.show a:nth-child(4) { transition-delay: 0.4s; }

/* Hide hamburger on desktop */
@media (min-width: 768px) {
    .hamburger { display: none; }
}

/* Landscape mobile optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        font-size: 16px;
    }

    header {
        min-height: 100vh;
        padding-top: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    header h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    header p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    header .flex.flex-col {
        margin-bottom: 2rem !important;
    }

    nav {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    nav img {
        height: 2rem !important;
    }

    nav .max-w-7xl .hidden.md\:flex {
        display: none !important;
    }

    nav .max-w-7xl .md\:hidden.hamburger {
        display: flex !important;
    }

    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-20, .py-24 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    #mobile-menu {
        max-height: 80vh;
        overflow-y: auto;
    }

    .mobile-menu-backdrop {
        justify-content: flex-start !important;
        padding-top: 80px !important;
        padding-bottom: 20px !important;
        overflow-y: auto !important;
    }

    .mobile-menu-backdrop > div {
        gap: 1rem !important;
        padding-bottom: 2rem;
    }

    .mobile-menu-backdrop a.text-2xl {
        font-size: 1.25rem !important;
    }

    .mobile-menu-backdrop a.px-8 {
        padding: 0.5rem 1.5rem !important;
        font-size: 1rem !important;
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    header .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
