@font-face {
    font-family: "TacticSans";
    src: url("../fonts/TacticSans-Reg.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TacticSans";
    src: url("../fonts/TacticSans-Bld.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --primary-yellow: #ffd700;
    --accent-neon: #8a2be2;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --font-title: "TacticSans", sans-serif;
    --font-body: "Roboto", sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-top: 90px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

.text-yellow {
    color: var(--primary-yellow);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: var(--font-title);
}

.logo span {
    color: var(--primary-yellow);
}

.logo img {
    display: block;
    height: 50px;
    width: auto;
}

.footer-logo img {
    display: block;
    max-width: 30%;
    height: auto;
    margin: 0 0 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: white;
}

.btn-header {
    display: inline-block;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    transition: 0.4s;
    border-bottom: 1px solid #333;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-title);
    text-transform: uppercase;
    color: #ddd;
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.nav-links a.active {
    color: var(--primary-yellow);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.nav-cta {
    display: none;
}

.nav-toggle {
    display: none;
    border: 1px solid #333;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.2s;
    transform-origin: center;
}

.nav-toggle-bar:nth-child(1) {
    top: 13px;
}

.nav-toggle-bar:nth-child(2) {
    top: 21px;
}

.nav-toggle-bar:nth-child(3) {
    top: 29px;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: black;
    border: 2px solid var(--primary-yellow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.page-tarifs .btn-header {
    visibility: hidden;
}

@media (max-width: 900px) {
    header {
        padding: 16px 5%;
    }

    .page-home header {
        position: sticky;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid #222;
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.is-open {
        max-height: 70vh;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        padding: 14px 5%;
        border-top: 1px solid #222;
    }

    .btn-header {
        display: none;
    }

    .nav-links .nav-cta {
        display: block;
        margin: 14px 5% 20px;
        width: calc(100% - 10%);
        padding: 12px;
        box-sizing: border-box;
        text-align: center;
        background: var(--primary-yellow);
        color: #000;
        border-radius: 4px;
        font-weight: 800;
    }

    .nav-links .nav-cta:hover {
        background: #fff;
        color: #000;
    }

    .page-tarifs .nav-links .nav-cta {
        display: none;
    }
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background-color: var(--primary-yellow);
    color: black;
}

/* --- FOOTER --- */
footer {
    background: black;
    padding: 60px 5% 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col {
    text-align: left;
}

.footer-col h4 { color: var(--primary-yellow); margin-bottom: 20px; }
.footer-col a { display: block; color: #888; margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: white; padding-left: 5px; }

.copyright {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

.back-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
}

.back-link:hover {
    color: white;
}
