/* ===========================
   GLOBAL — SerruriePro Cogolin
   =========================== */

/* ===========================
   POLICES LOCALES
=========================== */
@font-face {
    font-family: 'Bebas Neue';
    src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

:root {
    --noir: #0d0f12;
    --acier: #1c2230;
    --acier-m: #2a3347;
    --or: #c8922a;
    --or-clair: #e8b44a;
    --blanc: #f2f0eb;
    --gris: #8a95a3;
    --gris-c: #d4d8de;
    --rouge: #c0392b;

    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Barlow', sans-serif;

    --radius: 4px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .45);
    --trans: .3s cubic-bezier(.4, 0, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background: var(--noir);
    color: var(--blanc);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

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

::-webkit-scrollbar-track {
    background: var(--acier);
}

::-webkit-scrollbar-thumb {
    background: var(--or);
    border-radius: 3px;
}

/* ---- SÉLECTION ---- */
::selection {
    background: var(--or);
    color: var(--noir);
}

/* ========================
   UTILITAIRES
======================== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gold {
    color: var(--or);
}

/* ========================
   HEADER / NAV
======================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 15, 18, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 146, 42, .2);
    transition: var(--trans);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--or);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--trans);
}

.logo:hover .logo-icon {
    transform: rotate(-12deg) scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-family: var(--font-title);
    font-size: 1.4rem;
    letter-spacing: .06em;
    color: var(--blanc);
}

.logo-text span {
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--or);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gris-c);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    padding-bottom: 2px;
    transition: color var(--trans);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--or);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--trans);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blanc);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.btn-urgence {
    background: var(--or);
    color: var(--noir) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    transition: background var(--trans), transform var(--trans) !important;
}

.btn-urgence::after {
    display: none !important;
}

.btn-urgence:hover {
    background: var(--or-clair) !important;
    transform: translateY(-2px);
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--blanc);
    transition: var(--trans);
    border-radius: 2px;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 15, 18, .98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 6vw, 2rem);
    letter-spacing: .08em;
    color: var(--blanc);
    text-decoration: none;
    transition: color var(--trans);
}

.mobile-menu a:hover {
    color: var(--or);
}

/* ========================
   BOUTONS GÉNÉRAUX
======================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--trans);
}

.btn-primary {
    background: var(--or);
    color: var(--noir);
}

.btn-primary:hover {
    background: var(--or-clair);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(200, 146, 42, .4);
}

.btn-outline {
    background: transparent;
    color: var(--blanc);
    border: 1px solid rgba(255, 255, 255, .3);
}

.btn-outline:hover {
    border-color: var(--or);
    color: var(--or);
    transform: translateY(-3px);
}

/* ========================
   SECTION COMMUNE
======================== */
section {
    padding: 96px 0;
}

.section-label {
    display: inline-block;
    font-size: .7rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: .04em;
    color: var(--blanc);
    margin-bottom: 20px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--gris);
    max-width: 560px;
    line-height: 1.8;
}

/* ========================
   BADGE URGENCE
======================== */
.urgence-bar {
    background: var(--rouge);
    text-align: center;
    padding: 10px 24px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.urgence-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.urgence-bar a:hover {
    text-decoration: underline;
}

/* ========================
   FOOTER
======================== */
footer {
    background: var(--acier);
    border-top: 1px solid rgba(200, 146, 42, .2);
    padding: 60px 0 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand p {
    color: var(--gris);
    font-size: .9rem;
    margin-top: 16px;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: .1em;
    color: var(--or);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--gris);
    text-decoration: none;
    font-size: .9rem;
    transition: color var(--trans);
}

.footer-col ul li a:hover {
    color: var(--or-clair);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: 48px;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gris);
    font-size: .8rem;
}

/* ========================
   ANIMATIONS
======================== */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {

    .nav-links,
    .btn-urgence {
        display: none;
    }

    .burger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* S'assurer que le logo ne prend pas toute la place */
    .logo-text strong {
        font-size: 1.1rem;
    }

    .logo-text span {
        font-size: .62rem;
    }
}