:root {
    --gold: #d4af37;
    --gold-deep: #b8860b;
    --navy: #0f1729;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background-color: var(--navy);
    background-image: radial-gradient(rgba(212, 175, 55, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
}

h1, h2, h3, .logo-text, .logo-letter, .process-number, .section-tag {
    font-family: "Outfit", "Roboto", sans-serif;
}

::selection { background: var(--gold-deep); color: #fff; }

/* ---------- Nav ---------- */
.navbar {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 28px));
    padding: 0.55rem 0.55rem 0.55rem 1.15rem;
    border-radius: 999px;
    background: rgba(15, 23, 41, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.navbar.scrolled {
    background: rgba(15, 23, 41, 0.94);
    border-color: rgba(212, 175, 55, 0.45);
}
.logo-letter {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-right: 0.55rem;
    border-radius: 10px;
    background: var(--gold-deep);
    color: #fff;
    font-size: 1.25rem;
}
.nav-links ul { gap: 0.15rem; }
.nav-link, .phone-number, .navbar .cta-button, .logo-text { white-space: nowrap; }
.nav-link {
    padding: 0.45rem 0.55rem;
    border-radius: 999px;
    font-size: 0.86rem;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold); }

.cta-button,
.contact-form button,
.secondary-button {
    border-radius: 999px;
}
.cta-button,
.contact-form button {
    background: var(--gold-deep);
    box-shadow: 0 10px 28px -14px rgba(184, 134, 11, 0.9);
}
.cta-button:hover,
.contact-form button:hover {
    background: #8b6508;
    transform: translateY(-2px);
}
.hero-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.hero-cta .cta-button::after {
    content: "→";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -6px -8px -6px 0;
    border-radius: 50%;
    background: #fff;
    color: var(--gold-deep);
    font-size: 0.95rem;
    transition: transform 0.45s var(--ease);
}
.hero-cta .cta-button:hover::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    align-items: flex-end;
    padding: 8.5rem 6% 5rem;
    background:
        linear-gradient(90deg, rgba(15, 23, 41, 0.92) 0%, rgba(15, 23, 41, 0.55) 52%, rgba(15, 23, 41, 0.35) 100%),
        url("../images/hero-bg.webp");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    width: 48vw;
    height: 48vw;
    left: -12vw;
    top: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.45), transparent 65%);
    filter: blur(40px);
    animation: goldGlow 14s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes goldGlow { to { transform: translate(12vw, 6vh) scale(1.15); } }
.hero-content { margin: 0; max-width: 760px; position: relative; z-index: 1; }
section[id] { scroll-margin-top: 7.5rem; }
.hero h1 {
    max-width: 14ch;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.95;
    margin-bottom: 1.25rem;
}
.hero h1 .gold {
    display: block;
    max-width: none;
    margin-top: 0.7rem;
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}
.hero-description { font-size: 1.12rem; color: rgba(255, 255, 255, 0.82); }
.hero h1,
.hero-description,
.hero-cta,
.hero-stats {
    animation: rise 0.9s var(--ease) both;
}
.hero-description { animation-delay: 0.12s; }
.hero-cta { animation-delay: 0.22s; }
.hero-stats { animation-delay: 0.32s; }
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}
.hero-stats { gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 1.4rem; }
.stat-item { padding-right: 1.6rem; }
.stat-item + .stat-item { padding-left: 1.6rem; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stat-item b {
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold);
    margin-right: 0.25rem;
}

/* ---------- Marquee ---------- */
.brand-marquee {
    overflow: hidden;
    background: transparent;
    border-block: 1px solid rgba(212, 175, 55, 0.16);
    padding: 0.75rem 0;
}
.brand-track {
    display: flex;
    gap: 2.2rem;
    width: max-content;
    animation: marquee 32s linear infinite;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.6vw, 1.15rem);
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.72);
}
.brand-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro & brands ---------- */
.intro-section,
.brands-section {
    padding: 5.5rem 6%;
    background: transparent;
}
.intro-inner,
.brands-inner { max-width: 1100px; margin: 0 auto; }
.intro-inner { text-align: center; }
.intro-section h2,
.brands-copy p,
.intro-section p,
.brands-note {
    color: #e5e7eb;
}
.intro-section h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
}
.intro-section p,
.brands-copy p {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 860px;
    margin: 0 auto 1.3rem;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.brand-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    transition: transform 0.45s var(--ease), border-color 0.3s, background 0.3s;
}
.brand-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(255, 255, 255, 0.09);
}
.brand-card h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 0.7rem; }
.brand-card p,
.brands-note { color: #e5e7eb; line-height: 1.7; }
.brands-note { text-align: center; margin-top: 1.8rem; }

/* ---------- Reveal ---------- */
/* Le texte reste visible. L'animation ne le cache que si le script est prêt à le révéler. */
.section-header,
.sim-card,
.service-card,
.process-card,
.why-us-card,
.brand-card,
.info-card,
.intro-inner,
.faq-item {
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.3s, border-color 0.3s;
}
html.motion-ready .section-header:not(.fade-in),
html.motion-ready .sim-card:not(.fade-in),
html.motion-ready .service-card:not(.fade-in),
html.motion-ready .process-card:not(.fade-in),
html.motion-ready .why-us-card:not(.fade-in),
html.motion-ready .brand-card:not(.fade-in),
html.motion-ready .info-card:not(.fade-in),
html.motion-ready .intro-inner:not(.fade-in),
html.motion-ready .faq-item:not(.fade-in) {
    opacity: 0;
    transform: translateY(28px);
}
.fade-in { opacity: 1; transform: none; }
.service-card:nth-child(2),
.process-card:nth-child(2),
.why-us-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3),
.process-card:nth-child(3),
.why-us-card:nth-child(3) { transition-delay: 0.16s; }
.process-card:nth-child(4) { transition-delay: 0.24s; }

.section-tag {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.service-card,
.process-card,
.why-us-card,
.faq-item,
.info-card,
.contact-form {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}
.service-card:hover,
.why-us-card:hover,
.process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 24px 40px -28px rgba(184, 134, 11, 0.55);
}
.service-card.fade-in:hover,
.why-us-card.fade-in:hover,
.process-card.fade-in:hover { transform: translateY(-8px); }

.process-number {
    background: none;
    -webkit-text-fill-color: var(--gold);
    color: var(--gold);
}

/* ---------- FAQ ---------- */
.faq-item p {
    display: block;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s ease, margin 0.45s var(--ease);
}
.faq-item.active p {
    display: block;
    max-height: 28rem;
    margin-top: 1rem;
    opacity: 1;
}
.faq-item h3::after { transition: transform 0.3s var(--ease); }
.faq-item.active h3::after { transform: rotate(180deg); }

/* ---------- Creations filmstrip ---------- */
.creations { padding: 5rem 0 5rem 6%; background: transparent; }
.carousel-container { width: 100%; max-width: none; margin: 0; }
.carousel {
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
}
.carousel-track {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.4rem 6% 1.2rem 0;
    scrollbar-width: none;
    transition: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.carousel-slide img {
    width: 100%;
    max-width: none;
    height: 400px;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.carousel-slide:hover img { transform: scale(1.05); }
.carousel-button {
    background: var(--gold-deep);
    width: 44px;
    height: 44px;
}
.carousel-button.prev { left: 8px; }
.carousel-button.next { right: 8px; }

/* ---------- Simulateur ---------- */
.sim-section { padding: 5.5rem 6% 4.5rem; }
.sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}
.sim-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.4rem, 2.4vw, 2.2rem);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.sim-card::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -120px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 68%);
    pointer-events: none;
}
.sim-top, .sim-field > span, .sim-result {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.sim-top h3 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    color: #fff;
}
.sim-top span, .sim-field, .bar-row span, .sim-note {
    color: rgba(255, 255, 255, 0.62);
}
.sim-top span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.sim-field { display: grid; gap: 0.65rem; font-size: 0.95rem; }
.sim-field b, .bar-row b, .sim-result b { color: var(--gold); font-family: "Outfit", sans-serif; }
.sim-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.sim-field input[type="number"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font: inherit;
}
.sim-field input[type="number"]:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.18);
}
.sim-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--gold) var(--p, 30%), rgba(255, 255, 255, 0.12) var(--p, 30%));
    outline: none;
}
.sim-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--gold-deep);
    cursor: grab;
    box-shadow: 0 0 0 6px rgba(184, 134, 11, 0.18);
}
.sim-field input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--gold-deep);
}
.seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.seg button {
    padding: 0.7rem 0.4rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}
.seg button.active { background: var(--gold-deep); color: #fff; }
.bars { display: grid; gap: 0.85rem; }
.bar-row {
    display: grid;
    grid-template-columns: 78px 1fr 78px;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.bar-row b { text-align: right; }
.bar {
    position: relative;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.bar i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 6px;
    transition: width 0.7s var(--ease);
}
.b-stock { background: rgba(255, 255, 255, 0.28); z-index: 1; }
.b-tuned { background: var(--gold); box-shadow: 0 0 16px rgba(212, 175, 55, 0.45); }
.sim-result {
    margin-top: auto;
    align-items: center;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.35);
}
.sim-result span {
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.sim-result b { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 800; line-height: 1; }
a.info-card {
    display: block;
    text-decoration: none;
    color: #fff;
}
a.info-card h3 { color: #fff; }
a.info-card p { color: #f3f4f6; }
a.info-card:hover { border-color: rgba(212, 175, 55, 0.45); }
.sim-note-center { text-align: center; margin-top: 1.4rem; }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.18);
}

@media screen and (max-width: 968px) {
    .navbar {
        width: calc(100% - 20px);
        padding: 0.4rem 0.4rem 0.4rem 0.65rem;
        gap: 0.35rem;
        border-radius: 22px;
        overflow: visible;
    }
    .nav-brand {
        flex: 1;
        min-width: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 0.55rem;
    }
    .logo-link { min-width: 0; }
    .logo-letter {
        width: 32px;
        height: 32px;
        margin-right: 0.35rem;
        font-size: 1rem;
        flex-shrink: 0;
    }
    .logo-text {
        font-size: 0.78rem;
        white-space: nowrap;
    }
    .nav-brand .social-links {
        margin-left: 0;
        justify-self: center;
        gap: 0.35rem;
    }
    .nav-brand .social-link {
        width: 26px;
        height: 26px;
        font-size: 0.78rem;
    }
    .mobile-menu-button {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border-radius: 12px;
    }
    .mobile-menu-button i {
        font-size: 1.15rem;
        line-height: 1;
    }
    .nav-links,
    .nav-links.active {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        border-radius: 18px;
        background: #0f1729;
        border: 1px solid rgba(212, 175, 55, 0.25);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
        padding: 0.8rem;
    }
}
@media screen and (max-width: 768px) {
    main, .footer { text-align: center; }
    .hero { align-items: center; padding: 7.5rem 1.25rem 3rem; text-align: center; }
    .hero-content { text-align: center; align-items: center; margin-top: 0; margin-left: auto; margin-right: auto; }
    .hero h1 {
        font-size: clamp(1.85rem, 8.2vw, 2.45rem);
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: manual;
    }
    .hero-description { text-align: center; padding: 0; margin-left: auto; margin-right: auto; }
    .hero-cta { align-items: stretch; width: 100%; margin-left: auto; margin-right: auto; }
    .hero-cta .cta-button, .hero-cta .secondary-button { justify-content: center; }
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-left: auto;
        margin-right: auto;
        max-width: none;
    }
    .stat-item,
    .stat-item + .stat-item {
        border: 0;
        padding: 0;
        justify-content: center;
        text-align: center;
    }
    .section-header, .intro-inner, .brand-card, .process-card, .why-us-card, .sim-card, .service-card, .faq-item, .info-card {
        text-align: center;
    }
    .service-icon { margin-left: auto; margin-right: auto; }
    .service-features, .service-features li { text-align: center; justify-content: center; }
    .service-link { justify-content: center; }
    .process-list { align-items: stretch; }
    .process-list li {
        display: block;
        padding-left: 0;
        text-align: center;
    }
    .process-list li::before {
        position: static;
        display: inline-block;
        margin: 0 0.55rem 0.12rem 0;
        vertical-align: middle;
    }
    .faq-item h3 {
        display: grid;
        grid-template-columns: 1.6rem 1fr 1.6rem;
        align-items: center;
        text-align: center;
    }
    .faq-item h3::before { content: ""; }
    .faq-item h3::after { position: static; justify-self: end; }
    .sim-top, .sim-field > span, .sim-result {
        justify-content: center;
        text-align: center;
    }
    .sim-top { align-items: center; }
    .bar-row, .bar-row b { text-align: center; }
    .contact-form input, .contact-form textarea { text-align: center; }
    .sim-grid, .sim-prices { grid-template-columns: 1fr; }
    .sim-top { flex-direction: column; gap: 0.3rem; }
    .seg { grid-template-columns: 1fr; }
    .carousel-slide { min-width: 230px; width: 230px; }
    .carousel-slide img { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero h1, .hero-description, .hero-cta, .hero-stats,
    .section-header, .sim-card, .service-card, .process-card, .why-us-card,
    .brand-card, .info-card, .intro-inner, .faq-item { animation: none; opacity: 1; transform: none; }
    .hero::before, .brand-track { animation: none; }
}
