@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans.ttf") format("truetype");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url("../fonts/inter.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #181832;
    --muted: #555570;
    --blue: #333c83;
    --pink: #f24a72;
    --soft: #f6f5fb;
    --line: #dfddec;
    --wrap: 1140px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font: 1rem/1.55 Inter, system-ui, sans-serif; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, video:focus-visible {
    outline: 3px solid #9567d2;
    outline-offset: 4px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .hero-promise { font-family: "Instrument Sans", system-ui, sans-serif; }
h1, h2 { line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.85rem); }
h2 { font-size: clamp(2.15rem, 4.6vw, 4rem); max-width: 17ch; }
h3 { font-size: 1.4rem; line-height: 1.18; letter-spacing: -.025em; font-weight: 600; }
p { color: var(--muted); }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav { min-height: 4.25rem; display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; }
.wordmark { flex: none; background: var(--blue); padding: .3rem .65rem; border-radius: .65rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; font-size: .9rem; }
.nav-actions { display: flex; align-items: center; gap: clamp(.55rem, 2vw, 1rem); }
.nav-support { color: var(--blue); font-weight: 610; }
.nav-links a, .text-link { text-decoration: none; }
.nav-links a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero { position: relative; isolation: isolate; background: linear-gradient(45deg, var(--blue) 10%, var(--pink) 90%); color: #fff; overflow: hidden; }
.hero-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2.75rem; align-items: end; }
.hero-copy { padding-block: clamp(4rem, 8vw, 7.25rem); }
.hero-promise { color: #fff; font-size: clamp(1.28rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.2; margin: 1.4rem 0 .9rem; letter-spacing: -.035em; }
.hero-copy > p:not(.hero-promise) { max-width: 48ch; color: #fff; font-size: 1.08rem; }
.hero-visual { min-width: 0; align-self: end; height: min(44vw, 520px); overflow: hidden; padding-top: 1rem; }
.hero-visual img { width: min(100%, 315px); margin-inline: auto; filter: drop-shadow(0 20px 36px #30245c34); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.35rem; margin-top: 1.6rem; }
.hero-actions { flex-direction: column; gap: .7rem; }
.download-cue { display: grid; justify-items: center; gap: .2rem; }
.download-arrow { font-size: 1.65rem; line-height: 1; }

@media (prefers-reduced-motion: no-preference) {
    .download-arrow { animation: point-down 1.2s ease-in-out 3; }
    .hero #bouton-telechargement { animation: download-halo 1.2s ease-out 3; }
}

@keyframes point-down {
    50% { transform: translateY(4px); }
}

@keyframes download-halo {
    from { box-shadow: 0 0 0 0 #ffc1d3d9; }
    to { box-shadow: 0 0 0 11px #ffc1d300; }
}

#bouton-telechargement { scroll-margin-top: 1rem; }
#bouton-telechargement:target { outline: 2px solid #fff; outline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .63rem 1.15rem; background: var(--blue); color: #fff; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 650; }
.button:hover { background: #454e9a; color: #fff; }
.hero .button { background: #fff; color: var(--blue); }
.hero .button:hover { background: #fff1f6; }
.button.small { font-size: .875rem; }
.button.outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.button.outline:hover { background: #eeecfa; }
.text-link { color: inherit; font-weight: 610; }

.start, .routing, .retrieval-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); }
.steps { padding-left: 1.55rem; margin-block: 1.5rem 0; }
.steps li { padding-left: .35rem; margin-top: .75rem; color: var(--muted); }
.steps li::marker { font-weight: 750; color: var(--blue); }
video { width: 100%; aspect-ratio: 16 / 9; background: #23254f; border-radius: 1.35rem; }
figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.soft, .download { background: var(--soft); }
.cards { display: grid; gap: 1.05rem; margin-top: 2rem; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards article { border: 1px solid var(--line); background: #fff; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: 1.35rem; }
.cards p, .routing p, .retrieval p, .download p { margin-top: .7rem; }
.card-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem; background: #eeeafb; color: #49378d; border-radius: .75rem; font-size: 1.35rem; font-weight: 700; }
.routing-card { margin: 0; padding: .5rem 1.5rem; background: #f8f4fb; border: 1px solid #eee6f5; border-radius: 1.35rem; }
.routing-card div { padding: 1rem 0; }
.routing-card div + div { border-top: 1px solid var(--line); }
.routing-card dt { color: var(--ink); font-weight: 690; }
.routing-card dd { margin: .2rem 0 0; color: var(--muted); }
.retrieval { background: #eeedf9; }
.retrieval img { width: min(100%, 475px); margin-inline: auto; }
.download { text-align: center; }
.download h2 { max-width: 24ch; margin-inline: auto; }
.download .actions { justify-content: center; }
.download .support-link { margin-top: 1.4rem; color: var(--blue); font-weight: 650; }
.support-page { max-width: 46rem; }
.support-page > p { margin-top: 1rem; max-width: 59ch; }
.support-page h2 { font-size: clamp(1.6rem, 3.3vw, 2.4rem); margin-top: 2rem; max-width: none; }
.support {
    background: radial-gradient(ellipse at 86% 30%, #f24a7254, transparent 62%),
        linear-gradient(130deg, #fff 15%, #ffe8f0 64%, #f6f5fb);
}
.support .support-page .button {
    background: var(--pink);
    color: var(--ink);
}
.support .support-page .button:hover { background: #ff789b; }
.footer { padding-block: 2.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer > div { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; }
.footer strong { color: var(--ink); }
.footer-copyright { margin-top: .9rem; }
.audience-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.audience-choice { position: fixed; z-index: 3; right: 1rem; bottom: 1rem; width: min(28rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto; padding: 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 1.15rem; box-shadow: 0 12px 40px #18183230; }
.audience-choice h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.audience-choice p { margin: .55rem 0 .85rem; font-size: .9rem; }
.audience-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.audience-actions button { flex: 1; font-family: inherit; font-size: .9rem; cursor: pointer; }
.newsletter { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.newsletter h2 { font-size: clamp(1.65rem, 4vw, 2.7rem); max-width: 28ch; }
.newsletter p { margin-block: .75rem 1.25rem; max-width: 60ch; }
.newsletter label { display: block; font-weight: 650; margin-bottom: .4rem; }
.newsletter-fields { display: flex; flex-wrap: wrap; gap: .65rem; max-width: 36rem; }
.newsletter-fields input { flex: 1 1 14rem; min-width: 0; min-height: 46px; border: 1px solid var(--muted); border-radius: .65rem; padding: .55rem .8rem; font: inherit; }
.newsletter button { font-family: inherit; font-size: 1rem; cursor: pointer; }
.honeypot { position: absolute; left: -10000px; }

@media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; gap: 0; text-align: center; }
    .hero-copy { padding-block: 3.5rem 1.8rem; }
    .hero-copy > p:not(.hero-promise) { margin-inline: auto; }
    .hero .actions { justify-content: center; }
    .hero-visual { height: clamp(17rem, 62vw, 26rem); }
    .hero-visual img { width: min(65%, 290px); }
    .start, .routing, .retrieval-grid { grid-template-columns: 1fr; }
    .retrieval-grid img { order: 2; max-height: 320px; object-fit: contain; }
    .cards.three, .usage-cards { grid-template-columns: 1fr; }
}

@media (max-width: 690px) {
    .nav { display: grid; grid-template-columns: auto 1fr; gap: .35rem .65rem; padding-block: .55rem .25rem; }
    .nav .wordmark { justify-self: start; }
    .nav-actions { grid-column: 2; grid-row: 1; justify-self: end; gap: .55rem; }
    .nav-actions .button { font-size: 1rem; padding-inline: .85rem; }
    .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; flex-wrap: wrap; gap: 0 .5rem; font-size: .95rem; }
    .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 570px) {
    .wrap { width: calc(100% - 2rem); }
    h1 { font-size: clamp(2rem, 8.6vw, 2.65rem); }
    .hero-copy { padding-top: 2rem; }
    .hero h1 { font-size: clamp(1.8rem, 7.7vw, 2.45rem); line-height: 1.02; }
    .hero-copy .hero-promise { margin-top: .8rem; }
    .hero-actions { margin-top: 1rem; }
    .audience-choice { inset: auto .75rem .75rem; width: auto; padding: .85rem; }
    .audience-choice p { margin: .4rem 0 .65rem; }
}
