/* ================= VARIABLES ================= */

:root {
    --ivoire: #f7f4ef;
    --noir: #111;
    --gris: #666;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= GLOBAL ================= */

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--ivoire);
    color: var(--noir);

    /* Optimisation rendering */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================= IMAGES ================= */

img {
    max-width: 100%;
    display: block;

    /* Optimisation rendering */
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;

    transition:
        background 0.3s ease,
        color 0.3s ease;

    will-change: background;
}

.header-inner {
    max-width: 1400px;
    margin: auto;

    padding: 25px 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.transparent {
    background: transparent;
    color: white;
}

.header.scrolled {
    background: var(--ivoire);
    color: var(--noir);
}

/* ================= LOGO ================= */

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    letter-spacing: 1px;
}

/* ================= NAVIGATION ================= */

.nav a {
    margin-left: 30px;

    text-decoration: none;
    color: inherit;

    font-weight: 400;

    transition:
        opacity 0.3s ease,
        font-weight 0.3s ease;
}

.nav a:hover {
    opacity: 0.7;
}

.nav a.active {
    font-weight: 500;
    position: relative;
}

.nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 100%;
    height: 1px;

    background: currentColor;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    height: 80vh;

    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /* Optimisation LCP */
    contain: layout paint style;
}

/* ================= HERO TEXT ================= */

.hero-text {
    position: absolute;

    bottom: 80px;
    left: 80px;

    max-width: 520px;

    color: white;

    z-index: 2;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 15px;

    text-shadow:
        0 2px 4px rgba(0,0,0,0.9),
        0 6px 18px rgba(0,0,0,0.6);
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;

    text-shadow:
        0 2px 4px rgba(0,0,0,0.9),
        0 6px 18px rgba(0,0,0,0.6);
}

/* ================= SLIDER ================= */

.slider {
    height: 100vh;

    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    opacity: 0;

    transition: opacity 0.7s ease;
}

.slide.active {
    opacity: 1;
}

.slider-controls .arrow {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    font-size: 42px;
    color: white;

    cursor: pointer;

    padding: 20px;

    user-select: none;
}

.arrow.left {
    left: 30px;
}

.arrow.right {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 35px;

    width: 100%;
    text-align: center;
}

.dot {
    width: 10px;
    height: 10px;

    background: #333;

    opacity: 0.6;

    border-radius: 50%;

    display: inline-block;

    margin: 0 7px;
}

.dot.active {
    background: white;
    opacity: 1;
}

/* ================= SECTIONS ================= */

.section {
    position: relative;
    padding: 120px 160px;
}

.section.with-side-text {
    overflow-x: hidden;
}

/* ================= SIDE TEXT ================= */

.side-text {
    position: absolute;
    top: 50%;

    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 500;

    text-decoration: none;
    color: var(--noir);

    white-space: nowrap;
}

.side-text.left {
    left: 50px;
    transform: translateY(-50%) rotate(-90deg);
}

.side-text.right {
    right: 50px;
    transform: translateY(-50%) rotate(90deg);
}

/* ================= INTRO ================= */

.intro-text {
    max-width: 800px;

    margin: 120px auto;
    padding: 0 40px;

    text-align: center;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gris);
}

/* ================= CARDS ================= */

.cards {
    display: flex;
    gap: 40px;

    max-width: 1200px;
    margin: auto;
}

.card {
    flex: 1;
}

.card img {
    width: 100%;
    height: 260px;

    object-fit: cover;
}

.card h3 {
    font-family: 'Playfair Display', serif;

    margin-top: 18px;

    font-size: 18px;
}

.card p {
    margin-top: 8px;

    color: var(--gris);
    line-height: 1.6;
}

/* ================= FULL IMAGE ================= */

.full-image img {
    width: 100%;
    height: 70vh;

    object-fit: cover;
}

/* ================= PRESTATIONS ================= */

.prestations-list {
    max-width: 900px;

    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 80px;
}

.prestation h2 {
    font-family: 'Playfair Display', serif;

    font-size: 26px;

    margin-bottom: 20px;
}

.prestation ul {
    list-style: none;
}

.prestation ul li {
    position: relative;

    margin-bottom: 10px;
    padding-left: 20px;

    color: var(--gris);
}

.prestation ul li::before {
    content: "—";

    position: absolute;
    left: 0;

    color: var(--noir);
}

.prestation-intro {
    max-width: 600px;

    margin-bottom: 25px;

    line-height: 1.7;

    color: var(--gris);
}

/* ================= REALISATIONS ================= */

.realisations-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.realisation-item {
    position: relative;
    overflow: hidden;

    display: block;
}

.realisation-item img {
    width: 100%;
    height: 360px;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.realisation-item:hover img {
    transform: scale(1.05);
}

.realisation-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.35);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 25px;

    opacity: 0;

    transition: opacity 0.4s ease;
}

.realisation-item:hover .realisation-overlay {
    opacity: 1;
}

.realisation-overlay h3 {
    font-family: 'Playfair Display', serif;

    color: white;

    font-size: 18px;

    margin-bottom: 5px;
}

.realisation-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* ================= CONTACT ================= */

.contact-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;
    grid-template-columns: 1.2fr 1fr;

    gap: 80px;
}

/* FORM */

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;

    margin-bottom: 8px;

    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    border: none;
    border-bottom: 1px solid var(--gris);

    background: transparent;

    padding: 10px 0;

    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.contact-form textarea {
    resize: none;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;

    background: none;

    border: none;
    border-bottom: 1px solid var(--noir);

    padding-bottom: 5px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}

/* INFOS */

.contact-info h3 {
    font-family: 'Playfair Display', serif;

    font-size: 22px;

    margin-bottom: 20px;
}

.contact-info p {
    color: var(--gris);

    line-height: 1.8;

    margin-bottom: 20px;
}

.zone h4 {
    font-size: 14px;

    margin-bottom: 10px;

    letter-spacing: 1px;
}

/* ================= CTA ================= */

.cta {
    padding: 120px 40px;

    text-align: center;
}

.cta p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta a {
    text-decoration: none;

    border-bottom: 1px solid var(--noir);

    padding-bottom: 4px;

    color: var(--noir);

    font-weight: 500;
}

/* ================= FOOTER ================= */

.footer {
    background: var(--ivoire);

    padding: 70px 40px;

    text-align: center;
}

.footer h4 {
    font-family: 'Playfair Display', serif;

    margin-bottom: 15px;

    font-size: 18px;
}

.footer p {
    font-size: 14px;

    color: var(--gris);

    line-height: 1.8;
}

/* ================= HERO CONTACT ================= */

.hero-contact img {
    object-position: center 25%;
}

/* ================= FOCUS IMAGE ================= */

.card img.focus-top {
    object-position: center 40%;
}

/* ================= MENU MOBILE ================= */

.menu-toggle {
    display: none;

    flex-direction: column;

    gap: 6px;

    cursor: pointer;

    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;

    background: currentColor;

    display: block;
}

.mobile-menu {
    position: fixed;

    top: 0;
    right: -100%;

    width: 80%;
    max-width: 320px;
    height: 100vh;

    background: var(--ivoire);

    padding: 120px 40px;

    display: flex;
    flex-direction: column;

    gap: 30px;

    transition: right 0.4s ease;

    z-index: 1000;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    text-decoration: none;

    font-family: 'Playfair Display', serif;

    font-size: 22px;

    color: var(--noir);
}

.mobile-menu a.active {
    position: relative;
    font-weight: 500;
}

.mobile-menu a.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 40px;
    height: 1px;

    background: var(--noir);
}

/* ================= HEADER SHADOW ================= */

.header.transparent .logo-text,
.header.transparent .nav a,
.header.transparent .menu-toggle,
.header.transparent .menu-toggle span {
    text-shadow:
        0 1px 3px rgba(0,0,0,0.9),
        0 3px 12px rgba(0,0,0,0.6);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    /* =========================================
       GLOBAL
    ========================================= */

    body {
        font-size: 13px;
    }

    p {
        font-size: 12.5px;
        line-height: 1.8;
        letter-spacing: 0.15px;
    }

    h1,
    h2,
    h3,
    h4 {
        letter-spacing: -0.4px;
        font-weight: 400;
    }

    /* =========================================
       HEADER
    ========================================= */

    .header-inner {
        padding: 18px 18px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 48px;
    }

    .logo-text {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    /* =========================================
       HERO
    ========================================= */

    .hero {
        height: 58vh;
    }

    .hero img {
        object-fit: cover;
    }

    .hero-text {
        left: 22px;
        right: 22px;
        bottom: 34px;
        max-width: 300px;
    }

    .hero-text h1 {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-text p {
        font-size: 12px;
        line-height: 1.7;
    }

    /* =========================================
       SECTION
    ========================================= */

    .section {
        padding: 70px 18px;
    }

    .side-text {
        display: none;
    }

    /* =========================================
       INTRO
    ========================================= */

    .intro-text {
        margin: 65px auto;
        padding: 0 18px;
        max-width: 540px;
    }

    .intro-text h1 {
        font-size: 20px !important;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .intro-text p {
        font-size: 12.5px;
        line-height: 1.9;
        color: rgba(0,0,0,0.72);
    }

    /* =========================================
   CARDS
========================================= */

.cards {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    width: 100%;
}

.card {

    width: 100%;
    min-width: auto;

    display: flex;
    flex-direction: column;
}

.card img {

    width: 100%;

    aspect-ratio: 4 / 5;

    height: auto;

    object-fit: cover;
    object-position: center;
}

.card h3 {

    font-size: 13px;

    margin-top: 10px;
    margin-bottom: 4px;

    line-height: 1.4;
}

.card p {

    font-size: 11px;

    line-height: 1.6;

    color: rgba(0,0,0,0.68);
}
/* Centre uniquement la dernière carte PRESTATIONS */

.prestations-section .cards .card:last-child {

    grid-column: 1 / -1;

    max-width: 240px;

    margin: 0 auto;
}
.prestations-section .cards .card:last-child img {

    height: 165px;

    aspect-ratio: 4 / 5;

    object-fit: cover;
}
    /* =========================================
       FULL IMAGE
    ========================================= */

    .full-image img {
        height: 34vh;
    }

    /* =========================================
       PRESTATIONS
    ========================================= */

    .prestations-list {
        gap: 48px;
    }

    .prestation h2 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .prestation-intro {
        font-size: 12px;
        line-height: 1.8;
    }

    /* =========================================
       REALISATIONS
    ========================================= */

    .realisations-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .realisation-item img {
        height: 230px;
    }

    .realisation-overlay {
        opacity: 1;

        background: linear-gradient(
            to top,
            rgba(0,0,0,0.5),
            rgba(0,0,0,0)
        );
    }

    .realisation-overlay h3 {
        font-size: 14px;
    }

    .realisation-overlay p {
        font-size: 11px;
    }

    /* =========================================
       TIMELINE
    ========================================= */

    .timeline-section {
        margin: 100px auto;
    }

    .timeline-intro {
        margin-bottom: 70px;
    }

    .timeline-intro h2,
    .contact-premium h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 36px;
        margin-bottom: 70px;
    }

    .timeline-number {

        font-size: 44px;

        left: -12px;

        letter-spacing: -2px;

        padding-right: 8px;
    }

    .timeline-content h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .timeline-content p,
    .timeline-intro p,
    .contact-premium p {

        font-size: 12px;
        line-height: 1.9;
    }

    /* =========================================
       CONTACT
    ========================================= */

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 12px;
    }

    .contact-info h3 {
        font-size: 18px;
    }

    /* =========================================
       CTA
    ========================================= */

    .contact-premium {
        margin: 140px auto 120px auto;
    }

    .contact-btn {

        width: 100%;

        padding: 16px 18px;

        font-size: 10px;
        letter-spacing: 1.6px;
    }

    /* =========================================
       FOOTER
    ========================================= */

    .footer {
        padding: 40px 18px;
    }

    .footer h4 {
        font-size: 15px;
    }

    .footer p {
        font-size: 11px;
        line-height: 1.8;
    }
}

}/* =========================================
REVEAL ANIMATION
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
GLOBAL PREMIUM TOUCH
========================================= */

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

p {
    font-weight: 300;
    letter-spacing: 0.2px;
}

h1,
h2,
h3,
h4 {
    font-weight: 400;
}

img {
    transition: transform 1.2s ease;
}

.card img:hover,
.full-image img:hover {
    transform: scale(1.015);
}

::selection {
    background: #111;
    color: #fff;
}

/* =========================================
TIMELINE SECTION
========================================= */

.timeline-section {
    width: 90%;
    max-width: 1200px;
    margin: 220px auto;
    position: relative;
}

.timeline-intro {
    text-align: center;
    margin-bottom: 140px;
}

.timeline-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 35px;
    letter-spacing: -1px;
}

.timeline-intro p {
    max-width: 760px;
    margin: auto;
    line-height: 2;
    font-size: 15px;
    color: rgba(0,0,0,0.75);
}

/* =========================================
TIMELINE
========================================= */

.timeline {
    position: relative;
    margin-top: 120px;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 48px;
    top: 10px;

    width: 1px;
    height: calc(100% - 20px);

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.04),
        rgba(0,0,0,0.14),
        rgba(0,0,0,0.04)
    );
}

/* =========================================
TIMELINE ITEM
========================================= */

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 70px;
    margin-bottom: 140px;
    position: relative;
    align-items: start;
}

/* =========================================
NUMBER
========================================= */

.timeline-number {
    font-family: 'Playfair Display', serif;

    font-size: 96px;
    font-weight: 400;

    color: rgba(0,0,0,0.07);

    line-height: 0.82;
    letter-spacing: -6px;

    position: relative;

    left: 24px;
    top: 0px;

    z-index: 2;

    background: var(--ivoire);

    padding-left: 18px;
    padding-right: 12px;
padding-top: 0px;
padding-bottom: 24px;

    transition:
        transform 0.6s ease,
        color 0.6s ease;
}
.timeline-item:hover .timeline-number {
    color: rgba(0,0,0,0.16);
    transform: translateX(4px);
}

/* =========================================
CONTENT
========================================= */

.timeline-content {
    padding-top: 16px;
    max-width: 760px;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.timeline-content p {
    font-size: 15px;
    line-height: 2;
    color: rgba(0,0,0,0.78);
}

/* =========================================
CONTACT PREMIUM
========================================= */

.contact-premium {
    width: 90%;
    max-width: 900px;
    margin: 240px auto 180px auto;
    text-align: center;
}

.contact-premium h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 35px;
    letter-spacing: -1px;
}

.contact-premium p {
    max-width: 720px;
    margin: auto;
    line-height: 2;
    font-size: 15px;
    color: rgba(0,0,0,0.75);
    margin-bottom: 55px;
}

/* =========================================
BUTTON
========================================= */

.contact-btn {
    display: inline-block;
    padding: 20px 46px;
    border: 1px solid rgba(0,0,0,0.7);
    text-decoration: none;
    color: #000;
    transition: all 0.45s ease;
    letter-spacing: 2px;
    font-size: 11px;
    text-transform: uppercase;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: all 0.45s ease;
    z-index: -1;
}

.contact-btn:hover::before {
    left: 0;
}

.contact-btn:hover {
    color: #fff;
    border-color: #000;
}

/* =========================================
MOBILE
========================================= */

@media screen and (max-width: 768px) {

    .timeline-section {
        margin: 140px auto;
    }

    .timeline-intro {
        margin-bottom: 90px;
    }

    .timeline-intro h2,
    .contact-premium h2 {
        font-size: 34px;
        line-height: 1.4;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 48px;
        margin-bottom: 90px;
    }

    .timeline-number {

        font-size: 56px;

        letter-spacing: -3px;

        left: -14px;
        top: 0;

        padding-left: 8px;
        padding-right: 10px;
    }

    .timeline-content {
        padding-top: 0;
    }

    .timeline-content h3 {
        font-size: 28px;
    }

    .timeline-content p,
    .timeline-intro p,
    .contact-premium p {
        font-size: 14px;
        line-height: 1.9;
    }

    .contact-btn {
        width: 100%;
        text-align: center;
        padding: 18px 24px;
    }

}

/* =========================================
PREMIUM HERO PARALLAX
========================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero img {
    transform: scale(1.04);
    transition: transform 0.2s linear;
    will-change: transform;
}

/* =========================================
PREMIUM REVEAL
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition:
        opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item {
    position: relative;
}