:root {
    --marine: #00384f;
    --vert: #4a6032;
    --terre: #c6772d;
    --orange: #eb6c03;
    --bleu: #0e4686;
    --rouge: #c91a17;
    --papier: #faf8f2;
    --trait: #ddd6c7
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--papier);
    color: #243129;
    font: 17px/1.6 Georgia, serif
}

body.intro-open {
    overflow: hidden
}

a {
    color: var(--marine)
}

img {
    max-width: 100%
}

.wrap {
    width: min(1160px, calc(100% - 36px));
    margin: auto
}

.foulard,
.footer-stripe {
    height: 6px;
    background: linear-gradient(90deg, var(--bleu) 0 33%, var(--orange) 33% 66%, var(--vert) 66%)
}

h1,
h2,
h3 {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-weight: 400
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(250, 248, 242, .97);
    border-bottom: 1px solid var(--trait)
}

.navrow {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    text-decoration: none;
    min-width: 0
}

.brand-emblem {
    width: 88px;
    height: 88px;
    flex: 0 0 auto
}

.brand-text {
    height: 76px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block
}

.menu {
    display: flex;
    gap: 16px;
    align-items: center
}

.menu a,
.navgroup>a {
    font: 700 .88rem Arial, sans-serif;
    text-decoration: none
}

.navgroup {
    position: relative
}

.navgroup>a {
    display: flex;
    align-items: center;
    gap: 6px
}

.nav-icon {
    width: 25px
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 285px;
    padding: 8px;
    background: var(--papier);
    border: 1px solid var(--trait);
    box-shadow: 0 10px 25px #00384f22
}

.navgroup:hover .dropdown {
    display: block
}

.dropdown a {
    display: block;
    padding: 8px;
    font-size: .81rem;
    font-weight: 600
}

.menubtn {
    display: none
}

.pagehead {
    background: var(--marine);
    color: white;
    padding: 16px 0;
    border-bottom: 4px solid var(--terre)
}

.pagehead h1 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1;
    margin: .1em 0
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 38px;
    padding: 42px 0
}

.content {
    background: white;
    border: 1px solid var(--trait);
    padding: clamp(20px, 4vw, 44px);
    overflow: hidden
}

.content h2,
.content h3 {
    color: var(--marine);
    scroll-margin-top: 100px
}

.content table {
    display: block;
    overflow: auto
}

.sidebox {
    position: sticky;
    top: 121px;
    background: white;
    border: 1px solid var(--trait);
    border-top: 6px solid var(--vert);
    padding: 18px
}

.sidebox h2 {
    font-size: 1.25rem;
    margin: 0 0 8px
}

.sidebox a,
.sidebox span {
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid var(--trait);
    font: 700 .86rem Arial, sans-serif;
    text-decoration: none
}

.footer {
    background: var(--marine);
    color: white;
    margin-top: 35px
}

.foot {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 22px;
    align-items: center;
    padding: 20px 0;
    font-size: .82rem;
    line-height: 1.4
}

.foot img {
    width: 160px
}

.foot a {
    color: white
}

.footer-links {
    margin: .5rem 0 0
}

.intro-replay {
    border: 0;
    background: none;
    color: white;
    text-decoration: underline;
    font: inherit;
    padding: 0;
    cursor: pointer
}

.hero {
    padding: 65px 0
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    align-items: center;
    gap: 40px
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: .9;
    color: var(--marine);
    text-transform: uppercase
}

.hero-logo img {
    width: 280px
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid var(--marine);
    text-decoration: none;
    font-weight: bold;
    margin: 6px
}

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

.section {
    padding: 60px 0
}

.section.alt {
    background: white;
    border-block: 1px solid var(--trait)
}

.section h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    color: var(--marine);
    text-transform: uppercase
}

.paths,
.three,
.grid4,
.grid5,
.section-cards {
    display: grid;
    gap: 16px
}

.paths {
    grid-template-columns: 1fr 1fr
}

.paths article,
.three article,
.grid4 a,
.grid5 a,
.section-cards a,
.progression a {
    background: white;
    border: 1px solid var(--trait);
    border-top: 6px solid var(--vert);
    padding: 22px;
    text-decoration: none
}

.paths h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.7rem
}

.paths h3 img,
.section-cards img {
    width: 36px
}

.three {
    grid-template-columns: repeat(3, 1fr)
}

.grid4 {
    grid-template-columns: repeat(4, 1fr)
}

.grid5 {
    grid-template-columns: repeat(5, 1fr)
}

.grid4 a,
.grid5 a {
    font: bold 1rem Arial, sans-serif
}

.section-cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 28px
}

.section-cards a {
    display: flex;
    align-items: center;
    gap: 10px;
    font: bold 1rem Arial, sans-serif
}

.orange {
    border-top-color: var(--orange) !important
}

.blue {
    border-top-color: var(--bleu) !important
}

.red {
    border-top-color: var(--rouge) !important
}

.rural {
    margin-top: 25px;
    padding: 24px;
    border-left: 8px solid var(--terre);
    background: #f4efe5
}

.detail h2,
.progression h2 {
    font-size: 2rem
}

.tagline {
    font-style: italic
}

.progression a {
    color: inherit
}

.steps li {
    margin: 0 0 1rem
}

.eyebrow {
    font: bold .8rem Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--terre)
}

.critical-link {
    margin-top: 28px;
    padding: 22px;
    background: #f4efe5;
    border-left: 8px solid var(--terre)
}

.sylphes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.sylphes article,
.cairn-grid span {
    padding: 16px;
    background: #f7f4ec;
    border: 1px solid var(--trait)
}

.cairn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: grid;
    place-items: center
}

.intro-overlay[hidden] {
    display: none
}

.intro-overlay #intro-player {
    width: min(100vw, 177.78vh);
    height: min(56.25vw, 100vh)
}

#intro-skip {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    border: 1px solid #fff;
    background: #000b;
    color: white;
    padding: 10px 14px;
    cursor: pointer
}

@media(max-width:1000px) {
    .menubtn {
        display: block
    }

    .menu {
        display: none;
        position: absolute;
        top: 104px;
        left: 0;
        right: 0;
        background: var(--papier);
        padding: 20px;
        flex-direction: column;
        align-items: flex-start
    }

    .menu.open {
        display: flex
    }

    .navgroup .dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border: 0
    }

    .layout {
        grid-template-columns: 1fr
    }

    .sidebox {
        position: static
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .grid5 {
        grid-template-columns: repeat(2, 1fr)
    }

    .brand-text {
        max-width: 240px
    }
}

@media(max-width:650px) {
    .brand-emblem {
        width: 48px;
        height: 48px
    }

    .brand-text {
        height: 48px;
        max-width: 180px
    }

    .paths,
    .three,
    .grid4,
    .grid5,
    .section-cards,
    .sylphes,
    .cairn-grid {
        grid-template-columns: 1fr
    }

    .foot {
        grid-template-columns: 1fr;
        text-align: center
    }

    .foot img {
        width: 140px
    }

    .hero h1 {
        font-size: 3rem
    }
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin: 14px 0 4px
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--trait);
    font: inherit
}

.contact-form textarea {
    min-height: 180px
}

.contact-form button {
    margin-top: 16px
}

.brand-copy {
    font: 700 1rem Arial, sans-serif;
    line-height: 1.15;
    color: var(--marine)
}

.brand-copy small {
    display: block;
    font-weight: 400;
    margin-top: 5px
}