/* ==========================================
   ES STUDIOS
   WEDDING FILMS & PHOTOGRAPHY
========================================== */

:root{

--cream:#F4EFE8;
--sand:#D7C4AE;
--taupe:#B89A7A;

--dark:#161616;
--black:#0E0E0E;

--white:#FFFFFF;

}

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

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

html{
scroll-behavior:smooth;
}

body{

font-family:'Inter',sans-serif;

font-weight:300;

background:var(--cream);

color:var(--dark);

line-height:1.8;

overflow-x:hidden;

animation:pageIn .55s ease both;

}

@keyframes pageIn{
from{ opacity:0; }
to{ opacity:1; }
}

.page-exit{
animation:pageOut .28s ease both !important;
pointer-events:none;
}

@keyframes pageOut{
to{ opacity:0; }
}

/* ==========================================
   TYPOGRAPHIE
========================================== */

h1,h2,h3,h4,h5{

font-family:'Cormorant Garamond',serif;

font-weight:500;

line-height:1.1;

}

h1{
font-size:6rem;
}

h2{
font-size:4rem;
margin-bottom:30px;
}

h3{
font-size:2rem;
}

p{
font-size:1.05rem;
}

/* ==========================================
   CONTAINER
========================================== */

.container{

width:100%;
max-width:1400px;

margin:auto;

padding:0 40px;

}

/* ==========================================
   SECTIONS
========================================== */

section{

padding:140px 8%;

}

/* ==========================================
   HEADER
========================================== */

.header{

position:fixed;

top:0;
left:0;

width:100%;

padding:30px 5%;

display:flex;
justify-content:space-between;
align-items:center;

z-index:999;

transition:background .6s ease, backdrop-filter .6s ease, box-shadow .6s ease, padding .4s ease;

background:transparent;

}

.logo{

font-family:'Cormorant Garamond',serif;

font-size:2rem;

letter-spacing:2px;

color:white;

text-decoration:none;

}

nav{

display:flex;
gap:30px;

align-items:center;

}

nav a{

text-decoration:none;

color:white;

font-size:.95rem;

letter-spacing:1px;

transition:.3s;

position:relative;

}

nav a::after{

content:'';

position:absolute;

bottom:-3px;
left:0;

width:0;
height:1px;

background:currentColor;

transition:width .35s ease;

}

nav a:hover{

opacity:.8;

}

nav a:hover::after{

width:100%;

}

.header.scrolled{

background:rgba(244,239,232,.92);

backdrop-filter:blur(18px);

box-shadow:0 10px 40px rgba(0,0,0,.06);

}

.header.scrolled .logo,
.header.scrolled nav a{

color:var(--dark);

}

/* ==========================================
   HERO
========================================== */

.hero{

height:100vh;

position:relative;

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

text-align:center;

overflow:hidden;

}

.hero video{
transform:scale(1.03);
position:absolute;

inset:0;

width:100%;
height:100%;

object-fit:cover;

opacity:0;
transition:opacity 1s ease;

}

.hero video.hero-video-ready{
opacity:1;
}

.overlay{

position:absolute;

inset:0;

background:rgba(0,0,0,.50);

}

.hero-content{

position:relative;

z-index:2;

color:white;

max-width:1000px;

padding:20px;

}

.hero-content h1{

font-size:7rem;

line-height:.95;

letter-spacing:-2px;

margin-bottom:30px;

color:white;

text-shadow:0 10px 40px rgba(0,0,0,.35);

}

.hero-content p{

font-size:1.2rem;

max-width:700px;

margin:0 auto 40px;

opacity:.95;

}

/* ==========================================
   IMAGES
========================================== */

.featured-image{

padding:0;
overflow:hidden;

}

.featured-image img{
transition:transform 2.2s cubic-bezier(.25,.46,.45,.94), opacity 1.2s ease;
width:100%;

height:95vh;

object-fit:cover;

object-position:center 60%;

display:block;

transform:scale(1.1);
opacity:0;

}

.featured-image.visible img{

transform:scale(1.03);
opacity:1;

}

.featured-image:hover img{

transform:scale(1.06);

}
/* ==========================================
   QUOTE
========================================== */

.quote-section{

background:var(--dark);

color:white;

text-align:center;

}

.quote-section h2{

max-width:1000px;

margin:auto;

}

/* ==========================================
   EXPERIENCE
========================================== */

.experience{

background:white;

}

.experience-header{

text-align:center;

margin-bottom:80px;

}

.experience-timeline{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:60px;

}

.step{

text-align:center;

}

.step span{

font-family:'Cormorant Garamond',serif;

font-size:4rem;

color:var(--taupe);

display:block;

margin-bottom:20px;

transform:scale(.4) rotate(-8deg);
opacity:0;
transition:transform .65s cubic-bezier(.34,1.56,.64,1), opacity .45s ease;

}

.step.visible span{

transform:scale(1) rotate(0deg);
opacity:1;

}

/* ==========================================
   TESTIMONIALS
========================================== */

.testimonials{

background:var(--cream);

}

.testimonial-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:30px;

}

.testimonial{

background:white;

padding:50px;

min-height:250px;

display:flex;
align-items:center;
border-radius:10px;

box-shadow:0 20px 60px rgba(0,0,0,.05);
}

/* ==========================================
   EMOTION
========================================== */

.emotion-section{

position:relative;

height:90vh;

padding:0;

}

.emotion-section img{

position:absolute;

inset:0;

width:100%;
height:100%;

object-fit:cover;

}

.emotion-section::before{

content:"";

position:absolute;

inset:0;

background:rgba(0,0,0,.45);

z-index:1;

}

.emotion-content{

position:relative;

z-index:2;

height:100%;

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

padding:40px;

text-align:center;

}

.emotion-content h2{

color:white;

max-width:900px;

}

/* ==========================================
   BOUTONS
========================================== */

.btn-dark{

display:inline-block;

padding:18px 42px;

background:var(--dark);

color:white;

text-decoration:none;

letter-spacing:2px;

font-size:.9rem;

text-transform:uppercase;

border:1px solid transparent;

transition:all .4s ease;

}

.btn-dark:hover{

background:var(--taupe);

transform:translateY(-3px);

box-shadow:0 12px 30px rgba(0,0,0,.15);

}
/* ==========================================
   HAMBURGER MENU
========================================== */

.menu-toggle{
display:none;
flex-direction:column;
gap:5px;
background:none;
border:none;
cursor:pointer;
padding:5px;
z-index:1001;
position:relative;
}

.menu-toggle span{
display:block;
width:24px;
height:2px;
background:white;
transition:.3s;
}

.header.scrolled .menu-toggle span{
background:var(--dark);
}

.menu-toggle.active span{
background:var(--dark);
}

.menu-toggle.active span:nth-child(1){
transform:translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
opacity:0;
}

.menu-toggle.active span:nth-child(3){
transform:translateY(-7px) rotate(-45deg);
}

/* ==========================================
   CONTACT CTA
========================================== */

.contact-cta{

background:var(--dark);

color:white;

text-align:center;

}

.contact-cta p{

max-width:700px;

margin:30px auto;

}

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

.footer{

background:var(--black);

color:white;

padding:120px 0;

}

.footer-grid{

display:grid;

grid-template-columns:1fr 1fr 1fr;

gap:50px;

}

.footer a{

display:block;

margin-bottom:15px;

color:white;

text-decoration:none;

transition:.3s;

}

.footer a:hover{

opacity:.6;

}

/* ==========================================
   ANIMATIONS
========================================== */

.fade-section{

opacity:0;

transform:translateY(36px);

transition:
opacity 1s cubic-bezier(.25,.46,.45,.94),
transform 1s cubic-bezier(.25,.46,.45,.94);

}

.fade-section.visible{

opacity:1;

transform:translateY(0);

}

/* Hero cascade */

.hero-content h1,
.hero-content p,
.hero-content .btn-dark{

opacity:0;

transform:translateY(28px);

}

.hero-content.visible h1{

animation:heroIn 1s cubic-bezier(.25,.46,.45,.94) .1s forwards;

}

.hero-content.visible p{

animation:heroIn 1s cubic-bezier(.25,.46,.45,.94) .35s forwards;

}

.hero-content.visible .btn-dark{

animation:heroIn 1s cubic-bezier(.25,.46,.45,.94) .6s forwards;

}

@keyframes heroIn{

to{
opacity:1;
transform:translateY(0);
}

}

@keyframes fadeUp{

from{

opacity:0;

transform:translateY(40px);

}

to{

opacity:1;

transform:translateY(0);

}

}

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

@media(max-width:991px){

h1{
font-size:4rem;
}

h2{
font-size:3rem;
}

.testimonial-grid{
grid-template-columns:1fr;
}

.experience-timeline{
grid-template-columns:1fr;
}

.footer-grid{
grid-template-columns:1fr;
}

nav{
gap:15px;
flex-wrap:wrap;
}

}


@media(max-width:600px){

h1{
font-size:3rem;
}

h2{
font-size:2.2rem;
}

section{

padding:90px 6%;

}

.hero-content h1{

font-size:3.5rem;

}

}

/* PREMIUM CARDS */

.value-card,
.testimonial,
.contact-form{

transition:all .4s ease;

}

.value-card:hover,
.testimonial:hover{

transform:translateY(-6px);

box-shadow:0 20px 50px rgba(0,0,0,.08);

}

/* ==========================================
   MOBILE FIX
========================================== */

@media (max-width:768px){

.menu-toggle{
    display:flex;
}

nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:var(--cream);
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:40px;
    z-index:1000;
    display:none;
    flex-wrap:nowrap;
}

nav.open{
    display:flex;
}

nav a{
    color:var(--dark) !important;
    font-family:'Cormorant Garamond',serif !important;
    font-size:2.8rem !important;
    letter-spacing:1px !important;
    opacity:1;
}

nav a:hover{
    opacity:.6;
}

.header{
    padding:20px 5% !important;
    flex-direction:row !important;
    gap:0 !important;
}

.logo{
    font-size:1.5rem !important;
    text-align:left !important;
}

.menu-toggle.active span{
    background:var(--dark) !important;
}


/* HERO */

.hero,
.about-hero,
.contact-hero,
.films-hero,
.portfolio-hero{

    min-height:100vh;
    height:auto;

}

.hero-content,
.about-hero-content,
.contact-hero-content,
.films-hero-content{

    padding:20px;

}

.hero-content h1,
.about-hero h1,
.contact-hero h1,
.films-hero h1{

    font-size:3rem !important;
    line-height:1.1;

}

.hero-content p,
.about-hero p,
.contact-hero p,
.films-hero p{

    font-size:1rem;
    max-width:100%;

}

/* CONTAINER */

.container{

    padding:0 20px;

}

/* ABOUT */

.story-grid{

    grid-template-columns:1fr;
    gap:40px;

}

.story-grid img{

    height:auto;

}

/* EXPERIENCE */

.experience-timeline{

    grid-template-columns:1fr;

}

/* TESTIMONIALS */

.testimonial-grid{

    grid-template-columns:1fr;

}

/* FOOTER */

.footer-grid{

    grid-template-columns:1fr;
    text-align:center;

}

/* CONTACT */

.contact-grid{

    grid-template-columns:1fr;
    gap:40px;

}

.contact-form{

    padding:25px;

}

}

@media(max-width:600px){

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  max-width:100%;
  min-width:0;
  display:block;
}

.contact-form input[type="date"]{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

.contact-form{
  overflow:hidden;
}

}

/* ==========================================
   ABOUT
========================================== */

.about-hero{
height:90vh;
position:relative;
background:url('../../medias/photos/us_large.webp') center center;
background-size:cover;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
}

.about-hero::before{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,.45);
}

.about-hero-content{
position:relative;
z-index:2;
color:white;
max-width:900px;
padding:20px;
}

.about-hero h1{
font-size:4.8rem;
margin-bottom:20px;
}

.story{
background:#F4EFE8;
}

.story-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:80px;
align-items:center;
}

.story-grid img{
width:100%;
height:700px;
object-fit:cover;
}

.story-text p+p{
margin-top:24px;
}

.values{
background:#161616;
color:white;
}

.values-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
margin-top:60px;
}

.value-card{
padding:40px;
border:1px solid rgba(255,255,255,.1);
}

.value-card h3{
margin-bottom:20px;
}

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

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

.about-quote h2{
max-width:900px;
margin:auto;
}

.travel{
background:#F4EFE8;
text-align:center;
}

.travel p{
margin:auto;
}

@media(max-width:991px){

.story-grid{
grid-template-columns:1fr;
}

.values-grid{
grid-template-columns:1fr;
}

.about-hero h1{
font-size:4rem;
}

}

@media(max-width:768px){

.about-hero{
background-position:53% center;
}

.about-hero h1{
font-size:2.3rem;
line-height:1.1;
white-space:normal;
}

.about-hero p{
font-size:1rem;
}

.story-grid{
gap:40px;
}

.story-grid img{
height:450px;
}

}

@media(max-width:600px){

.about-hero{
height:80vh;
}

.about-hero-content{
padding:30px 20px;
}

.about-hero h1{
font-size:2.2rem;
}

}

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

.contact-hero{
height:70vh;
position:relative;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
overflow:hidden;
}

.contact-hero video{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit:cover;
opacity:0;
transition:opacity 1s ease;
}

.contact-hero video.hero-video-ready{
opacity:1;
}

.contact-hero::before{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,.50);
}

.contact-hero-content{
position:relative;
z-index:2;
color:white;
max-width:900px;
padding:20px;
}

.contact-hero h1{
font-size:clamp(2.4rem,6vw,5rem);
margin-bottom:20px;
white-space:normal;
line-height:1.1;
word-break:break-word;
}

.contact-section{
background:#F4EFE8;
}

.contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:80px;
}

.contact-info h2{
margin-bottom:30px;
}

.contact-form{
background:white;
padding:50px;
}

.contact-form label{
display:block;
margin-bottom:8px;
font-size:0.9rem;
color:#666;
font-family:Inter,sans-serif;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
width:100%;
box-sizing:border-box;
padding:18px;
margin-bottom:20px;
border:1px solid #ddd;
font-family:Inter,sans-serif;
font-size:1rem;
border-radius:0;
}

.contact-form input[type="date"]{
appearance:none;
-webkit-appearance:none;
color:#161616;
}

.contact-form textarea{
height:180px;
resize:none;
}

.contact-form button{
width:100%;
padding:20px;
background:#161616;
color:white;
border:none;
cursor:pointer;
font-size:1rem;
letter-spacing:1px;
transition:opacity .3s;
}

.contact-form button:hover{
opacity:.9;
}

@media(max-width:991px){

.contact-grid{
grid-template-columns:1fr;
}

.contact-hero h1{
font-size:4rem;
}

}

@media(max-width:600px){

.contact-hero h1{
font-size:2.4rem;
}

.contact-form{
padding:30px;
}

.contact-hero-content{
padding:30px 20px;
max-width:95%;
}

}

/* ==========================================
   FILMS PAGE
========================================== */

.films-hero{
height:100vh;
position:relative;
display:flex;
justify-content:center;
align-items:center;
overflow:hidden;
}

.films-hero video{
position:absolute;
inset:0;
width:100%;
height:100%;
object-fit:cover;
opacity:0;
transition:opacity 1s ease;
}

.films-hero video.hero-video-ready{
opacity:1;
}

.films-hero::before{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,.55);
}

.films-hero-content{
position:relative;
z-index:2;
color:white;
text-align:center;
max-width:900px;
padding:20px;
}

.films-hero h1{
font-size:6rem;
margin-bottom:20px;
}

.films-hero p{
font-size:1.2rem;
}

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

.films-intro p{
margin:auto;
max-width:900px;
}

.feature-film{
background:#161616;
color:white;
}

.feature-film video{
width:100%;
display:block;
margin-top:50px;
}

.film-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:40px;
}

.film-card video{
width:100%;
display:block;
}

.film-card h3{
margin-top:20px;
}

.films-list-title{
text-align:center;
margin-bottom:70px;
}

.quote-film{
background:#F4EFE8;
text-align:center;
}

.quote-film h2{
max-width:900px;
margin:auto;
}

@media(max-width:991px){

.film-grid{
grid-template-columns:1fr;
}

.films-hero h1{
font-size:4rem;
}

}

@media(max-width:600px){

.films-hero h1{
font-size:3rem;
}

}

/* ==========================================
   PORTFOLIO PAGE
========================================== */

.portfolio-hero{
height:70vh;
position:relative;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
background:url('../../medias/photos/emplacementphoto-hero.webp') center 30%;
background-size:cover;
}

.portfolio-hero::before{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,.45);
}

.portfolio-hero-content{
position:relative;
z-index:2;
color:white;
}

.portfolio-hero h1{
font-size:6rem;
}

.portfolio-hero p{
margin:auto;
max-width:700px;
}

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

.portfolio-intro p{
margin:auto;
max-width:850px;
}

.masonry{
columns:3;
column-gap:20px;
}

.masonry img{
width:100%;
margin-bottom:20px;
display:block;
cursor:pointer;
transition:.5s;
break-inside:avoid;
}

.masonry img:hover{
transform:scale(1.02);
}

.lightbox{
position:fixed;
inset:0;
background:rgba(0,0,0,.95);
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
padding:40px;
opacity:0;
pointer-events:none;
transition:opacity .32s ease;
}

.lightbox img{
max-width:90%;
max-height:90%;
object-fit:contain;
transform:scale(.92);
opacity:0;
transition:transform .4s cubic-bezier(.34,1.4,.64,1), opacity .3s ease;
}

.lightbox.active{
opacity:1;
pointer-events:all;
}

.lightbox.active img{
transform:scale(1);
opacity:1;
}

.lightbox-prev,
.lightbox-next{
position:absolute;
top:50%;
transform:translateY(-50%);
background:none;
border:none;
color:white;
font-size:2.5rem;
cursor:pointer;
padding:20px;
opacity:.7;
transition:opacity .2s;
z-index:10000;
line-height:1;
}

.lightbox-prev{
left:20px;
}

.lightbox-next{
right:20px;
}

.lightbox-prev:hover,
.lightbox-next:hover{
opacity:1;
}

.lightbox-close{
position:absolute;
top:20px;
right:20px;
background:none;
border:none;
color:white;
font-size:2rem;
cursor:pointer;
opacity:.7;
transition:opacity .2s;
z-index:10000;
line-height:1;
}

.lightbox-close:hover{
opacity:1;
}

.portfolio-quote{
background:#161616;
color:white;
text-align:center;
}

.portfolio-quote h2{
max-width:900px;
margin:auto;
}

@media(max-width:991px){

.masonry{
columns:2;
}

.portfolio-hero h1{
font-size:4rem;
}

}

@media(max-width:600px){

.masonry{
columns:1;
}

.portfolio-hero h1{
font-size:3rem;
}

}