:root {
    --couleur-princ : #ffffff;
    --couleur-neutre : #000000;
    --couleur-second : #f7f7fe;
    --couleur-accent : #1a6b4a;
    --couleur-accent2 : #3ed599;
    --accent-1 : var(--couleur-accent);
    --bg-principal : var(--couleur-princ);
    --bg-2 : var(--couleur-accent);
    --bg-3 :var(--couleur-accent2);

    /* Texte */
    --txt-sm : 11px;
    --txt-md : 15px;
    --txt-lg : 22px;
    --txt-xl : 32px;

    /* Bordures */
    --radius-sm : 12px;
    --radius-md : 32px;
    --radius-lg : 60px;

    /* espacement */
    --space-sm : 10px;
    --space-md : 30px;
    --space-lg : var(--radius-lg);
}

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

h1,h2,h3,h4,h5, p {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: var(--txt-sm);
}

body {
    margin: 0;
    background-color: var(--couleur-princ);
    font-family: 'Inter', Arial, sans-serif;
}

body.page-preload {
    background:
        linear-gradient(180deg, rgba(18, 77, 53, 0.98) 0%, rgba(13, 55, 38, 1) 100%);
}

body.page-preload header,
body.page-preload main,
body.page-preload footer {
    opacity: 0;
}

body.page-ready header,
body.page-ready main,
body.page-ready footer {
    opacity: 1;
}

.site-transition {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
}

.site-transition.is-active {
    display: grid;
    pointer-events: auto;
}

.site-transition-panel {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(18, 77, 53, 0.98) 0%, rgba(13, 55, 38, 1) 100%);
}

.site-transition-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #ffffff;
    font-size: clamp(3.2rem, 12vw, 7.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.065em;
    text-transform: none;
    white-space: nowrap;
}

.site-transition-o,
.site-transition-rest {
    display: inline-block;
    will-change: transform, opacity;
}

.site-transition-o {
    transform-origin: center center;
}

.site-transition-rest {
    padding-left: 0.02em;
}

/* Masque le gap de 10px au-dessus du header sticky */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: var(--couleur-princ);
    z-index: 99;
    pointer-events: none;
    transition: transform 280ms ease, opacity 220ms ease;
}

body:has(header.header-hidden)::before {
    transform: translateY(-100%);
    opacity: 0;
}

main {
    background-color: var(--couleur-princ);
}

header {
    position: sticky;
    top: 10px;
    z-index: 100;
    padding: 0 24px;
    margin: 0;
    transition: transform 280ms ease, opacity 220ms ease,
                margin-inline 280ms ease, padding-inline 280ms ease,
                background-color 240ms ease, box-shadow 240ms ease,
                border-radius 240ms ease;
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
}

header.header-scrolled {
    margin-inline: 20px;
    padding-inline: 24px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 24px rgba(16, 35, 28, 0.10),
        0 1px 4px rgba(16, 35, 28, 0.06),
        0 0 0 1px rgba(16, 35, 28, 0.05);
}

header.header-hidden {
    transform: translateY(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
}

.ordinia--nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
}

.nav--logo h1 {
    margin: 0;
    color: var(--accent-1);
    font-size: var(--txt-xl);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.bouton--burger {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    user-select: none;
}

.ham.active {
    transform: rotate(45deg);
}

.line {
    fill: none;
    stroke: #0c1f17;
    stroke-width: 5.5;
    stroke-linecap: round;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms, transform 400ms;
}

.ham .middle,
.ham .bottom {
    transform-origin: 50%;
}

.ham8 .top {
    stroke-dasharray: 40 160;
}

.ham8 .middle {
    stroke-dasharray: 40 142;
}

.ham8 .bottom {
    stroke-dasharray: 40 85;
}

.ham8.active .top,
.ham8.active .bottom {
    stroke-dashoffset: -64px;
}

.ham8.active .middle {
    transform: rotate(90deg);
}

.bouton--burger svg {
    display: block;
}

.bouton--menu {
    margin-left: auto;
}

.bouton--menu ul {
    display: flex;
    align-items: center;
    gap: 18px;
}

.liens {
    margin: 0;
}

.liens a {
    position: relative;
    display: block;
    color: rgba(12, 31, 23, 0.72);
    font-size: 0.90rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 200ms ease, background-color 200ms ease;
}

.liens a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: var(--accent-1);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.liens a:hover,
.liens a[aria-current="page"] {
    color: var(--accent-1);
}

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

.liens a:focus-visible {
    color: var(--accent-1);
    background-color: rgba(26, 107, 74, 0.07);
    outline: none;
}

.liens a:focus-visible::after {
    transform: scaleX(1);
}

.footer-cookie-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 180ms ease, border-color 180ms ease;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(12, 31, 23, 0.02) 0%, rgba(12, 31, 23, 0.34) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.cookie-consent.is-open {
    display: flex;
}

.cookie-consent__box {
    position: relative;
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.72fr);
    gap: 20px 24px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(26, 107, 74, 0.10);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.96));
    box-shadow:
        0 24px 70px rgba(12, 31, 23, 0.22),
        0 2px 10px rgba(12, 31, 23, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.cookie-consent__box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #124d35, var(--accent-1), var(--couleur-accent2));
}

.cookie-consent__intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.cookie-consent__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(26, 107, 74, 0.09);
    color: var(--accent-1);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cookie-consent__intro h2 {
    margin: 0;
    color: #0c1f17;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.cookie-consent__intro p {
    max-width: 62ch;
    color: rgba(12, 31, 23, 0.72);
    font-size: 0.96rem;
    line-height: 1.68;
}

.cookie-consent__choices {
    position: relative;
    display: grid;
    gap: 10px;
}

.cookie-consent__choice {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid rgba(26, 107, 74, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow:
        0 10px 24px rgba(16, 35, 28, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.cookie-consent__choice.is-disabled {
    background: rgba(26, 107, 74, 0.06);
    cursor: default;
}

.cookie-consent__choice:hover:not(.is-disabled) {
    border-color: rgba(26, 107, 74, 0.24);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 14px 30px rgba(16, 35, 28, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.cookie-consent__choice input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--accent-1);
}

.cookie-consent__choice strong,
.cookie-consent__choice small {
    display: block;
}

.cookie-consent__choice strong {
    color: #0c1f17;
    font-size: 0.92rem;
    line-height: 1.25;
}

.cookie-consent__choice small {
    margin-top: 4px;
    color: rgba(12, 31, 23, 0.64);
    font-size: 0.8rem;
    line-height: 1.45;
}

.cookie-consent__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 2px;
}

.cookie-consent__btn {
    position: relative;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid rgba(26, 107, 74, 0.16);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 12px 24px rgba(16, 35, 28, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition:
        transform 220ms ease,
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.cookie-consent__btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #124d35 0%, var(--accent-1) 56%, #2f9c72 100%);
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.cookie-consent__btn--secondary {
    background: rgba(232, 245, 239, 0.94);
    color: var(--accent-1);
}

.cookie-consent__btn--ghost {
    background: rgba(255, 255, 255, 0.82);
    color: rgba(12, 31, 23, 0.76);
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.cookie-consent__btn:focus-visible {
    box-shadow:
        0 0 0 3px rgba(62, 213, 153, 0.22),
        0 16px 30px rgba(16, 35, 28, 0.14);
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus-visible {
    box-shadow:
        0 18px 36px rgba(16, 35, 28, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cookie-consent__btn--secondary:hover,
.cookie-consent__btn--secondary:focus-visible {
    background: rgba(26, 107, 74, 0.96);
    border-color: rgba(26, 107, 74, 0.96);
    color: #ffffff;
}

.cookie-consent__btn--ghost:hover,
.cookie-consent__btn--ghost:focus-visible {
    border-color: rgba(26, 107, 74, 0.24);
    color: #0c1f17;
}

.cookie-consent__btn:active {
    transform: translateY(0);
}

@media (min-width: 581px) {
    .liens a:hover {
        background-color: rgba(26, 107, 74, 0.06);
    }
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 580px) {
    header {
        top: 8px;
        padding-inline: 16px;
    }

    header.header-scrolled {
        margin-inline: 12px;
        padding-inline: 16px;
    }

    .bouton--burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        line-height: 0;
    }

    .ordinia--nav {
        justify-content: space-between;
        min-height: 56px;
    }

    .nav--logo {
        flex: 0 0 auto;
    }

    .bouton--menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 14px;
        right: 14px;
        margin-left: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 10;
        border-radius: var(--radius-sm);
        background-color: var(--bg-principal);
        box-shadow:
            10px 10px 24px rgba(0, 0, 0, 0.12),
            -10px -10px 24px rgba(255, 255, 255, 0.9),
            inset 2px 2px 5px rgba(255, 255, 255, 0.85),
            inset -2px -2px 5px rgba(0, 0, 0, 0.04);
        transform: translateY(-10px) scaleY(0.92);
        transform-origin: top;
        transition: max-height 350ms ease, opacity 250ms ease, transform 350ms ease;
    }

    .bouton--menu.menu-ouvert {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scaleY(1);
    }

    .bouton--menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
    }

    .liens a {
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        background-color: transparent;
    }

    .liens a::after {
        display: none;
    }

    .liens a:active,
    .liens a[aria-current="page"] {
        background-color: rgba(26, 107, 74, 0.08);
        color: var(--accent-1);
    }

    .cookie-consent {
        padding: 10px;
    }

    .cookie-consent__box {
        grid-template-columns: 1fr;
        gap: 16px;
        max-height: calc(100vh - 20px);
        overflow: auto;
        padding: 18px 16px 16px;
        border-radius: 24px;
    }

    .cookie-consent__box::before {
        left: 16px;
        right: 16px;
    }

    .cookie-consent__intro {
        gap: 8px;
    }

    .cookie-consent__intro p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cookie-consent__choice {
        padding: 11px;
        border-radius: 14px;
    }

    .cookie-consent__choice small {
        font-size: 0.76rem;
    }

    .cookie-consent__actions {
        justify-content: stretch;
        gap: 8px;
    }

    .cookie-consent__btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-preload {
        background: var(--couleur-princ);
    }

    body.page-preload header,
    body.page-preload main,
    body.page-preload footer,
    body.page-ready header,
    body.page-ready main,
    body.page-ready footer {
        opacity: 1;
    }

    header {
        transition: background-color 220ms ease, box-shadow 220ms ease, border-radius 220ms ease;
        transform: none;
    }

    header.header-hidden {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .site-transition {
        display: none !important;
    }
}

@media (max-width: 580px) {
    .site-transition-brand {
        font-size: clamp(2.8rem, 16vw, 4.8rem);
        letter-spacing: -0.05em;
    }
}
