/* Bonispot, landing consommateur. Palette conso (light), Sora + IBM Plex Mono en local. */

@font-face{
  font-family:'Sora';font-style:normal;font-weight:400;font-display:swap;
  src:url('../assets/fonts/sora-400.woff2') format('woff2');
}
@font-face{
  font-family:'Sora';font-style:normal;font-weight:600;font-display:swap;
  src:url('../assets/fonts/sora-600.woff2') format('woff2');
}
@font-face{
  font-family:'Sora';font-style:normal;font-weight:700;font-display:swap;
  src:url('../assets/fonts/sora-700.woff2') format('woff2');
}
@font-face{
  font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url('../assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face{
  font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;
  src:url('../assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

:root{
  --page:#F4F1EC; --card:#FFFFFF; --pressed:#EDE9E2; --inverse:#1C1714;
  --line:#E7E2DA; --line-2:#F1EDE6; --field-line:#E2DCD3;
  --ink:#191512; --ink-2:#3B342E; --ink-3:#6B625A; --ink-4:#8A8078;
  --accent:#C24A12; --accent-on:#A83E0D; --accent-pressed:#9C3809;
  --accent-surface:#FBEADF; --accent-surface-ink:#A03A08;
  --ok:#2F6B4F; --ok-surface:#E7F0EA; --ok-ink:#2A6148;
  --danger:#B3261E; --danger-on-dark:#E89187;
  --shadow-card:0 2px 8px rgba(25,21,18,.05);
  --shadow-accent:0 4px 14px rgba(194,74,18,.26);
  --sora:'Sora',system-ui,-apple-system,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,'SFMono-Regular',monospace;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);font-family:var(--sora);color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{display:block;max-width:100%;height:auto}
a{color:var(--accent-on);text-decoration:none}
a:hover{color:#84300A}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input{font-family:var(--sora)}
button{font-family:var(--sora)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.skip-link{position:absolute;left:12px;top:-48px;z-index:100;background:var(--inverse);color:#fff;padding:10px 16px;border-radius:10px;font:600 13px/1 var(--sora);transition:top .15s ease}
.skip-link:focus{top:12px}

.wrap{max-width:1120px;margin:0 auto;padding:0 clamp(20px,4vw,44px)}

/* typo */
.h1{font:700 clamp(34px,5.2vw,58px)/1.03 var(--sora);letter-spacing:-.042em;margin:0;text-wrap:pretty}
.h2{font:700 clamp(24px,3vw,30px)/1.2 var(--sora);letter-spacing:-.03em;margin:0;text-wrap:pretty}
.lead{font:400 18px/1.6 var(--sora);color:var(--ink-2);margin:0;text-wrap:pretty;max-width:540px}
.meta{font:600 11px/1 var(--sora);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-4)}
.note{font:400 12.5px/1.5 var(--sora);color:var(--ink-4);margin:0}
.form-error{font:400 12.5px/1.5 var(--sora);color:var(--danger);margin:0}
.form-error--dark{color:var(--danger-on-dark)}

/* boutons et champs */
.btn{display:inline-flex;align-items:center;justify-content:center;border:none;cursor:pointer;background:var(--accent);color:#fff;font:700 15px/1 var(--sora);border-radius:14px;height:54px;padding:0 22px;box-shadow:var(--shadow-accent)}
.btn:hover{background:var(--accent-pressed)}
.btn-ghost{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid rgba(255,255,255,.28);color:#fff;font:600 13px/1 var(--sora);padding:9px 15px;border-radius:12px}
.btn-ghost:hover{background:rgba(255,255,255,.08);color:#fff}
.btn-cta{flex:none;padding:14px 20px;border-radius:14px;background:var(--accent);color:#fff;font:700 14.5px/1 var(--sora);box-shadow:var(--shadow-accent)}
.btn-cta:hover{background:var(--accent-pressed);color:#fff}
.btn--block{width:100%;box-shadow:none}

.field{height:54px;padding:0 16px;border-radius:14px;border:1.5px solid var(--field-line);background:#fff;color:var(--ink);font:400 15px/1 var(--sora);outline:none}
.field::placeholder{color:var(--ink-4)}
.field--mono{font-family:var(--mono);font-size:14px}
.field--cp{flex:none;width:140px}
.field--dark{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;height:52px}
.field--dark::placeholder{color:rgba(255,255,255,.55)}

/* barre du haut : bandeau sombre plein ecran, plus au-dessus de la photo du
   hero mais son propre bloc (au-dessus), logo clair dedie. */
.topbar{background:var(--inverse)}

/* en-tete / navigation : logo a gauche, liens + CTA commercant groupes a droite.
   Sur mobile etroit, le groupe se deplie pour remonter le CTA a cote du logo
   et laisser les liens sur leur propre rangee, avec plus de place. */
.site-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px 20px;padding-top:18px;padding-bottom:18px;flex-wrap:wrap}
.logo{height:34px;width:auto}
.site-header__actions{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.nav a{font:400 14px/1 var(--sora);color:rgba(255,255,255,.72)}
.nav a:hover{color:#fff}

@media (max-width:640px){
  .site-header__actions{display:contents}
  .nav{order:2;flex-basis:100%;gap:20px 24px}
  .site-header__cta{order:1;margin-left:auto}
}

/* hero : l'image sert de fond de haut de page et s'eteint dans le papier.
   Deux voiles superposes : un vertical (bas de la photo -> papier plein,
   pour la transition vers le reste de la page) et un lateral (gauche
   opaque -> droite transparente, pour que le texte repose sur du papier
   plein plutot que sur les batiments, l'image restant visible a droite ou
   il n'y a pas de texte). Sur mobile, le texte prend toute la largeur donc
   le voile lateral couvre presque tout (media query plus bas). */
.hero{position:relative;overflow:hidden}
.hero__img,.hero__fade,.hero__veil{position:absolute;inset:0;width:100%;height:100%}
.hero__img{object-fit:cover;object-position:50% 32%}
.hero__veil{background:linear-gradient(90deg,#F4F1EC 0%,#F4F1EC 38%,rgba(244,241,236,0) 74%)}
.hero__fade{background:linear-gradient(180deg,rgba(244,241,236,0) 0%,rgba(244,241,236,0) 46%,rgba(244,241,236,.72) 74%,#F4F1EC 97%)}

@media (max-width:760px){
  /* le texte reste calé a gauche et ne s'etire plus jusqu'au bord droit
     (sous-titre en colonne plus etroite, 3 lignes plutot que 2 presque
     pleine largeur) : le voile peut donc reculer aussi et laisser
     davantage de photo visible, au lieu de couvrir presque tout l'ecran. */
  .lead{max-width:330px}
  .hero__veil{background:linear-gradient(90deg,#F4F1EC 0%,#F4F1EC 48%,rgba(244,241,236,0) 88%)}
}
.hero > .wrap{position:relative}

.hero__intro{display:flex;flex-direction:column;gap:22px;max-width:min(760px,100%);padding-top:64px;padding-bottom:72px}
.hero__signup{display:flex;flex-direction:column;gap:11px;max-width:min(660px,100%);padding-bottom:68px}

.pill{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);font:600 11px/1 var(--sora);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.dot{width:6px;height:6px;border-radius:3px;background:var(--accent);flex:none}

.signup-form{display:flex;gap:8px;flex-wrap:wrap}
.field--grow{flex:1;min-width:220px}
.signup-form--stacked{flex-direction:column;width:100%}

.signup-fields{display:flex;flex-direction:column;gap:10px}
.success-msg{display:flex;align-items:center;gap:10px;padding:16px 18px;border-radius:16px;background:var(--ok-surface);font:400 14.5px/1.5 var(--sora);color:var(--ok-ink);margin:0}
.success-msg__dot{width:7px;height:7px;border-radius:4px;background:var(--ok);flex:none}

/* comment ca marche */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:34px;padding:8px 0 56px}
.step{display:flex;flex-direction:column;gap:9px}
.step-n{font:600 12px/1 var(--mono);color:var(--accent-on)}
.step-t{font:700 18px/1.3 var(--sora);letter-spacing:-.02em;margin:0}
.step-b{font:400 14.5px/1.6 var(--sora);color:var(--ink-3);margin:0;text-wrap:pretty}

/* villes : plus de bandeau blanc plein ecran, la section vit directement sur
   le fond de page (comme "comment ca marche"), seule la carte "a propos"
   se detache visuellement */
#villes{padding-top:52px;padding-bottom:52px}
.cols{display:flex;gap:48px;align-items:flex-start;flex-wrap:wrap}
.cols > .col-main{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px}
.cols > .col-side{flex:0 1 392px}

.timeline{border-left:2px solid var(--line);padding-left:22px;margin:4px 0 0;list-style:none}
.timeline li{position:relative;padding-bottom:22px}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{content:"";position:absolute;left:-29px;top:3px;width:12px;height:12px;border-radius:7px;background:#fff;border:2px solid #D8D1C7}
.timeline li.is-live::before{background:var(--accent);border:3px solid #fff}
.timeline__city{font:700 17px/1.25 var(--sora);letter-spacing:-.02em}
.timeline__note{font:400 13.5px/1.6 var(--sora);color:var(--ink-3)}
.timeline li:not(.is-live) .timeline__city{color:var(--ink-2)}
.timeline li:not(.is-live) .timeline__note{color:var(--ink-4)}
.timeline__city--muted{font:400 17px/1.25 var(--sora);letter-spacing:-.01em;color:var(--ink-4)}

.about-card{display:flex;flex-direction:column;gap:10px;padding:24px;border-radius:20px;background:var(--accent-surface);border:1px solid var(--line);box-shadow:var(--shadow-card)}
.about-card p{font:400 14.5px/1.65 var(--sora);color:var(--ink-2);margin:0;text-wrap:pretty}
.about-card__link{align-self:flex-start;font:600 14px/1 var(--sora)}

/* page "a propos" dediee : colonne de lecture plus etroite que .wrap pour
   garder des lignes confortables, meme typo que le reste du site */
.back-link{display:inline-block;font:600 13px/1 var(--sora);color:var(--ink-3)}
.back-link:hover{color:var(--ink)}
.back-link--accent{color:var(--accent-on)}
.back-link--accent:hover{color:var(--accent-pressed)}
.article{max-width:700px;margin:0 auto;padding-top:52px;padding-bottom:12px;display:flex;flex-direction:column;gap:26px}
.article .meta{margin-top:4px}
.article .h1{margin-top:2px}
.article .lead{max-width:none}
.article section{display:flex;flex-direction:column;gap:10px}
.article__section-head{display:flex;align-items:center;gap:14px}
.article__section-head .step-n{font-size:clamp(20px,2.6vw,24px);font-weight:400}
.article p{font:400 16.5px/1.7 var(--sora);color:var(--ink-2);margin:0;text-wrap:pretty}

/* alerte ville hors liste : carte sombre inseree dans la largeur normale de
   page (plus un bandeau plein ecran), meme esprit que about-card/card-pro */
.cta-section{padding-top:8px;padding-bottom:8px}
.card-dark{background:var(--inverse);color:#fff;border-radius:28px;padding:clamp(32px,5vw,52px) clamp(24px,4vw,44px)}
.card-dark .h2{color:#fff}
.card-dark .cols{align-items:center}
.card-dark p{font:400 15px/1.65 var(--sora);color:rgba(255,255,255,.66);max-width:440px;margin:0;text-wrap:pretty}
.card-dark .col-main{gap:12px}
.card-dark .col-side{flex:0 1 400px}

/* carte pro : meme traitement que about-card, plus un bandeau colore */
.pro-section{padding-top:8px;padding-bottom:28px}
.card-pro{background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-card)}
.pro-band__row{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:32px clamp(24px,4vw,40px)}
.pro-band__title{font:700 21px/1.3 var(--sora);letter-spacing:-.025em}
.pro-band__note{font:400 14px/1.55 var(--sora);color:var(--ink-3)}

/* pied de page : plus de bandeau blanc, juste un filet de separation sur le
   fond de page commun */
.footer{border-top:1px solid var(--line)}
.footer__row{display:flex;align-items:flex-start;justify-content:space-between;gap:40px;flex-wrap:wrap;padding-top:36px;padding-bottom:36px}
.footer__brand{display:flex;flex-direction:column;align-items:flex-start;gap:8px;max-width:300px}
.footer__logo{height:32px;width:auto}
.footer-links{display:flex;gap:clamp(24px,4vw,56px);flex-wrap:wrap}
.footer-links__group{display:flex;flex-direction:column}
.footer-links__title{font-size:10.5px;padding-bottom:9px}
.footer-links a{font:400 13px/1 var(--sora);color:var(--ink-2);padding:6px 0}
.footer__bottom{border-top:1px solid var(--line);padding-top:16px;padding-bottom:16px;font:400 12px/1 var(--sora);color:var(--ink-4)}

/* page 404 */
.not-found{min-height:100vh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:18px;max-width:520px}
.not-found__code{font:600 13px/1 var(--mono);color:var(--accent-on)}

@media (max-width:560px){
  .signup-form{flex-direction:column}
  .field--grow{min-width:0}
  .field--cp{width:100%}
  .pro-band__row{justify-content:flex-start}
}
