@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');

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

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

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* =========================================================
   HEADER — ACCUEIL
========================================================= */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.16);
}

.logo {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #ffffff;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-right: 140px;
}

nav a {
    white-space: nowrap;
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.6;
}


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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 6% 95px;
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.76),
            rgba(0, 0, 0, 0.10)
        ),
        url("images/hero.jpeg");
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 760px;
}

.hero-subtitle {
    margin-bottom: 18px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #dddddd;
}

.hero h1 {
    margin-bottom: 28px;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -2px;
    font-weight: 500;
    color: #ffffff;
}

.hero p:not(.hero-subtitle) {
    max-width: 600px;
    margin-bottom: 35px;
    font-size: 17px;
    line-height: 1.7;
    color: #eeeeee;
}


/* =========================================================
   BOUTON
========================================================= */

.button {
    display: inline-block;
    padding: 15px 27px;
    background: #ffffff;
    color: #111111;
    border: none;
    text-decoration: none;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.button:hover {
    background: #151515;
    color: #ffffff;
}


/* =========================================================
   ÉLÉMENTS COMMUNS
========================================================= */

.eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #777777;
}


/* =========================================================
   ENTREPRISE
========================================================= */

.section {
    padding: 130px 6%;
}

.section-content {
    max-width: 1050px;
    margin: 0 auto;
}

.section h2 {
    margin-bottom: 38px;
    font-size: clamp(40px, 4.5vw, 62px);
    line-height: 1.02;
    letter-spacing: -1.8px;
    font-weight: 500;
}

.text {
    max-width: 700px;
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.8;
    color: #555555;
}


/* =========================================================
   SAVOIR-FAIRE
========================================================= */

.section-dark {
    background: #151515;
    color: #ffffff;
}

.section-dark .eyebrow {
    color: #999999;
}

.section-dark h2 {
    color: #ffffff;
}

.section-dark > .section-content > .text {
    max-width: 680px;
    color: #aaaaaa;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 65px 45px;
    margin-top: 75px;
}

.service {
    padding-top: 22px;
    border-top: 1px solid #444444;
}

.service span {
    display: block;
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #888888;
}

.service h3 {
    margin-bottom: 15px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 500;
}

.service p {
    max-width: 300px;
    font-size: 14px;
    line-height: 1.7;
    color: #aaaaaa;
}


/* =========================================================
   MATIÈRES & EXIGENCE
========================================================= */

.materials {
    padding: 135px 6%;
    background: #f2f1ed;
    color: #151515;
}

.materials-content {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.materials-intro h2 {
    margin-bottom: 0;
    font-size: clamp(44px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -2px;
    font-weight: 500;
}

.materials-text {
    padding-top: 38px;
}

.materials-text p {
    max-width: 520px;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

.materials-details {
    max-width: 1050px;
    margin: 95px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #c9c8c3;
}

.materials-details > div {
    padding: 30px 30px 0 0;
    border-right: 1px solid #c9c8c3;
}

.materials-details > div:last-child {
    border-right: none;
}

.materials-details span {
    display: block;
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #777777;
}

.materials-details h3 {
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
}

.materials-details p {
    max-width: 270px;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
}


/* =========================================================
   PROJET MEYRALS — ACCUEIL
========================================================= */

.projects {
    padding: 135px 6%;
    background: #ffffff;
}

.meyrals-layout {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 65px;
}

.meyrals-main h2 {
    margin-bottom: 12px;
    font-size: clamp(52px, 6vw, 82px);
    line-height: 0.95;
    letter-spacing: -2.5px;
    font-weight: 500;
}

.project-location {
    margin-bottom: 30px;
    font-size: 12px;
    letter-spacing: 0.8px;
    color: #777777;
}

.project-description {
    max-width: 490px;
    margin-bottom: 48px;
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

.current-label {
    display: flex;
    justify-content: space-between;
    padding-bottom: 13px;
    border-bottom: 1px solid #cccccc;
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #666666;
}

.current-image {
    width: 100%;
}

.current-image img {
    display: block;
    width: 100%;
    height: 530px;
    object-fit: cover;
}

.meyrals-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 22px;
    align-content: start;
    padding-top: 65px;
}

.gallery-item {
    min-width: 0;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.gallery-item span {
    display: block;
    padding-top: 11px;
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #666666;
}

.gallery-item-wide {
    grid-column: 1 / -1;
}

.gallery-item-wide img {
    height: 280px;
}


/* =========================================================
   CONTACT — ACCUEIL
========================================================= */

.contact {
    padding: 135px 6%;
    background: #e9e8e3;
}

.contact-layout {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    align-items: start;
}

.contact-intro h2 {
    margin-bottom: 30px;
    font-size: clamp(48px, 5.5vw, 72px);
    line-height: 0.98;
    letter-spacing: -2.5px;
    font-weight: 500;
}

.contact-text {
    max-width: 400px;
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

.contact-form {
    padding-top: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: #666666;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-bottom: 1px solid #bdbcb7;
    border-radius: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: #151515;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #151515;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.form-submit {
    margin-top: 5px;
}


/* =========================================================
   FOOTER — ACCUEIL
========================================================= */

footer {
    padding: 55px 6%;
    background: #111111;
    color: #ffffff;
}

footer .logo {
    margin-bottom: 20px;
}

footer p {
    margin-top: 8px;
    font-size: 12px;
    color: #999999;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    header {
        padding: 0 4%;
    }

    nav {
        gap: 18px;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .meyrals-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .current-image img {
        height: 470px;
    }

    .gallery-item img {
        height: 160px;
    }

    .gallery-item-wide img {
        height: 230px;
    }

    .contact-layout {
        gap: 60px;
    }
}


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

@media (max-width: 800px) {

    header {
        height: 75px;
        padding: 0 5%;
    }

    .logo {
        font-size: 20px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 9px;
    }

    .hero {
        min-height: 100vh;
        padding: 0 5% 65px;
        background-position: center;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -1.5px;
    }

    .hero p:not(.hero-subtitle) {
        font-size: 16px;
    }

    .section {
        padding: 100px 5%;
    }

    .section h2 {
        font-size: 45px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 60px;
    }

    .materials {
        padding: 100px 5%;
    }

    .materials-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .materials-text {
        padding-top: 0;
    }

    .materials-details {
        grid-template-columns: 1fr;
        margin-top: 65px;
    }

    .materials-details > div {
        padding: 28px 0;
        border-right: none;
        border-bottom: 1px solid #c9c8c3;
    }

    .materials-details > div:last-child {
        border-bottom: none;
    }

    .projects {
        padding: 100px 5%;
    }

    .meyrals-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .meyrals-main h2 {
        font-size: 62px;
    }

    .current-image img {
        height: 390px;
    }

    .meyrals-gallery {
        padding-top: 0;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 15px;
    }

    .gallery-item img {
        height: 175px;
    }

    .gallery-item-wide img {
        height: 240px;
    }

    .contact {
        padding: 100px 5%;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-intro h2 {
        font-size: 52px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    footer {
        padding: 50px 5%;
    }
}


/* =========================================================
   PETIT MOBILE
========================================================= */

@media (max-width: 500px) {

    header {
        height: 70px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        gap: 7px;
    }

    nav a {
        font-size: 8px;
        letter-spacing: 0.2px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-subtitle {
        font-size: 9px;
    }

    .meyrals-main h2 {
        font-size: 55px;
    }

    .current-image img {
        height: 320px;
    }

    .gallery-item img {
        height: 145px;
    }

    .gallery-item-wide img {
        height: 200px;
    }
}


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

.projects-page .projects-header {
    position: relative;
    width: 100%;
    height: auto;
    padding: 24px 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    display: block;
}

.projects-page .projects-header-inner {
    width: min(1100px, 90%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.projects-page .projects-logo {
    display: block;
    line-height: 0;
    text-decoration: none !important;
}

.projects-page .projects-logo img {
    display: block;
    width: 200px;
    height: auto;
}


/* =========================================================
   ACCUEIL — NAVIGATION LUXE
========================================================= */

.projects-page .projects-home {
    display: block;
    padding: 8px 0;
    color: #171717;
    font-family: "Cormorant Garamond", serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.projects-page .projects-home:hover {
    opacity: 0.55;
}


/* =========================================================
   INTRODUCTION PROJETS
========================================================= */

.projects-page .page-hero {
    background: #f7f5f0;
    padding: 110px 0 90px;
    padding-left: 25px;
}

.projects-page .page-hero h1 {
    margin-bottom: 20px;
    color: #111111;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -2px;
}

.projects-page .page-hero p {
    max-width: 700px;
    color: #555555;
    font-size: 18px;
    line-height: 1.8;}


/* =========================================================
   GRILLE PROJETS
========================================================= */

.projects-page .projects-section {
    background: #f7f5f0;
    padding: 20px 0 120px;
}

.projects-page .projects-grid {
    width: calc(100% - 50px);
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 45px;
}


/* =========================================================
   CARTES
========================================================= */

.projects-page .project-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.projects-page .project-card:hover {
    transform: translateY(-3px);
}


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

.projects-page .project-image {
    width: 100%;
    height: 430px;
    overflow: hidden;
    background: #e8e3da;
}

.projects-page .project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.projects-page .project-card:hover .project-image img {
    transform: scale(1.025);
}


/* =========================================================
   TEXTE PROJETS
========================================================= */

.projects-page .project-content {
    padding: 28px 0 0;
}

.projects-page .project-category {
    display: block;
    margin-bottom: 10px;
    color: #9a8154;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.projects-page .project-content h2 {
    margin: 0 0 12px;
    color: #111111;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.projects-page .project-content p {
    margin: 0 0 20px;
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}

.projects-page .project-link {
    color: #111111;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* =========================================================
   CONTACT PROJETS
========================================================= */

.projects-page .contact-cta {
    background: #111111;
    color: #ffffff;
    padding: 110px 0;
}

.projects-page .contact-cta .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.projects-page .contact-cta .eyebrow {
    margin-bottom: 18px;
    color: #c5aa78;
    font-size: 20px;
    letter-spacing: 3px;
}

.projects-page .contact-cta h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

.projects-page .contact-cta p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: #cccccc;
    line-height: 1.8;
}


/* =========================================================
   BOUTON CONTACT PROJETS
========================================================= */

.projects-page .contact-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 32px;
    background: #c5aa78;
    color: #111111;
    border: 1px solid #c5aa78;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.projects-page .contact-cta .btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: #c5aa78;
}


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

.projects-page .footer {
    background: #111111;
    color: #ffffff;
}


/* =========================================================
   MOBILE PROJETS
========================================================= */

@media (max-width: 800px) {

    .projects-page .projects-header {
        padding: 20px 0;
    }

    .projects-page .projects-logo img {
        width: 105px;
    }

    .projects-page .page-hero {
        padding: 80px 0 60px;
    }

    .projects-page .page-hero h1 {
        font-size: 48px;
    }

    .projects-page .projects-section {
        padding-bottom: 80px;
    }

    .projects-page .projects-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .projects-page .project-image {
        height: 300px;
    }

    .projects-page .project-content {
        padding-top: 22px;
    }

    .projects-page .project-content h2 {
        font-size: 23px;
    }

    .projects-page .contact-cta {
        padding: 80px 0;
    }
}


/* =========================================================
   PETIT MOBILE PROJETS
========================================================= */

@media (max-width: 500px) {

    .projects-page .projects-header-inner {
        width: 90%;
    }

    .projects-page .projects-logo img {
        width: 100px;
    }

    .projects-page .projects-home {
        font-size: 14px !important;
    }
}


/* =========================================================
   PAGE PROJET — MEYRALS / BOUSSENS /
   SAINT-GAUDENS / SAINT-MARTORY
========================================================= */

.project-detail-page {
    background: #f7f5f0;
    color: #151515;
}


/* =========================================================
   HEADER PAGE PROJET
========================================================= */

.project-detail-header {
    position: relative;
    width: 100%;
    height: auto;
    padding: 24px 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    display: block;
}

.project-detail-header-inner {
    width: min(1100px, 90%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-detail-logo {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.project-detail-logo img {
    display: block;
    width: 200px;
    height: auto;
}


/* =========================================================
   PROJETS — NAVIGATION LUXE
========================================================= */

.project-detail-back {
    display: block;
    padding: 8px 0;
    color: #171717;
    font-family: "Cormorant Garamond", serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.project-detail-back:hover {
    opacity: 0.55;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.project-detail-intro {
    padding: 110px 0 80px;
    background: #f7f5f0;
}

.project-detail-container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.project-detail-intro .eyebrow {
    margin-bottom: 20px;
    color: #9a8154;
    font-size: 11px;
    letter-spacing: 3px;
}

.project-detail-intro h1 {
    margin-bottom: 15px;
    color: #111111;
    font-size: clamp(60px, 8vw, 100px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -3px;
}

.project-detail-location {
    margin-bottom: 35px;
    color: #777777;
    font-size: 13px;
    letter-spacing: 0.8px;
}

.project-detail-description {
    max-width: 680px;
    color: #555555;
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   GALERIE
========================================================= */

.project-detail-gallery {
    padding: 20px 0 120px;
    background: #f7f5f0;
}

.project-detail-main-image {
    width: 100%;
}

.project-detail-main-image img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.project-detail-caption {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid #d5d1c8;
    color: #666666;
    font-size: 9px;
    letter-spacing: 1.8px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 30px;
    margin-top: 60px;
}

.project-detail-image img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.project-detail-image span {
    display: block;
    padding-top: 12px;
    color: #666666;
    font-size: 9px;
    letter-spacing: 1.8px;
}


/* =========================================================
   RETOUR
========================================================= */

.project-detail-bottom {
    padding: 70px 0 100px;
    background: #ffffff;
}

.project-detail-return {
    display: inline-block;
    color: #171717;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-bottom: 1px solid #171717;
    padding-bottom: 5px;
    transition: opacity 0.3s ease;
}

.project-detail-return:hover {
    opacity: 0.5;
}


/* =========================================================
   MOBILE PAGE PROJET
========================================================= */

@media (max-width: 800px) {

    .project-detail-header {
        padding: 20px 0;
    }

    .project-detail-logo img {
        width: 150px;
    }

    .project-detail-back {
        font-size: 16px !important;
    }

    .project-detail-intro {
        padding: 80px 0 60px;
    }

    .project-detail-intro h1 {
        font-size: 62px;
    }

    .project-detail-description {
        font-size: 16px;
    }

    .project-detail-gallery {
        padding-bottom: 80px;
    }

    .project-detail-main-image img {
        height: 420px;
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 45px;
    }

    .project-detail-image img {
        height: 300px;
    }

    .project-detail-bottom {
        padding: 60px 0 80px;
    }
}


/* =========================================================
   PETIT MOBILE PAGE PROJET
========================================================= */

@media (max-width: 500px) {

    .project-detail-logo img {
        width: 125px;
    }

    .project-detail-back {
        font-size: 14px !important;
    }

    .project-detail-intro h1 {
        font-size: 52px;
    }

    .project-detail-main-image img {
        height: 320px;
    }

    .project-detail-image img {
        height: 250px;
    }
}


/* =========================================================
   RÈGLE FINALE — NAVIGATION LUXE
   ACCUEIL + PROJETS
========================================================= */

/*
   Cette règle est volontairement tout à la fin.
   Elle garantit que les deux boutons utilisent
   exactement la même police et le même poids.
*/

.projects-page .projects-home,
.project-detail-page .project-detail-back {
    font-family: "Cormorant Garamond", serif !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    -webkit-text-stroke: 0.6px currentColor;
}