/* =========================
   FONTS
========================= */

@font-face {
    font-family: 'LTMuseum';
    src: url('font/lt_museum/LTMuseum-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LTMuseum';
    src: url('font/lt_museum/LTMuseum-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LTMuseum';
    src: url('font/lt_museum/LTMuseum-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LTMuseum';
    src: url('font/lt_museum/LTMuseum-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nurom';
    src: url('font/nurom/Nurom-Bold.woff2') format('woff2'), url('font/nurom/Nurom-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================
   VARIABLES
========================= */

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-primary: #E45D5D;
    --color-grey: #aaaaaa;
    --color-light-grey: #f5f5f5;
    --color-text-dark: #333333;

    --font-title: 'LTMuseum';
    --font-body: 'Nurom';

    --max-width: 1200px;
    --padding-inline: 20px;
    --padding-section: 80px 0;

    --border-radius: 8px;
    --transition: 0.3s ease;
}

/* =========================
   RESET CSS
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

/* =========================
   GLOBAL STRUCTURE
========================= */

.hero-container,
.dungeon-container,
.footer-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--padding-inline);
    padding-right: var(--padding-inline);
}

.crux-container {
    width: 100%;
    max-width: 1800px;
    /* 🔥 largeur réelle */
    margin: 0 auto;
    padding-left: var(--padding-inline);
    padding-right: var(--padding-inline);

    display: flex;
    flex-direction: column;
    align-items: stretch;
}

section {
    padding: var(--padding-section);
}

.dungeon-section,
.crux-section {
    text-align: center;
}

.site-main {
    width: 100%;
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
    font-family: var(--font-title);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

p {
    color: var(--color-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================
   CONTENT WIDTH HELPERS
========================= */

.dungeon-description,
.carousel-description,
.crux-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   ACCESSIBILITY / MEDIA
========================= */

.carousel-image,
.crux-card-image,
.footer-socials img {
    height: auto;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    text-align: center;
    background-color: var(--color-black);
    overflow: hidden;
}

/* halo principal */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 25%, rgba(228, 93, 93, 0.18), transparent 32%),
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.04), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* dégradé bas vers la section suivante */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85));
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-logo {
    width: auto;
    height: 500px;
    max-width: 90vw;
    margin-bottom: 28px;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
    animation: heroFloat 5s ease-in-out infinite;
}

.hero-brand {
    display: inline-block;
    font-family: 'LTMuseum';
    font-size: 72px;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-divider {
    width: 700px;
    max-width: 700px;
    height: 1px;
    background-color: var(--color-primary);
    margin: 0 auto 24px;
    box-shadow: 0 0 16px rgba(228, 93, 93, 0.35);
    animation: dividerGlow 3s ease-in-out infinite;
}

.hero-subtitle {
    max-width: 900px;
    font-family: 'Nurom';
    font-size: 40px;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

/* scroll cue */
.hero-scroll {
    margin-top: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity var(--transition), transform var(--transition);
}

.hero-scroll:hover {
    color: var(--color-white);
    opacity: 1;
    transform: translateY(-2px);
}

.hero-scroll-text {
    font-family: 'Nurom';
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    animation: scrollBounce 1.8s ease-in-out infinite;
}

/* animations */
@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes dividerGlow {

    0%,
    100% {
        opacity: 0.75;
        box-shadow: 0 0 10px rgba(228, 93, 93, 0.22);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 18px rgba(228, 93, 93, 0.42);
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.8;
    }

    50% {
        transform: rotate(45deg) translate(4px, 4px);
        opacity: 1;
    }
}

/* =========================
   DUNGEON SECTION
========================= */

.dungeon-section {
    background-color: var(--color-white);
    color: var(--color-black);
    text-align: center;
    font-family: 'Nurom';
}

.dungeon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TITLE */

.dungeon-section h2 {
    font-family: 'LTMuseum';
    font-size: 72px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 24px;
}

/* DESCRIPTION */

.dungeon-description {
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--color-text-dark);
}

/* CAROUSEL LINK */

.dungeon-carousel-link {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 32px;
}

/* CAROUSEL CONTAINER */

.dungeon-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;

    /* effet premium */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.dungeon-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: radial-gradient(circle at center,
            rgba(228, 93, 93, 0.15),
            transparent 70%);

    pointer-events: none;
}

/* IMAGES */

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    transform: scale(1.04);

    transition:
        opacity 0.8s ease-in-out,
        transform 1.2s ease;

    pointer-events: none;
}

/* ACTIVE IMAGE */

.carousel-image.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* DESCRIPTION (UNDER IMAGE) */

.carousel-description {
    max-width: 800px;
    margin: 0 auto 32px;
    color: var(--color-text-dark);

    opacity: 0;
    transform: translateY(10px);

    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-description.visible {
    opacity: 1;
    transform: translateY(0);
}

/* LINKS */

.dungeon-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

/* LIENS PREMIUM */

.dungeon-links a {
    color: var(--color-primary);
    font-size: 0.95rem;

    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;

    position: relative;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

/* HOVER PRO */

.dungeon-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* =========================
   CRUX SECTION
========================= */

.crux-section {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    font-family: 'Nurom';
}

.crux-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* 🔥 IMPORTANT */
}

/* TITLE */

.crux-title {
    font-family: 'LTMuseum';
    font-size: 72px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1;
}

/* DESCRIPTION */

.crux-description {
    max-width: 900px;
    margin: 0 auto 56px;
    color: rgba(255, 255, 255, 0.78);
}

/* GRID */

.crux-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 40px;

    width: 100%;
    max-width: 1800px;
    /* 🔥 plus large */
    margin: 0 auto;
}

/* CARD */

.crux-card {
    position: relative;
    border-radius: 10px;
    /* ← plus fin, plus pro */
    overflow: hidden;

    aspect-ratio: 16 / 9;
    /* 🔥 IMPORTANT */

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

/* LINK FULL CARD */

.crux-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* IMAGE */

.crux-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* DARK OVERLAY */

.crux-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.75) 20%,
            rgba(0, 0, 0, 0.35) 40%,
            transparent 60%);

    z-index: 1;
    pointer-events: none;
}

/* CONTENT */

.crux-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 24px;
    z-index: 2;

    transform: translateY(10px);
    transition: transform 0.4s ease;
}

/* TITLE */

.crux-card-title {
    font-family: 'LTMuseum';
    font-size: 26px;
    color: var(--color-white);
    transition: color 0.3s ease;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* DESCRIPTION */

.crux-card-description {
    font-family: 'Nurom';
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;

    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* HOVER */

.crux-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.crux-card:hover .crux-card-title {
    color: var(--color-primary);
}

.crux-card:hover .crux-card-image {
    transform: scale(1.06);
}

.crux-card:hover .crux-card-description {
    opacity: 1;
    transform: translateY(0);
}

.crux-card:hover .crux-card-content {
    transform: translateY(0);
}

/* RED OUTLINE */

.crux-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 0 0 rgba(228, 93, 93, 0);
    transition: box-shadow 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.crux-card:hover::after {
    box-shadow: 0 0 0 2px rgba(228, 93, 93, 0.5);
}

.crux-card-title::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-primary);

    margin: 8px auto 0;
    border-radius: 2px;

    transition: width 0.3s ease;
}

.crux-card:hover .crux-card-title::after {
    width: 50%;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: linear-gradient(to bottom,
            #020202 0%,
            #050505 100%);
    color: var(--color-white);
}

/* CONTAINER */

.footer-container {
    display: flex;
    flex-direction: column;
    max-width: 1500px;
}

/* TOP */

.footer-top {
    display: flex;
    justify-content: space-between;
    padding: 72px 0 56px;
    flex-wrap: wrap;
}

/* COLUMNS */

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 220px;
}

/* TITLES */

.footer-title {
    font-family: 'LTMuseum';
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.1;
}

/* LINKS */

.footer-column a {
    font-family: 'Nurom';
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: transform var(--transition), color var(--transition), opacity var(--transition);
}

.footer-column a:hover {
    color: var(--color-primary);
    opacity: 1;
    transform: translateX(3px);
}

/* EMAIL */

.footer-email {
    color: var(--color-white);
    font-weight: 700;
}

/* FOLLOW TITLE */

.footer-follow-title {
    margin-top: 20px;
}

/* SOCIALS */

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.footer-socials img {
    width: 18px;
    height: 18px;
    opacity: 0.82;
}

.footer-socials a:hover {
    background: rgba(228, 93, 93, 0.14);
    transform: translateY(-2px);
}

.footer-socials a:hover img {
    opacity: 1;
}

/* BOTTOM */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* LEGAL */

.footer-legal,
.footer-legal a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* COPYRIGHT */

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 900px;
}

/* =========================
   RESPONSIVE FOUNDATION
========================= */

@media (max-width: 1024px) {
    :root {
        --padding-section: 70px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-logo {
        height: 320px;
    }

    .hero-brand {
        font-size: 48px;
    }

    .hero-divider {
        width: 420px;
        max-width: 75vw;
    }

    .hero-subtitle {
        font-size: 26px;
        max-width: 680px;
    }

    .dungeon-section h2 {
        font-size: 48px;
    }

    .dungeon-description {
        max-width: 800px;
        margin-bottom: 32px;
    }

    .dungeon-carousel-link {
        max-width: 900px;
    }

    .crux-title {
        font-size: 48px;
    }

    .crux-grid {
        grid-template-columns: repeat(2, minmax(320px, 480px));
        justify-content: center;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-inline: 16px;
        --padding-section: 60px 0;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    .hero {
        padding: 30px 0;
    }

    .hero::after {
        height: 100px;
    }

    .hero-logo {
        height: 240px;
        max-width: 85vw;
        margin-bottom: 20px;
    }

    .hero-brand {
        font-size: 36px;
        margin-bottom: 18px;
    }

    .hero-divider {
        width: 300px;
        max-width: 70vw;
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 20px;
        max-width: 90%;
    }

    .hero-scroll {
        margin-top: 30px;
    }

    .dungeon-section h2 {
        font-size: 36px;
    }

    .dungeon-description {
        margin-bottom: 28px;
    }

    .dungeon-carousel-link {
        margin-bottom: 20px;
    }

    .carousel-description {
        margin-bottom: 24px;
    }

    .dungeon-links {
        gap: 16px;
    }

    .dungeon-links a {
        font-size: 0.9rem;
    }

    .crux-title {
        font-size: 36px;
    }

    .crux-grid {
        grid-template-columns: minmax(280px, 600px);
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        padding: 48px 0 36px;
    }

    .footer-column {
        align-items: center;
        min-width: auto;
    }

    .footer-column a:hover {
        transform: none;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-copy {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    :root {
        --padding-inline: 14px;
        --padding-section: 50px 0;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.88rem;
    }

    .hero-logo {
        height: 180px;
        max-width: 88vw;
    }

    .hero-brand {
        font-size: 28px;
    }

    .hero-divider {
        width: 220px;
        max-width: 65vw;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-scroll-text {
        font-size: 12px;
    }

    .dungeon-section h2 {
        font-size: 28px;
    }

    .dungeon-description,
    .carousel-description {
        max-width: 100%;
    }

    .dungeon-links {
        flex-direction: column;
        gap: 12px;
    }

    .crux-title {
        font-size: 28px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-column {
        align-items: center;
    }

    .footer-column a:hover {
        transform: none;
    }

    .footer-socials {
        justify-content: center;
    }
}