@font-face { font-family: "Unbounded"; src: url(fonts/unbounded.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
    --encre: #1d2330;
    --bleu: #1f4fd1;
    --bleu-nuit: #17389a;
    --mimosa: #ffcf33;
    --rose: #ff9eb1;
    --papier: #f3f5fb;
    --blanc: #ffffff;
    --doux: #5a6072;
    --titre: "Unbounded", "Arial Black", sans-serif;
    --texte: "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --gouttiere: clamp(1rem, 4vw, 3.5rem);
    --rayon: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font: 400 1.0625rem/1.6 var(--texte); color: var(--encre); background: var(--papier); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mimosa); outline-offset: 3px; border-radius: 6px; }

/* Boutons */
.btn { display: inline-block; text-decoration: none; font: 600 1rem/1 var(--texte); padding: .85rem 1.3rem; border-radius: 999px; border: 2px solid var(--encre); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn-mimosa { background: var(--mimosa); color: var(--encre); box-shadow: 4px 4px 0 var(--encre); }
.btn-mimosa:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.btn-mimosa:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.btn-contour { border-color: rgba(255,255,255,.7); color: var(--blanc); }
.btn-contour:hover { background: rgba(255,255,255,.12); }
.btn-grand { font-size: 1.1rem; padding: 1.05rem 1.6rem; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.5rem; padding: .8rem var(--gouttiere); background: var(--bleu); color: var(--blanc); }
.marque { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.marque img { height: 34px; width: auto; }
.marque span { font: 600 1.6rem/1 var(--serif); letter-spacing: .01em; }
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 500; opacity: .9; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { padding: .6rem 1rem; font-size: .92rem; box-shadow: 3px 3px 0 var(--encre); }

/* Hero */
.hero { background: var(--bleu); color: var(--blanc); display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; padding: clamp(2.5rem, 7vw, 6rem) var(--gouttiere) clamp(3.5rem, 8vw, 7rem); position: relative; overflow: hidden; }
.hero h1 { font: 900 clamp(2.4rem, 6.6vw, 6.2rem)/.98 var(--titre); letter-spacing: -.035em; }
.hero-sous { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34rem; margin-top: 1.8rem; opacity: .93; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; align-items: center; }
.hero-visuel { position: relative; min-height: 420px; }
.hero-cle { position: absolute; left: 50%; top: 50%; height: 100%; width: auto; max-width: none; transform: translate(-50%, -50%) rotate(-12deg); }
.sticker { position: absolute; font: 600 .95rem/1.25 var(--texte); padding: .6rem .95rem; border-radius: 14px; border: 2px solid var(--encre); color: var(--encre); box-shadow: 4px 4px 0 var(--encre); max-width: 15rem; }
.s1 { background: var(--mimosa); top: 8%; left: 0; transform: rotate(-5deg); }
.s2 { background: var(--blanc); top: 34%; right: -2%; transform: rotate(4deg); }
.s3 { background: var(--rose); bottom: 22%; left: 4%; transform: rotate(3deg); }
.s4 { background: var(--blanc); bottom: 3%; right: 6%; transform: rotate(-3deg); }

/* Bandeau défilant */
.bandeau { background: var(--mimosa); border-block: 3px solid var(--encre); overflow: hidden; padding: .95rem 0; }
.bandeau-piste { display: flex; width: max-content; animation: defile 45s linear infinite; }
.bandeau span { font: 700 1.05rem/1 var(--titre); padding: 0 1.4rem; white-space: nowrap; display: flex; align-items: center; gap: 2.8rem; }
.bandeau span::after { content: ""; width: .7rem; height: .7rem; background: var(--encre); border-radius: 50%; margin-left: 1.4rem; }
.bandeau:hover .bandeau-piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Avant / après */
.avant { padding: clamp(4rem, 10vw, 8rem) var(--gouttiere); max-width: 70rem; }
.avant-gros { font: 700 clamp(1.7rem, 4vw, 3.3rem)/1.12 var(--titre); letter-spacing: -.025em; color: var(--doux); text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: .14em; }
.avant-reponse { font: 700 clamp(1.7rem, 4vw, 3.3rem)/1.12 var(--titre); letter-spacing: -.025em; margin-top: 1.4rem; }

/* Titres de section */
.titre-section { font: 700 clamp(1.8rem, 4vw, 3.2rem)/1.05 var(--titre); letter-spacing: -.03em; max-width: 20ch; }

/* Fonctions */
.fonctions { padding: 0 var(--gouttiere) clamp(4rem, 9vw, 7rem); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 2.5rem; }
.tuile { padding: clamp(1.4rem, 2.5vw, 2.2rem); border-radius: var(--rayon); border: 2px solid var(--encre); }
.tuile h3 { font: 700 clamp(1.15rem, 1.8vw, 1.5rem)/1.15 var(--titre); letter-spacing: -.02em; margin-bottom: .8rem; }
.tuile p { max-width: 38rem; }
.t-banque { grid-column: span 4; background: var(--encre); color: var(--blanc); }
.t-banque p { opacity: .88; }
.t-ag { grid-column: span 2; grid-row: span 2; background: var(--mimosa); display: flex; flex-direction: column; }
.majorites { margin-top: auto; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.majorites span { font: 700 clamp(1rem, 1.6vw, 1.35rem)/1 var(--titre); letter-spacing: -.02em; padding: .55rem .85rem; border: 2px solid var(--encre); border-radius: 999px; background: var(--papier); }
.majorites span:nth-child(2n) { background: var(--encre); color: var(--mimosa); }
.t-fige { grid-column: span 2; background: var(--blanc); }
.t-notaire { grid-column: span 2; background: var(--rose); }
.t-comptes { grid-column: span 3; background: var(--blanc); }
.t-sondage { grid-column: span 3; background: var(--bleu); color: var(--blanc); }

/* Démo répartition */
.demo { background: var(--encre); color: var(--blanc); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 5rem); padding: clamp(4rem, 9vw, 7rem) var(--gouttiere); }
.demo-intro p { margin-top: 1.2rem; opacity: .85; max-width: 32rem; }
.demo-champ { display: block; margin-top: 2.2rem; }
.demo-champ > span:first-child { display: block; font-weight: 600; margin-bottom: .5rem; }
.demo-saisie { display: inline-flex; align-items: center; background: var(--mimosa); color: var(--encre); border-radius: 16px; border: 2px solid var(--mimosa); padding: .3rem 1rem .3rem .4rem; box-shadow: 5px 5px 0 var(--bleu); }
.demo-saisie input { font: 900 clamp(1.8rem, 4vw, 2.8rem)/1 var(--titre); width: 8.5ch; background: transparent; border: 0; color: var(--encre); padding: .4rem .6rem; text-align: right; letter-spacing: -.03em; }
.demo-saisie input:focus { outline: none; }
.demo-saisie:focus-within { border-color: var(--blanc); }
.demo-saisie b { font: 900 clamp(1.5rem, 3vw, 2.2rem)/1 var(--titre); }
.demo-total { margin-top: 1.4rem; font-weight: 500; opacity: .85; min-height: 1.6em; }
.lots { list-style: none; display: grid; gap: .55rem; align-content: center; }
.lot { display: grid; grid-template-columns: 12rem 1fr 6.5rem; gap: .9rem; align-items: center; }
.lot-nom { font-weight: 600; line-height: 1.2; }
.lot-nom small { display: block; font-weight: 400; opacity: .65; font-size: .82rem; }
.lot-barre { height: 2.1rem; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.lot-barre i { display: block; height: 100%; border-radius: 10px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.lot:nth-child(3n+1) .lot-barre i { background: var(--mimosa); }
.lot:nth-child(3n+2) .lot-barre i { background: var(--rose); }
.lot:nth-child(3n) .lot-barre i { background: #7f9dff; }
.lot-montant { font: 700 1.05rem/1 var(--titre); text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Pour qui */
.pour-qui { padding: clamp(4rem, 9vw, 7rem) var(--gouttiere); }
.profils { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.profil { padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: var(--rayon); border: 2px solid var(--encre); }
.profil h3 { font: 700 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--titre); letter-spacing: -.025em; margin-bottom: 1rem; }
.profil ul { list-style: none; margin-top: 1.4rem; display: grid; gap: .5rem; }
.profil li { padding-left: 1.7rem; position: relative; font-weight: 600; }
.profil li::before { content: ""; position: absolute; left: 0; top: .42em; width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid var(--encre); background: var(--blanc); }
.p-benevole { background: var(--blanc); box-shadow: 8px 8px 0 var(--mimosa); }
.p-cabinet { background: var(--blanc); box-shadow: 8px 8px 0 var(--bleu); }

/* Origine */
.origine { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding: 0 var(--gouttiere) clamp(4rem, 9vw, 7rem); max-width: 78rem; }
.origine-cle { height: clamp(180px, 26vw, 340px); width: auto; transform: rotate(8deg); }
.origine p { margin-top: 1.2rem; max-width: 40rem; }
.origine-nom { font: italic 400 1.2rem/1.5 var(--serif); color: var(--doux); }

/* Pionniers */
.pionniers { background: var(--rose); border-top: 3px solid var(--encre); padding: clamp(4rem, 10vw, 8rem) var(--gouttiere); text-align: center; }
.pionniers h2 { font: 900 clamp(2.2rem, 6vw, 5rem)/1 var(--titre); letter-spacing: -.035em; max-width: 16ch; margin: 0 auto; }
.pionniers > p { max-width: 36rem; margin: 1.6rem auto 2.2rem; font-size: 1.12rem; }
.pionniers .pionniers-note { margin: 1.3rem auto 0; font-size: .95rem; color: var(--encre); opacity: .8; }

/* Pied */
.pied { background: var(--encre); color: rgba(255,255,255,.75); padding: 2.5rem var(--gouttiere); display: flex; gap: 3rem; align-items: flex-start; font-size: .88rem; }
.pied-marque { display: flex; align-items: center; gap: .5rem; color: var(--blanc); }
.pied-marque img { height: 30px; width: auto; }
.pied-marque span { font: 600 1.4rem/1 var(--serif); }
.pied-legal { display: grid; gap: .3rem; }
.pied-legal strong { color: var(--blanc); font-weight: 600; margin-right: .3rem; }

/* Responsive */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visuel { min-height: 360px; }
    .hero-cle { height: 108%; }
    .demo { grid-template-columns: 1fr; }
    .t-banque, .t-ag, .t-fige, .t-notaire, .t-comptes, .t-sondage { grid-column: span 3; grid-row: auto; }
}
@media (max-width: 720px) {
    .nav nav { display: none; }
    .nav .btn { margin-left: auto; }
    .bento { grid-template-columns: 1fr; }
    .t-banque, .t-ag, .t-fige, .t-notaire, .t-comptes, .t-sondage { grid-column: auto; }
    .profils { grid-template-columns: 1fr; }
    .origine { grid-template-columns: 1fr; }
    .origine-cle { height: 160px; }
    .lot { grid-template-columns: 1fr auto; gap: .35rem .8rem; }
    .lot-barre { grid-column: 1 / -1; grid-row: 2; height: 1.4rem; }
    .lot-montant { font-size: .92rem; }
    .sticker { font-size: .82rem; max-width: 12rem; }
    .pied { flex-direction: column; gap: 1.2rem; }
}
@media (max-width: 420px) {
    .marque span { font-size: 1.35rem; }
    .nav .btn { font-size: .82rem; padding: .55rem .8rem; }
    .hero-visuel { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bandeau-piste { animation: none; flex-wrap: wrap; width: auto; }
    .bandeau-piste span[aria-hidden] { display: none; }
    .lot-barre i, .btn { transition: none; }
}

/* Formulaire de contact */
.contact { max-width: 44rem; margin: 0 auto; text-align: left; background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); box-shadow: 8px 8px 0 var(--encre); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.2rem; }
.contact-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-champ { display: grid; gap: .4rem; }
.contact-champ > span, .contact-choix legend { font-weight: 600; }
.contact input[type=text], .contact input[type=email], .contact textarea { width: 100%; font: inherit; color: var(--encre); padding: .75rem .9rem; border: 2px solid var(--encre); border-radius: 12px; background: var(--papier); }
.contact textarea { resize: vertical; min-height: 7rem; }
.contact input:focus, .contact textarea:focus { outline: none; background: var(--blanc); box-shadow: 0 0 0 4px var(--mimosa); }
.contact-choix { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-choix legend { margin-bottom: .45rem; }
.contact-choix label { cursor: pointer; }
.contact-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contact-choix span { display: inline-block; padding: .5rem .95rem; border: 2px solid var(--encre); border-radius: 999px; font-weight: 600; background: var(--blanc); }
.contact-choix input:checked + span { background: var(--encre); color: var(--mimosa); }
.contact-choix input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
.contact-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact button { justify-self: start; cursor: pointer; }
.contact button:disabled { opacity: .6; cursor: wait; }
.contact-etat { font-weight: 600; min-height: 1.5em; }
.contact-etat.succes { color: #1d6b3a; }
.contact-etat.erreur { color: #b0213f; }
.contact-retour { max-width: 36rem; margin: 0 auto; }
@media (max-width: 720px) {
    .contact-ligne { grid-template-columns: 1fr; }
    .contact button { justify-self: stretch; }
}
