@font-face {
    font-family: 'Roboto Flex';
    src: url('fonts/Roboto-VariableFont_wdth\,wght-subset.woff2') format('woff2-variations'),
        url('fonts/Roboto-VariableFont_wdth\,wght-subset.zopfli.woff') format('woff');
    font-weight: 100 900;
    font-stretch: 25% 151%;
    font-display: swap;
    /* Pour améliorer encore les performances perçues */
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

:root {
    --text-color-dark: #32281D;
    --color-red: #781E24;
    --color-border-header: #D7D7D7;
    --color-grey: #F8F6F3
}


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


body {
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: 'wdth' 75, 'wght' 350;
    color: var(--text-color-dark);
    background-color: var(--color-grey);
}




.header-website.visible {
    .nav-header {
        opacity: 1;
        border-bottom: var(--color-border-header) 1px solid;
    }

    .h1-title {
        transform: translateZ(0);
    }
}

body.menuActive .header-website {
    /* Si nécessaire, ajustez la position du header quand le menu est actif */
    position: fixed;
    /* Pour le garder visible pendant que le body est fixe */
    width: 100%;
    z-index: 1000;

    /* Assurez-vous qu'il reste au-dessus de votre contenu */
    .nav-header {
        opacity: 1;
        border-bottom: var(--color-border-header) 1px solid;
    }

    .h1-title {
        transform: translateZ(0);
        display: none;
    }

    .link-block-title {
        height: 50px;

        @media (max-width: 950px) {
            grid-column: span 2;
        }

        .link {
            display: none;
        }

        .link-menu-active {
            display: block;
        }
    }
}

.nav-header {
    width: 100%;
    transition-duration: 1000ms;
    display: flex;
    justify-content: center;
    position: relative;
    background-color: #FFF;
    opacity: 0;

    .list-link {
        max-width: 1012px;
        width: 90%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        align-items: center;
        height: 100%;

        .link-block {
            text-align: center;
            display: flex;
            justify-content: center;

            .link {
                display: block;
                text-decoration: none;
                color: var(--text-color-dark);
                font-size: 14px;
                font-variation-settings: 'wdth' 85, 'wght' 450;
            }
        }

        .start {
            text-align: start;
        }

        .end {
            text-align: end;
        }

        .link-block-svg {
            position: absolute;
            width: 100px;
            right: clamp(35px, 5vw, 100px);
            display: flex;
            justify-content: space-between;

            .block {
                width: 13px;
                height: 13px;
            }
        }
    }

    @media (max-width: 1280px) {
        .list-link .link-block {
            display: none;
        }
    }
}


.header-website {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;

    .h1-title,
    .link-block-title .link {
        position: absolute;
        top: calc(70px / 2);
        color: #FFF;
        font-size: 10vw;
        scale: 1;
        animation-fill-mode: forwards;
        -moz-osx-font-smoothing: grayscale;
        backface-visibility: hidden;
        will-change: transform;
        transition-timing-function: cubic-bezier(0.17, 0.18, 0, 1);
        transition-duration: 500ms;
        translate: -50% 20svh;
        font-variation-settings: 'wdth' 100, 'wght' 450;
        transform: translateZ(0);
        left: 50%;
        white-space: nowrap;
    }

    .link-block-title {
        display: flex;
        justify-content: center;
        align-items: center;

        .link {
            color: var(--text-color-dark);
            text-decoration: none;
            display: block;
        }

        .link-menu-active {
            display: none;
            color: var(--text-color-dark);
            text-decoration: none;
            font-size: 24px;
        }
    }

    @media (max-width: 950px) {
        &.visible {

            .h1-title,
            .link-block-title .link {
                position: absolute;
                top: calc(70px / 2);
                left: calc(5vw);
                transform: translateX(50%);
            }
        }
    }
}


/** Header mobile **/
:root {
    --marron-sombre3: #32281D;
    --marron-sombre2: #32281D;
    --marron-sombre1: #32281D;
    --marron: #32281D;
    --marron-clair1: #FFF;
    --marron-clair2: #FFF;
    --marron-clair3: #FFF;
    --marron-clair4: #FFF;
    --marron-clair5: #FFF;
    --header-height: 100px;
}

nav.header {

    & .menu svg {
        width: 20px;
        height: auto;
        cursor: pointer;
        transform-origin: center;
        transition-duration: 500ms;
        transform: rotate(0);

        &:hover {
            transform: rotate(90deg);

            & .bar1,
            & .bar2 {
                transform: rotate(265deg);
            }
        }

        &.active {
            transition-duration: 500ms;
            transform: rotate(180deg);
            transition-timing-function: ease;

            &:hover {
                transform: rotate(90deg);
                transition-timing-function: ease-in-out;
            }

            & .bar1 {
                transform: rotate(225deg) translate(0, 15.5%);
            }

            & .bar2 {
                transform: rotate(-225deg) translate(0, -15.5%);
            }
        }
    }
}

.bar1,
.bar2 {
    transform-origin: center;
    transform: rotate(0) translate(0, 0);
    transition-duration: 1000ms;
}

/* Menu display styles */
section.menu-display {
    display: block;
    height: calc(100% - 70px);
    width: 100vw;
    background-color: var(--marron-clair5);
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 200;
    transform-origin: top;
    transform: scale(1, 0);

    &.desactive {
        animation: 500ms cubic-bezier(0.22, 0.61, 0.36, 1) menu_back_disparition;
    }

    &.active {
        animation: 500ms cubic-bezier(0.22, 0.61, 0.36, 1) menu_back_apparition;
        animation-fill-mode: forwards;
    }

    & nav {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;

        & ul {
            height: 80%;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            flex-direction: column;
        }

        & li a {
            text-align: center;
            font-size: min(12vw, 12svh);
            font-weight: 100;
            color: var(--marron);
            letter-spacing: 1vw;
        }
    }

    & div {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        width: 100%;
        justify-items: center;
        font-weight: bold;

        & a {
            text-align: center;
            font-size: 2em;
            font-weight: bold;
            color: var(--marron-sombre1);
        }

        &.menu-rs-mobile {
            display: none;
        }

        & .rs-3 {
            grid-column: 4/5;
        }

        & .rs-4 {
            grid-column: 5/6;
        }
    }

    @media (max-width: 950px) {
        & div.menu-rs-mobile {
            display: grid;
        }

        & div.menu-rs {
            display: none;
        }
    }
}


/* Letter animation for menu */
.letter-anime-li-menu {
    display: inline-block;
    transform: rotate(0);
    transform-origin: 50% 90%;
    animation-duration: 300ms;
    animation: 700ms cubic-bezier(0.22, 0.61, 0.36, 1) menu_li_none;

    &.active {
        animation: 700ms cubic-bezier(0.22, 0.61, 0.36, 1) menu_li_anime;
        animation-fill-mode: forwards;
    }
}

/* Social media styles */
.menu-rs-mobile {
    & svg path {
        fill: var(--marron-sombre2);
    }
}

div.menu-rs-mobile {
    & svg {
        & rect {
            fill: var(--marron-clair4);
            transition: 300ms;
        }

        &:hover {
            & rect {
                fill: var(--marron);
            }

            & path {
                fill: var(--marron-clair5);
            }
        }
    }
}



svg .border-rs {
    fill: var(--marron);
}

/* Utility classes for colored backgrounds */
[class^="change-color"] {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    z-index: 0;
    opacity: 0;
    animation: 2800ms cubic-bezier(0.08, 0.96, 0.23, 1) back-color-end;
    animation-fill-mode: forwards;

    &.active {
        animation: 2800ms cubic-bezier(0.08, 0.96, 0.23, 1) back-color;
        animation-fill-mode: forwards;
    }

    &.desactive {
        animation: 2800ms cubic-bezier(0.08, 0.96, 0.23, 1) back-color-end;
        animation-fill-mode: forwards;
    }
}

/* Back color animations - Essential for menu */
.back-color {
    transform-origin: 0% 100%;
    animation: 500ms cubic-bezier(0.22, 0.61, 0.36, 1) words2end;
    animation-fill-mode: forwards;

    &.active {
        transform-origin: 0% 100%;
        animation: 500ms cubic-bezier(0.22, 0.61, 0.36, 1) words2;
        animation-fill-mode: forwards;
    }
}

[class^="back-color-left"] {
    transform-origin: left;
    animation: 500ms cubic-bezier(0.22, 0.61, 0.36, 1) words2-left-right-end;
    animation-fill-mode: forwards;

    &.active {
        animation: 500ms cubic-bezier(0.22, 0.61, 0.36, 1) words2-left-right;
        animation-fill-mode: forwards;
    }
}

[class^="back-color-right"] {
    transform-origin: right;
    animation: 500ms cubic-bezier(0.22, 0.61, 0.36, 1) words2-left-right-end;
    animation-fill-mode: forwards;

    &.active {
        animation: 500ms cubic-bezier(0.22, 0.61, 0.36, 1) words2-left-right;
        animation-fill-mode: forwards;
    }
}

/* Animations */
@keyframes menu_back_apparition {
    from {
        transform: scale(1, 0);
    }

    to {
        transform: scale(1, 1);
    }
}

@keyframes menu_back_disparition {
    from {
        transform: scale(1, 1);
    }

    to {
        transform: scale(1, 0);
    }
}

@keyframes menu_li_anime {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(15deg);
    }
}

@keyframes menu_li_none {
    from {
        transform: rotate(15deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes back-color {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes back-color-end {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes words2 {
    from {
        transform: scale(1, 1);
    }

    to {
        transform: scale(1, 0);
    }
}

@keyframes words2-left-right {
    from {
        transform: scale(1, 1);
    }

    to {
        transform: scale(0, 1);
    }
}

@keyframes words2-left-right-end {
    from {
        transform: scale(0, 1);
    }

    to {
        transform: scale(1, 1);
    }
}

@keyframes words2end {
    from {
        transform: scale(1, 0);
    }

    to {
        transform: scale(1, 1);
    }
}




/* Style du footer */
.site-footer {
    background-color: #C2C2C2;
    color: #333;
    padding-top: 40px;
}

/* Style du contenu principal du footer */
.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Style des colonnes du footer */
.footer-column {
    flex: 1;
    padding: 0 15px;

    &:nth-child(2) {
        display: flex;
        justify-content: center;
    }

    &:nth-child(3) {
        display: flex;
        justify-content: end;
    }
}


.footer-column h3 {
    font-size: 16px;
    font-variation-settings: 'wdth' 80, 'wght' 400;
    margin-bottom: 20px;
    color: #333;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-variation-settings: 'wdth' 80, 'wght' 300;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #666;
}

/* Style de la barre inférieure du footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #40392A;
    color: white;
    padding: 15px 40px;
    font-size: 14px;
}

.copyright {
    flex: 1;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.legal-links a:hover {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
        text-align: center;

        &:nth-child(2) {
            justify-content: center;
        }

        &:nth-child(3) {
            justify-content: center;
        }
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}

/* ============================================================
   AJOUTS SOCLE — header des pages intérieures, boutons, révélations
   ============================================================ */

:root {
    --color-bg-hero: #F7F7F7;
    --color-gold: #C19D67;
    --color-cream: #FEF7E2;
    --color-muted: rgba(50, 40, 29, 0.70);
    --ease-out-expo: cubic-bezier(0, 0, 0, 1);
    --ease-soft: cubic-bezier(0.17, 0.18, 0, 1);
    --page-padding: calc(100px + (100% / 12));
}

html {
    scroll-behavior: smooth;
}

/* Header des pages intérieures : état "défilé" dès le chargement */
.header-website.inner {
    background-color: #FFF;

    .nav-header {
        opacity: 1;
        border-bottom: var(--color-border-header) 1px solid;
        transition-duration: 0ms;
    }

    .link-block-title .link {
        top: 35px;
        translate: -50% -50%;
        scale: 1;
        font-size: 24px;
        color: var(--text-color-dark);
        transition-duration: 0ms;
        opacity: 1;
    }

    @media (max-width: 950px) {
        .link-block-title .link {
            left: 5vw;
            translate: 0 -50%;
        }
    }
}

/* Lien courant dans la barre de navigation */
.nav-header .link-block .link {
    position: relative;
    padding-bottom: 2px;

    &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background-color: var(--color-red);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 500ms var(--ease-out-expo);
    }

    &:hover::after,
    &[aria-current="page"]::after {
        transform: scaleX(1);
    }
}

.nav-header .link-block-svg .block a {
    display: block;
    width: 13px;
    height: 13px;
}

.menu-display nav ul li a {
    text-decoration: none;
}

.menu-display nav ul li a[aria-current="page"] {
    color: var(--color-red);
}

/* Boutons partagés (.btn-bar) — remplissage qui glisse de gauche à droite,
   dans l'esprit des blocs de couleur du menu */
.btn-bar {
    --btn-color: var(--text-color-dark);
    --btn-fill: var(--text-color-dark);
    --btn-text-hover: #FFF;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    padding: min(14px, 1.2vw) min(36px, 2.6vw);
    border-radius: 3px;
    border: 1px solid var(--btn-color);
    color: var(--btn-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(11px, 0.9vw, 13px);
    letter-spacing: 0.08em;
    font-variation-settings: 'wdth' 80, 'wght' 450;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    background: transparent;
    transition: color 400ms var(--ease-out-expo), scale 300ms cubic-bezier(0, 1, 1, 1);

    &::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--btn-fill);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 500ms var(--ease-out-expo);
        z-index: -1;
    }

    &:hover,
    &:focus-visible {
        color: var(--btn-text-hover);
        scale: 0.98;
    }

    &:hover::before,
    &:focus-visible::before {
        transform: scaleX(1);
    }

    &.btn-red {
        --btn-color: var(--color-red);
        --btn-fill: var(--color-red);
    }

    &.btn-solid {
        background-color: var(--btn-fill);
        color: #FFF;
        --btn-text-hover: var(--text-color-dark);

        &::before {
            background-color: #FFF;
        }
    }

    &.btn-light {
        --btn-color: #FFF;
        --btn-fill: #FFF;
        --btn-text-hover: var(--text-color-dark);
    }

    &.btn-block {
        width: 100%;
    }

    &[disabled],
    &[aria-disabled="true"] {
        opacity: 0.5;
        pointer-events: none;
    }
}

/* Petit titre rouge au-dessus des sections (même style que le h5 du hero concept) */
.eyebrow {
    color: var(--color-red);
    font-size: clamp(12px, 0.9vw, 14px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-variation-settings: 'wdth' 100, 'wght' 350;
}

/* Révélation au scroll — mêmes courbes que les sections animées existantes */
[data-reveal] {
    opacity: 0;
    translate: 0 34px;
    transition:
        opacity 1200ms var(--ease-out-expo),
        translate 1200ms var(--ease-out-expo),
        scale 1500ms var(--ease-out-expo);
    transition-delay: calc(var(--i, 0) * 90ms);
    will-change: opacity, translate;
}

[data-reveal="left"] {
    translate: -40px 0;
}

[data-reveal="right"] {
    translate: 40px 0;
}

[data-reveal="scale"] {
    translate: 0 0;
    scale: 1.08;
}

[data-reveal="fade"] {
    translate: 0 0;
}

[data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
}

/* Hero des pages intérieures : entrée en cascade au chargement */
@keyframes rise-in {
    from {
        opacity: 0;
        translate: 0 40px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

.page-hero .container > * {
    animation: rise-in 1400ms var(--ease-out-expo) both;
}

.page-hero .container > :nth-child(1) { animation-delay: 100ms; }
.page-hero .container > :nth-child(2) { animation-delay: 250ms; }
.page-hero .container > :nth-child(3) { animation-delay: 400ms; }
.page-hero .container > :nth-child(4) { animation-delay: 550ms; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        translate: 0 0;
        scale: 1;
        transition: none;
    }

    .page-hero .container > * {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Footer : lien courant et survol plus lisible */
.site-footer a[aria-current="page"] {
    color: var(--color-red);
}

.footer-column a {
    position: relative;
}

.footer-column a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 400ms var(--ease-out-expo);
}

.footer-column a:hover::after {
    transform: scaleX(1);
}


/* ============================================================
   PAGES INTÉRIEURES — hero de page et section CTA (partagés)
   ============================================================ */
body.page {
    line-height: 1.6;
}

.page-hero {
    padding: min(100px, 8vw) 0;
    height: fit-content;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg-hero);

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        h5 {
            color: var(--color-red);
            font-size: clamp(14px, 1vw, 18px);
            font-variation-settings: 'wdth' 100, 'wght' 300;
            margin-bottom: clamp(10px, 3vw, 40px);
        }
        h1 {
            color: var(--text-color-dark);
            font-variation-settings: 'wdth' 100, 'wght' 450;
            font-size: clamp(25px, 5vw, 73px);
            margin-bottom: clamp(15px, 3.3vw, 50px);
        }
        .text-content {
            padding: 0 min(100px, 3vw);
            max-width: 850px;
            opacity: .7;
            color: #32281D;
            font-size: clamp(16px, 2vw, 27px);
            font-variation-settings: 'wdth' 90, 'wght' 300;
        }
    }
}

section.cta {
    padding: min(100px, 8vw) calc(100px + (100% / 12));

    .container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .section-title {
        color: #32281D;
        font-size: 48.562px;
        font-weight: 500;
        margin-bottom: 20px;
    }

    .text-content {
        color: rgba(50, 40, 29, 0.70);
        text-align: center;
        font-size: 23.38px;
        font-weight: 400;
        margin-bottom: 110px;
        width: 100%;
        max-width: 750px;
        padding: 0 10px;
    }

    a.btn {
        border-radius: 3px;
        border: 1px solid #32281D;
        color: #32281D;
        text-align: center;
        font-size: 23.38px;
        font-weight: 400;
        text-decoration: none;
        padding: 10px 25px;
    }
}

@media (max-width: 1200px) {
    section.cta {
            padding: 60px 60px;
        }
}

@media (max-width: 900px) {
    .page-hero {
            min-height: 45vh;
            padding: 60px 0;
        }

    .page-hero .container h1 {
            font-size: clamp(28px, 6vw, 45px);
        }

    .page-hero .container .text-content {
            font-size: clamp(15px, 3vw, 20px);
            padding: 0 20px;
        }

    .page-hero .container h5 {
            font-size: clamp(12px, 2vw, 15px);
        }

    section.cta {
            padding: 50px 30px;
        }

    section.cta .section-title {
            font-size: 32px;
        }

    section.cta .text-content {
            font-size: 18px;
            margin-bottom: 50px;
        }

    section.cta a.btn {
            font-size: 18px;
        }
}

@media (max-width: 600px) {
    .page-hero {
            min-height: 40vh;
            padding: 50px 0;
        }

    .page-hero .container h5 {
            font-size: 11px;
            letter-spacing: 2px;
            margin-bottom: 15px;
        }

    .page-hero .container h1 {
            font-size: clamp(24px, 7vw, 36px);
            margin-bottom: 15px;
            padding: 0 15px;
        }

    .page-hero .container .text-content {
            font-size: clamp(14px, 3.8vw, 17px);
            padding: 0 20px;
        }

    section.cta {
            padding: 40px 20px;
        }

    section.cta .section-title {
            font-size: 26px;
            text-align: center;
        }

    section.cta .text-content {
            font-size: 15px;
            margin-bottom: 40px;
        }

    section.cta a.btn {
            font-size: 16px;
            padding: 12px 25px;
            width: 100%;
            display: block;
        }
}

@media (max-width: 380px) {
    .page-hero .container h1 {
            font-size: 22px;
        }

    .page-hero .container .text-content {
            font-size: 13px;
        }

    section.cta .section-title {
            font-size: 22px;
        }
}

/* Réseaux sociaux du menu plein écran : pas de soulignement par défaut */
.menu-display nav div a {
    text-decoration: none;
}
