/* ═══════════════════════════════════════════════
       BASE
    ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #070707;
    color: #DEDEDE;
    font-family: 'Lora', Georgia, serif;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
       NOISE GRAIN OVERLAY
    ═══════════════════════════════════════════════ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

/* ═══════════════════════════════════════════════
       SCROLLBAR
    ═══════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: #070707;
}

::-webkit-scrollbar-thumb {
    background: #C94B0A;
}

/* ═══════════════════════════════════════════════
       TYPOGRAPHY UTILITIES
    ═══════════════════════════════════════════════ */
.label {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #C94B0A;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 0.87;
    color: #DEDEDE;
}

/* ═══════════════════════════════════════════════
       EMBER ACCENT LINE
    ═══════════════════════════════════════════════ */
.ember-rule {
    display: inline-block;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, #C94B0A, #F5A623);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
       BUTTONS
    ═══════════════════════════════════════════════ */
.btn-fire {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #DEDEDE;
    background: #C94B0A;
    border: 1px solid #C94B0A;
    padding: 0.85rem 1.75rem;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.btn-fire:hover {
    background: transparent;
    color: #C94B0A;
}

.btn-iron {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #A0A0A0;
    background: transparent;
    border: 1px solid #2C2C2C;
    padding: 0.85rem 1.75rem;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: border-color 0.3s, color 0.3s;
    cursor: pointer;
}

.btn-iron:hover {
    border-color: #C94B0A;
    color: #DEDEDE;
}

/* ═══════════════════════════════════════════════
       NAV
    ═══════════════════════════════════════════════ */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}

#main-nav > div {
    position: relative;
    z-index: 2;
}

body.menu-open {
    overflow: hidden;
}

#main-nav.scrolled {
    background: rgba(7, 7, 7, 0.92);
    border-bottom-color: rgba(201, 75, 10, 0.25);
    backdrop-filter: blur(14px);
}

.nav-link {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #585858;
    position: relative;
    transition: color 0.25s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C94B0A;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #DEDEDE;
}

.nav-link:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════
       HERO
    ═══════════════════════════════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
}

#sparks-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5.5rem, 14vw, 15rem);
    line-height: 0.85;
    letter-spacing: 0.01em;
}

/* Forge image panel */
.hero-img-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 42%;
    height: 100%;
    overflow: hidden;
}

.hero-img-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) saturate(0.8);
    transform-origin: center center;
}

/* Bleed gradients */
.hero-img-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, #070707 0%, rgba(7, 7, 7, 0.3) 40%, rgba(201, 75, 10, 0.12) 100%);
    z-index: 1;
}

/* Hot line on edge */
.hero-img-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, #C94B0A 40%, #F5A623 60%, transparent 100%);
    z-index: 2;
}

/* ═══════════════════════════════════════════════
       VERTICAL LABEL
    ═══════════════════════════════════════════════ */
.vert-text {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #2C2C2C;
    user-select: none;
}

/* ═══════════════════════════════════════════════
       STAT COUNTER
    ═══════════════════════════════════════════════ */
.stat-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: #C94B0A;
}

/* ═══════════════════════════════════════════════
       MÉTIERS CARDS
    ═══════════════════════════════════════════════ */
.metier-card {
    position: relative;
    background: #101010;
    border: 1px solid #1A1A1A;
    border-left: 3px solid #2C2C2C;
    padding: 2.25rem 2rem;
    overflow: hidden;
    transition: border-left-color 0.35s, transform 0.35s;
}

.metier-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 75, 10, 0.05) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s;
}

.metier-card:hover {
    border-left-color: #C94B0A;
    transform: translateY(-3px);
}

.metier-card:hover::before {
    opacity: 1;
}

.metier-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: #1A1A1A;
    transition: color 0.35s;
}

.metier-card:hover .metier-num {
    color: rgba(201, 75, 10, 0.18);
}

.metier-arrow {
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(-6px);
}

.metier-card:hover .metier-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════════════════
       RÉALISATIONS GALLERY
    ═══════════════════════════════════════════════ */
.real-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.real-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.25, .46, .45, .94);
    filter: brightness(0.85) saturate(0.7);
}

.real-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.75) saturate(0.75);
}

.real-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 7, 0.88) 0%, rgba(7, 7, 7, 0.1) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.75rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.real-item:hover .real-overlay {
    opacity: 1;
}

/* Angular corner deco on gallery item */
.real-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-top: 2px solid #C94B0A;
    border-right: 2px solid #C94B0A;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.real-item:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
       PROCÉDÉ STEPS
    ═══════════════════════════════════════════════ */
.step-row {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 2.25rem 0;
    border-top: 1px solid #1A1A1A;
    transition: border-top-color 0.3s;
}

.step-row:hover {
    border-top-color: rgba(201, 75, 10, 0.4);
}

.step-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    color: #1A1A1A;
    flex-shrink: 0;
    width: 5rem;
    transition: color 0.4s;
}

.step-row:hover .step-num {
    color: rgba(201, 75, 10, 0.25);
}

/* ═══════════════════════════════════════════════
       CONTACT EMAIL LINK
    ═══════════════════════════════════════════════ */
.email-giant {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 5.5rem);
    line-height: 1;
    color: #DEDEDE;
    transition: color 0.3s;
    display: block;
}

.email-giant:hover {
    color: #C94B0A;
}

/* ═══════════════════════════════════════════════
       TESTIMONIAL BIG QUOTE
    ═══════════════════════════════════════════════ */
.quote-mark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 8rem;
    line-height: 0.8;
    color: rgba(201, 75, 10, 0.15);
    user-select: none;
}

/* ═══════════════════════════════════════════════
       MOBILE MENU PANEL
    ═══════════════════════════════════════════════ */
#mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    height: 100dvh;
    background: #070707;
    border-top: 1px solid rgba(201, 75, 10, 0.2);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-24px);
    transition:
        max-height 0.55s cubic-bezier(.22, .61, .36, 1),
        opacity 0.35s ease,
        transform 0.55s cubic-bezier(.22, .61, .36, 1),
        padding 0.55s cubic-bezier(.22, .61, .36, 1);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#mobile-panel.is-open {
    max-height: 100dvh;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding-top: clamp(7rem, 18vh, 10rem) !important;
    padding-bottom: clamp(3rem, 10vh, 6rem) !important;
}

#mobile-panel .nav-link {
    color: #DEDEDE !important;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 15vw, 5.8rem);
    letter-spacing: 0.03em;
    line-height: 0.85;
}

#mobile-panel .nav-link::after {
    left: 50%;
    transform: translateX(-50%);
}

#mobile-panel .btn-fire {
    align-self: center;
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════
       ANGULAR SECTION DIVIDER
    ═══════════════════════════════════════════════ */
.cut-top {
    clip-path: polygon(0 8%, 100% 0%, 100% 100%, 0% 100%);
    margin-top: -4rem;
    padding-top: 6rem;
}

.cut-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    padding-bottom: 6rem;
}

/* ═══════════════════════════════════════════════
       REVEAL — initial state (hidden by GSAP)
    ═══════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
}

/* ═══════════════════════════════════════════════
       RESPONSIVE HERO
    ═══════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .hero-img-panel {
        display: none;
    }

    .hero-title {
        font-size: clamp(5rem, 22vw, 9rem);
    }
}
