:root {
    --cyan: #1d4f8a;
    --cyan-deep: #0e2740;
    --ink: #14324a;
    --muted: #3d5568;
    --nav: #3d5568;
    --line: #d5e1ea;
    --white: #ffffff;
    --soft: #f4f7f8;
    --soft-strong: #d5e4f0;
    --sky: #8eb8d4;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --shell: min(1140px, calc(100% - 3rem));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--muted);
    background: var(--white);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cyan-deep);
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0 0 0.7rem;
}

p {
    margin: 0 0 1rem;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--white);
    color: var(--ink);
    padding: 0.5rem 0.8rem;
    z-index: 30;
}

.skip:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    transition: box-shadow 0.3s ease;
}

.site-header.is-stuck {
    box-shadow: 0 8px 24px rgba(84, 89, 95, 0.08);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 1.5rem;
}

.brand img {
    width: 168px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}

.nav a {
    color: var(--nav);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.02em;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--nav);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-media {
    position: absolute;
    inset: -6%;
    background:
        linear-gradient(180deg, rgba(14, 39, 64, 0.55), rgba(14, 39, 64, 0.38)),
        url("../img/hero.jpg") center 42% / cover no-repeat;
    animation: drift 22s ease-in-out infinite alternate;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
    text-align: center;
}

.hero-kicker {
    margin: 0 0 1rem;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: rise 0.8s ease both;
}

.hero h1 {
    margin: 0 auto;
    max-width: 12em;
    color: var(--white);
    font-size: clamp(3rem, 6.4vw, 5.4rem);
    font-weight: 560;
    letter-spacing: -0.035em;
    text-transform: none;
    line-height: 0.98;
    animation: rise 0.9s ease 0.12s both;
}

.intro {
    padding: 4.2rem 0 3.4rem;
}

.prose-center {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.prose-center::before,
.prose-center::after {
    content: "";
    display: block;
    width: min(100%, 720px);
    height: 2px;
    margin: 0 auto 2rem;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s ease 0.15s;
}

.prose-center::after {
    margin: 2rem auto 0;
}

#equipement,
#contact,
#formulaire {
    scroll-margin-top: 96px;
}

.band {
    background: var(--cyan);
    color: var(--white);
    text-align: center;
    padding: 2.6rem 0;
}

.band h2,
.band p {
    margin: 0 auto;
    max-width: 920px;
    color: var(--white);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 500;
    line-height: 1.35;
}

.band-soft {
    background: var(--soft-strong);
    color: var(--ink);
}

.band-soft p {
    color: var(--ink);
    font-weight: 500;
}

.equip {
    padding: 2.6rem 0 3rem;
}

.equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.equip-card {
    min-width: 0;
    padding: 0.4rem;
    border-radius: 1rem;
    transition: transform 0.35s ease, background 0.35s ease;
}

.equip-card:hover {
    transform: translateY(-6px);
    background: var(--soft);
}

.nav a:hover {
    transform: translateY(-1px);
}

.equip-photo {
    margin: 0 0 1.15rem;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
}

.equip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.equip-card:hover .equip-photo img {
    transform: scale(1.06);
}

.equip-kind {
    margin: 1rem 0 0.2rem;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.equip-card h3 {
    color: var(--cyan);
    font-size: 28px;
    font-weight: 600;
}

.equip-card p,
.equip-card li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.equip-card ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.equip-card .btn {
    display: table;
    margin-inline: auto;
}

.partner {
    padding: 3.2rem 0 3.6rem;
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.partner figure {
    margin: 0;
}

.partner img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 16px 40px rgba(84, 89, 95, 0.12);
}

.partner h2 {
    color: var(--cyan);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 500;
    text-align: center;
}

.partner p {
    text-align: center;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.45;
}

.partner .btn {
    display: table;
    margin: 0.6rem auto 0;
}

.contact-home {
    background: var(--soft);
    padding: 3.4rem 0 3.8rem;
}

.contact-home h2,
.contact-page h2 {
    color: var(--cyan);
    font-size: 32px;
    font-weight: 500;
}

.contact-home h2 {
    text-align: center;
}

.contact-home .form {
    max-width: 640px;
    margin-inline: auto;
}

.form {
    display: grid;
    gap: 0.95rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.4rem;
    box-shadow: 0 18px 50px rgba(14, 39, 64, 0.1);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.form:hover {
    box-shadow: 0 22px 60px rgba(14, 39, 64, 0.16);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field label {
    color: var(--ink);
    font-size: 15px;
}

.field abbr {
    color: #d13b3b;
    text-decoration: none;
    font-weight: 600;
}

.field label span {
    color: var(--nav);
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #e3e8ec;
    background: #f7fbfd;
    color: var(--ink);
    border-radius: 2px;
    padding: 0.85rem 0.9rem;
    font: inherit;
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-page .field input,
.contact-page .field textarea {
    background: #eef7fb;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(110, 193, 228, 0.7);
}

.field-half {
    max-width: 48%;
}

.field small,
.hint {
    color: #a33b3b;
}

.hint {
    color: var(--nav);
}

.is-invalid input,
.is-invalid textarea {
    box-shadow: inset 0 0 0 1px #d13b3b;
}

#files {
    padding: 1.1rem;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 8px, transparent 8px),
        var(--white);
    border: 1px dashed #b9c3cb;
    border-radius: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    border-radius: 3px;
    padding: 0.72rem 1.15rem;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-solid,
.btn-primary {
    background: var(--cyan);
    color: var(--white);
}

.btn-solid:hover,
.btn-primary:hover {
    background: var(--cyan-deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(110, 193, 228, 0.35);
}

.btn-outline {
    color: var(--cyan);
    background: transparent;
    border: 1px dashed var(--cyan);
    border-radius: 4px;
    padding: 0.45rem 0.9rem;
    font-size: 14px;
}

.btn-outline:hover {
    background: var(--cyan);
    color: var(--white);
    transform: translateY(-2px);
}

.alert {
    margin: 0;
    border-radius: 4px;
    padding: 0.75rem 0.9rem;
}

.alert-success {
    background: #e7f6ee;
    color: #1d5c45;
}

.alert-error {
    background: #fdecec;
    color: #8d2d2d;
}

.form-note {
    color: var(--nav);
    font-size: 13px;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.banner {
    min-height: 280px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(rgba(74, 126, 156, 0.78), rgba(74, 126, 156, 0.78)),
        url("../img/imageries-banner.jpg") center 40% / cover no-repeat;
}

.banner h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 600;
}

.banner p {
    color: var(--white);
    font-size: 16px;
}

.banner-copy {
    padding: 3.2rem 0;
    animation: rise 0.8s ease both;
}

.form-page {
    padding: 3rem 0 4rem;
}

.form-narrow {
    max-width: 920px;
}

.contact-page {
    padding: 4.5rem 0 3rem;
}

.contact-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.page-kicker {
    margin: 0 0 0.3rem;
    color: var(--nav);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.contact-page h1 {
    color: var(--cyan);
    font-size: 30px;
    font-weight: 500;
}

.address-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0 0 0.8rem;
    border-bottom: 1px solid var(--line);
}

.address-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.35rem 0;
    color: var(--ink);
}

.address-list svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--nav);
}

.address-list a {
    color: inherit;
    text-decoration: none;
}

.place-photo {
    margin: 1rem 0 0;
}

.place-photo img {
    width: 100%;
    max-width: 420px;
}

.map-wrap {
    margin-top: 2.5rem;
}

.map {
    width: 100%;
    height: 360px;
    border: 0;
    filter: grayscale(0.15);
}

.page-hero,
.legal-wrap {
    padding: 4rem 0 1rem;
}

.page-hero h1,
.legal h1,
.legal h2 {
    color: var(--cyan);
    font-weight: 500;
}

.legal {
    max-width: 760px;
    padding-bottom: 3rem;
}

.site-footer {
    background: var(--cyan-deep);
    color: rgba(255, 255, 255, 0.82);
    padding: 3rem 0 1.3rem;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    margin: 0 0 0.4rem;
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.6rem;
}

.footer-label {
    margin: 0 0 0.5rem;
    color: var(--sky);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--sky);
}

.footer-legal {
    margin-top: 2.2rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.footer-legal p {
    margin: 0;
}

.footer-credit-line {
    margin-top: 0.2rem;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    margin: 0 0.28rem;
    line-height: 0;
    vertical-align: -1px;
}

.footer-credit img {
    display: block;
    height: 11px;
    width: auto;
}

.cookie[hidden] {
    display: none;
}

.cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 920px;
    margin-inline: auto;
    padding: 1rem 1.1rem;
    background: var(--white);
    color: var(--ink);
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(14, 39, 64, 0.2);
    animation: rise 0.45s ease both;
}

.cookie p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex: none;
}

.cookie .btn-outline {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--white);
}

.map-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: 1rem;
    background: var(--soft);
    color: var(--muted);
    text-align: center;
    padding: 1.5rem;
}

.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--cyan);
    box-shadow: 0 8px 20px rgba(84, 89, 95, 0.16);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.to-top svg {
    width: 22px;
    height: 22px;
}

.to-top.is-on {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.section {
    padding: 1rem 0 3rem;
}

.prose {
    max-width: 760px;
}

[data-animate] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0ms);
}

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

.prose-center.is-visible::before,
.prose-center.is-visible::after {
    transform: scaleX(1);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--white);
        border-top: 1px solid var(--line);
        padding: 0.8rem 1.25rem 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .nav.is-open {
        display: flex;
    }

    .equip-grid,
    .partner-grid,
    .contact-split,
    .form-row,
    .footer-grid,
    .field-half {
        grid-template-columns: 1fr;
        max-width: none;
    }

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

    .hero {
        min-height: 420px;
    }

    .partner h2,
    .partner p {
        text-align: left;
    }

    .partner .btn,
    .equip-card .btn {
        margin-left: 0;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes draw {
    to {
        transform: scaleX(1);
    }
}

@keyframes drift {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-animate],
    .hero-kicker,
    .hero h1,
    .prose-center::before,
    .prose-center::after {
        opacity: 1;
        transform: none;
    }
}
