/* ============================================
   JJLR Films — Common Styles
   Shared across all pages: reset, variables,
   header, buttons, utilities, footer, responsive
   ============================================ */

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

/* --- Variables --- */
:root {
    /* Colors */
    --bg-deep: #060a10;
    --bg-dark: #0b1120;
    --bg-card: #101828;
    --bg-card-hover: #162033;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    --white: #ffffff;
    --text: #c8cdd5;
    --text-muted: #7a8290;

    --accent: #6c7bff;
    --accent-glow: rgba(108, 123, 255, 0.25);
    --accent-2: #4f8fff;
    --gradient: linear-gradient(135deg, #6c7bff 0%, #4f8fff 50%, #3b5eff 100%);

    /* Typography */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --section-pad: clamp(5rem, 10vh, 8rem);
    --container-max: 1280px;

    /* Transitions */
    --ease: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}


/* ============================================
   HEADER
   ============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#header.scrolled {
    background: rgba(6, 10, 16, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.nav__logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    transition: all 0.3s var(--ease);
}

#header.scrolled .nav__logo {
    height: 55px;
    width: 55px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s var(--ease);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width 0.3s var(--ease);
}

.nav__link:hover,
.nav__link--active {
    color: var(--white);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gradient);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    display: block;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--gradient);
    color: var(--white);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border-light);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
}


/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.section-title em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.8;
}

.sub-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.block-header {
    margin-bottom: 3rem;
}


/* ============================================
   YOUTUBE FACADE
   ============================================ */
.yt-facade {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.yt-facade__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-facade__play {
    position: relative;
    z-index: 1;
    transition: transform 0.2s var(--ease), opacity 0.2s;
    opacity: 0.85;
}

.yt-facade:hover .yt-facade__play {
    transform: scale(1.1);
    opacity: 1;
}

.yt-facade:hover .yt-facade__play path:first-child {
    fill: #f00;
    fill-opacity: 1;
}


/* ============================================
   CTA SECTION (shared by realisations & immobilier)
   ============================================ */
.cta-section {
    padding: 4rem 0;
    background: var(--bg-deep);
}

.cta-box {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(108, 123, 255, 0.08) 0%, rgba(59, 94, 255, 0.06) 100%);
    border: 1px solid rgba(108, 123, 255, 0.15);
    border-radius: 24px;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-box__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    height: 80px;
    width: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer__brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer__nav h4,
.footer__contact h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer__nav a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    transition: color 0.3s;
}

.footer__nav a:hover {
    color: var(--accent);
}

.footer__contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer__socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer__socials a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer__socials a:hover {
    color: var(--accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__bottom a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer__bottom a:hover {
    color: var(--accent);
}


/* ============================================
   COOKIE BANNER (RGPD)
   ============================================ */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
    background: rgba(11, 17, 32, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
}

.cookie-banner__text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.cookie-banner__btn--accept {
    background: var(--gradient);
    color: var(--white);
}

.cookie-banner__btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.cookie-banner__btn--refuse {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.cookie-banner__btn--refuse:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
    #cookieBanner {
        flex-direction: column;
        text-align: center;
    }
}


/* ============================================
   RESPONSIVE — Common
   ============================================ */
@media (max-width: 1024px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 7rem 2.5rem 2rem;
        gap: 0;
        transition: right 0.4s var(--ease);
        border-left: 1px solid var(--border);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__link {
        width: 100%;
        padding: 1rem 0;
        font-size: 1rem;
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }

    .nav__cta {
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__socials {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}
