/* ===============================================
   IMPORT DES POLICES
   =============================================== */

@font-face {
    font-family: 'Helonik';
    src: url('../../ressources/ckhans-fonts-helonik-extended-bold-demo.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'TeX Gyre Heros';
    src: url('../../ressources/texgyreheros-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TeX Gyre Heros';
    src: url('../../ressources/texgyreheros-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'TeX Gyre Heros';
    src: url('../../ressources/texgyreheros-italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'TeX Gyre Heros';
    src: url('../../ressources/texgyreheros-bolditalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'TeX Gyre Heros Cn';
    src: url('../../ressources/texgyreheroscn-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TeX Gyre Heros Cn';
    src: url('../../ressources/texgyreheroscn-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'TeX Gyre Heros Cn';
    src: url('../../ressources/texgyreheroscn-italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'TeX Gyre Heros Cn';
    src: url('../../ressources/texgyreheroscn-bolditalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

/* ===============================================
   VARIABLES CSS
   =============================================== */

:root {
    /* Couleurs */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #CCCCCC;
    --color-gray-dark: #333333;

    /* Typographie */
    --font-primary: 'TeX Gyre Heros', Arial, sans-serif;
    --font-heading: 'Helonik', 'TeX Gyre Heros', Arial, sans-serif;
    --font-condensed: 'TeX Gyre Heros Cn', Arial, sans-serif;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --max-width: 1320px;
    --header-height: 64px;
    --hero-height: 64vh;
    --intro-balance: 0.35rem;
    --side-padding: 1.5rem;
    --highlight-hero-title-size: clamp(0.9rem, 2.28vw, 1.5rem);
    --highlight-hero-subtitle-size: clamp(0.47rem, 1.17vw, 0.77rem);
    --highlight-hero-text-gap: 0.32rem;
}

/* ===============================================
   RESET & BASE
   =============================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

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

ul {
    list-style: none;
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: none;
    z-index: 10;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    height: var(--header-height);
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 400;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-black);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.hero {
    padding: 0;
}

.hero-image {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background-color: var(--color-black);
    height: var(--hero-height);
}

.hero-image img,
.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===============================================
   SECTION INTRO
   =============================================== */

.intro {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height) - var(--hero-height));
    padding: 2.5rem var(--side-padding) 2.75rem;
    border-bottom: 1px solid var(--color-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: bold;
    line-height: 0.85;
    margin-bottom: 0;
    letter-spacing: -0.04em;
    text-align: left;
}

.intro-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.intro-description {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: left;
    margin-top: -0.1rem;
}

.intro-link {
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: underline;
    white-space: nowrap;
}

/* ===============================================
   SECTION HIGHLIGHT
   =============================================== */

.highlight {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem var(--side-padding) 2rem;
}

.highlight-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.75rem;
}

.highlight-hero {
    position: relative;
    margin: 0 0 6rem;
    overflow: hidden;
    border-radius: 6px;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.highlight-hero img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
}

.highlight-hero-text {
    position: absolute;
    left: max(calc((100vw - var(--max-width)) / 2 + var(--side-padding)), var(--side-padding));
    bottom: 1rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: var(--highlight-hero-text-gap);
}

.highlight-hero-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0;
    line-height: 0.82;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.highlight-hero-text p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.8rem;
    margin-top: 0;
    line-height: 0.82;
    white-space: normal;
    overflow-wrap: anywhere;
}

.highlight-hero-label {
    position: absolute;
    right: max(calc((100vw - var(--max-width)) / 2 + var(--side-padding)), var(--side-padding));
    bottom: 1rem;
    font-size: 0.75rem;
    color: var(--color-white);
    font-weight: 400;
    text-decoration: underline;
    text-transform: none;
}

.highlight-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 2fr;
    gap: 2rem;
    align-items: start;
    margin: 0 0 6rem;
}

.highlight-text h4 {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.highlight-text p {
    font-size: 0.7rem;
    line-height: 1.6;
}

.highlight-media {
    position: relative;
}

.highlight-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.highlight-label {
    position: absolute;
    right: 0.5rem;
    bottom: -1.25rem;
    font-size: 0.7rem;
}

.highlight-full {
    position: relative;
    margin: 0 0 6rem;
    overflow: hidden;
    border-radius: 6px;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.highlight-full img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
}

.highlight-full:last-of-type {
    margin-bottom: 0;
}

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

.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 7rem var(--side-padding) 6rem;
    border-top: 1px solid var(--color-white);
    margin-top: 0;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.footer-links {
    display: flex;
    gap: 0.9rem;
    font-size: 0.62rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

.footer-meta {
    font-size: 0.62rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-right: 0;
    display: block;
    font-size: 1.5rem;
    line-height: 0.95;
}

.footer-note {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.1;
}

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

@media (max-width: 768px) {
    .nav-menu {
        gap: 0.75rem;
    }

    .intro {
        padding: var(--spacing-md) var(--spacing-md);
    }

    .main-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .intro-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .highlight-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.7rem;
    }

    .nav-menu {
        gap: var(--spacing-xs);
    }

    .nav-link {
        font-size: 0.7rem;
    }
}

/* ===============================================
   RESPONSIVE BREAKPOINTS PRESETS
   Base actuelle: 1440px et plus
   =============================================== */

@media (max-width: 1200px) {
    :root {
        /* Preset Small Desktop - a ajuster plus tard */
        --side-padding: 1.5rem;
        --hero-height: 64vh;
        --highlight-hero-title-size: clamp(0.9rem, 2.28vw, 1.5rem);
        --highlight-hero-subtitle-size: clamp(0.47rem, 1.17vw, 0.77rem);
        --highlight-hero-text-gap: 0.32rem;
    }
}

/* ===============================================
   PAGE PROJETS
   =============================================== */

.projects-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem var(--side-padding) 5rem;
}

.projects-hero {
    margin-bottom: 3rem;
}

.projects-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.88;
}

.projects-subtitle {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: block;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card h2 {
    margin-top: 0.25rem;
    font-family: var(--font-heading);
    font-size: clamp(0.72rem, 1.05vw, 1rem);
    line-height: 0.9;
}

.project-card:hover img {
    transform: scale(1.02);
}

@media (max-width: 640px) {
    .projects-main {
        padding: 2.5rem var(--side-padding) 3.5rem;
    }
}

@media (max-width: 860px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    :root {
        /* Preset Tablet - a ajuster plus tard */
        --side-padding: 1.5rem;
        --hero-height: 64vh;
        --highlight-hero-title-size: clamp(0.9rem, 2.28vw, 1.5rem);
        --highlight-hero-subtitle-size: clamp(0.47rem, 1.17vw, 0.77rem);
        --highlight-hero-text-gap: 0.32rem;
    }
}

@media (max-width: 768px) {
    :root {
        /* Preset Mobile Large - a ajuster plus tard */
        --side-padding: 1.5rem;
        --hero-height: 64vh;
        --highlight-hero-title-size: clamp(0.9rem, 2.28vw, 1.5rem);
        --highlight-hero-subtitle-size: clamp(0.47rem, 1.17vw, 0.77rem);
        --highlight-hero-text-gap: 0.32rem;
    }
}
