@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

header {
    background: black;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-family: 'UnifrakturCook', cursive;
    font-weight: 700;
    margin: 0;
}

.title-header {
    text-align: center;
}

.title-header h1 {
    font-family: 'UnifrakturCook', cursive;
    font-weight: 700;
}

nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-family: 'UnifrakturCook', cursive;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00008B;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
    /* Hidden by default, shown on mobile */
}

.nav-menu {
    display: flex;
}

.nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: black;
    width: 200px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.nav-menu.open nav {
    flex-direction: column;
}

.nav-menu.open nav a {
    margin: 10px 0;
}

/* Responsive: Show toggle on mobile, hide on desktop */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }
}

/* Media queries for larger screens */
@media (min-width: 769px) {
    header {
        padding: 20px;
    }

    nav a {
        font-size: 1.2em;
        margin: 0 20px;
    }
}

@media (min-width: 1200px) {
    header {
        padding: 25px;
    }

    nav a {
        font-size: 1.4em;
        margin: 0 25px;
    }

    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hero {
    position: relative;
    height: 100vh;
}

.hero video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.hero-text {
    position: fixed;
    bottom: 98px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
}

.btn {
    background: black;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'UnifrakturCook', cursive;
    font-weight: 700;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    background: #00008B;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 0, 139, 0.5);
    transform: translateY(-2px);
}

.product-card {
    background: black;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    color: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 10px #00008B;
    border-color: #00008B;
}

.product-card img {
    max-width: 100%;
    height: 350px;
    border-radius: 5px;
    object-fit: cover;
}

.product-card h2 {
    font-size: 1.2em;
    margin: 10px 0;
}

.product-card p {
    font-size: 1em;
    color: #555;
    margin: 10px 0;
}

.product-card .btn {
    display: inline-block;
    margin-top: 10px;
    background: white;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 1em;
}

.product-card .btn:hover {
    background: #ddd;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-presentation {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.video-presentation video {
    max-width: 100%;
    height: auto;
}

.video-section {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.video-section video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================
   INTRO KATANA ANIMATION
========================== */

#intro {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#intro .logo {
    font-family: 'UnifrakturCook', cursive;
    color: white;
    font-size: 5rem;
    letter-spacing: 8px;
    opacity: 0;
    z-index: 2;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 25px rgba(255, 255, 255, 0.3);
    animation: logoFade 1s ease forwards;
    animation-delay: 0.3s;
}

/* ==========================
   KATANA SLASH + SPARKS
========================== */

.slash {
    position: absolute;
    width: 170%;
    height: 6px;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform-origin: center;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            #ffffff,
            rgba(255, 255, 255, 0.2),
            transparent);
    box-shadow:
        0 0 15px white,
        0 0 40px rgba(255, 255, 255, 0.8);
}

/* ÉTINCELLES */
.slash::before,
.slash::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px white;
    opacity: 0;
}

/* ↘️ SLASH 1 */
.slash-1 {
    transform: translate(-50%, -50%) rotate(25deg) scaleX(0);
    animation: slashImpact1 0.45s ease-out forwards;
    animation-delay: 1.1s;
}

/* ↗️ SLASH 2 */
.slash-2 {
    transform: translate(-50%, -50%) rotate(-25deg) scaleX(0);
    animation: slashImpact2 0.45s ease-out forwards;
    animation-delay: 1.45s;
}

/* ↙️ SLASH 3 */
.slash-3 {
    transform: translate(-50%, -50%) rotate(160deg) scaleX(0);
    animation: slashImpact3 0.45s ease-out forwards;
    animation-delay: 1.8s;
}

/* ANIMATIONS SLASH */
@keyframes slashImpact1 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(25deg) scaleX(0);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(25deg) scaleX(1);
    }
}

@keyframes slashImpact2 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-25deg) scaleX(0);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-25deg) scaleX(1);
    }
}

@keyframes slashImpact3 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(160deg) scaleX(0);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(160deg) scaleX(1);
    }
}

/* ÉTINCELLES ANIMATION */
.slash-1::before,
.slash-1::after,
.slash-2::before,
.slash-2::after,
.slash-3::before,
.slash-3::after {
    animation: sparks 0.45s ease-out forwards;
}

.slash-1::before {
    left: 48%;
    top: -12px;
    animation-delay: 1.1s;
}

.slash-1::after {
    left: 52%;
    top: 10px;
    animation-delay: 1.1s;
}

.slash-2::before {
    left: 48%;
    top: -12px;
    animation-delay: 1.45s;
}

.slash-2::after {
    left: 52%;
    top: 10px;
    animation-delay: 1.45s;
}

.slash-3::before {
    left: 48%;
    top: -12px;
    animation-delay: 1.8s;
}

.slash-3::after {
    left: 52%;
    top: 10px;
    animation-delay: 1.8s;
}

.slash-4 {
    transform: translate(-50%, -50%) rotate(-160deg) scaleX(0);
    animation: slashImpact4 0.45s ease-out forwards;
    animation-delay: 2.15s;
}

@keyframes sparks {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(15px) scale(0.2);
    }
}


/* ANIMATIONS */
@keyframes logoFade {
    to {
        opacity: 1;
    }
}

@keyframes slash1 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(25deg) scaleX(0);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(25deg) scaleX(1);
    }
}

@keyframes slash2 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-25deg) scaleX(0);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-25deg) scaleX(1);
    }
}

@keyframes slash3 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(160deg) scaleX(0);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(160deg) scaleX(1);
    }
}

@keyframes slashImpact4 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-160deg) scaleX(0);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-160deg) scaleX(1);
    }
}

/* DISPARITION */
.intro-hide {
    animation: introOut 0.8s ease forwards;
}

@keyframes introOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* FLASH BLANC */
.flash {
    position: fixed;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
}

.flash.active {
    animation: flash 0.12s ease-out;
}

@keyframes flash {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

/* CONTACT PAGE STYLES */
.contact-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: black;
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.contact-section h2 {
    font-family: 'UnifrakturCook', cursive;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    background: #222;
    border: 1px solid white;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}

.contact-item h3 {
    font-family: 'UnifrakturCook', cursive;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.contact-item p {
    margin: 0;
    font-size: 1.1em;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #00008B;
}