/* ==========================================================================
   ELORK · Site vitrine (couleurs du logo : marine, bleu, rouge)
   ========================================================================== */

:root {
  --navy: #103888;
  --navy-deep: #0a2257;
  --blue: #2058c0;
  --blue-hover: #1a4aa6;
  --blue-soft: #e9f0fc;
  --red: #c02a30;
  --red-soft: #fbeaea;
  --ink: #0d1a33;
  --text: #33405a;
  --muted: #66728a;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #dfe5ef;
  --line-strong: #c9d3e3;
  --green: #17795e;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 26, 51, .06);
  --shadow: 0 18px 40px -22px rgba(13, 26, 51, .28);
  --shadow-lg: 0 40px 90px -40px rgba(13, 26, 51, .45);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } body { font-size: 16px; } }
.hl { color: var(--blue); }
.hl-red { color: var(--red); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(32, 88, 192, .8); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: 15px 24px; font-size: 16.5px; border-radius: 12px; }
.link { color: var(--blue); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* En-tête collé */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 251, .88); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.header.scrolled { border-color: var(--line); background: rgba(255, 255, 255, .92); }
.header-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-head); color: var(--navy); letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text); }
.nav a:hover { color: var(--navy); }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { padding: 10px 16px; }
@media (max-width: 920px) { .nav { display: none; } .header-cta { margin-left: auto; } }
@media (max-width: 600px) {
  .header-in { padding: 10px 16px; gap: 12px; }
  .header-cta .btn-ghost span { display: none; }
  .header-cta .btn-ghost { padding: 10px 12px; }
  .header-cta .btn-primary .long { display: none; }
}
@media (min-width: 601px) { .header-cta .btn-primary .short { display: none; } }

/* Barre d'essai fixe en bas (téléphone) */
.trial-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(13, 26, 51, .35);
  display: none; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .3s ease;
}
.trial-bar.on { transform: none; }
.trial-bar p { font-size: 13px; line-height: 1.3; color: var(--muted); flex: 1; }
.trial-bar p strong { display: block; color: var(--ink); font-size: 14.5px; }
@media (max-width: 760px) { .trial-bar { display: flex; } body { padding-bottom: 76px; } }

/* Section générique */
section { padding-block: 96px; }
@media (max-width: 760px) { section { padding-block: 64px; } }
.head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.head p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.kicker { display: block; font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }

/* Hero */
.hero { padding-block: 64px 80px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 40%; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(32, 88, 192, .12), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; position: relative; }
.hero h1 .hl { color: var(--blue); }
.hero .lead { font-size: 1.18rem; color: var(--text); margin: 22px 0 32px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-login { margin-top: 18px; font-size: 15px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.facts li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.facts svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.facts { padding-left: 0; margin-bottom: 0; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual .browser { transform: none; }
.hero-visual .phone { position: absolute; right: -10px; bottom: -44px; width: 31%; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 680px; margin: 0 auto 30px; width: 100%; }
}
@media (max-width: 600px) { .hero-visual .phone { width: 34%; right: -4px; bottom: -30px; } }

/* Cadres : navigateur et téléphones */
.browser { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #eef2f8; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd7e4; }
.browser-bar .url { margin-left: 12px; flex: 1; max-width: 340px; background: #fff; border-radius: 7px; padding: 5px 12px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.browser-bar .url svg { width: 12px; height: 12px; color: var(--green); }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: #eef1f5; overflow: hidden; }
.browser-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.browser.crop .browser-view { aspect-ratio: auto; }
.browser.crop .browser-view img { position: static; height: auto; }

.phone {
  aspect-ratio: 1206 / 2622; border-radius: 15% / 7%; padding: 3.2%;
  background: #0d1220; box-shadow: 0 30px 60px -24px rgba(13, 26, 51, .55), inset 0 0 0 2px #2a3144;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12% / 5.6%; }
.phone.android { aspect-ratio: 1080 / 2400; border-radius: 11% / 5%; }
.phone.android img { border-radius: 8% / 3.6%; }

/* Métiers */
.trades { padding-block: 0 20px; }
.trades ul { list-style: none; margin: 0; padding: 26px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; border-block: 1px solid var(--line); }
.trades li { display: flex; align-items: center; gap: 10px; font: 600 16px/1 var(--font-head); color: var(--navy); }
.trades svg { width: 22px; height: 22px; color: var(--red); }
@media (max-width: 760px) { .trades ul { justify-content: center; } }

/* Visionneuse du produit */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tab {
  font: 600 14.5px/1 var(--font-body); color: var(--text); background: #fff; border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 10px; cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--navy); color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.viewer { max-width: 1100px; margin: 0 auto; }
.viewer .browser-view img { opacity: 0; transition: opacity .45s ease; cursor: zoom-in; }
.viewer .browser-view img.on { opacity: 1; }
.viewer-caption { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 18px; }

/* Blocs fonctionnalités */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.reverse .feature-text { order: 2; }
.feature-text { min-width: 0; }
.feature-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 16px; }
.feature-text > p { font-size: 1.08rem; margin-bottom: 26px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%232058c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.checks strong { color: var(--ink); font-weight: 600; }
.feature-visual { position: relative; min-width: 0; }
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-text { order: 0; }
  .feature + .feature { margin-top: 88px; }
}

/* Compositions visuelles */
.stage {
  position: relative; border-radius: var(--radius-lg); padding: 34px;
  background: linear-gradient(160deg, #ffffff 0%, #eaf0fa 100%); border: 1px solid var(--line);
}
.stage.navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border-color: transparent; }
.stage .browser { box-shadow: var(--shadow); }
.duo { display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.duo .phone { width: 42%; max-width: 250px; }
.duo .phone:first-child { transform: translateY(24px); }
.note {
  position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px;
  font-size: 14px; line-height: 1.3; color: var(--ink); max-width: 260px;
}
.note small { display: block; color: var(--muted); font-size: 12.5px; }
.note .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.note .ic.red { background: var(--red-soft); color: var(--red); }
.note .ic.green { background: #e4f5ef; color: var(--green); }
.note .ic svg { width: 18px; height: 18px; }
.zoomable { cursor: zoom-in; }
@media (max-width: 600px) {
  .stage { padding: 18px; }
  .note { position: static; margin-top: 14px; max-width: none; }
}

/* Application mobile */
.apps { background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%); color: #cfdaf0; position: relative; overflow: hidden; }
.apps h2, .apps h3 { color: #fff; }
.apps .kicker { color: #ff8f93; }
.apps .head p { color: #b9c7e3; }
.apps-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.phones-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
.phones-row figure { margin: 0; }
.phones-row figure:nth-child(2) { transform: translateY(-26px); }
.phones-row figcaption { text-align: center; font-size: 13.5px; color: #b9c7e3; margin-top: 12px; }
.phones-row .phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 2px #3a4768; cursor: zoom-in; }
.apps .checks li { color: #dbe4f5; }
.apps .checks li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.store img { width: 26px; height: auto; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: 17px; }
.store small { font-size: 11.5px; font-weight: 500; opacity: .75; }
.apps-note { font-size: 14px; color: #9fb0d2; margin-top: 14px; }
@media (max-width: 980px) { .apps-grid { grid-template-columns: 1fr; gap: 48px; } .phones-row { max-width: 560px; margin: 0 auto; } }
@media (max-width: 520px) { .phones-row { grid-template-columns: 1fr 1fr; } .phones-row figure:nth-child(3) { display: none; } .phones-row figure:nth-child(2) { transform: none; } }

/* Et aussi : cartes avec aperçu */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-shot { aspect-ratio: 16 / 9; background: #eef1f5; overflow: hidden; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s ease; }
.card:hover .card-shot img { transform: scale(1.03); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 1.08rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card-body h3 svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.card-body p { font-size: 15px; color: var(--muted); line-height: 1.55; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Bande de chiffres */
.band { background: #fff; border-block: 1px solid var(--line); padding-block: 52px; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.band-value { display: block; font: 700 2.6rem/1 var(--font-head); color: var(--navy); letter-spacing: -.03em; margin-bottom: 10px; }
.band-value.flag { display: flex; justify-content: center; height: 2.6rem; align-items: center; }
.band-value.flag svg { width: 54px; height: 36px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.band-label { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr 1fr; } }

/* Pourquoi */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.reason { min-width: 0; }
.reason .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); margin-bottom: 16px; }
.reason .ic svg { width: 22px; height: 22px; }
.reason h3 { font-size: 1.12rem; margin-bottom: 8px; }
.reason p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } }

/* Tarif */
.price { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); max-width: 1040px; margin: 0 auto; }
.price-left { padding: 44px; background: linear-gradient(170deg, var(--navy), var(--navy-deep)); color: #cfdaf0; display: flex; flex-direction: column; }
.price-left h3 { color: #fff; font-size: 1.2rem; }
.price-left .offer { display: inline-block; align-self: flex-start; margin-top: 10px; font-size: 14px; font-weight: 600; color: #fff; border-bottom: 2px solid #ff6b70; padding-bottom: 2px; }
.amount { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 8px; color: #fff; }
.amount b { font: 700 4.4rem/1 var(--font-head); letter-spacing: -.04em; }
.amount span { font-size: 16px; color: #b9c7e3; }
.price-left p { font-size: 15px; color: #b9c7e3; }
.price-left .btn { margin-top: 30px; background: #fff; color: var(--navy); box-shadow: none; }
.price-left .btn:hover { background: #eef3ff; }
.price-left .fine { font-size: 13px; margin-top: 12px; color: #9fb0d2; }
.price-right { padding: 44px; }
.price-right .checks { grid-template-columns: 1fr 1fr; gap: 14px 26px; font-size: 15.5px; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } .price-right .checks { grid-template-columns: 1fr; } .price-left, .price-right { padding: 30px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 600 16.5px/1.35 var(--font-body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 24px 22px; color: var(--text); }

/* CTA final */
.final { padding-bottom: 120px; }
.final-box { border-radius: 26px; padding: 72px 40px; text-align: center; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #cfdaf0; position: relative; overflow: hidden; }
.final-box::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); pointer-events: none; }
.final-box h2 { color: #fff; }
.final-box > p { max-width: 38em; margin: 16px auto 34px; font-size: 1.08rem; color: #b9c7e3; }
.final-form { display: flex; gap: 12px; max-width: 620px; margin: 0 auto; flex-wrap: wrap; position: relative; z-index: 1; }
.final-form input { flex: 1; min-width: 220px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; padding: 15px 16px; font: 500 16px var(--font-body); }
.final-form input::placeholder { color: #9fb0d2; }
.final-form .btn { background: #fff; color: var(--navy); }
.final-small { margin-top: 20px; font-size: 14px; color: #9fb0d2; position: relative; z-index: 1; }
.final-small a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Pied de page */
.footer { background: #fff; border-top: 1px solid var(--line); padding-block: 56px 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.1fr 1fr; gap: 28px; }
.footer-grid h4 { margin: 0 0 14px; font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a:hover { color: var(--navy); }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 30ch; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* Agrandissement */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 16, 36, .88); display: flex; align-items: center; justify-content: center; padding: 4vmin; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px -20px #000; background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 22px; height: 22px; }

/* Apparition douce (le contenu reste visible sans JavaScript) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Compositions d'appareils (v3.1)
   ========================================================================== */
.hero-visual { position: relative; padding: 10px 0 60px; }
.hv-window { width: 88%; }
.hv-phone { position: absolute; right: 0; bottom: 0; width: 30%; }
.hv-phone .iphone, .c-phone .iphone, .c-front .iphone, .c-back .iphone, .c-back .pixel { width: 100%; }

.toast {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 11px;
  padding: 10px 16px 10px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(13, 26, 51, .07), 0 18px 40px -16px rgba(13, 26, 51, .35);
  font-size: 13.5px; line-height: 1.25; color: var(--ink); white-space: nowrap;
}
.toast b { display: block; font-weight: 600; }
.toast small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.toast .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.toast .ic.green { background: #e3f4ec; color: var(--green); }
.toast .ic svg { width: 18px; height: 18px; }

.comp { position: relative; }
.comp-web-phone { padding: 0 0 56px; }
.comp-web-phone .c-window { width: 86%; }
.comp-web-phone .c-phone { position: absolute; right: 0; bottom: 0; width: 29%; }
.comp-web { padding: 0 14px 24px 0; }
.comp-two-phones { display: flex; justify-content: center; align-items: flex-end; padding: 10px 0 20px; min-height: 100%; }
.comp-two-phones .c-back { position: relative; top: -34px; width: 40%; margin-right: -9%; rotate: -5deg; z-index: 1; }
.comp-two-phones .c-front { width: 46%; z-index: 2; }
[data-parallax] { will-change: translate; }

/* Application : iPhone + Android */
.apps-devices { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding-bottom: 10px; }
.apps-devices figure { margin: 0; text-align: center; }
.apps-devices figcaption { margin-top: 18px; font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #9fb0d2; }
.ad-ios { width: 46%; z-index: 2; }
.ad-android { position: relative; top: -40px; width: 42%; margin-left: -4%; }
.ad-ios .iphone, .ad-android .pixel { width: 100%; }
.apps .iphone { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.apps .pixel { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -30px rgba(0, 0, 0, .7); }

@media (max-width: 980px) {
  .hero-visual { max-width: 640px; margin: 0 auto; }
  .apps-devices { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .toast { font-size: 12px; padding: 8px 12px 8px 8px; }
  .toast .ic { width: 28px; height: 28px; }
  .toast small { font-size: 11px; }
  .hero-visual .toast:last-of-type { display: none; }
  .comp .toast { position: absolute; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Ouverture du haut de page */
  .js .hero h1, .js .hero .lead, .js .hero-cta, .js .hero-login, .js .facts {
    opacity: 0; transform: translateY(22px);
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
  }
  .js .hero .lead { transition-delay: .12s; }
  .js .hero-cta { transition-delay: .22s; }
  .js .hero-login { transition-delay: .3s; }
  .js .facts { transition-delay: .38s; }
  .js .hv-window > .window { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity 1.1s ease .2s, transform 1.3s cubic-bezier(.16, 1, .3, 1) .2s; }
  .js .hv-phone > .iphone { opacity: 0; transform: translate(40px, 60px) rotate(4deg); transition: opacity 1s ease .55s, transform 1.4s cubic-bezier(.16, 1, .3, 1) .55s; }
  .loaded .hero h1, .loaded .hero .lead, .loaded .hero-cta, .loaded .hero-login, .loaded .facts { opacity: 1; transform: none; }
  .loaded .hv-window > .window { opacity: 1; transform: none; }
  .loaded .hv-phone > .iphone { opacity: 1; transform: none; animation: float 7s ease-in-out 2s infinite; }

  /* Notifications qui apparaissent */
  .js .toast { opacity: 0; transform: translateY(14px) scale(.92); transition: opacity .6s ease var(--d, 0ms), transform .8s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0ms); }
  .loaded .hero-visual .toast, .in .toast { opacity: 1; transform: none; }

  /* Apparition au défilement, avec décalage des listes */
  .js .reveal .checks li { opacity: 0; transform: translateX(-10px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in .checks li { opacity: 1; transform: none; }
  .js .reveal.in .checks li:nth-child(2) { transition-delay: .08s; }
  .js .reveal.in .checks li:nth-child(3) { transition-delay: .16s; }
  .js .reveal.in .checks li:nth-child(4) { transition-delay: .24s; }
  .js .reveal.in .checks li:nth-child(5) { transition-delay: .32s; }
  .js .reveal.in .checks li:nth-child(n+6) { transition-delay: .4s; }
  .js .cards .reveal:nth-child(3n+2), .js .reasons .reveal:nth-child(3n+2) { transition-delay: .1s; }
  .js .cards .reveal:nth-child(3n), .js .reasons .reveal:nth-child(3n) { transition-delay: .2s; }

  /* Appareils des fonctionnalités */
  .js .feature-visual .c-front > *, .js .feature-visual .c-phone > * { transform: translateY(50px); opacity: 0; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1) .15s, opacity .9s ease .15s; }
  .js .feature-visual.in .c-front > *, .js .feature-visual.in .c-phone > * { transform: none; opacity: 1; }

  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
  .apps-devices.in .ad-ios .iphone { animation: float 8s ease-in-out infinite; }
  .apps-devices.in .ad-android .pixel { animation: float 8s ease-in-out 1.5s infinite; }

  /* Barre de progression de la visionneuse */
  .tab { position: relative; overflow: hidden; }
  .tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(255, 255, 255, .55); }
  .viewer.playing .tab[aria-selected="true"]::after { animation: progress 5s linear forwards; }
  @keyframes progress { to { width: 100%; } }
  .viewer .browser-view img { transform: scale(1.015); transition: opacity .6s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1); }
  .viewer .browser-view img.on { transform: none; }

  /* Boutons */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::before { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%); transition: transform .8s ease; }
  .btn-primary:hover::before { transform: translateX(120%); }
  .card-shot img { transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
}

/* Haut de page : visuel plus présent sur grand écran */
@media (min-width: 981px) {
  .hero-grid { grid-template-columns: .82fr 1.18fr; gap: 48px; }
  .hero-visual { margin-right: -56px; }
  .hv-window { width: 90%; }
  .hv-phone { width: 27%; right: 0; bottom: -4px; }
}

@media (max-width: 600px) {
  .apps-devices { max-width: none; padding-inline: 4px; }
  .ad-ios { width: 56%; }
  .ad-android { width: 50%; margin-left: -8%; top: -28px; }
  .band-value { font-size: 2rem; white-space: nowrap; }
  .comp-two-phones .c-back { width: 44%; }
  .comp-two-phones .c-front { width: 52%; }
  .hv-phone { width: 32%; }
}
.apps-devices, .hero-visual { width: 100%; }

/* Bandeau « Télécharger l'application » (Android, et iPhone hors Safari) */
.app-banner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.app-banner[hidden] { display: none; }
.app-banner img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.app-banner p { flex: 1; min-width: 0; font-size: 13px; line-height: 1.25; color: var(--muted); }
.app-banner p strong { display: block; color: var(--ink); font-size: 15px; }
.app-banner p span, .app-banner p small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-banner p small { font-size: 12px; }
.app-banner .btn { padding: 9px 16px; flex: none; }
.app-banner-close { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; margin-left: -6px; }
.app-banner-close svg { width: 16px; height: 16px; }

/* Pages légales */
.legal { padding-block: 48px 96px; }
.legal-in { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.025em; margin: 10px 0 8px; }
.legal h2 { font-size: 1.25rem; margin: 38px 0 12px; }
.legal p, .legal li { font-size: 16px; color: var(--text); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-date { color: var(--muted); font-size: 14px !important; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
@media (max-width: 1180px) and (min-width: 761px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-about { grid-column: 1 / -1; } }

/* Pages métier */
.hero .crumbs { margin-bottom: 18px; }
.comp-phone-solo { display: flex; justify-content: center; padding: 10px 0 20px; }
.comp-phone-solo .iphone { width: 46%; max-width: 300px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-bottom: 22px; }
.prose p { font-size: 1.08rem; margin-top: 16px; }
.prose-center { max-width: 780px; text-align: center; }
.prose-center p { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }
.prose-cta { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin-top: 28px !important; }
.metiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metier { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; min-width: 0; transition: box-shadow .25s, transform .25s; }
.metier:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.metier svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }
.metier b { display: block; color: var(--navy); font-family: var(--font-head); margin-bottom: 6px; }
.metier small { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 980px) { .metiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .metiers { grid-template-columns: 1fr; } }
