/* =========================
   FONTS (cinéma)
========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&family=Playfair+Display:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&family=Playfair+Display:wght@400;500&family=Space+Grotesk:wght@500;600&display=swap');

/* =========================
   RESET
========================= */

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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #111;
    line-height: 1.7;
    font-weight: 300;
}

/* =========================
   GLOBAL
========================= */

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

/* largeur réduite */

.wrapper {
    width: 72%;
    max-width: 1050px;
    margin: 0 auto;
}

/* ratio respecté */

img, video {
    display: block;
    width: 100%;
    height: auto;
}

/* arrondis subtils */

img {
    border-radius: 4px;
}

.project img {
    border-radius: 5px;
}

.mainstill,
.showreel,
.filmvideo {
    border-radius: 6px;
}

.filmvideo {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* ratio 16:9 */
}

.filmvideo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
}
/* =========================
   HEADER
========================= */

header {
    width: 72%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 0 0;
}

/* ligne principale */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* nom */

.name {
    font-family: 'Playfair Display', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    font-variant-caps: small-caps;
}


/* métier à droite */

.metiers {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #777;
    text-transform: uppercase;
}

/* =========================
   NAV centré
========================= */

nav {
    text-align: center;
    margin-top: 45px;
    margin-bottom: 60px; /* plus d'espace sous header */
}

.sommaire {
    list-style: none;
}

.sommaire li {
    display: inline-block;
    margin: 0 25px;
}

.sommaire a {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.sommaire a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: #111;
    transition: width 0.3s ease;
}

.sommaire a:hover::after {
    width: 100%;
}

/* =========================
   HOME VIDEO
========================= */

.showreel {
    width: 72%;
    max-width: 1050px;
    margin: 0 auto 80px;
}

/* =========================
   GALLERY
========================= */

.gallery {
    width: 72%;
    max-width: 1050px;
    margin: 0 auto 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.project {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.project img {
    transition: transform 0.8s ease;
}

.project:hover img {
    transform: scale(1.04);
}

/* overlay centré */

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
	flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.35);
    opacity: 0;

    transition: opacity 0.4s ease;
}

.project:hover .overlay {
    opacity: 1;
}

.overlay h2 {
    font-family: 'Playfair Display', sans-serif;
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
}

.overlay h3 {
  
    color: #fff;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-align: center;
    text-transform: lowercase;
}

/* =========================
   PAGE FILM
========================= */

section {
    width: 72%;
    max-width: 1050px;
    margin: 0 auto 100px;
}

/* TITRES */

.filmheader {
    margin-bottom: 40px;
    padding-left: 15px;
}

.filmheader h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.4rem;
    display: inline-block;
    margin-right: 10px;
}

.filmheader h3 {
    display: inline-block;
    font-size: 0.85rem;
    color: #777;
    font-weight: 300;
}

/* INFOS */

.filminfos {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 50px;
    margin-bottom: 60px;
	align-items: center; /* centre verticalement */
}

.filminfos p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
}

/* specs plus discret */

.filmspecs {
    font-size: 0.6rem;
    color: #888;
	
}

.filminfos {
	margin: 5% 0;
}

/* pitch plus lisible */

.filmpitch {
    line-height: 1.8;
	text-align:justify;
}

/* VIDEO */

.filmvideo {
    margin-bottom: 60px;
}

/* =========================
   MASONRY STILLS
========================= */

.filmstills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
	row-gap: 3px;
}

/* responsive */

@media (max-width: 900px) {
    .filmstills {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .filmstills {
        column-count: 1;
    }
}

/* images sans crop */

.filmstills img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 4px;
}



/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 999;
}

/* image */

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
}

/* bouton fermer */

.close {
    position: absolute;
    top: 25px;
    right: 40px;

    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* flèches */

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* hover subtil */

.nav:hover,
.close:hover {
    opacity: 0.6;
}

/* =========================
   PAGE CONTACT
========================= */

main {
    width: 72%;
    max-width: 1050px;
    margin: 60px auto 120px;
}

/* CONTENEUR PRINCIPAL */

.contact-container {
    display: flex;
    width: 100%;
}

/* COLONNES 50 / 50 */

.container-left {
	width: 40%;
}
.container-right {
    width: 60%;
}

/* =========================
   IMAGE (gauche)
========================= */

.container-left {
    display: flex;
    justify-content: flex-end; /* colle l'image au centre */
    padding-right: 40px;
}

.phototete {
    width: 230px;
    height: auto;
    border-radius: 6px;
}

/* =========================
   TEXTE (droite)
========================= */

.container-right {
    display: flex;
    align-items: center; /* centre verticalement */
    padding-left: 40px;
}

.about {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* bio */

.about > p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
}

/* contact */

.about div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about div p {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
    transition: color 0.3s ease;
}

.about div p:hover {
    color: #111;
}

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

@media (max-width: 800px) {

    .contact-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .container-left,
    .container-right {
        width: 100%;
	}
}

/* =========================
   FOOTER
========================= */

footer {
    width: 100%;
    text-align: center;
    margin: 120px 0 40px;
}

.footer {
    font-size: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
}

