/* ==========================================================================
   RESET & BASES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    -moz-osx-font-smoothing: grayscale;     
    -webkit-font-smoothing: antialiased;     
    background-color: #F9F6F0;
    color:#1A1A1A;
    font-optical-sizing: auto;
    overflow-x: hidden;        
    text-rendering: optimizeLegibility;
}
p,a{
  font-family: "Inter", sans-serif;
}
h1,h2,h3,h4{
  font-family: "EB Garamond", serif;
}
/* ==========================================================================
   1. NAVIGATION
   ========================================================================== */
nav {                    
    align-items: center;
    display: flex;
    height: clamp(50px, 3.5vw, 80px);
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
nav a {
    align-items: center;
    color: inherit;
    display: flex;
    font-size: clamp(13px, 1vw, 16px);  
    font-weight: 400;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.6s ease-in-out;  
    width: 40.8vw; 
}
nav a:nth-child(1) { 
    justify-content: flex-start; 
    padding-left: 3vw; 
}
nav a:nth-child(2) { 
    justify-content: flex-start;
    padding-left: 0; 
}
nav a:hover { 
    opacity: 0.4; 
}
/* ==========================================================================
   MAIN
   ========================================================================== */
h1 {
    font-size: clamp(32px, 4.4vw, 76px);
    font-weight: 400; 
    letter-spacing: -0.02em;
    line-height: 1.25; 
    max-width: 72vw;
    padding: clamp(80px, 9vw, 150px) 3vw 0 3vw;
    width: 100%;
}
h1 > strong {
    font-weight: 400; 
}
figure {
    display: flex;
    gap: 0; 
    height: auto; 
    margin: 6vw 0 6vw 3vw; 
    max-width: 76vw;
    overflow: hidden;
    width: 100%;
}
figure > img,
figure > video {
    aspect-ratio: 1 / 1; 
    filter: contrast(0.9) brightness(1.02) saturate(0.9);
    object-fit: cover;   
    opacity: 0.95;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease, opacity 0.5s ease;
    width: 50%; 
}
figure > img:hover,
figure > video:hover {
    filter: contrast(1) brightness(1) saturate(1);
    opacity: 1;
}
/* MAIN TEXTE (ACCUEIL) */
section {
    display: grid;
    grid-gap: 3vw 3vw;
    grid-template-columns: repeat(2, 1fr); 
    max-width: 95vw;
    padding: 2vw 3vw 9vw 40.8vw; 
    width: 100%;
}
section > article {
    display: flex;
    flex-direction: column;
    max-width: 30vw;
}
section > article:nth-child(3) {
    grid-column: 1; 
}
section > article h2 {
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.3vw;
}
section > article p {
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 400;
    hyphens: auto;
    line-height: 1.65;
    overflow-wrap: anywhere;
    text-align: left;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    display: flex;
    flex-direction: row;
    margin-top: auto;
    padding: 0 0 3vw 0;
    width: 100%;
}
footer article {
    width: 40.8vw;
}
footer article p,
footer article a {
    color: #000;
    display: block;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.5;
    text-decoration: none;
    transition: opacity 0.4s ease;
}
footer article:nth-child(1) p,
footer article:nth-child(1) a {
    padding: 0 0 0.6vw 3vw;
}
footer article:nth-child(2) p,
footer article:nth-child(2) a,
footer article:nth-child(3) p,
footer article:nth-child(3) a {
    padding: 0 0 0.6vw 0;
}
footer article p + p {
    text-indent: 1.2vw;
}
footer article a:hover {
    opacity: 0.4;
}
/* ==========================================================================
   ADAPTATION MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    body { 
        font-size: 16px;
    }
    nav { 
        height: 3vw;
        padding: 6vw 6vw 0 6vw; 
    }
    nav a { 
        font-size: 3.5vw; 
        letter-spacing: 0.02em;
    }
    nav a:nth-child(1) { 
        padding-left: 0; 
    }
    nav a:nth-child(3) { 
        padding-right: 0; 
    }
    h1 { 
        font-size: 7.4vw; 
        letter-spacing: -0.02em; 
        line-height: 1.35; 
        max-width: 100%;
        padding: 22vw 6vw 12vw 6vw;
    }
    figure { 
        margin: 2vw auto 2vw auto; 
        max-width: calc(100% - 40px);
    }
    figure > video,
    figure > img {
        aspect-ratio: 1 / 1; 
        width: 50%;
    }
    section {
        display: flex;
        flex-direction: column;
        gap: 0; 
        grid-gap: normal;
        grid-template-columns: none;
        padding: 40px 20px 60px 6vw;
    }
    section > article {
        margin-bottom: 12vw;
        max-width: 100%;
        width: 100%;
    }
    section > article:nth-child(3) {
        grid-column: auto;
        margin-bottom: 0;
    }
    section > article h2 { 
        font-size: 5.4vw; 
        line-height: 2;
        margin-bottom: 3vw; 
    }
    section > article p { 
        font-size: 3.5vw; 
        line-height: 1.6; 
        text-align: left;
    }
    footer article { 
        width:50%;
    }
    footer article p + p {
        text-indent: 3.2vw;
    }
    footer article:nth-child(1) p, 
    footer article:nth-child(2) a { 
        display: block;
        font-size: 3vw; 
        line-height: 1.5; 
        padding: 0 0vw 0 6vw;
    }
   footer article:nth-child(2) a { 
        padding-left:12vw;
    }
}