:root {
    --primary-dark: #1d4ed8;
    --bg: #ffffff;
    --text: #111827;
    --muted: #444;
    --hover: #C9B47F;
    --border: #e5e7eb;
    --radius: 8px;
    --shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

/* ========== FM Bolyar Pro (TTF) ========== */
@font-face {
    font-family: "FM Bolyar Pro";
    src: url("/assets/fonts/FMBolyarPro-100.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FM Bolyar Pro";
    src: url("/assets/fonts/FMBolyarPro-300.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FM Bolyar Pro";
    src: url("/assets/fonts/FMBolyarPro-500.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FM Bolyar Pro";
    src: url("/assets/fonts/FMBolyarPro-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FM Bolyar Pro";
    src: url("/assets/fonts/FMBolyarPro-900.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
input[type="submit"] {
    font-family: "FM Bolyar Pro", serif;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    font-weight: 200;
}

p {
    font-family: "Gotham", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.6em;
    font-weight: 300;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.container {
    margin: 0 auto;
    padding: 1.5rem;
}

.site-header {
    background-color: white;
    width: 100%;
    height: 7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Container pour le logo centré */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-top: 2rem;
}

.logo-container img {
    height: 6rem;
}

/* Navigation en dessous du logo */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
    font-family: "Gotham", sans-serif;
    z-index: 15;
}

.main-nav a {
    margin: 0 1rem;
    font-size: 1rem;
    color: var(--text);
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--hover);
}

.main-nav a.active {
    color: var(--hover);
}

.lang-switch {
    position: absolute;
    right: 3rem;
    margin-left: 2rem;
    font-size: 1.2rem !important;
}

/* Hero section */
.hero {
    max-width: 150vh;
    height: 85vh;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border: 24px solid white;
    border-top: 75px solid white;
}

.hero.hero-home video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    position: relative;
}

.hero video,
.hero picture,
.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* fallback derrière */
.hero-fallback {
    z-index: 0;
}

/* vidéo au-dessus */
.hero video {
    z-index: 1;
}

.site-footer {
    padding: 1rem 0;
    background: #f9fafb;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Autres styles généraux */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: var(--primary);
    color: var(--muted);
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn:hover {
    color: white;
    background: var(--hover);
}

/* triple bloc */
.line-triple {
    display: flex;
    flex-direction: row;
    max-width: 1380px;
    margin: 0 auto;
}

.line-triple .bloc.tier {
    width: calc(100% / 3);
    display: inline-block;
    vertical-align: top;
    background: white;
    margin: 12px 0;
    padding: 8rem 2rem;
    text-align: center;
}

.line-triple .bloc h3 {
    margin: 0;
    line-height: 1;
    margin-bottom: 1rem;
    font-size: 30px;
    color: #C9B47F;
}

.line-triple .bloc p {
    margin: 1em auto 0;
    width: 100%;
    max-width: 600px;
}

.heritage-section {
    padding: 20px 0 120px;
}

.heritage-card {
    position: relative;
    width: 96%;
    margin: 0 auto;
    min-height: 520px;
}

.heritage-content {
    position: relative;
    width: 58%;
    min-height: 550px;
    background: #D1D0B9;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    padding: 55px 55px 35px 55px;
    box-sizing: border-box;
}

.heritage-text {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    align-self: start;
}

.heritage-text h2 {
    margin: 0;
    color: #000;
    font-size: 35px;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0;
}

.heritage-logo {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heritage-logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.heritage-button {
    grid-column: 1 / 2;
    grid-row: 3 / 4;

    font-family: "Gotham", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 14px 25px;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.02em;
    width: fit-content;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.heritage-button:hover {
    background: #222;
}

.heritage-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 47%;
    z-index: 2;
}

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

/* video text home */
.video-text-section {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    width: 96%;
    margin: 0 auto 120px;
    /* background: #c9c6b2; */
}

.video-text-section__media,
.video-text-section__content {
    flex: 0 0 50%;
    max-width: 50%;
}

.video-text-section__media {
    background: #000;
}

.video-text-section__media video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.video-text-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
    box-sizing: border-box;
}

.video-text-section__title {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 300;
    color: #000;
    text-align: right;
}

/* .video-text-section__text {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    max-width: 520px;
} */

.video-text-section__button {
    display: inline-flex;
    font-family: "Gotham", sans-serif;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 50px;
    padding: 14px 28px;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: background 0.2s ease;
}

.video-text-section__button:hover {
    background: #222;
}

/* img pair home */
.image-pair {
    display: flex;
    justify-content: space-between;
    width: 96%;
    margin-bottom: 4rem;
    margin-left: auto;
    margin-right: auto;
}

.image-box {
    width: 47vw;
    height: 47vw;
    overflow: hidden;
}

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


/* page notre histoire */

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin: 2rem 0;
}

.flex-container:last-child {
    margin-bottom: 0;
}

.image-container {
    flex: 1;
}

.image-container img {
    width: 100%;
    height: auto;
}

.header-container {
    font-family: "Gotham", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #C9B47F;
    font-size: 0.8rem;
    max-width: 80vw;
    margin: 3rem auto 2rem auto;
    padding: 2rem;
    text-align: center;
}

.text-container {
    flex: 1;
    padding: 2rem;
    box-sizing: border-box;
}

.text-container p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.image-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
}

.image-item {
    position: relative;
    overflow: hidden;
}

.image-item.image-1 {
    grid-column: span 2;
}

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

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    /* fond clair comme sur ta capture */
}

.logo-item img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

/* page champagnes */

.exclamation {
    position: absolute;
    width: 7rem;
    right: 10vw;
    margin-top: -7rem;
}

.exclamation.en-us {
    margin-top: -15rem;
}

.intro {
    padding: 3rem;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intro p {
    font-size: 1.5rem;
    text-align: center;
}

.hero.hero-champagne {
    background-image: url('/assets/img/cave-de-champagnes.jpg');
}

.cuvees-container {
    width: 100%;
}

.cuvee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 700px;
}

.cuvee-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

/*.cuvee-image:before {
    content: " ";
    position: absolute;
    left: 25%;
    bottom: 15%;
    z-index: -1;
    width: 400px;
    height: 400px;
    background-color: #D1D0B9;
}*/

.cuvee-image img {
    max-height: 700px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* Partie texte */
.cuvee-content {
    flex: 1;
    padding: 2rem;
}

.cuvee-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--hover);
}

.cuvee-content p {
    color: var(--text)
}

.cuvee-content h2,
.cuvee-content p {
    max-width: 33rem;
}

.cuvee:nth-child(even) {
    flex-direction: row-reverse;
}

/* contact */
#contact {
    margin: 10rem auto;
    max-width: 950px;
}

/* page 404 */
.page-404 {
    margin-top: 5rem;
    min-height: 80vh;

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

    text-align: center;
    padding: 4rem 2rem;

    background: linear-gradient(to bottom, #fafafa, #f3f4f6);
}

.page-404 h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #111827;
}

.page-404 p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: #6b7280;
    line-height: 1.6;
}

.page-404 .btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    transition: all 0.5s ease;
}

.page-404 .btn:hover {
    transform: translateY(-3px);
}

/* footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.2rem;
}

.footer-links a {
    margin: 0 1rem;
    font-size: 0.9rem;
    color: #111;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-legal {
    margin-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
}

@media (max-width: 1280px) {
    .intro {
        max-width: 700px;
        font-size: 1.4em;
    }
}

@media (max-width: 1024px) {


    .heritage-logo {
        grid-row: 2 / 3;
    }

    .heritage-button {
        grid-column: 1 / 3;
    }

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

    .image-item.image-1 {
        grid-column: span 1;
    }

    .logo-item {
        grid-column: span 1;
        padding: 2rem 0;
    }

    .intro {
        max-width: 68vw;
        font-size: 1.3em;
    }

    .cuvee {
        flex-direction: column !important;
        min-height: auto;
    }

    .cuvee-content {
        padding: 3rem 1rem;
        text-align: center;
    }

    .cuvee-image {
        padding: 2rem;
    }

    .cuvee-image:before {
        left: -85%;
    }

    .cuvee-image img {
        max-height: 400px;
    }

    #contact {
        margin: 10rem 1rem;
    }
}

@media (max-width: 890px) {
    .main-nav a {
        font-size: .8rem;
        text-align: center;
    }

    .lang-switch {
        position: inherit;
    }

    .line-triple {
        flex-direction: column;
    }

    .line-triple .bloc.tier {
        width: inherit;
        padding: 3rem 2rem;
    }

    .video-text-section {
        flex-direction: column;
        width: 90vw;
        margin: 60px auto 120px;
    }

    .video-text-section__title {
        font-size: 19px;
    }

    .video-text-section__content {
        padding: 15px;
    }

    .video-text-section__media,
    .video-text-section__content {
        max-width: inherit;
    }

    .video-text-section__button {
        font-size: 13px;
    }

    .flex-container {
        flex-direction: column;
    }

    .image-container,
    .text-container {
        flex: none;
        width: 100%;
    }

    .text-container {
        padding: 2rem;
    }

    .image-pair {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .image-box {
        width: 90vw;
        height: 90vw;
    }

    .exclamation {
        width: 4rem;
    }

    .exclamation.en-us {
        margin-top: -7rem;
    }

    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        max-width: 98vw;
        font-size: 0.7rem;
    }

    .image-strip {
        grid-template-columns: 1fr;
    }

    .logo-item {
        grid-column: span 1;
    }

    .intro {
        padding: inherit;
        margin-top: 5rem;
        margin-bottom: 4rem;
        font-size: 1.2em;
    }

    .heritage-section {
        padding: 30px 0 60px;
    }

    .heritage-card {
        width: 90vw;
        min-height: auto;
        height: 131vw;
    }

    .heritage-content {
        width: 80vw;
        min-height: 122vw;
        padding: 32px 18px 28px;
        display: grid;
        grid-template-columns: 1fr 130px;
        grid-template-rows: auto auto auto;
        align-items: start;
        row-gap: 26px;
        column-gap: 14px;
    }

    .heritage-text {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .heritage-text h2 {
        line-height: 1.2;
        font-size: 20px;
    }

    .heritage-logo {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-content: flex-end;
        align-items: center;
        padding-top: 18px;
    }

    .heritage-logo img {
        width: 20vw;
    }

    .heritage-button {
        grid-column: 1 / 3;
        grid-row: 2 / 9;
        width: 100%;
        min-height: 50px;
        font-size: 13px;
        padding: 14px 16px;
        text-align: center;
    }

    .heritage-image {
        position: relative;
        right: auto;
        top: -57vw;
        transform: none;
        width: 82%;
        margin: 0 0 0 auto;
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }

    .heritage-image img {
        width: 100%;
        height: 50vw;
        aspect-ratio: 1 / 0.72;
        object-fit: cover;
    }
}