/* ==========================================================================
   Modulo — feuille de style principale
   ========================================================================== */
/* Polices auto-hébergées (OFL) */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bleu: #1c499d;
  --nuit: #123170;
  --orange: #ff5f00;
  --orange-fonce: #e05400;
  --gris: #eeeeee;
  --gris-bleu: #f1f3f6;
  --ciel: #dce6f5;
  --texte: #0d0d0d;
  --blanc: #ffffff;
  --radius: 26px;
  --container: 1352px;
  --f-display: "Alvaro Condensed", "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-text: "Cabinet Grotesk", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ombre: 0 29px 73px rgba(28, 73, 157, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 19px;
  line-height: 1.5;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.container { width: 100%; max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--nuit); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Typographie --------------------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .5px;
  color: var(--bleu);
}
.h2 { font-size: clamp(42px, 5vw, 64px); margin-bottom: 36px; }
.white { color: #fff; }
.lead { font-size: 21px; color: #fff; max-width: 640px; }

/* Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-text); font-weight: 700; font-size: 20px; line-height: 1.2;
  padding: 12px 22px; border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 28px; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 95, 0, .28); }
.btn-orange:hover { background: var(--orange-fonce); color: #fff; }
.btn-white { background: #fff; color: var(--bleu); box-shadow: 0 6px 18px rgba(18, 49, 112, .12); }
.btn-white:hover { background: var(--bleu); color: #fff; }

/* Fonds à grille ------------------------------------------------------ */
.bg-grid-light, .bg-grid-dark { position: relative; isolation: isolate; overflow: hidden; }
.bg-grid-light::before, .bg-grid-dark::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background: url("../img/grille.png") center / 1100px auto repeat;
  opacity: .35; transform: rotate(-4deg);
}
.bg-grid-light { background: linear-gradient(180deg, #fff 0%, #fff 55%, #94baf2 100%); }
.bg-grid-light::before { filter: invert(1) sepia(1) saturate(4) hue-rotate(185deg); opacity: .18; }
.bg-grid-dark { background: linear-gradient(160deg, var(--nuit) 0%, var(--nuit) 50%, #215fd6 100%); color: #fff; }

/* En-tête ------------------------------------------------------------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(18, 49, 112, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 144px; }
.brand-logo { width: 110px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 40px; flex: 1; justify-content: flex-end; }
.main-nav .menu { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 10px; }
.main-nav .menu a {
  display: block; padding: 8px 16px; border-radius: 6px;
  font-weight: 700; font-size: 20px; color: var(--bleu); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.main-nav .menu a:hover { background: var(--ciel); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--bleu); color: #fff; }
.nav-toggle { display: none; }

/* Hero ---------------------------------------------------------------- */
.hero { padding: 50px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 542fr 779fr; gap: 30px; align-items: center; }
.hero-title { font-size: clamp(76px, 10.8vw, 150px); line-height: .88; }
.hero-lead { margin-top: 26px; font-size: 21px; color: var(--nuit); max-width: 500px; font-weight: 500; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 36px; max-width: 520px; }
.vitrine {
  background: #fff; border-radius: 15px; box-shadow: var(--ombre);
  padding: 28px 36px 22px; position: relative;
}
.vitrine-track { position: relative; aspect-ratio: 400 / 250; }
.vitrine-slide { position: absolute; inset: 0; opacity: 0; transform: translateX(24px); transition: opacity .6s ease, transform .6s ease; }
.vitrine-slide.is-active { opacity: 1; transform: none; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: #c9d4ea; cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.dot.is-active { width: 32px; border-radius: 99px; background: var(--orange); }
.dots-light .dot { background: rgba(255, 255, 255, .45); }
.dots-light .dot.is-active { background: var(--orange); }

/* Sections ------------------------------------------------------------ */
.section { padding: 80px 0; }

/* Cartes (valeurs, étapes) */
.card {
  background: #fff; border: 3px solid var(--bleu); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.card-num { display: block; font-weight: 700; font-size: 54px; line-height: 1.2; color: var(--bleu); }
.card h3 { font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--nuit); margin: 6px 0 8px; }
.card p { font-size: 19px; }
.valeurs { padding-top: 40px; }
.valeurs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 0 20px; }
.valeurs-alt { background: var(--gris-bleu); padding-top: 80px; }

/* Univers / carrousel modèles */
.univers .h2 { margin-bottom: 70px; }
.carousel-viewport { overflow: hidden; border-radius: 32px; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.modele { flex: 0 0 100%; display: grid; grid-template-columns: 622fr 587fr; gap: 140px; align-items: center; padding: 6px; }
.modele-visuel {
  background: var(--bleu); border: 3px solid #fff; border-radius: 32px;
  min-height: 358px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 80px 30px;
}
.modele-visuel .bike { width: 100%; max-width: 411px; }
.modele-vit { margin-top: 12px; font-weight: 700; color: #fff; font-size: 19px; }
.modele-info h3 { font-weight: 700; font-size: 44px; text-transform: capitalize; color: #fff; line-height: 1.05; }
.modele-info p { margin: 16px 0 28px; color: #fff; }
.modele-info .btn-white { color: var(--texte); }
.modele-info .btn-white:hover { color: #fff; background: var(--orange); }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 30px; }
.carousel-nav .dots { margin: 0; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: transparent;
  color: #fff; font-size: 22px; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.arrow:hover { background: #fff; color: var(--nuit); }

/* Étapes */
.etapes { background: var(--gris); padding: 38px 0 50px; }
.etapes .container { padding: 0 40px; }
.etapes .h2 { margin-bottom: 22px; }
.etapes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.etapes-list li { display: flex; gap: 18px; align-items: flex-start; }
.pastille {
  flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 22px;
}
.etapes-list h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 40px; line-height: 1.05; color: var(--nuit); }
.etapes-list p { margin-top: 4px; }

/* Invitation */
.invitation { padding: 50px 0 40px; }
.invitation .h2 { margin-bottom: 26px; }

/* Titre de page (pages internes) */
.page-title { padding: 50px 0 60px; min-height: 274px; }
.page-title .display { font-size: clamp(54px, 6.5vw, 90px); color: #fff; margin-bottom: 20px; }

/* Comment ça marche */
.parcours { padding: 50px 0 40px; }
.parcours-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 286px)); gap: 60px; padding: 0 20px; }
.borne { padding-top: 20px; }
.borne .h2 { margin-bottom: 30px; padding: 0 20px; }
.configurateur { display: grid; grid-template-columns: 585fr 633fr; gap: 40px; align-items: start; padding: 0 20px; }
.apercu { background: var(--ciel); border-radius: 32px; padding: 30px; position: sticky; top: 170px; }
.apercu-visuel { background: #fff; border-radius: 22px; padding: 20px 26px 16px; }
.apercu-vitesses { text-align: center; color: var(--nuit); margin-top: 4px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; color: var(--nuit); font-size: 30px; font-weight: 700; }
.apercu-note { font-size: 15px; color: var(--nuit); text-align: center; margin-top: 12px; opacity: .8; }
.personnalisation { display: grid; gap: 4px; }
.choix-groupe { border: 0; margin: 0; padding: 0 12px 30px; }
.choix-groupe legend { font-weight: 700; font-size: 22px; color: var(--nuit); margin-bottom: 13px; padding: 0; }
.choix-liste, .couleurs-liste { display: flex; flex-wrap: wrap; gap: 10px; }
.choix input, .swatch input { position: absolute; opacity: 0; pointer-events: none; }
.choix span {
  display: inline-block; padding: 11px 20px; border-radius: 99px; border: 2px solid var(--bleu);
  background: #fff; color: var(--nuit); font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color .15s ease, color .15s ease;
}
.choix span:hover { background: var(--ciel); }
.choix input:checked + span { background: var(--bleu); color: #fff; }
.choix input:focus-visible + span, .swatch input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.swatch span:first-of-type {
  display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px #888; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease;
}
.swatch span:first-of-type:hover { transform: scale(1.08); }
.swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--orange); }

/* À propos */
.histoire-grid { display: grid; grid-template-columns: 646fr 676fr; gap: 50px; align-items: center; }
.histoire-texte p { color: var(--bleu); font-weight: 700; max-width: 612px; }
.histoire-texte p + p { margin-top: 16px; }
.histoire-logo { background: #fff; border-radius: 26px; box-shadow: var(--ombre); padding: 50px; display: grid; place-items: center; }
.histoire-logo img { width: min(100%, 360px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 588fr 696fr; gap: 88px; align-items: start; }
.coord-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 6px; }
.coord-list a { color: inherit; text-decoration: none; }
.coord-list a:hover { color: var(--orange); }
.coordonnees .h2 { margin-bottom: 20px; }
.quartier { color: var(--bleu); font-size: 17px; margin: -10px 0 20px; }
.carte { display: block; position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 587 / 240; box-shadow: var(--ombre); }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.carte:hover img { transform: scale(1.04); }
.carte-cta { position: absolute; right: 14px; bottom: 14px; background: var(--orange); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 6px; font-size: 16px; }
.ecris-nous { padding: 30px 40px 40px; }
.ecris-nous:hover { transform: none; }
.form { display: grid; gap: 22px; margin-top: 10px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; font-weight: 500; color: var(--texte);
  border: 2px solid #c9d0dc; border-radius: 6px; padding: 24px 18px 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 170px; }
.field label {
  position: absolute; left: 20px; top: 16px; color: #8d8d8d; font-weight: 500; font-size: 17px;
  pointer-events: none; transition: all .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(28, 73, 157, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 6px; font-size: 12px; font-weight: 800; color: var(--bleu); text-transform: uppercase; letter-spacing: .4px;
}
.form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: 6px; font-weight: 500; margin: 6px 0 4px; }
.notice-ok { background: #e3f4ec; color: #1d6b49; }
.notice-err { background: #fde8e0; color: #a33a0c; }

/* Contenu libre */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; color: var(--bleu); font-size: 44px; margin: 30px 0 12px; }
.prose p { margin: 0 0 16px; }
.post-item { padding: 20px 0; border-bottom: 1px solid #e3e6ec; }

/* Pied de page -------------------------------------------------------- */
.site-footer { background: var(--nuit); color: #fff; padding: 60px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 40px; padding: 0 50px; }
.footer-id { display: flex; flex-direction: column; align-items: center; justify-self: start; gap: 10px; }
.footer-id img { width: 86px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; justify-self: center; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-address { font-style: normal; justify-self: end; padding-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; opacity: .7; text-align: center; }

/* Animations ---------------------------------------------------------- */
.will-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.will-reveal.is-in { opacity: 1; transform: none; }
.valeurs-grid .reveal:nth-child(2), .etapes-list .reveal:nth-child(2), .parcours-grid .reveal:nth-child(2) { transition-delay: .08s; }
.valeurs-grid .reveal:nth-child(3), .etapes-list .reveal:nth-child(3), .parcours-grid .reveal:nth-child(3) { transition-delay: .16s; }
.valeurs-grid .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .modele { gap: 50px; }
  .valeurs-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .main-nav { gap: 20px; }
  .main-nav .menu a { padding: 8px 10px; font-size: 18px; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 62px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border: 0; background: var(--bleu); border-radius: 8px; padding: 0 11px; cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 24px;
    box-shadow: 0 16px 30px rgba(18, 49, 112, .12);
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav .menu { flex-direction: column; margin: 0; gap: 4px; }
  .main-nav .menu a { font-size: 20px; padding: 12px 14px; }

  .section { padding: 56px 0; }
  .hero { padding: 36px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 14px; }
  .vitrine { padding: 18px 20px 16px; }
  .valeurs-grid { padding: 0; }
  .modele { grid-template-columns: 1fr; gap: 26px; }
  .modele-visuel { min-height: 0; padding: 26px 30px 18px; }
  .modele-info h3 { font-size: 36px; }
  .univers .h2 { margin-bottom: 36px; }
  .etapes .container { padding: 0 20px; }
  .etapes-list { grid-template-columns: 1fr; gap: 22px; }
  .etapes-list h3 { font-size: 32px; }
  .page-title { min-height: 0; padding: 40px 0; }
  .lead { font-size: 18px; }
  .parcours-grid { grid-template-columns: 1fr; gap: 20px; padding: 0; }
  .configurateur { grid-template-columns: 1fr; padding: 0; gap: 26px; }
  .borne .h2 { padding: 0; }
  .apercu { position: static; padding: 20px; border-radius: 24px; }
  .total { font-size: 26px; }
  .choix-groupe { padding: 0 0 22px; }
  .histoire-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .histoire-logo { padding: 30px; }
  .ecris-nous { padding: 24px 22px 28px; }
  .footer-inner { grid-template-columns: 1fr; padding: 0; text-align: center; gap: 28px; }
  .footer-id, .footer-links, .footer-address { justify-self: center; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
}

@media (max-width: 560px) {
  .valeurs-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .btn { font-size: 18px; }
  .card-num { font-size: 44px; }
}
