@font-face {
    font-family: "Saira Stencil One";
    src:
        url("../fonts/SairaStencilOne-x1no0L2.woff2") format("woff2"),
        url("../fonts/SairaStencilOne-RRLyOaC.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
    --color-surface: #f7f5ef;
    --color-surface-alt: #ece9df;
    --color-surface-dark: #0e3b36;

    --color-text: #18211e;
    --color-text-muted: #58645f;
    --color-text-inverse: #f7f5ef;

    --color-border: #c8cec9;
    --color-action: #ce8a2a;
    --color-action-hover: #a96816;
    --color-focus: #0068c9;

    --container-default: 75rem;
    --container-wide: 85rem;
    --content-reading: 68ch;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-10: 5rem;
    --space-12: 6rem;

    --radius-small: 0.25rem;
    --radius-medium: 0.625rem;

    --header-height: 5.5rem;

    --font-body:
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        "Noto Sans",
        "Liberation Sans",
        sans-serif;

    --font-heading: var(--font-body);
    --font-accent: "Saira Stencil One", var(--font-body);

    /*
     * Alias legacy encore conservés pour les pages non refondues
     * et certains styles secondaires.
     * À retirer seulement après audit de form.css / legal.css / admin.
     */
    --ocre: var(--color-action);
    --epicea: var(--color-surface-dark);
    --text: var(--color-text-inverse);
    --muted: #b8c4be;
    --bg: #123f3a;

    --h1: clamp(2rem, 5vw, 3.5rem);
    --h2: clamp(1.625rem, 3.5vw, 2.5rem);
    --h3: clamp(1.3125rem, 2.5vw, 1.75rem);
    --lh: 1.6;

    --mono:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    --sans: var(--font-body);
    --display: var(--font-accent);
}


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

html {
    scroll-behavior: smooth;
}

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

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;

    background: var(--color-surface);
    color: var(--color-text);

    font-family: var(--font-body);
    font-size: clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
    line-height: var(--lh);

    overflow-wrap: anywhere;
}

.contenair {
    min-height: 100vh;
    background: var(--color-surface);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

::selection {
    background: var(--color-action);
    color: var(--color-text);
}

p,
li {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3 {
    font-family: var(--font-heading);
    line-height: 1.15;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: var(--space-1);
    left: var(--space-1);
    z-index: 10000;

    padding: var(--space-1) var(--space-2);

    border-radius: var(--radius-small);

    background: var(--color-surface);
    color: var(--color-text);

    font-weight: 700;

    transform: translateY(calc(-100% - var(--space-2)));
}

.skip-link:focus {
    transform: translateY(0);
}

.site-main:focus {
    outline: none;
}

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.container,
.reading-column {
    width: min(
        100% - clamp(2rem, 6vw, 4rem),
        var(--container-default)
    );
    margin-inline: auto;
}

.container-wide {
    width: min(
        100% - clamp(2rem, 6vw, 4rem),
        var(--container-wide)
    );
    margin-inline: auto;
}

.reading-column {
    max-width: var(--content-reading);
}

.section,
.section-light,
.section-alt,
.section-dark {
    padding-block: clamp(
        var(--space-5),
        8vw,
        var(--space-12)
    );
}

.section-light {
    background: var(--color-surface);
    color: var(--color-text);
}

.section-alt {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.section-dark {
    background: var(--color-surface-dark);
    color: var(--color-text-inverse);
}


/* ============================================================
   SHARED EDITORIAL HELPERS
   Used by Home / Product
   ============================================================ */

.home-eyebrow {
    margin-bottom: var(--space-2);

    color: var(--color-action-hover);

    font-family: var(--font-accent);
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.09em;

    text-transform: uppercase;
}

.home_hero_intro {
    color: var(--color-text-muted);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn_primary,
.cta_primary,
.btn_form,
.btn_secondary,
.cta_secondary {
    display: inline-flex;

    min-height: 2.75rem;

    align-items: center;
    justify-content: center;

    padding: 0.625rem var(--space-2);

    border: 2px solid transparent;
    border-radius: var(--radius-medium);

    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.btn_primary,
.cta_primary,
.btn_form {
    background: var(--color-action);
    color: var(--color-text);
}

.btn_primary:hover,
.cta_primary:hover,
.btn_form:hover {
    background: var(--color-action-hover);
    color: var(--color-text-inverse);
}

.btn_secondary,
.cta_secondary {
    border-color: var(--color-text-muted);

    background: transparent;
    color: var(--color-text);
}

.btn_secondary:hover,
.cta_secondary:hover {
    border-color: var(--color-action-hover);
    color: var(--color-action-hover);
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: relative;
    z-index: 20;

    display: block;
    width: 100%;

    background: var(--color-surface-dark);
    color: var(--color-text-inverse);
}

.site-header__inner {
    display: flex;

    min-height: var(--header-height);

    align-items: center;
    justify-content: space-between;

    gap: clamp(
        var(--space-1),
        2vw,
        var(--space-3)
    );
}

.site-brand {
    display: flex;
    flex: 0 1 13.5rem;
    flex-direction: column;

    color: var(--color-text-inverse);
    text-decoration: none;
}

.site-brand__logo {
    width: 100%;

    aspect-ratio: 367 / 80;
    object-fit: contain;
}

.site-brand__tagline {
    margin-top: 0.125rem;

    color: #c7d2cc;

    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.08em;

    text-align: right;
}

.desktop-nav {
    width: auto;
    margin: 0;
}

.site-nav__list,
.mobile-nav__list,
.site-footer ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.site-nav__list {
    display: flex;
    align-items: center;

    gap: clamp(
        0.25rem,
        1vw,
        var(--space-2)
    );
}

.site-nav__list a,
.mobile-nav__list a {
    display: inline-flex;

    min-height: 2.75rem;

    align-items: center;

    padding-inline: 0.625rem;

    border-radius: var(--radius-small);

    color: var(--color-text-inverse);

    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 650;

    text-decoration: none;
}

.site-nav__list a:hover,
.mobile-nav__list a:hover,
.site-nav__list a[aria-current="page"],
.mobile-nav__list a[aria-current="page"] {
    color: #f1b65e;
}

.site-nav__list a[aria-current="page"],
.mobile-nav__list a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 0.125rem;
    text-underline-offset: 0.4rem;
}

.site-header__actions {
    display: flex;
    align-items: center;

    gap: var(--space-1);
}

.site-header .btn_secondary {
    border-color: #b8c4be;
    color: var(--color-text-inverse);
}


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

.burger {
    display: none;

    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;

    border: 0;
    border-radius: var(--radius-small);

    background: transparent;
    color: var(--color-text-inverse);

    cursor: pointer;
}

.burger__icon,
.burger__icon::before,
.burger__icon::after {
    position: absolute;
    left: 0.4375rem;

    display: block;

    width: 1.875rem;
    height: 0.1875rem;

    border-radius: 1rem;

    background: var(--color-action);

    content: "";

    transition:
        transform 160ms ease,
        opacity 160ms ease;
}

.burger__icon {
    top: 1.28125rem;
}

.burger__icon::before {
    top: -0.5625rem;
    left: 0;
}

.burger__icon::after {
    top: 0.5625rem;
    left: 0;
}

.burger.is-open .burger__icon {
    background: transparent;
}

.burger.is-open .burger__icon::before {
    top: 0;
    transform: rotate(45deg);
}

.burger.is-open .burger__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-nav {
    width: 100%;
    margin: 0;

    padding:
        0
        clamp(var(--space-2), 5vw, var(--space-4))
        var(--space-3);

    border-top: 1px solid rgba(247, 245, 239, 0.2);

    background: var(--color-surface-dark);
}

.mobile-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: var(--space-1);

    padding-block: var(--space-2);
}

.mobile-nav__list a,
.mobile-nav__cta {
    width: 100%;
}


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

.site-footer {
    display: block;

    width: 100%;

    padding-block: clamp(
        var(--space-5),
        6vw,
        var(--space-8)
    );

    background: var(--color-surface-dark);
    color: var(--color-text-inverse);
}

.site-footer__inner {
    display: grid;
    grid-template-columns:
        minmax(12rem, 1.4fr)
        repeat(3, minmax(9rem, 1fr));

    gap: clamp(
        var(--space-3),
        4vw,
        var(--space-6)
    );

    align-items: start;
}

.site-footer__logo {
    width: min(100%, 13.75rem);

    aspect-ratio: 367 / 80;
    object-fit: contain;
}

.site-footer__brand p {
    margin: var(--space-1) 0 0;

    color: #c7d2cc;

    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.site-footer h2 {
    margin: 0 0 var(--space-1);

    color: var(--color-text-inverse);

    font-size: 1rem;
}

.site-footer li + li {
    margin-top: 0.25rem;
}

.site-footer a,
.footer-cookie-button {
    color: #d6ded9;
}

.site-footer__group a {
    display: inline-flex;

    min-height: 2.75rem;

    align-items: center;

    text-decoration-thickness: 0.0625rem;
    text-underline-offset: 0.2rem;
}

.site-footer a:hover {
    color: #f1b65e;
}

#cookie-consent-manage.footer-cookie-button {
    width: auto;
    min-height: 2.75rem;
    height: auto;

    margin: 0;
    padding: 0.5rem 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: #d6ded9;

    font-family: var(--font-body);
    font-size: 1rem;

    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.2rem;

    cursor: pointer;
}

#cookie-consent-manage.footer-cookie-button:hover {
    color: #f1b65e;
}


/* ============================================================
   COOKIE CONSENT
   Walker Wild
   ============================================================ */

.cookie-consent-banner[hidden] {
    display: none !important;
}


.cookie-consent-banner {
    position: fixed;

    right: clamp(
        1rem,
        3vw,
        2rem
    );

    bottom: clamp(
        1rem,
        3vw,
        2rem
    );

    left: auto;

    z-index: 9999;


    width: min(
        32rem,
        calc(100% - 2rem)
    );


    margin: 0;
    padding: 0;


    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );

    border-radius: 0.75rem;


    background: #073b34;

    color: #fff;


    box-shadow:
        0
        18px
        50px
        rgba(
            0,
            0,
            0,
            0.22
        );


    opacity: 0;

    transform:
        translateY(
            0.75rem
        );


    transition:
        opacity 180ms ease,
        transform 180ms ease;
}


.cookie-consent-banner.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


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

.cookie-consent-content {
    padding: clamp(
        1.35rem,
        3vw,
        1.8rem
    );
}


.cookie-consent-eyebrow {
    margin:
        0
        0
        0.55rem;


    color: #dc941d;


    font-size: 0.7rem;
    font-weight: 800;

    line-height: 1.3;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.cookie-consent-title {
    margin: 0;


    color: #fff;


    font-family:
        var(
            --font-heading,
            inherit
        );

    font-size: clamp(
        1.25rem,
        2vw,
        1.55rem
    );

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.025em;
}


.cookie-consent-text {
    margin:
        0.9rem
        0
        0;


    color:
        rgba(
            255,
            255,
            255,
            0.78
        );


    font-size: 0.88rem;

    line-height: 1.6;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.cookie-consent-actions {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );


    gap: 0.7rem;


    margin-top: 1.35rem;
}


.cookie-consent-actions button {
    min-height: 2.8rem;


    padding:
        0.7rem
        1rem;


    border:
        2px solid
        transparent;

    border-radius: 0.45rem;


    font: inherit;

    font-size: 0.86rem;
    font-weight: 800;


    cursor: pointer;


    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}


/* ============================================================
   REFUSER
   ============================================================ */

#cookie-consent-refuse {
    border-color:
        rgba(
            255,
            255,
            255,
            0.45
        );


    background: transparent;

    color: #fff;
}


#cookie-consent-refuse:hover {
    border-color: #fff;


    background:
        rgba(
            255,
            255,
            255,
            0.08
        );
}


/* ============================================================
   ACCEPTER
   ============================================================ */

#cookie-consent-accept {
    border-color: #d78711;

    background: #d78711;

    color: #111;
}


#cookie-consent-accept:hover {
    border-color: #e39723;

    background: #e39723;
}


/* ============================================================
   FOCUS
   ============================================================ */

.cookie-consent-actions button:focus-visible {
    outline:
        3px solid
        #fff;

    outline-offset: 3px;
}


/* ============================================================
   FOOTER — GESTION DES COOKIES
   ============================================================ */

#cookie-consent-manage.footer-cookie-button {
    width: auto;

    min-height: 2.75rem;
    height: auto;


    margin: 0;


    padding:
        0.5rem
        0;


    border: 0;

    border-radius: 0;


    background: transparent;

    color: #d6ded9;


    font-family:
        var(--font-body);

    font-size: 1rem;


    text-align: left;


    text-decoration: underline;

    text-underline-offset: 0.2rem;


    cursor: pointer;
}


#cookie-consent-manage.footer-cookie-button:hover {
    color: #f1b65e;
}


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

@media (max-width: 600px) {

    .cookie-consent-banner {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;

        width: auto;
    }


    .cookie-consent-actions {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   CONTACT COMPATIBILITY
   Temporary until the Contact page is refactored.
   ============================================================ */

.text {
    margin: 0;
    padding: 10px;

    color: var(--text);

    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.5;

    text-align: center;

    list-style: none;
}

.alert-success {
    color: green;

    font-family: var(--display);
    font-size: 25px;

    text-align: center;
}

.alert-danger {
    color: red;

    font-family: var(--display);
    font-size: 20px;
}

.form-error ul {
    margin: 6px 0 0;
    padding-left: 0;

    font-family: var(--display);

    list-style: none;
}

.form-error li {
    color: red;

    font-family: var(--display);
    font-size: 20px;
    font-weight: 500;
}


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

@media (max-width: 64rem) {

    .desktop-nav,
    .site-header__actions {
        display: none;
    }

    .burger {
        position: relative;
        display: block;
    }

    .site-brand {
        flex-basis: min(
            13.5rem,
            calc(100vw - 7rem)
        );
    }

    .site-footer__inner {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 36rem) {

    .site-header__inner {
        min-height: 4.5rem;
    }

    .site-brand__tagline {
        display: none;
    }

    .mobile-nav__list,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__group a,
    .footer-cookie-button {
        width: 100%;
    }

    .cookie-consent-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent-actions button {
        width: 100%;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
