/* Bikhir — site vitrine. Palette et typographie de l'app ("Emerald & Champagne Concierge", DESIGN.md) : Figtree, émeraude #064E3B, or #D4AF37, fond #F9F8F6. */

:root {
  --green: #064e3b;
  --green-deep: #003527;
  --navy: #0b1d2e;
  --gold: #d4af37;
  --gold-soft: #fef3c7;
  --mint: #d1fae5;
  --bg: #f9f8f6;
  --surface: #ffffff;
  --field: #f3f4f6;
  --text: #0b2b20;
  --text-2: #4b5563;
  --border: #e8e4dc;
  --danger: #dc2626;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(6, 78, 59, 0.35);
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; } /* height:auto : les attributs width/height de l'HTML ne servent qu'à réserver la place */
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1200; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── En-tête ───────────────────────────────────────────── */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.header.scrolled { background: rgba(6, 78, 59, 0.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -0.4px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav .btn { color: #1a1200; }
.nav .btn-outline { padding: 10px 18px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; font-weight: 700; }
.nav .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px/1 'Figtree', sans-serif; text-decoration: none; white-space: nowrap;
  background: var(--gold); color: #1a1200; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { background: #e0bb45; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,175,55,.35); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); box-shadow: 0 8px 24px rgba(6,78,59,.3); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, #064e3b 0%, #0b1d2e 100%);
  padding: 140px 0 0;
}
.hero::before { /* motif géométrique discret */
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(212,175,55,.14), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(110,231,183,.12), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 4l9 22 22 9-22 9-9 22-9-22-22-9 22-9z' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 80px; align-self: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.35); color: #f3dc8a;
  font-size: 13px; font-weight: 600; letter-spacing: .3px; margin-bottom: 24px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.7); } }
h1 { white-space: nowrap; font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -2px; font-weight: 800; margin-bottom: 22px; }
h1 em { font-style: normal; color: var(--gold); }
h1 .slogan { display: block; margin-top: 14px; font-size: .5em; line-height: 1.15; letter-spacing: -.8px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.78); max-width: 520px; margin-bottom: 32px; }

.signup { max-width: 500px; }
.signup-row {
  display: flex; gap: 6px; padding: 6px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; transition: border-color .2s, background .2s;
}
.signup-row:focus-within { border-color: rgba(212,175,55,.7); background: rgba(255,255,255,.12); }
.signup input[type=email] {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff;
  font: 500 16px 'Figtree', sans-serif; padding: 0 18px;
}
.signup input::placeholder { color: rgba(255,255,255,.5); }
.signup .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.signup-note { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.6); }
.signup-note a { color: rgba(255,255,255,.85); }
.signup-msg { margin-top: 10px; font-size: 14px; }
.signup-msg:empty { display: none; }
.signup-msg.err { color: #fca5a5; }
.signup-ok {
  display: none; padding: 18px 22px; border-radius: 16px; background: rgba(110,231,183,.1);
  border: 1px solid rgba(110,231,183,.35); color: #a7f3d0; font-weight: 600;
}
.signup-ok small { display: block; font-weight: 400; color: rgba(255,255,255,.7); margin-top: 2px; }
.signup.done .signup-row, .signup.done .signup-msg { display: none; }
.signup.done .signup-ok { display: block; }

/* Téléphones */
.phones { position: relative; height: 560px; display: flex; justify-content: center; align-items: flex-end; }
.phone {
  position: absolute; bottom: -2px; width: 250px; border-radius: 34px 34px 0 0;
  background: #0a0a0a; padding: 9px 9px 0; box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(255,255,255,.12) inset;
}
.phone img { width: 100%; border-radius: 26px 26px 0 0; aspect-ratio: 464 / 989; object-fit: cover; object-position: top; }
.phone.p-main { z-index: 3; width: 270px; }
.phone.p-left { z-index: 2; transform: translateX(-150px) rotate(-6deg); transform-origin: bottom center; bottom: 10px; }
.phone.p-right { z-index: 1; transform: translateX(150px) rotate(6deg); transform-origin: bottom center; bottom: 10px; }

/* ── Sections ──────────────────────────────────────────── */
section { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -1.2px; font-weight: 800; margin-bottom: 16px; }
.section-lead { font-size: 18px; color: var(--text-2); max-width: 640px; }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

/* Bandeau de confiance */
.trust { padding: 28px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.trust li { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--text); }
.trust svg { width: 20px; height: 20px; stroke: var(--green); flex: none; }

/* Services */
.services { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(6,78,59,.25); border-color: rgba(6,78,59,.3); }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 6px; letter-spacing: -.3px; }
.card p { color: var(--text-2); font-size: 15.5px; }

/* Parcours produit (texte + écrans) */
.showcase { background: var(--surface); border-block: 1px solid var(--border); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 88px; }
.feature:first-of-type { margin-top: 64px; }
.feature.rev .feature-media { order: -1; }
.feature h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -.9px; margin-bottom: 14px; }
.feature p { color: var(--text-2); font-size: 18px; margin-bottom: 22px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-weight: 500; }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-media { position: relative; display: flex; justify-content: center; padding: 32px 0; }
.feature-media::before {
  content: ''; position: absolute; inset: 6% 8%; border-radius: 40px; z-index: 0;
  background: linear-gradient(160deg, var(--mint), var(--gold-soft));
}
.frame {
  position: relative; z-index: 1; width: min(290px, 70%); border-radius: 38px; background: #0a0a0a; padding: 9px;
  box-shadow: var(--shadow-lg);
}
.frame img { border-radius: 30px; width: 100%; aspect-ratio: 464 / 989; object-fit: cover; object-position: top; }
.frame.second { position: absolute; z-index: 2; width: min(230px, 54%); right: 2%; bottom: 0; transform: rotate(5deg); }
.feature-media.pair .frame:first-child { margin-right: 18%; }

/* Étapes */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15.5px; }

/* Prestataires */
.partners { background: linear-gradient(155deg, #064e3b, #0b1d2e); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.partners h2 { margin-bottom: 12px; }
.partners p { color: rgba(255,255,255,.78); }
.partners .btn { justify-self: end; }
.partners-wrap { padding: 0 0 96px; }

/* FAQ */
.faq { max-width: 780px; margin: 48px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); }

/* Appel final */
.final { background: linear-gradient(155deg, #064e3b, #0b1d2e); color: #fff; text-align: center; padding: 96px 0; }
.final h2 { color: #fff; }
.final .signup { margin: 32px auto 0; text-align: left; }
.final .lead { margin: 0 auto; }

/* Pied de page */
.footer { background: #08151f; color: rgba(255,255,255,.7); padding: 48px 0 32px; font-size: 14.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer .brand { font-size: 20px; }
.footer .brand img { height: 26px; }
.footer p { max-width: 340px; margin-top: 10px; color: rgba(255,255,255,.55); }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .6px; margin-bottom: 12px; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--gold); }
.footer .copy { width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.45); }

/* Pages légales */
.doc-head { background: linear-gradient(155deg, #064e3b, #0b1d2e); color: #fff; padding: 130px 0 56px; }
.doc-head h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -1.2px; margin-bottom: 8px; }
.doc-head p { color: rgba(255,255,255,.7); }
.doc { max-width: 780px; margin: 0 auto; padding: 56px var(--gutter) 96px; }
.doc h2 { font-size: 24px; letter-spacing: -.4px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text-2); margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc a { color: var(--green); font-weight: 600; }
.todo { background: var(--gold-soft); border-radius: 6px; padding: 1px 8px; color: #7a5d00; font-weight: 600; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge i { animation: none; }
  .card, .btn { transition: none; }
}

/* ── Adaptatif ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 24px; text-align: center; }
  .lead, .signup { margin-left: auto; margin-right: auto; }
  .phones { height: 470px; }
  .phone { width: 200px; }
  .phone.p-main { width: 224px; }
  .phone.p-left { transform: translateX(-120px) rotate(-6deg); }
  .phone.p-right { transform: translateX(120px) rotate(6deg); }
  .nav { gap: 16px; }
  .nav a:not(.btn):not(.btn-outline) { display: none; }
  .nav .btn-outline, .nav .btn { white-space: nowrap; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .trust ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; justify-items: start; max-width: 560px; margin: 0 auto; }
  .trust li { white-space: normal; }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 32px; }
  .feature.rev .feature-media { order: 0; }
  .partners { grid-template-columns: 1fr; padding: 40px 28px; }
  .partners .btn { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .nav .btn-outline { padding: 9px 14px; font-size: 13px; }
  .nav .btn { padding: 10px 16px; font-size: 13px; }
  .services { grid-template-columns: 1fr; }
  .trust li { font-size: 14px; }
  .phones { height: 400px; }
  .phone { width: 170px; }
  .phone.p-main { width: 192px; }
  .phone.p-left { transform: translateX(-92px) rotate(-6deg); }
  .phone.p-right { transform: translateX(92px) rotate(6deg); }
  .signup-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .signup input[type=email] { padding: 14px 14px; }
  .btn { padding: 14px 22px; }
  .frame.second { display: none; }
  .feature-media.pair .frame:first-child { margin-right: 0; }
}

@media (max-width: 520px) {
  .nav > .btn { display: none; }
  .trust ul { grid-template-columns: 1fr; }
}
