/* ============================================================
   style.css : le design du site ScanContact
   Couleurs = celles de l'icône (bleu → violet, accent orange).
   ============================================================ */
:root {
  --blue: #2563EB;
  --blue-2: #2F6BFF;
  --violet: #7C3AED;
  --indigo: #4B3FE0;
  --orange: #FF6A2B;
  --orange-2: #FFB13B;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --bg: #FFFFFF;
  --tint: #F3F5FF;
  --line: #E4E9FB;
  --dark: #0B1026;
  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(37, 40, 120, .35);
  --font-title: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn--cta {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  box-shadow: 0 12px 28px -10px rgba(255, 106, 43, .7);
}
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(255, 106, 43, .8); }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--lg { min-height: 62px; padding: 0 34px; font-size: 1.1rem; }
.btn small { font-weight: 500; opacity: .85; }

/* ---------- En-tête ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid rgba(228, 233, 251, .8);
}
.nav__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.25rem var(--font-title); }
.brand img { border-radius: 9px; }
.brand b { color: var(--blue); }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav__links a:hover { color: var(--blue); }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; color: #fff; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(50% 70% at 95% 80%, rgba(255, 106, 43, .35), transparent 60%),
    linear-gradient(135deg, var(--blue-2), var(--indigo) 55%, var(--violet));
}
.hero__bg::after {
  /* filigrane de petits carrés de QR code */
  content: ''; position: absolute; inset: 0; opacity: .09;
  background-image: radial-gradient(#fff 2.2px, transparent 2.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-bottom: 72px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.pill svg { width: 16px; height: 16px; fill: var(--orange-2); }
.grad { background: linear-gradient(90deg, #FFE1A8, var(--orange-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }
.hero .btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: rgba(255, 255, 255, .88); font-size: .95rem; }
.hero__facts b { font: 800 1.6rem var(--font-title); color: #fff; margin-right: 6px; vertical-align: -2px; }

.hero__phones { position: relative; height: 620px; }
.phone {
  margin: 0; border-radius: 42px; padding: 10px; background: #0b0b12;
  box-shadow: 0 30px 70px -25px rgba(10, 8, 60, .7), inset 0 0 0 2px #2b2b3a;
  aspect-ratio: 390 / 844; overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }
.hero .phone { position: absolute; width: 270px; }
.phone--front { right: 120px; top: 0; z-index: 2; }
.phone--back { right: -10px; top: 70px; transform: rotate(6deg); opacity: .96; }
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 18px; color: var(--ink); font-size: .85rem; line-height: 1.3;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.float img { width: 40px; height: 40px; border-radius: 50%; }
.float svg { width: 22px; height: 22px; fill: none; stroke: #16A34A; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.float--a { left: 0; top: 150px; }
.float--b { left: 30px; bottom: 90px; font-weight: 600; }

/* Bande inspirée du pagne Kente */
.kente {
  height: 18px; position: relative;
  background:
    repeating-linear-gradient(90deg,
      #F2B41B 0 28px, #16803C 28px 36px, #C62828 36px 44px, #111 44px 52px,
      #F2B41B 52px 80px, #1F2C66 80px 88px, #F2B41B 88px 96px, #C62828 96px 112px);
}
.kente::after {
  content: ''; position: absolute; inset: 6px 0;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(0, 0, 0, .35) 12px 16px);
}
.kente--thin { height: 10px; }
.kente--thin::after { inset: 3px 0; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: radial-gradient(80% 60% at 50% 0%, #1D1B5E, var(--dark)); color: #fff; padding-bottom: 72px; }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head p:last-child { color: var(--ink-2); font-size: 1.08rem; }
.section__head--light p:last-child { color: rgba(255, 255, 255, .75); }
.eyebrow { display: inline-block; font: 700 .82rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section--dark .eyebrow { color: var(--orange-2); }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step { display: flex; flex-direction: column; gap: 22px; }
.phone--sm { width: min(250px, 100%); margin-inline: auto; border-radius: 36px; padding: 8px; }
.phone--sm img { border-radius: 28px; }
.step__n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font: 800 1.05rem var(--font-title);
  margin-bottom: 10px;
}
.step p { color: var(--ink-2); }

/* Cas d'usage */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use {
  background: #fff; border-radius: var(--radius); padding: 0 22px 22px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(37, 40, 120, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.use:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.use__art { margin: 0 -22px 18px; padding: 18px 10px 6px; }
.use__art svg { width: 100%; height: auto; }
.use--young .use__art { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.use--business .use__art { background: linear-gradient(135deg, #2563EB, #0EA5E9); }
.use--pro .use__art { background: linear-gradient(135deg, #7C3AED, #4F46E5); }
.use--shop .use__art { background: linear-gradient(135deg, #F97316, #FB923C); }
.use p { color: var(--ink-2); font-size: .97rem; }
.use__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.use__tags li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--indigo); }

/* Fonctions */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--tint); }
.feature p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; color: #fff; }
.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic--blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.ic--violet { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.ic--orange { background: linear-gradient(135deg, #FFB13B, #FF6A2B); }
.ic--teal { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.ic--green { background: linear-gradient(135deg, #22C55E, #15803D); }
.ic--pink { background: linear-gradient(135deg, #F472B6, #DB2777); }

/* Galerie */
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(16px, calc((100% - 1160px) / 2)) 24px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: center; flex: 0 0 230px; text-align: center; }
.gallery .phone--sm { width: 230px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), inset 0 0 0 2px #2b2b3a; }
.gallery figcaption { margin-top: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); }

/* iPhone */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; color: var(--ink-2); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 8px;
  background: #DCFCE7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checks b { color: var(--ink); }
.iphone-card {
  border-radius: 34px; padding: 34px 24px; min-height: 300px; display: grid; place-items: center;
  background: linear-gradient(160deg, #111827, #312E81);
}
.iphone-card__notif {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 22px; max-width: 360px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); color: var(--ink);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); font-size: .88rem; line-height: 1.45;
}
.iphone-card__notif img { width: 38px; height: 38px; border-radius: 10px; }
.iphone-card__notif p { margin: 2px 0 0; color: var(--ink-2); }

/* Téléchargement */
.download {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center;
  background: #fff; border-radius: 32px; padding: 44px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.download__main { text-align: center; }
.download__icon { width: 112px; margin: 0 auto 18px; border-radius: 26px; box-shadow: 0 18px 36px -16px rgba(75, 63, 224, .7); }
.download__main > p { color: var(--ink-2); }
.download__alt { margin: 16px 0 0; font-size: .92rem; color: var(--ink-3); }
.download__alt a { font-weight: 600; }
.download__qr { margin-top: 22px; display: flex; gap: 14px; align-items: center; text-align: left; justify-content: center; }
.download__qr #qr { width: 104px; flex: 0 0 104px; }
.download__qr #qr svg { width: 100%; height: auto; }
.download__qr p { font-size: .9rem; color: var(--ink-3); margin: 0; max-width: 230px; }
.install { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.install li { display: flex; gap: 14px; }
.install span {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--indigo); font: 800 1rem var(--font-title);
}
.install p { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; }

/* Questions */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; padding: 16px 30px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); }

/* Créateur */
.creator { display: flex; gap: 36px; align-items: center; max-width: 900px; }
.creator img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: 0 0 160px; box-shadow: 0 0 0 6px #fff, 0 0 0 9px #C7D2FE; }
.creator p { color: var(--ink-2); }

/* Soutenir : don Wave + suggestions */
.support { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.donate {
  position: relative; overflow: hidden; color: #fff; border-radius: 32px; padding: 40px 34px;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(150deg, #0B7AD1, #0A55B8 55%, #3B2FC4);
  box-shadow: 0 26px 60px -26px rgba(10, 85, 184, .8);
}
.donate::after {
  /* filigrane de petits points, comme le héros */
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(#fff 2px, transparent 2.4px); background-size: 20px 20px;
  mask-image: linear-gradient(200deg, #000, transparent 70%);
}
.donate > * { position: relative; z-index: 1; }
.donate__heart {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 18px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35);
}
.donate__heart svg { width: 28px; height: 28px; fill: #fff; }
.donate h3 { font-size: 1.7rem; font-weight: 800; }
.donate p { color: rgba(255, 255, 255, .92); }
.btn--wave { width: 100%; margin: 8px 0 14px; color: #0B5FA8; background: #fff; box-shadow: 0 14px 30px -12px rgba(5, 30, 90, .55); }
.btn--wave svg { fill: #FF4D6D; stroke: none; }
.btn--wave:hover { transform: translateY(-2px); color: #08457C; }
.donate__note { font-size: .9rem; margin: 0; }
.donate__note b { color: #fff; }

.ideas { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 36px 34px; box-shadow: var(--shadow); }
.ideas > p { color: var(--ink-2); }
.chips { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .95rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--tint); color: var(--ink-2); font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.chips input:checked + span { background: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  padding: 12px 16px; border-radius: 16px; border: 1.5px solid #CBD5E1; background: #FBFCFF;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input { min-height: 48px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.field [aria-invalid="true"] { border-color: #DC2626; }
.field__count { justify-self: end; color: var(--ink-3); font-size: .82rem; }
.field__help { color: var(--ink-3); font-size: .82rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ideas .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form__status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form__status.is-ok { color: #15803D; }
.form__status.is-err { color: #B91C1C; }

/* Pied de page */
.foot { background: var(--dark); color: rgba(255, 255, 255, .7); }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 30px 0; font-size: .92rem; }
.foot .brand { color: #fff; }
.foot .brand b { color: #93B4FF; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.foot nav a:hover { color: #fff; text-decoration: underline; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* Guide des liens */
.guide-intro { color: var(--ink-2); font-size: 1.08rem; max-width: 620px; margin-inline: auto; }
.guide-astuce { padding: 26px 28px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); margin-bottom: 18px; }
.guide-astuce h3 { margin: 0 0 10px; }
.guide-astuce ol, .guide ol { padding-left: 1.3em; margin: 8px 0 12px; display: grid; gap: 6px; color: var(--ink-2); }
.guide-note { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }
.guide summary { display: flex; align-items: center; gap: 12px; }
.pastille { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; color: #fff; font: 700 .78rem/1 var(--font-title); }
.guide-exemple { font-size: .9rem; }
.guide code, .guide-note code { font-size: .86em; background: var(--tint); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .use { transition: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__in .btn { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero__cta, .hero__facts { justify-content: center; }
  .hero__phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone--front { left: 50%; right: auto; transform: translateX(-62%); }
  .phone--back { right: 2%; }
  .uses, .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .step { flex-direction: row; align-items: center; text-align: left; }
  .step .phone--sm { flex: 0 0 180px; margin: 0; }
  .split, .download, .support { grid-template-columns: 1fr; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding-top: 44px; }
  .hero__phones { height: 470px; }
  .hero .phone { width: 210px; }
  .phone--back { right: -4%; top: 50px; }
  .float--a { left: -2px; top: 110px; }
  .float--b { left: 6px; bottom: 50px; }
  .uses, .features { grid-template-columns: 1fr; }
  .step { flex-direction: column; text-align: center; }
  .step .phone--sm { flex: none; width: 210px; margin: 0 auto; }
  .download { padding: 28px 20px; border-radius: 26px; }
  .btn--lg { width: 100%; padding: 0 20px; }
  .creator { flex-direction: column; text-align: center; }
  .donate, .ideas { padding: 28px 20px; border-radius: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .foot__in { justify-content: center; text-align: center; }
}
