@import url("https://use.typekit.net/jhv6qbj.css");

html,
body {
    margin: 0;
    padding: 0;
}


:root {
    --legal-cream: #4c517a;
    --legal-ink: #f1dec1;
    --legal-ink-dim: #e7c6aa;
    --legal-gold: #e9ccaa;
    --legal-line: rgba(228, 171, 118, 0.863);
}

.legal-page * {
    box-sizing: border-box;
}

.legal-page {
    font-family: josefin-sans, sans-serif;
    background: var(--legal-cream);
    color: var(--legal-ink);
}

.legal-page h1,
.legal-page h2 {
    font-family: tt-modernoir, sans-serif;
    font-weight: 400;
}

.legal-page a {
    color: inherit;
    text-decoration: none;
}

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

.legal-hero {
    position: relative;
    height: 260px;
    background-image: linear-gradient(180deg, rgba(10, 14, 20, .55), rgba(10, 14, 20, .35)), url("fortress-clouds.webp");
    background-size: cover;
    background-position: center 35%;
    color: #f4f1ea;
}

.legal-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 34px 5vw 0;
}

.legal-logo {
    font-family: tt-modernoir, sans-serif;
    font-size: 2.4rem;
    color: rgb(230, 191, 118);
    letter-spacing: .12em;
    line-height: 1;
}

.legal-logo-sub {
    margin-top: 10px;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #dacdb0;
}

/* =========================================================
LIENS DU MENU
========================================================= */

.legal-nav-links {
display: flex;
align-items: center;
gap: 34px;


margin: 6px 0 0;
padding: 0;

list-style: none;

font-size: 0.92rem;
letter-spacing: 0.16em;
text-transform: uppercase;


}

.legal-nav-links a {
color: #f4f1ea;
text-decoration: none;
opacity: 1;


transition: color 0.25s ease, opacity 0.25s ease;

}

.legal-nav-links a:hover,
.legal-nav-links a:focus-visible {
color: #f4f1ea;
text-decoration: none;
opacity: 1;
}

.legal-hamburger {
display: none;
position: fixed;
top: 10px;
right: 20px;


width: 32px;
height: 32px;

padding: 0;
border: 0;
background: transparent;

cursor: pointer;
z-index: 100002;


}

.legal-hamburger span {
position: absolute;
left: 0;


width: 32px;
height: 3px;

background-color: #ffffff;
border-radius: 2px;

transition: transform 0.35s ease, opacity 0.25s ease;


}

.legal-hamburger span:nth-child(1) {
top: 4px;
}

.legal-hamburger span:nth-child(2) {
top: 14px;
}

.legal-hamburger span:nth-child(3) {
top: 24px;
}

/* =========================================================
HAMBURGER → CROIX
========================================================= */

.legal-hamburger.open span:nth-child(1) {
top: 14px;
transform: rotate(45deg);
}

.legal-hamburger.open span:nth-child(2) {
opacity: 0;
}

.legal-hamburger.open span:nth-child(3) {
top: 14px;
transform: rotate(-45deg);
}

/* ===================== CONTENT WRAPPER ===================== */

.legal-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(50px, 7vw, 90px) 5vw clamp(60px, 8vw, 100px);
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 40px;
}

/* ===================== TITLE BLOCK ===================== */

.legal-title-block {
    grid-column: 1 / 2;
    margin-bottom: 10px;
}

.legal-rule-short {
    width: 40px;
    height: 2px;
    background: var(--legal-gold);
    margin-bottom: 22px;
}

.legal-title-block h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    margin: 0 0 14px;
    line-height: 1;
}

.legal-eyebrow {
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--legal-ink-dim);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--legal-line);
}

/* ===================== SIDEBAR NAV ===================== */

.legal-sidenav {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding-top: 6px;
}

.legal-sidenav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-sidenav li {
    margin-bottom: 14px;
}

.legal-sidenav a {
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--legal-ink-dim);
}

.legal-sidenav a.active {
    color: var(--legal-gold);
    font-weight: 600;
}

.legal-sidenav a:hover,
.legal-sidenav a:focus-visible {
    color: orange;
}

/* ===================== SECTIONS ===================== */

.legal-sections {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.legal-section {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 22px;
    padding: 30px 0;
    border-bottom: 1px solid var(--legal-line);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section-number {
    font-family: josefin-sans, sans-serif;
    font-weight: 600;
    color: var(--legal-gold);
    font-size: .95rem;
}

.legal-section h2 {
    font-family: josefin-sans, sans-serif;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.legal-section p {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--legal-ink);
    margin: 0 0 10px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

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

.legal-footer {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--legal-line);
    position: relative;
}

.legal-footer-thanks {
    font-style: italic;
    font-size: .92rem;
    color: var(--legal-ink-dim);
    margin: 0 0 10px;
}

.legal-footer-brand {
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
}

.legal-compass {
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 60px;
    height: 60px;
    opacity: .8;
}

#cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background: #c2a773;
    border-top: 1px solid #000000;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-inner p {
    margin: 0;
    font-size: 14px;
    color: #221914;
    line-height: 1.5;
}

.cookie-banner-inner a {
    text-decoration: none;
    color: #3a3a8b;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner-actions button {
    padding: 10px 18px;
    border: 1px solid #000000;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.cookie-banner-actions button:last-child {
    background: #000000;
    color: #e6c66f;
}

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


:root {
    --ink: #28245e;
    --text-on-dark: #e4cf9e;
    --text-on-dark-dim: #cfcbc2;
}

.cs-footer {
    background: var(--ink);
    color: var(--text-on-dark);
}

.cs-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(50px, 6vw, 30px) clamp(24px, 5vw, 44px) clamp(30px, 4vw, 20px);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: 40px;
    align-items: start;
}

.cs-footer-brand {
    font-family: tt-modernoir, sans-serif;
    font-size: 2.2rem;
}

.cs-footer h5 {
    font-family: josefin-sans, sans-serif;
    font-size: .85rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-on-dark-dim);
    margin-bottom: 18px;
    font-weight: 400;
}

.cs-footer ul li {
    margin-bottom: 12px;
    font-size: .88rem;
}

.cs-footer ul a {
    opacity: .9;
    color: #b4c2e6;
    text-decoration: none;
    font-family: josefin-sans, sans-serif;
}


.cs-footer ul a:hover,
.cs-footer ul a:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.cs-signature {
    font-family: josefin-sans, cursive;
    font-style: italic;
    font-size: 1.8rem;
    align-self: end;
    opacity: .9;
}

.cs-footer-legal {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 44px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    border-top: 1px solid rgba(228, 207, 158, .2);
    font-size: .9rem;
}

.cs-footer-legal a,
.cs-footer-legal button {
    color: var(--text-on-dark-dim);
    text-decoration: none;
    font: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.cs-footer-legal a:hover,
.cs-footer-legal a:focus-visible,
.cs-footer-legal button:hover,
.cs-footer-legal button:focus-visible {
    color: var(--text-on-dark);
    text-decoration: none;
}


/* =========================================================
EN / FR
========================================================= */

.lang-switch {
display: flex;
align-items: center;
gap: 12px;


margin-top: 6px;

}

.lang-switch .lang-button {
display: inline-block;

padding: 0;

color: #f4f1ea;
text-decoration: none;

font-size: 0.85rem;
letter-spacing: 0.12em;
text-transform: uppercase;
line-height: 1;

opacity: 1;

transition: color 0.25s ease, opacity 0.25s ease;

}

.lang-switch .lang-button:hover,
.lang-switch .lang-button:focus-visible {
color: #f4f1ea;
text-decoration: none;
opacity: 1;
}


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

/* ---- Tablette portrait (769-1024px, orientation portrait) ---- */
@media screen and (min-width: 769px) and (max-width: 1250px) and (orientation: portrait) {

     html{font-size:15px;}
    body{overflow-x:hidden;}

    .legal-hero {
        height: auto;
        min-height: 200px;
        padding-bottom: 24px;
    }

    .legal-nav {
        padding: 24px 6vw 0;
        align-items: center;
    }

    .legal-logo {
        font-size: 2.2rem;
    }

    .legal-logo-sub {
        font-size: 0.9rem;
        letter-spacing: .12em;
        max-width: 70%;
    }

    .legal-nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(70vw, 280px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 28px;
        padding: 0 8vw;
        background: rgba(15, 18, 24, .95);
        transform: translateX(100%);
        transition: transform .4s ease;
        z-index: 20;
    }

    .legal-nav-links.open {
        transform: translateX(0);
    }

    .legal-hamburger { 
        display: flex; 
        position: fixed; 
        top: 10px; 
        right: 20px; 
        width: 32px; 
        height: 32px; 
        margin: 0; 
        padding: 0; 
        box-sizing: border-box; 
        z-index: 1000000; 
    }
}

/* ---- Tablette paysage (769-1180px, orientation landscape) ---- */
@media screen and (min-width: 769px) and (max-width: 1250px) and (orientation: landscape) {

     html{font-size:15px;}
    body{overflow-x:hidden;}

    .legal-hero {
        height: auto;
        min-height: 200px;
        padding-bottom: 24px;
    }

    .legal-nav {
        padding: 24px 6vw 0;
        align-items: center;
    }

    .legal-logo {
        font-size: 2.2rem;
    }

    .legal-logo-sub {
        font-size: 0.9rem;
        letter-spacing: .12em;
        max-width: 70%;
    }

    .legal-nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(70vw, 280px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 28px;
        padding: 0 8vw;
        background: rgba(15, 18, 24, .95);
        transform: translateX(100%);
        transition: transform .4s ease;
        z-index: 20;
    }

    .legal-nav-links.open {
        transform: translateX(0);
    }

    .legal-hamburger { 
        display: flex; 
        position: fixed; 
        top: 10px; 
        right: 20px; 
        width: 32px; 
        height: 32px; 
        margin: 0; 
        padding: 0; 
        box-sizing: border-box; 
        z-index: 1000000; 
    }

    .legal-content {
        grid-template-columns: 1fr 220px;
        gap: 30px;
        padding-top: 60px;
    }

    .legal-hero {
        height: 220px;
    }

    .legal-title-block h1 {
        font-size: 2.6rem;
    }
}

/* ---- Mobile (<= 768px) ---- */
@media (max-width:768px){

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

    .legal-hero {
        height: auto;
        position: relative; 
        overflow: visible;
        min-height: 200px;
        padding-bottom: 24px;
    }

    .legal-nav {
        padding: 24px 6vw 0;
        align-items: center;
    }

    .legal-logo {
        font-size: 2.2rem;
    }

    .legal-logo-sub {
        font-size: 0.9rem;
        letter-spacing: .12em;
        max-width: 70%;
    }

    .legal-nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(70vw);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 28px;
        padding: 0 8vw;
        background: rgba(15, 18, 24, .95);
        transform: translateX(100%);
        transition: transform .4s ease;
        z-index: 20;
    }

    .legal-nav-links.open {
        transform: translateX(0);
    }

    .legal-hamburger { 
        display: flex; 
        position: fixed; 
        top: 10px; 
        right: 20px; 
        width: 32px; 
        height: 32px; 
        margin: 0; 
        padding: 0; 
        box-sizing: border-box; 
        z-index: 1000000; 
    }

    .legal-hamburger span { 
        position: absolute; 
        left: 0; 
        width: 32px; 
        height: 3px; 
    }

    .legal-nav-links li.lang-switch {
        width: auto;
    }

    .legal-nav-links li.lang-switch + li.lang-switch {
        margin-top: -28px;
        margin-left: 35px;
    }

    .legal-content {
        grid-template-columns: 1fr;
        padding-left: 6vw;
        padding-right: 6vw;
        gap: 0;
    }

    .legal-title-block {
        grid-column: 1;
    }

    .legal-sidenav {
        grid-column: 1;
        grid-row: auto;
        margin: 28px 0 10px;
        padding-top: 0;
    }

    .legal-sidenav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 22px;
    }

    .legal-sidenav li {
        margin-bottom: 0;
    }

    .legal-sections {
        grid-column: 1;
        grid-row: auto;
    }

    .legal-section {
        grid-template-columns: 40px 1fr;
        column-gap: 14px;
        padding: 22px 0;
    }

    .legal-title-block h1 {
        font-size: 2rem;
    }

    .legal-compass {
        width: 44px;
        height: 44px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .cookie-banner-actions {
        justify-content: flex-end;
    }
    
}

@media (prefers-reduced-motion: reduce) {

    .legal-page * {
        transition: none !important;
    }
}
