/* -----------------------------------------------------
   RESET
----------------------------------------------------- */

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* -----------------------------------------------------
   VARIABLES
----------------------------------------------------- */

:root {
    --header-height: 72px;

    --color-accent: #cc9900;
    /* or : boutons, liens, titres */
    --color-dark: #000000;
    /* fonds */
    --color-light: #ffffff;
    /* texte */

    --header-bg: rgba(0, 0, 0, 0.45);
    --header-bg-solid: rgba(0, 0, 0, 0.95);

    --max-width: 1120px;
}

/* -----------------------------------------------------
   GLOBAL LAYOUT
----------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* -----------------------------------------------------
   HEADER
----------------------------------------------------- */

.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;

    height: var(--header-height);
    display: flex;
    align-items: center;

    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.site-header--scrolled {
    background-color: var(--header-bg-solid);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* -------- LOGO -------- */

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-light);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #cc9900, #111111);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.85;
}

/* -------- NAV DESKTOP (par défaut) -------- */

.site-nav {
    display: flex;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-size: 0.92rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    position: relative;
    padding-block: 0.15rem;
    opacity: 0.9;
    color: var(--color-light);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.23rem;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    width: 100%;
}

/* -------- NAV MOBILE TOGGLE -------- */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--color-light);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-bar+.nav-toggle-bar {
    margin-top: 5px;
}

/* -----------------------------------------------------
   HERO
----------------------------------------------------- */

.hero {
    position: relative;
    padding-top: var(--header-height);
    /* le header ne cache pas le haut */
    min-height: 100vh;

    /* image par défaut : 1920x1080 */
    background-image: url("../img/hero-1920x1080.webp");
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}

/* Overlay : éclairci pour garder l'image visible */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, 0.35) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.4));
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.hero-content {
    max-width: 480px;
    margin-left: auto;
    /* texte à droite en desktop */
    text-align: right;
    color: var(--color-light);
}

.hero-kicker {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 0.7rem;
}

.hero-title {
    font-size: clamp(2.3rem, 3.3vw, 3.6rem);
    margin: 0 0 1rem;
    color: var(--color-light);
}

.hero-text {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: var(--color-light);
}

/* -----------------------------------------------------
   BOUTONS – CTA principal avec dégradé doré + lumière
----------------------------------------------------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.12em;

    border: 1px solid var(--color-accent);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

/* Fond doré en dégradé */
.btn-primary {
    background: linear-gradient(135deg,
            #b88600 0%,
            #cc9900 35%,
            #e6ad00 70%,
            #ffdf80 100%);
    color: var(--color-dark);
}

/* "Lumière" qui balaye de gauche à droite au survol */
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.6s ease-out,
        opacity 0.2s ease-out;
}

/* Survol + focus : légère élévation + balayage */
.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
    border-color: #ffdf80;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
    opacity: 1;
    transform: translateX(120%);
}

/* -----------------------------------------------------
   ARC SVG (même SVG, hauteur variable)
----------------------------------------------------- */

.hero-arc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* base : 1920px -> 100px */
    pointer-events: none;
    z-index: 1;
}

.hero-arc path {
    fill: var(--color-dark);
    /* fond de la section suivante */
}

/* -----------------------------------------------------
   RESPONSIVE IMAGES (hero background)
----------------------------------------------------- */

/* Très grands écrans (ex. iMac 27", 2560x1440) */
@media (min-width: 1921px) {
    .hero {
        background-image: url("../img/hero-2560x1440.webp");
        background-position: left center;
    }

    .hero-arc {
        height: 133px;
        /* ≈ 2560 * 100 / 1920 */
    }
}

/* Tablettes / petits laptops – image 1200px */
@media (max-width: 1200px) {
    .hero {
        background-image: url("../img/hero-1200x675.webp");
    }
}

/* Petits mobiles – image 800px */
@media (max-width: 600px) {
    .hero {
        background-image: url("../img/hero-800x450.webp");
    }
}

/* -----------------------------------------------------
   NAV & HERO ≤ 1200px (burger = mobile + tablettes)
----------------------------------------------------- */

@media (max-width: 1200px) {

    /* nav mobile / tablette */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
    }

    .site-nav {
        position: absolute;
        left: 0;
        top: var(--header-height);
        width: 100%;
        background: rgba(0, 0, 0, 0.94);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .site-header--nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.1rem 1.6rem;
        gap: 0.9rem;
    }

    /* animation burger -> croix */
    .site-header--nav-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .site-header--nav-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* hero : mise en page plus “tablette/mobile” */
    .hero {
        align-items: flex-end;
    }

    .hero-content {
        margin-left: 0;
        text-align: left;
        max-width: 520px;
    }

    /* arc un peu plus discret sur tablette/mobile */
    .hero-arc {
        height: 50px;
    }
}

/* -----------------------------------------------------
   MOBILE / TABLET PAYSAGE (≤ 1200px)
   → texte contenu à droite, arc plus discret
----------------------------------------------------- */

@media (max-width: 1200px) and (orientation: landscape) {
    .hero-content {
        max-width: 60%;
        margin-left: auto;
        text-align: right;
    }

    .hero-arc {
        height: 40px;
    }
}

/* -----------------------------------------------------
   PETITS MOBILES
----------------------------------------------------- */

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-arc {
        height: 30px;
    }
}