/* ==========================================================================
   1. NORMALIZE / RESET
   ========================================================================== */

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

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #000000;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1em;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 80px;
}

h2 {
    font-size: 50px;
    color: #000000;
    font-weight: 800;
}

p {
    margin: 0 0 1em;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

video {
    max-width: 100%;
}


ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
}

/* ==========================================================================
   2. COLUMN SYSTEM
   ========================================================================== */

.col-wrapper {
    display: flex;
    gap: 1.5rem;
    text-align: center;
    margin-bottom: 0px;
}

.col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .col-wrapper {
        flex-direction: column;
    }
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 6rem 1.25rem 6rem;
}

.site-header .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .logo img {
	height: 80px;
	width: auto;
}

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

.site-nav a {
	text-decoration: none;
    letter-spacing: 0.03em;
    color: #111;
    transition: opacity 0.15s;
    font-weight: 500;
}

/*.site-nav a:hover {
    opacity: 1;
    text-decoration: none;
}*/

.site-nav a.active {
    text-decoration: none;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */

footer {
    background: #f5f5f5;
    padding: 2rem 2rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "logo social nav"
        "copyright copyright copyright";
    min-height: 220px;
    align-items: center;
}

/* =========================
   LOGO
========================= */

footer .logo {
    grid-area: logo;
    display: flex;
    align-items: center;
}

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

/* =========================
   SOCIAL
========================= */

.footer-social {
    grid-area: social;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.footer-social-label {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

/* hover plus subtil (niveau studio) */
.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.footer-social-icons a:hover {
    transform: translateY(-3px);
}

.footer-social-icons a:hover img {
    opacity: 1; /* sécurité : aucune variation */
}

/* =========================
   NAV
========================= */

.footer-right {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: start;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.footer-right a {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

/* =========================
   COPYRIGHT
========================= */

.footer-copyright {
    grid-area: copyright;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    padding-top: 1rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    h1 {
        font-size: 36px !important;
    }

    .site-header {
        padding: 0.75rem 1rem;
    }

    footer {
        padding: 1.5rem 1rem;
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "social"
            "nav"
            "copyright";
        text-align: center;
    }

    footer .logo {
        justify-content: center;
    }

    .footer-right {
        align-items: center;
        align-self: auto;
    }
}

/* ==========================================================================
   6. HOME — HERO
   ========================================================================== */

.hero {
    text-align: center;
    position: relative;
	margin-bottom: 70px;
}

.hero h1 {
    font-size: 85px;
	line-height: 1.05;
    letter-spacing: -0.028em;
	margin-top: 60px;
    margin-bottom: 2.5rem;
}

.home .col-wrapper {
    margin-bottom: 20px;
}

.title-section {
    margin-top: 40px;
}

/* ==========================================================================
   7. GENERIC PAGE CONTENT
   ========================================================================== */

main {
    flex: 1;
    width: 100%;
    padding: 1rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.lead {
    font-weight: 800;
}

main h1 {
    margin-bottom: 2.5rem;
}

.home video {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    display: block;
}

/* ==========================================================================
   8. YOUTUBE
   ========================================================================== */
   
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 2rem;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.project-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}   

.project-credits {
    text-align: center;
    margin-top: 3rem;
}

.project-credits p {
    margin: 0.3rem 0;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   9. IMAGES
   ========================================================================== */
   
.page-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 2rem auto;
}

.project-credits {
    margin-bottom: 3rem;
}

.project-credits + img {
    margin-top: 3rem;
}

/* ==========================================================================
   10. CONTACT
   ========================================================================== */
   
.contact-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid #000;
    border-radius: 999px; /* arrondi total (pill) */
    background: transparent;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-button:hover {
    background: #000;
    color: #fff;
}

.lead {
    font-weight: 800;
    font-size: 1.1rem;
}

.contact h1 {
    font-size: 60px;
}

#email {
    margin-top: 2rem;

    opacity: 0;
    transform: translateY(-5px);

    max-height: 0;
    overflow: hidden;

    filter: blur(4px);

    transition: 
        opacity 0.2s ease,
        transform 0.2s ease,
        max-height 0.2s ease,
        filter 0.2s ease;
		
    cursor: pointer;
	
}

#email.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    filter: blur(0);
}


 /* ==========================================================================
   12. TERMS / LEGAL
   ========================================================================== */  

.legal-page {
    padding: 2rem 2rem 6rem;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.legal-update {
    font-size: 0.9rem;
    margin-bottom: 3rem;
    opacity: 0.7;
}

/* Sections spacing */
.legal-section {
    margin-bottom: 3rem;
}

/* Titles */
.legal-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Text spacing */
.legal-section p {
    margin-bottom: 1rem;
}

/* Lists */
.legal-section ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

/* Link styling */
.legal-section a {
    text-decoration: underline;
    text-underline-offset: 3px;
}   

 /* ==========================================================================
   13. BACK TO TOP
   ========================================================================== */ 
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    padding: 8px 12px;
    text-decoration: none !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-size: 18px;
    color: black;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(4px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* PROJECT NAVIGATION — CLEAN WHITISH VERSION */

.project-navigation {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* ITEM BASE */
.project-navigation .nav-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 16 / 9;
    background: #fff;
    min-width: 0; /* 🔥 empêche les débordements en flex */
}

/* CAS IMPORTANT : quand il n'y a qu'un seul item */
.project-navigation .nav-item:only-child {
    max-width: 600px;
    margin: 0 auto;
}

/* VIDÉO */
.project-navigation .nav-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1); /* base clean */
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), filter 0.6s ease;
}

/* OVERLAY */
.project-navigation .nav-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* TEXTE */
.project-navigation .nav-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #000;
    z-index: 2;
    transition: transform 0.4s ease;
}

.project-navigation .nav-label span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 4px;
}

.project-navigation .nav-label h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
}

/* HOVER */
.project-navigation .nav-item:hover video {
    transform: scale(1.05);
}

.project-navigation .nav-item:hover::after {
    opacity: 0;
}

.project-navigation .nav-item:hover .nav-label {
    transform: translateY(-5px);
}

/* EMPTY SLOT (si tu en utilises un plus tard) */
.project-navigation .nav-item.empty {
    opacity: 0;
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .project-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .project-navigation .nav-item:only-child {
        max-width: 100%;
    }
}

 /* ==========================================================================
   DEMO REEL
   ========================================================================== */ 

.demo-reel-page {
    padding: 80px 20px;
}

/* WRAPPER CINEMA */
.video-wrapper {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
}

/* IFRAME */
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sound-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;

    padding: 10px 14px;
    font-size: 12px;

    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;

    border-radius: 4px;
}

.project-end-label {
    margin: 80px 0 30px;
    text-align: center;
    opacity: 0.4;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}