/* ==========================================================================
   AppFlow Digital — Design System
   Charte : navy #2A1A4A · cyan #26C0DD · bleu #4E6EF0 · blanc #FFFFFF · corail #FF5A5A
   ========================================================================== */

:root {
  --navy: #2A1A4A;
  --navy-700: #221540;
  --navy-900: #160d2b;
  --cyan: #26C0DD;
  --blue: #4E6EF0;
  --white: #FFFFFF;
  --coral: #FF5A5A;

  --ink: #1d1330;          /* texte principal sur clair */
  --muted: #5b5470;        /* texte secondaire */
  --line: #e7e4f0;         /* bordures discrètes */
  --bg: #ffffff;
  --bg-soft: #f6f5fb;      /* sections claires alternées */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 13, 43, .06), 0 2px 8px rgba(22, 13, 43, .05);
  --shadow-md: 0 10px 30px rgba(42, 26, 74, .12);
  --shadow-lg: 0 24px 60px rgba(42, 26, 74, .18);

  --maxw: 1120px;
  --gap: clamp(1rem, 3vw, 2rem);

  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-navy: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
strong { color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .75rem;
}
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); }

/* ---------- Skip link (accessibilité) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 90, .35); }
.btn--primary:hover { background: #ff4242; box-shadow: 0 12px 26px rgba(255, 90, 90, .45); }
.btn--gradient { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(78, 110, 240, .35); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn-note { font-size: .9rem; color: var(--muted); margin-top: .65rem; }
.btn-note--light { color: rgba(255,255,255,.8); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--navy); font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__name b { color: var(--navy); }
.brand__name span { color: var(--blue); }
.nav__links { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.6rem); }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .98rem; padding: .4rem .2rem; }
.nav__links a:hover { color: var(--blue); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--blue); }
.nav__cta { display: flex; align-items: center; gap: .75rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  color: var(--navy);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* Barre CTA : 2e ligne du header, bouton corail CENTRÉ sous les onglets (toutes pages) */
.header-cta { border-top: 1px solid var(--line); background: rgba(255,255,255,.6); }
.header-cta .container { display: flex; justify-content: center; padding-block: .55rem; }
.header-cta .btn { box-shadow: 0 6px 16px rgba(255,90,90,.3); }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .header-cta .container { padding-block: .5rem; }
  .header-cta .btn { width: 100%; max-width: 360px; }
  .nav__menu {
    position: fixed; inset: 70px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1.25rem;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: .9rem; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-navy);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 82% 18%, rgba(38, 192, 221, .35), transparent),
    radial-gradient(closest-side at 12% 88%, rgba(78, 110, 240, .35), transparent);
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 56ch; margin-top: 1.1rem; font-size: clamp(1.1rem, 2.4vw, 1.35rem); }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem 1rem; align-items: center; }
.hero__cta .btn-note { width: 100%; }
.hero__badges { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .6rem .7rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; padding: .5rem .85rem; border-radius: 999px;
}
.badge svg { width: 16px; height: 16px; color: var(--cyan); }

/* ---------- Cards / grilles ---------- */
.grid { display: grid; gap: clamp(1rem, 3vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8d3ec; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--coral); background: rgba(255,90,90,.1); padding: .25rem .55rem; border-radius: 999px; margin-bottom: .8rem;
}
.card .price {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line);
  font-weight: 700; color: var(--navy);
}
.card .price small { display: block; font-weight: 600; color: var(--muted); font-size: .9rem; margin-top: .2rem; }

/* ---------- Étapes (process) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step__num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 1rem; font-size: 1.1rem;
}
.step h3 { margin-bottom: .35rem; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--grad-navy); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side at 85% 20%, rgba(38,192,221,.3), transparent);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: .6rem; }
.cta-band .btn { margin-top: 1.6rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .25rem 1.2rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); list-style: none;
  padding: 1.05rem 2rem 1.05rem 0; position: relative; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--blue); font-weight: 400; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--blue); }
.faq .faq__a { padding: 0 0 1.1rem; color: var(--muted); }

/* ---------- Réalisations ---------- */
.feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.feature--reverse { grid-template-columns: .9fr 1.1fr; }
.feature--reverse .feature__media { order: -1; }
@media (max-width: 880px) { .feature, .feature--reverse { grid-template-columns: 1fr; } .feature--reverse .feature__media { order: 0; } }
.feature__media {
  border-radius: var(--radius); background: var(--grad-navy); min-height: 280px;
  display: grid; place-items: center; color: #fff; padding: 2rem; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.feature__media::after { content:""; position:absolute; inset:0; background: radial-gradient(closest-side at 75% 25%, rgba(38,192,221,.35), transparent); pointer-events:none; }
.feature__media .glyph { position: relative; z-index: 1; text-align: center; }
.feature__media .glyph svg { width: 72px; height: 72px; color: var(--cyan); margin: 0 auto .8rem; }
.feature__media .glyph span { font-weight: 700; letter-spacing: .04em; opacity: .92; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.chip { font-size: .85rem; font-weight: 600; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; }
.store-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .55rem; background: var(--navy); color: #fff;
  padding: .6rem 1rem; border-radius: 12px; font-weight: 600; font-size: .9rem;
}
.store-badge:hover { background: var(--navy-900); text-decoration: none; }
.store-badge svg { width: 22px; height: 22px; }
.store-badge small { display: block; font-size: .68rem; opacity: .8; font-weight: 500; }
/* Lien-preuve discret (pas un bouton) */
.proof-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-size: .98rem; color: var(--blue); border-bottom: 1px solid transparent; }
.proof-link:hover { text-decoration: none; border-bottom-color: var(--blue); }
.proof-link svg { width: 16px; height: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-list a, .contact-list .ci {
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; color: var(--ink); font-weight: 600;
}
.contact-list a:hover { border-color: var(--blue); text-decoration: none; }
.contact-list .ico { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--blue); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }

/* ---------- Démo ---------- */
/* L'iframe a une taille de mobile STANDARD (390 × 844), puis on la RÉDUIT via scale(--k) pour
   qu'elle tienne pile dans l'écran du mockup. La démo voit toujours un viewport de 390 px
   (son rendu mobile correct, titre entier, rien coupé) et reste interactive (clic + scroll). */
.phone-wrap { width: 100%; display: flex; justify-content: center; }
.phone-mock {
  --k: 0.72;                                   /* largeur rendue : 390 × 0.72 ≈ 281 px */
  width: calc(390px * var(--k) + 22px);        /* écran rendu + 2 × bordure (11px) */
  height: calc(844px * var(--k) + 22px);       /* hauteur rendue + 2 × bordure */
  position: relative; overflow: hidden;
  border: 11px solid #11091f; border-radius: 46px;
  background: var(--grad-navy); box-shadow: var(--shadow-lg); color: #fff;
}
@media (max-width: 360px) { .phone-mock { --k: 0.62; } }   /* tient sur petits mobiles */
/* Encoche décorative : visible mais NE bloque PAS les interactions (pointer-events:none) */
.phone-mock::before { content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%); width:84px; height:8px; border-radius:999px; background:rgba(255,255,255,.22); z-index:4; pointer-events:none; }

/* Écran : zone fixe clippée ; l'iframe 390×844 y est mise à l'échelle et démarre EN HAUT */
.phone-screen { position:absolute; inset:0; border-radius:36px; overflow:hidden; background:var(--grad-navy); }
.phone-frame {
  position:absolute; top:0; left:0;
  width:390px; height:844px; border:0; background:#fff; display:block; z-index:1;
  transform: scale(var(--k)); transform-origin: top left;   /* réduit l'iframe entière, reste interactive */
}

/* Affiche d'attente : au-dessus de l'iframe JUSQU'AU clic, puis retirée (display:none) */
.phone-poster {
  position:absolute; inset:0; z-index:3; cursor:pointer; color:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.6rem;
  background:var(--grad-navy); border:0; font:inherit; text-align:center; padding:1.2rem;
}
.phone-poster::after { content:""; position:absolute; inset:0; background: radial-gradient(closest-side at 50% 38%, rgba(38,192,221,.32), transparent); pointer-events:none; }
.phone-poster .play {
  position:relative; z-index:1; width:64px; height:64px; border-radius:50%;
  background:var(--coral); display:grid; place-items:center; box-shadow:0 10px 24px rgba(255,90,90,.45);
  transition:transform .15s ease;
}
.phone-poster .play svg { width:26px; height:26px; margin-left:3px; }
.phone-poster:hover .play { transform:scale(1.06); }
.phone-poster:focus-visible { outline:3px solid var(--cyan); outline-offset:-3px; }
.phone-poster__label { position:relative; z-index:1; font-weight:700; font-size:1rem; }
.phone-poster__hint { position:relative; z-index:1; font-size:.82rem; color:rgba(255,255,255,.75); }
.phone-mock.is-playing .phone-poster { display:none; }
.phone-frame { visibility:hidden; }
.phone-mock.is-playing .phone-frame { visibility:visible; }
/* Mention discrète sous le téléphone : lien vers la démo plein écran (mobile) */
.phone-hint { margin:1.1rem auto 0; max-width:340px; text-align:center; font-size:.82rem; line-height:1.5; color:rgba(255,255,255,.7); }
.phone-hint a { color:var(--cyan); font-weight:600; }
.phone-hint a:hover { color:#fff; text-decoration:underline; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 740px; }
.legal h1 { margin-bottom: 1.5rem; }
.legal dl { display: grid; gap: .9rem; }
.legal .row { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.legal dt { font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.legal dd { color: var(--ink); margin-top: .15rem; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 740px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-brand .brand__name b { color: #fff; }            /* « AppFlow » lisible (blanc) sur fond navy */
.footer-brand .brand__name span { color: var(--cyan); }  /* « Digital » en cyan */
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-contact { margin-top: 1rem; display: grid; gap: .5rem; font-size: .95rem; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; justify-content: space-between; font-size: .88rem; }
/* Lien mentions légales : présent pour la conformité, volontairement très discret */
/* Lien légal : même teinte que le fond du footer (#160d2b) mais un navy légèrement PLUS FONCÉ,
   il s'y fond, à peine perceptible — reste un vrai <a href> cliquable (pas de display:none/opacity:0) */
/* Lien Mentions légales : fond du footer = #160d2b ; le lien prend cette même teinte
   juste un cheveu plus claire (#1e1535) pour se fondre, à peine perceptible.
   Sélecteur ciblé + !important pour écraser « .site-footer a » (le gris hérité). */
.footer-bottom a.legal-link {
  font-size: .7rem; font-weight: 400; letter-spacing: .01em;
  color: #1e1535 !important; text-decoration: none !important;
}
.footer-bottom a.legal-link:hover { color: #261c40 !important; text-decoration: none !important; } /* éclaircit très légèrement */
.footer-bottom a.legal-link:focus-visible { color: #261c40 !important; outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo { background: #fff3cd00; color: var(--coral); font-weight: 700; border: 1px dashed var(--coral); padding: .1rem .4rem; border-radius: 6px; font-size: .85em; }

/* Animations douces au scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
