/* ==========================================================================
   Landing BAC CI — page vitrine (resources/views/landing.blade.php)
   ========================================================================== */

  /* ===== Tokens : thème clair par défaut ===== */
  :root {
    --ground:      #F6F7F3;
    --surface:     #FFFFFF;
    --surface-2:   #EDF2EA;
    --ink:         #14231A;
    --muted:       #566258;
    --line:        #E0E6DC;

    --brand:       #0B5A34;   /* vert ivoirien profond */
    --brand-2:     #0E7A46;
    --brand-ink:   #F3F7F0;   /* texte sur vert */
    --brand-soft:  #DCEBE0;

    --accent:      #F07E1A;   /* orange ivoirien */
    --accent-2:    #FFB25A;
    --accent-ink:  #3A1E00;

    --radius:      16px;
    --radius-sm:   10px;
    --maxw:        1120px;
    --shadow:      0 1px 2px rgba(20,35,26,.05), 0 12px 32px -12px rgba(20,35,26,.18);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground:    #0A130E;
      --surface:   #111E16;
      --surface-2: #16281D;
      --ink:       #E9F1EA;
      --muted:     #9BB0A2;
      --line:      #23342A;
      --brand:     #10422A;
      --brand-2:   #0E7A46;
      --brand-ink: #EAF4EC;
      --brand-soft:#173324;
      --accent:    #FF9433;
      --accent-2:  #FFB25A;
      --shadow:    0 1px 2px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.6);
    }
  }
  :root[data-theme="dark"] {
    --ground:    #0A130E;
    --surface:   #111E16;
    --surface-2: #16281D;
    --ink:       #E9F1EA;
    --muted:     #9BB0A2;
    --line:      #23342A;
    --brand:     #10422A;
    --brand-2:   #0E7A46;
    --brand-ink: #EAF4EC;
    --brand-soft:#173324;
    --accent:    #FF9433;
    --accent-2:  #FFB25A;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.6);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { text-wrap: balance; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
  .eyebrow {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .14em; color: var(--accent);
  }

  /* ===== Header ===== */
  header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--ground) 86%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; gap: 20px; height: 66px; }
  .brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.01em; font-size: 1.12rem; }
  .brand .mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: linear-gradient(150deg, var(--brand-2), var(--brand)); color: var(--brand-ink); flex: none; }
  .nav-links { display: flex; gap: 26px; margin-left: auto; }
  .nav-links a { color: var(--muted); font-size: .95rem; font-weight: 600; }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta { display: flex; align-items: center; gap: 8px; }
  .icon-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
  .icon-btn:hover { border-color: var(--accent); }
  .brand, .nav-cta .btn { white-space: nowrap; }
  @media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-cta { margin-left: auto; }   /* le menu portait margin-left:auto → réaligne le CTA à droite */
  }
  @media (max-width: 520px) {
    header .wrap { padding: 0 16px; }  /* moins de marge latérale sur petit écran */
    .nav { gap: 12px; }
    .nav-cta { gap: 6px; }
    .nav-cta .btn { padding: 11px 14px; font-size: .9rem; }  /* CTA compact, ne déborde plus */
    .icon-btn { width: 34px; height: 34px; }
  }

  .btn {
    display: inline-flex; align-items: center; gap: 9px; justify-content: center;
    padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: .98rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .12s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn-accent { background: var(--accent); color: var(--accent-ink); }
  .btn-accent:hover { background: var(--accent-2); }
  .btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--accent); }

  /* ===== Store badges ===== */
  .stores { display: flex; flex-wrap: wrap; gap: 12px; }
  .store {
    display: inline-flex; align-items: center; gap: 11px;
    padding: 11px 18px; border-radius: 13px; background: #0d1512; color: #fff;
    border: 1px solid rgba(255,255,255,.12);
  }
  .store svg { width: 24px; height: 24px; flex: none; }
  .store .st-top { font-size: .68rem; opacity: .75; letter-spacing: .03em; line-height: 1.1; }
  .store .st-main { font-size: 1.05rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
  .store.live { cursor: pointer; }
  .store.live:hover { border-color: rgba(255,255,255,.35); }
  .store.soon { opacity: .62; }
  .store .soon-tag { margin-left: 4px; font-size: .6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; background: var(--accent); color: var(--accent-ink); padding: 2px 6px; border-radius: 5px; }

  /* ===== Hero ===== */
  .hero { position: relative; overflow: hidden; background: var(--brand); color: var(--brand-ink); }
  .hero::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(120% 90% at 88% -10%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 55%),
      linear-gradient(160deg, color-mix(in srgb, var(--brand-2) 55%, var(--brand)), var(--brand) 70%);
    opacity: .95;
  }
  .hero-grid {
    position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
    align-items: center; padding: 72px 0 84px;
  }
  .hero .eyebrow { color: var(--accent-2); }
  .hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; margin: 18px 0 0; }
  .hero h1 .u { color: var(--accent-2); }
  .hero .lead { margin-top: 18px; font-size: 1.16rem; color: color-mix(in srgb, var(--brand-ink) 82%, transparent); max-width: 33ch; }
  .hero-cta { margin-top: 30px; }
  .hero-meta { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .92rem; color: color-mix(in srgb, var(--brand-ink) 75%, transparent); }
  .hero-meta b { color: var(--brand-ink); }
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 54px 0 64px; text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-cta .stores, .hero-meta { justify-content: center; }
    .phone-wrap { justify-self: center; }
  }

  /* ===== Phone mockup (CSS) ===== */
  .phone-wrap { display: flex; justify-content: center; }
  .phone {
    width: 268px; height: 552px; border-radius: 40px; padding: 12px;
    background: linear-gradient(160deg, #1c1c1e, #0a0a0b);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
    position: relative;
  }
  .phone::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 108px; height: 24px; background: #050506; border-radius: 0 0 16px 16px; z-index: 3; }
  .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--ground);
    display: flex; flex-direction: column; }
  .app-top { background: var(--brand); color: #fff; padding: 30px 14px 14px; }
  .app-top .row { display: flex; align-items: center; gap: 10px; }
  .app-top .title { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; margin: 0 auto; }
  .ava { width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: radial-gradient(circle at 50% 32%, #c9a37c, #5f4028); border: 2px solid rgba(255,255,255,.5); }
  .pill { font-size: .62rem; font-weight: 700; padding: 5px 10px; border-radius: 20px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

  .app-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; background: var(--ground); flex: 1; }
  .banner { background: linear-gradient(135deg, #0E7A46, #0B5A34); border-radius: 14px; padding: 13px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; }
  .banner .bt { font-weight: 800; font-size: .9rem; line-height: 1.15; }
  .banner .bs { font-size: .6rem; opacity: .82; margin-top: 6px; }
  .cap { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
  .ch { font-weight: 800; font-size: .9rem; color: var(--ink); margin-top: 4px; }
  .chs { font-size: .62rem; color: var(--muted); margin-top: -5px; }
  .series { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .scard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; }
  .sic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; }
  .sl { font-weight: 800; font-size: 1.05rem; margin-top: 10px; line-height: 1; }
  .ssub { font-size: .56rem; color: var(--muted); margin-top: 3px; line-height: 1.25; }

  /* ===== Sections ===== */
  section { padding: 88px 0; }
  .sec-head { max-width: 640px; margin-bottom: 44px; }
  .sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; margin-top: 12px; }
  .sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
  .card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
  }
  .card .ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--surface-2); color: var(--brand-2); margin-bottom: 16px; }
  .card h3 { font-size: 1.16rem; font-weight: 700; }
  .card p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

  /* Steps */
  .steps-sec { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
  @media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
  .step { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
  .step .num { counter-increment: s; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1rem;
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--brand); color: var(--brand-ink); margin-bottom: 14px; }
  .step .num::before { content: counter(s); }
  .step h3 { font-size: 1.1rem; font-weight: 700; }
  .step p { margin-top: 7px; color: var(--muted); font-size: .96rem; }

  /* Pricing */
  .price-sec { }
  .price-card {
    max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
    border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; text-align: center;
  }
  .price-top { background: var(--brand); color: var(--brand-ink); padding: 30px 28px; }
  .price-top .eyebrow { color: var(--accent-2); }
  .price-amt { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
  .price-amt small { font-size: 1rem; font-weight: 600; color: color-mix(in srgb, var(--brand-ink) 78%, transparent); }
  .price-body { padding: 28px; }
  .price-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; text-align: left; max-width: 340px; margin-inline: auto; }
  .price-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; }
  .price-list .chk { color: var(--brand-2); flex: none; margin-top: 2px; }
  .pay-note { margin-top: 16px; font-size: .86rem; color: var(--muted); }

  /* Disclaimer */
  .note { background: var(--surface-2); }
  .note-box { display: flex; gap: 16px; align-items: flex-start; padding: 26px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .note-box svg { color: var(--accent); flex: none; margin-top: 2px; }
  .note-box p { font-size: .95rem; color: var(--muted); }
  .note-box b { color: var(--ink); }

  /* Footer */
  footer { background: var(--brand); color: var(--brand-ink); padding: 64px 0 34px; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  @media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }
  footer .brand .mark { background: color-mix(in srgb, #fff 16%, transparent); }
  footer .tag { margin-top: 14px; color: color-mix(in srgb, var(--brand-ink) 75%, transparent); font-size: .96rem; max-width: 34ch; }
  .foot-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); margin-bottom: 14px; }
  .foot-col a, .foot-col p { display: block; color: color-mix(in srgb, var(--brand-ink) 82%, transparent); font-size: .96rem; margin-bottom: 10px; }
  .foot-col a:hover { color: var(--brand-ink); }
  .foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--brand-ink) 16%, transparent);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: color-mix(in srgb, var(--brand-ink) 65%, transparent); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

  .mark.logo-mark { background: #fff url('/images/logo-192.png') center/84% no-repeat !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

  .phone::after { display: none !important; }
  .shot { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 820px; margin: 0 auto; }
  .gshot { margin: 0; text-align: center; }
  .gshot img { width: 100%; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; background: var(--surface); }
  .gshot figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); font-weight: 600; }
  @media (max-width: 680px) { .gallery { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 66%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; } }
