/* ==========================================================================
   Pages intérieures au nouveau design (fonctionnalités, tarifs, contact, facturation électronique, légal)
   Complète proposition.css
   ========================================================================== */

/* ---------- En-tête de page ---------- */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 clamp(36px, 4.5vw, 64px); }
/* halo des en-têtes : voir proposition.css (fondu en bas) */
.page-hero__inner { position: relative; display: grid; gap: clamp(36px, 5vw, 70px); align-items: center; }
.page-hero--split .page-hero__inner { grid-template-columns: 1.35fr .9fr; }
.page-hero--split .page-hero__title { font-size: clamp(34px, 4.2vw, 56px); }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__inner { max-width: 940px; }
.page-hero--center .page-hero__lead { margin-left: auto; margin-right: auto; }
.page-hero--center .page-hero__actions, .page-hero--center .crumbs { justify-content: center; }
.page-hero__title { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -.03em; line-height: 1.04; margin-bottom: 24px; }
.page-hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 640px; margin: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* petits titres : toujours le trait, jamais d'icône (cohérence entre les pages) */
.page-hero .eyebrow .ico { display: none; }
@media (max-width: 991px) { .page-hero--split .page-hero__inner { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .page-hero { padding-top: 120px; } }

/* Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; transition: color .3s; }
.crumbs a:hover { color: var(--violet); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Carte « En bref » à droite du titre */
.brief { position: relative; padding: clamp(28px, 3vw, 38px); border-radius: 28px; background: var(--ink); color: rgba(255,255,255,.75); }
.brief__ico { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); margin-bottom: 20px; }
.brief__ico .ico { width: 26px; height: 26px; }
.brief__label { position: relative; z-index: 1; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); margin: 0 0 14px; }
.brief .checklist { position: relative; z-index: 1; margin: 0; font-size: 16px; color: #fff; }
.brief .checklist .ico { color: var(--yellow); }

/* ---------- Grille de points forts ---------- */
.points { background: var(--bg-2); }
.points__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.point { position: relative; padding: 28px 26px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.point:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.point__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 18px; transition: background-color .3s, color .3s, transform .5s var(--ease); }
a.point:hover .point__ico { background: var(--violet); color: #fff; }
.point h3 { font-size: 19px; letter-spacing: -.015em; margin-bottom: 8px; }
.point p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.points__grid--4 { grid-template-columns: repeat(4, 1fr); }
.points__grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 991px) { .points__grid, .points__grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .points__grid, .points__grid--4, .points__grid--2 { grid-template-columns: 1fr; } }
.points__note { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Texte éditorial : titre collant à gauche, texte à droite ---------- */
.pstory__inner { display: grid; gap: 40px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .checklist { font-size: 17px; margin: 8px 0 0; }
.pstory__usecases { margin-top: 34px; padding: 26px 28px; border-radius: 22px; background: var(--bg-2); }
.pstory__usecases .case__label, .label-up { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--violet); margin: 0 0 12px; }
@media (min-width: 992px) {
    .pstory__inner { grid-template-columns: 1fr 1.4fr; gap: 90px; align-items: start; }
    .pstory__head { position: sticky; top: 130px; }
}

/* ---------- À découvrir aussi ---------- */
.related { padding-top: 0; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related__grid .tile { min-height: 220px; }
@media (max-width: 900px) { .related__grid { grid-template-columns: 1fr; } }

/* ---------- Hub des fonctionnalités ---------- */
.fgroup + .fgroup { margin-top: clamp(56px, 7vw, 90px); }
.fgroup__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.fgroup__head h2 { font-size: clamp(26px, 3vw, 36px); }
.fgroup__head p { margin: 0; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (min-width: 1101px) { .fgrid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); } } /* 5 fonctionnalités : une seule ligne */
.fgrid .tile { min-height: 230px; }
@media (max-width: 1100px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.fe-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; margin-top: clamp(56px, 7vw, 90px); padding: clamp(30px, 4vw, 52px); border-radius: 30px; background: var(--ink); color: rgba(255,255,255,.75); }
.fe-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0; }
.fe-band p { margin: 0; }
.fe-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) { .fe-band { grid-template-columns: 1fr; } .fe-band__actions { justify-content: flex-start; } }

/* ---------- Tarifs ---------- */
.pricing--page { padding-top: 0; }
.plan__users { font-size: 14px; font-weight: 600; color: var(--violet); margin: 10px 0 18px; }
.plan--featured .plan__users { color: var(--yellow); }
.reassure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 60px); }
.reassure li { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--bg-2); font-weight: 600; color: var(--ink); font-size: 15px; }
.reassure .ico { flex: none; color: var(--violet); }
@media (max-width: 991px) { .reassure { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reassure { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
@media (max-width: 991px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { padding: clamp(26px, 3.5vw, 44px); border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--bg-2); color: var(--ink);
    font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 4px var(--violet-soft); }
.field input::placeholder, .field textarea::placeholder { color: #9a9ab0; }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 0 0 1.5px #d64545; }
.field__error { font-size: 13.5px; color: #c23a3a; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--violet); }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 26px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form-alert { margin-bottom: 22px; padding: 14px 18px; border-radius: 14px; background: #fdecec; color: #a62f2f; font-size: 15px; }
.contact-list { display: grid; gap: 14px; margin-top: 30px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--bg-2); color: var(--ink); font-weight: 600; transition: background-color .3s, transform .45s var(--ease); }
.contact-list a:hover { background: var(--violet-soft); }
.contact-list .ico { flex: none; color: var(--violet); }
.contact-list small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }

/* ---------- Facturation électronique ---------- */
.countries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 800px) { .countries { grid-template-columns: 1fr; } }
.country { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3.5vw, 44px); border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.country:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.country__flag { width: 54px; height: 38px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.country h2 { font-size: clamp(28px, 3vw, 38px); }
.country p { margin: 0; color: var(--muted); }
.country .checklist { margin: 4px 0 10px; }
.country .btn { align-self: flex-start; margin-top: auto; }

.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .milestones { grid-template-columns: 1fr; } }
.milestone { position: relative; padding: 30px 28px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.milestone__date { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.milestone--now .milestone__date { background: var(--yellow); color: var(--ink); }
.milestone h3 { font-size: 20px; margin-bottom: 10px; }
.milestone p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; }
.milestone p:last-child { margin: 0; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.formats span { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em; }

.aid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(30px, 4.5vw, 60px); border-radius: 32px; background: var(--ink); color: rgba(255,255,255,.75); }
.aid h2 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 18px; }
.aid .checklist { color: #fff; margin: 0; }
.aid .checklist .ico { color: var(--yellow); }
.aid__big { font-size: clamp(64px, 9vw, 120px); font-weight: 700; color: var(--yellow); line-height: 1; letter-spacing: -.04em; }
.aid small { display: block; margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .aid { grid-template-columns: 1fr; } }

/* ---------- Pages légales ---------- */
.legal { padding-top: 0; }
.legal__inner { max-width: 860px; }
.legal__body { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.legal__body h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 2em 0 .7em; }
.legal__body h3 { font-size: 19px; margin: 1.6em 0 .6em; }
.legal__body p { margin: 0 0 1em; }
.legal__body ul, .legal__body ol { margin: 0 0 1.2em; padding-left: 1.3em; list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li { margin-bottom: .4em; }
.legal__body a { color: var(--violet); word-break: break-word; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.legal__body td, .legal__body th { padding: 10px 12px; border: 1px solid var(--line-2); vertical-align: top; }

/* Page de remerciement */
.thanks { min-height: 70vh; display: grid; place-items: center; }
.thanks__ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 26px; background: var(--yellow); color: var(--ink); }
.thanks__ico .ico { width: 34px; height: 34px; }

/* Mots mis en avant sur fond bleu nuit */
.fe-band .hl, .aid .hl, .brief .hl { color: var(--yellow); }
.legal__body h4 { font-size: 17px; margin: 1.4em 0 .5em; }
a.point { display: block; color: inherit; }

/* Pages métier : difficultés « avant eKo » */
.pains { display: grid; gap: 8px; margin: 0; }
.pains li { position: relative; padding-left: 20px; color: var(--text); }
.pains li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: #d99400; }

/* Intégrations */
.igrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .igrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .igrid { grid-template-columns: 1fr; } }
.integ { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: inherit; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.integ:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.integ__logo { height: 52px; display: flex; align-items: center; margin-bottom: 8px; }
.integ__logo img { max-height: 44px; width: auto; object-fit: contain; }
.integ__logo .ico { width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: var(--violet-soft); color: var(--violet); }
.integ h3 { font-size: 18px; letter-spacing: -.015em; }
.integ p { margin: 0; font-size: 15px; color: var(--muted); }

/* Simulateur facture électronique */
.sim { max-width: 860px; margin: 0 auto; }
.sim__q { border: 0; padding: 0; margin: 0 0 28px; }
.sim__q[hidden] { display: none; }
.sim__q legend { display: flex; align-items: flex-start; gap: 12px; line-height: 1.3; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.sim__n { flex: none; width: 32px; height: 32px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 15px; }
.sim__hint { margin: -6px 0 14px; color: var(--muted); font-size: 15px; }
.sim__choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sim__choices--col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .sim__choices, .sim__choices--col { grid-template-columns: 1fr; } }
.sim__choice { position: relative; cursor: pointer; }
.sim__choice input { position: absolute; opacity: 0; }
.sim__choice > span { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 14px 18px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px transparent; font-weight: 600; color: var(--ink); transition: box-shadow .2s, background-color .2s; }
.sim__choice > span:has(small) { flex-direction: column; align-items: flex-start; gap: 2px; }
.sim__choice small { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.sim__choice img { border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.sim__choice:hover > span { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.sim__choice input:checked + span { background: #fff; box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px var(--violet-soft); }
.sim__choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sim__result { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.sim__rows { display: grid; gap: 10px; }
.sim__row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); }
.sim__row strong { color: var(--ink); font-size: 17px; }
.sim__row p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.sim__date { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 700; color: var(--ink); text-align: right; }
.sim__date small { font-weight: 500; color: var(--muted); font-size: 12px; }
.sim__badge { padding: 4px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 13px; }
.sim__badge--now { background: var(--yellow); color: var(--ink); }
.sim__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 600px) { .sim__row { flex-direction: column; align-items: flex-start; } .sim__date { align-items: flex-start; text-align: left; } }

/* Citations clients */
.quote { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.quote blockquote small { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.quote figcaption a { color: var(--violet); font-weight: 700; }

/* Premier contenu sous l'en-tête : même respiration sur toutes les pages */
.section--after-hero, .pricing--page, .legal { padding-top: clamp(16px, 2.5vw, 32px); }

/* Note sous le simulateur : centrée, même largeur que le simulateur */
.sim__note { max-width: 860px; margin: 18px auto 0; text-align: center; font-size: 14px; color: var(--muted); }


/* Pages métier : photo dans l'en-tête */
.trade-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.trade-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991px) { .trade-photo { aspect-ratio: 16 / 10; } }

/* Page Fonctionnalités : renvoi vers les intégrations et le changement de logiciel */
.features-more { margin: clamp(32px, 4vw, 48px) 0 0; max-width: 820px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink); }
.features-more a { color: var(--violet); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.features-more a:hover { text-decoration-thickness: 2px; }

/* Pages fonctionnalité : toutes les autres fonctionnalités en défilé, deux rangées en sens inverse */
.fmq { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 48px); overflow: hidden; padding: 6px 0 14px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fmq__row { display: flex; width: max-content; animation: fmq 70s linear infinite; }
.fmq__row--rev { animation-direction: reverse; animation-duration: 80s; }
.fmq:hover .fmq__row, .fmq:focus-within .fmq__row { animation-play-state: paused; }
.fmq__group { display: flex; gap: 16px; padding: 0 16px 0 0; margin: 0; list-style: none; }
.fmq__item { display: flex; align-items: center; gap: 14px; width: 330px; height: 100%; padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px -22px rgba(31, 31, 84, .45); transition: border-color .3s, transform .3s; }
.fmq__item:hover { border-color: var(--violet); }
.fmq__item:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.fmq__ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.fmq__txt strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.25; }
.fmq__txt small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
@keyframes fmq { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .fmq__item { width: 270px; padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .fmq { overflow-x: auto; } .fmq__row { animation: none; } }

/* Défilé : cartes plus hautes, image carrée à gauche (ou carré avec l'icône en attendant la photo) */
.fmq__item { width: 400px; gap: 18px; padding: 14px 22px 14px 14px; border-radius: 22px; }
.fmq__img { flex: none; width: 132px; height: 132px; border-radius: 16px; object-fit: cover; display: block; background: var(--bg-2); }
.fmq__img--ico { display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.fmq__img--ico .ico { width: 40px; height: 40px; stroke-width: 1.6; }
.fmq__txt strong { font-size: 17px; }
.fmq__txt small { margin-top: 6px; font-size: 14px; }
@media (max-width: 600px) { .fmq__item { width: 300px; padding: 12px 16px 12px 12px; } .fmq__img { width: 96px; height: 96px; border-radius: 14px; } }

/* Grands fonds : dégradé bleu nuit → violet */
.brief, .fe-band, .aid { background: var(--grad-ink); }
/* Page Fonctionnalités : phrase sur deux lignes et marge basse réduite sur ordinateur */
.br-desk { display: none; }
@media (min-width: 992px) {
    .features-more { max-width: none; }
    .br-desk { display: inline; }
    .section--features { padding-bottom: clamp(40px, 4vw, 64px); }
}

/* Capture réelle d'eKo dans une fenêtre de navigateur (en-tête des pages fonctionnalités) */
.page-hero--screen .page-hero__inner { grid-template-columns: 1.2fr .8fr; align-items: center; }
.page-hero--screen .mockup { max-width: 520px; justify-self: end; width: 100%; }
@media (max-width: 991px) { .page-hero--split.page-hero--screen .page-hero__inner { grid-template-columns: 1.1fr .9fr; } }
@media (max-width: 767px) { .page-hero--split.page-hero--screen .page-hero__inner { grid-template-columns: 1fr; } .page-hero--screen .mockup { max-width: 360px; justify-self: center; } }
.screen { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(31, 31, 84, .45); }
.screen__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f1f5; border-bottom: 1px solid var(--line); }
.screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d6e0; }
.screen__bar span { margin-left: 12px; padding: 3px 14px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--muted); }
.screen img { display: block; width: 100%; height: auto; }

/* Centre d'aide : étapes d'accès depuis le logiciel */
.help-access { max-width: 760px; }
.help-access__title { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 24px; }
.help-steps { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.help-steps::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--violet), var(--yellow)); opacity: .35; }
.help-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.help-steps__num { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; }
.help-steps li:last-child .help-steps__num { background: var(--yellow); color: var(--ink); }
.help-steps p { margin: 9px 0 0; font-size: 18px; line-height: 1.6; }
.help-steps a, .help-access__note a { color: var(--violet); font-weight: 600; }
.help-access__note { margin-top: 32px; padding: 20px 24px; border-radius: 18px; background: var(--bg-2); color: var(--muted); }

/* SME Packages : formulation officielle et contacts officiels */
.aid__quote { font-size: 18px; line-height: 1.6; color: #fff; margin: 18px 0 12px; }
.aid__label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 0 0 12px; }
.aid__contacts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.aid__contacts a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.aid__contacts a:hover { background: var(--yellow); color: var(--ink); }

/* Luxembourg : paiements wallee, terminal à droite */
.wallee-head { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 48px); }
.wallee-head .section__head { margin-bottom: 24px; }
.wallee-head__img { position: relative; justify-self: center; display: block; width: min(100%, 300px); }
.wallee-head__img img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(31, 31, 84, .25)); }
@media (max-width: 767px) { .wallee-head { grid-template-columns: 1fr; } .wallee-head__img { width: 200px; } }

/* Pages fonctionnalités : fenêtre eKo au format exact de la capture (aucun blanc), légèrement inclinée ; téléphone devant pour l'agenda */
.mockup { position: relative; perspective: 1800px; }
.win { margin: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 31, 84, .08), 0 50px 80px -40px rgba(31, 31, 84, .5); transform: rotateY(-10deg) rotateX(4deg); transform-origin: 30% 50%; }
.win__bar { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 14px; background: #eef0f4; }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; }
.win img { display: block; width: 100%; height: auto; }
.mockup--phone { padding-left: 13%; }
.phone { position: absolute; left: 0; bottom: -8%; width: 25%; padding: 2.2%; border-radius: 28px; background: #16161a; box-shadow: 0 30px 50px -20px rgba(31, 31, 84, .55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 20px; }
@media (max-width: 991px) { .win { transform: none; } .phone { bottom: -10%; width: 27%; border-radius: 22px; } .phone img { border-radius: 15px; } }
@media (prefers-reduced-motion: reduce) { .win { transform: none; } }

/* wallee : le terminal flotte doucement */
.wallee-float { display: block; animation: wallee-float 5s ease-in-out infinite; }
@keyframes wallee-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .wallee-float { animation: none; } }

/* Pages fonctionnalités : fiche eKo dessinée (nom du module, points clés, notification) */
.appcard { position: relative; margin: 0; max-width: 470px; width: 100%; justify-self: end; padding: 0 0 34px 26px; }
.appcard::before { content: ""; position: absolute; inset: 24px -18px 6px 60px; border-radius: 32px; background: linear-gradient(135deg, var(--violet) 0%, #9b7bff 100%); transform: rotate(4deg); opacity: .9; }
.appcard__win { position: relative; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -36px rgba(31, 31, 84, .55); overflow: hidden; }
.appcard__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.appcard__logo { display: block; width: 50px; height: auto; }
.appcard__search { flex: 1; display: flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg-2); color: rgba(31, 31, 84, .4); }
.appcard__search .ico { width: 13px; height: 13px; }
.appcard__me { padding: 6px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 13px; font-weight: 600; white-space: nowrap; }
.appcard__body { padding: 20px 20px 22px; }
.appcard__title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.appcard__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--yellow); }
.appcard__ico .ico { width: 20px; height: 20px; }
.appcard__pi { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #fff; color: var(--violet); box-shadow: 0 0 0 1px var(--line); }
.appcard__pi .ico { width: 16px; height: 16px; }
.appcard__txt { flex: 1; min-width: 0; }
.appcard__toast { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: 0 24px 40px -18px rgba(31, 31, 84, .7); animation: appcard-toast .7s cubic-bezier(.2, .9, .3, 1.3) 1s both; }
.appcard__dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.appcard__dot .ico { width: 14px; height: 14px; stroke-width: 3; }
@keyframes appcard-toast { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@media (max-width: 767px) { .appcard { justify-self: center; max-width: 400px; padding-left: 14px; } .appcard__toast { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .appcard__toast { animation: none; } }

/* Fiche eKo : aperçus propres à chaque fonctionnalité (_visuel.blade.php) */
.appcard__body small { display: block; font-size: 12.5px; font-weight: 500; color: rgba(31, 31, 84, .55); }
.appcard__body .ico { width: 14px; height: 14px; }
.av-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av-rows > li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.av-sub { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: rgba(31, 31, 84, .7); }
.av-badge { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.av-badge--ok { background: #e3f6ef; color: #17805f; }
.av-badge--warn { background: #fff3d6; color: #a66a00; }
.av-badge--info { background: var(--violet-soft); color: var(--violet); }
.av-badge--new { background: #e6efff; color: #2f6ad9; }
.av-badge--late { background: #ffe6ec; color: #c43a5c; }
.av-c--violet { --c: var(--violet); --c2: var(--violet-soft); }
.av-c--yellow { --c: #b97a00; --c2: #fff3d6; }
.av-c--teal { --c: #1f8f82; --c2: #dff5f2; }
.av-c--pink { --c: #c43a5c; --c2: #ffe6ec; }
.av-c--blue { --c: #2f6ad9; --c2: #e6efff; }
/* fiche contact */
.av-contact { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.av-contact strong { display: block; font-size: 17px; color: var(--ink); }
.av-avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 18px; }
.av-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.av-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 12.5px; font-weight: 600; }
.av-tags .is-ok { background: #e3f6ef; color: #17805f; }
/* graphique */
.av-kpi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 14px; }
.av-kpi strong { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.av-kpi small { flex-basis: 100%; }
.av-chart { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding: 12px 14px 8px; border-radius: 16px; background: var(--bg-2); }
.av-chart span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 12px; font-weight: 600; color: rgba(31, 31, 84, .5); }
.av-chart i { width: 100%; border-radius: 8px 8px 4px 4px; background: #cfc3fb; }
.av-chart .is-on i { background: var(--violet); }
.av-chart .is-on { color: var(--violet); }
/* document (devis, commande, caisse, signature) */
.av-doc { position: relative; padding: 16px 16px 12px; border-radius: 16px; background: var(--bg-2); }
.av-doc__head { margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.av-doc__head strong { display: block; }
.av-line { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--ink); }
.av-line span:last-child { font-weight: 600; white-space: nowrap; }
.av-line--total { border-top-style: solid; font-weight: 700; }
.av-line--total span:last-child { color: var(--violet); }
.av-line--big { font-size: 18px; }
.av-stamp { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border: 2px solid #22a07a; border-radius: 8px; color: #17805f; font-size: 13px; font-weight: 700; transform: rotate(-8deg); }
/* barres d'avancement */
.av-rows > .av-prog { display: grid; gap: 8px; }
.av-prog__top { display: flex; justify-content: space-between; }
.av-bar { display: block; flex: 1; height: 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.av-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), #9b7bff); }
/* stock */
.av-stock b { min-width: 30px; text-align: right; }
.av-gauge { flex: none; width: 70px; height: 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.av-gauge i { display: block; height: 100%; background: #22a07a; }
.av-gauge.is-low i { background: #e05577; }
/* échéances */
.av-date { flex: none; width: 54px; padding: 6px 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: center; font-size: 12.5px; font-weight: 700; color: var(--violet); }
/* fichiers */
.av-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.av-file { display: grid; gap: 2px; padding: 12px 10px; border-radius: 14px; background: var(--bg-2); font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.av-file b { width: 34px; padding: 3px 0; margin-bottom: 6px; border-radius: 6px; background: #e05577; color: #fff; font-size: 10.5px; text-align: center; }
.av-file--jpg b { background: #2bb3a3; }
.av-file--doc b { background: #2f6ad9; }
.av-file--xls b { background: #22a07a; }
/* intervention */
.av-job .av-doc__head { margin-bottom: 8px; }
.av-tech { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--violet); }
.av-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; padding: 0; }
.av-steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(31, 31, 84, .5); text-align: center; }
.av-steps li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--line-2); }
.av-steps li:first-child::before { display: none; }
.av-steps i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2); }
.av-steps .is-done { color: var(--ink); }
.av-steps .is-done::before { background: #22a07a; }
.av-steps .is-done i { background: #22a07a; box-shadow: none; }
/* tableau comptable */
.av-table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--ink); }
.av-table th { padding: 8px; background: var(--bg-2); text-align: left; font-size: 12px; font-weight: 700; color: rgba(31, 31, 84, .6); }
.av-table th:first-child { border-radius: 10px 0 0 10px; }
.av-table th:last-child { border-radius: 0 10px 10px 0; }
.av-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.av-table td:nth-child(n+3), .av-table th:nth-child(n+3) { text-align: right; }
.av-export { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); font-size: 13.5px; font-weight: 600; }
/* interrupteurs sécurité */
.av-switch { flex: none; position: relative; width: 38px; height: 22px; margin-left: auto; border-radius: 999px; background: #22a07a; }
.av-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
/* heures */
.av-hours li { gap: 10px; }
.av-hours__d { width: 34px; }
.av-hours b { min-width: 46px; text-align: right; font-size: 13.5px; }
/* caisse */
.av-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.av-pay span { padding: 10px 0; border-radius: 12px; background: var(--bg-2); text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.av-pay .is-on { background: var(--violet); color: #fff; }
/* rapprochement */
.av-match { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.av-match--head { font-size: 12px; font-weight: 700; color: rgba(31, 31, 84, .55); }
.av-match--head span:last-child { grid-column: 3; }
.av-match__bank, .av-match__doc { display: grid; padding: 9px 11px; border-radius: 12px; background: var(--bg-2); font-weight: 600; line-height: 1.3; }
.av-match__bank b { color: var(--violet); font-variant-numeric: tabular-nums; }
.av-match__doc { display: flex; align-items: center; gap: 8px; align-self: stretch; background: #e3f6ef; color: #17805f; }
.av-link { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #22a07a; color: #fff; }
.av-link .ico { width: 13px; height: 13px; stroke-width: 3; }
/* planning projet */
.av-gantt { margin-bottom: 4px; }
.av-gantt p { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.av-gantt p.av-gantt__weeks { grid-template-columns: 94px repeat(4, 1fr); gap: 0; font-size: 12px; color: rgba(31, 31, 84, .5); }
.av-gantt__track { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--bg-2) 0 calc(25% - 1px), #fff calc(25% - 1px) 25%); }
.av-gantt__track i { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: var(--c); }
/* signature */
.av-ph { display: block; height: 8px; margin: 0 0 8px; border-radius: 4px; background: #dcd7ee; }
.av-ph--short { width: 60%; }
.av-sign__box { margin: 14px 0 10px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--violet); }
.av-sign__ink { display: block; width: 100%; height: 56px; }
.av-sign__ink path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: av-sign 1.6s ease-out .9s forwards; }
@keyframes av-sign { to { stroke-dashoffset: 0; } }
.av-signer { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: #17805f; }
/* agenda */
.av-cal { display: grid; grid-template-columns: 34px repeat(5, 1fr); grid-template-rows: 24px repeat(5, 40px); gap: 4px; }
.av-cal__day { grid-row: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink); }
.av-cal__h { grid-column: 1; font-size: 11px; color: rgba(31, 31, 84, .45); }
.av-cal__ev { padding: 5px; border-left: 3px solid var(--c); border-radius: 6px; background: var(--c2); color: var(--c); font-size: 11px; font-weight: 700; line-height: 1.2; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .av-sign__ink path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 479px) { .av-cal__ev { font-size: 9.5px; padding: 4px; } .av-files { grid-template-columns: repeat(2, 1fr); } .av-gantt p { grid-template-columns: 72px 1fr; } .av-gantt p.av-gantt__weeks { grid-template-columns: 82px repeat(4, 1fr); } }

/* Bande de photos (contact, facturation électronique, France, Luxembourg) */
.photo-band__grid { display: grid; gap: clamp(12px, 2vw, 24px); }
.photo-band__grid--2 { grid-template-columns: 1.3fr 1fr; }
.photo-band__grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.photo-band__item { margin: 0; height: clamp(220px, 26vw, 360px); border-radius: 24px; overflow: hidden; background: var(--bg-2); }
.photo-band__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .photo-band__grid--2, .photo-band__grid--3 { grid-template-columns: 1fr 1fr; } .photo-band__item { height: 170px; } .photo-band__grid--3 .photo-band__item:first-child { grid-column: 1 / -1; height: 220px; } }
.section.photo-band { padding-block: clamp(24px, 4vw, 48px); }
.photo-band + .social-cta { padding-top: clamp(24px, 4vw, 48px); }
.photo-band__grid--1 .photo-band__item { height: auto; }
.photo-band__grid--1 img { height: auto; }
.section.photo-band--up { margin-top: calc(-1 * clamp(24px, 4vw, 64px)); padding-top: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.points.points--plain { background: none; }

/* Vitrine smartphone (Gestion commerciale : l'agenda sur iPhone) */
.showcase__inner { display: grid; gap: 48px; align-items: center; }
.showcase__text { margin: 18px 0 22px; max-width: 52ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
.iphone { position: relative; display: flex; justify-self: center; width: min(300px, 78vw); aspect-ratio: 71.6 / 147.6; margin: 0; padding: 4px; border-radius: 56px; background: linear-gradient(140deg, #e6e3dc 0%, #9d9a93 22%, #d6d3cc 48%, #8a8781 74%, #cfccc5 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 60px 90px -40px rgba(31, 31, 84, .55), 0 30px 40px -30px rgba(0, 0, 0, .35); }
.iphone__btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #8a8781, #d6d3cc 60%, #9d9a93); }
.iphone__btn--action { left: -3px; top: 17%; height: 5%; }
.iphone__btn--up { left: -3px; top: 25%; height: 9%; }
.iphone__btn--down { left: -3px; top: 36%; height: 9%; }
.iphone__btn--power { right: -3px; top: 29%; height: 14%; }
.iphone__screen { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; border: 10px solid #0a0a0c; border-radius: 52px; background: #343a40; }
.iphone__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 42px; background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%); }
.iphone__status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 22px 0 28px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.iphone__island { width: 33%; height: 27px; border-radius: 999px; background: #000; }
.iphone__icons { display: flex; align-items: center; gap: 5px; }
.iphone__icons svg { width: 16px; height: 11px; fill: #fff; }
.iphone__bat { position: relative; width: 23px; height: 11px; border: 1.3px solid rgba(255, 255, 255, .55); border-radius: 3.5px; box-shadow: inset 0 0 0 1.3px #343a40, inset 0 0 0 10px #fff; }
.iphone__bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 1.5px; height: 3.5px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .55); }
@media (min-width: 900px) { .showcase__inner { grid-template-columns: 1.1fr .9fr; gap: 80px; } }
/* Agenda eKo mobile (vue jour) reproduit dans l'iPhone (_iphone-agenda.blade.php), couleurs de l'appli */
.pa { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; color: #212529; font-size: 12px; }
.pa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pa svg.pa__fill, .pa .ico { fill: currentColor; stroke: none; }
.pa__bar { display: flex; gap: 6px; padding: 6px 10px 8px; background: #343a40; }
.pa__btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; background: #23272b; color: #fff; }
.pa__btn .ico { width: 15px; height: 15px; }
.pa__btn--end { margin-left: auto; }
.pa__month { display: flex; align-items: center; gap: 16px; padding: 9px 14px; border-top: 2px solid #23272b; background: #343a40; color: #fff; }
.pa__month span { flex: 1; text-align: center; padding-left: 40px; font-size: 16px; color: #ced4da; }
.pa__days { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 4px 4px 6px; border-bottom: 1px solid #dee2e6; text-align: center; }
.pa__days li { display: grid; justify-items: center; gap: 2px; }
.pa__days small { font-size: 12px; color: #212529; }
.pa__days b { display: grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 13px; font-weight: 400; }
.pa__days .is-on small { color: #f0b31b; }
.pa__days .is-on b { background: #f5bd1f; color: #fff; }
.pa__grid { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-rows: repeat(var(--rows), 50px); padding-bottom: 8px; background: linear-gradient(90deg, transparent 34px, #fffbea 34px); }
.pa__h { position: relative; border-top: 1px solid #e9ecef; padding: 3px 0 0 4px; color: #868e96; font-size: 10.5px; line-height: 1; }
.pa__h::after { content: ""; position: absolute; left: 34px; right: 0; top: 24px; border-top: 1px dashed #efe6c4; }
.pa__ev { position: absolute; left: 40px; right: 8px; top: calc(var(--at) * 50px + 3px); height: calc(var(--len) * 50px - 6px); display: grid; align-content: start; gap: 1px; padding: 6px 9px; border-radius: 8px; background: var(--c); color: var(--t, #fff); overflow: hidden; line-height: 1.25; box-shadow: 0 6px 14px -8px var(--c), inset 3px 0 0 rgba(0, 0, 0, .14); }
.pa__ev small { font-size: 10px; opacity: .85; white-space: nowrap; }
.pa__ev b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa__ev .pa__who { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; font-weight: 600; opacity: 1; }
.pa__ev .pa__who svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.pa__ev--orange { --c: #f7941d; --t: #2b1a05; }

/* ============ Pages fonctionnalités : scène iPad + iPhone en mouvement (_device-scene) ============ */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/nunito-latin.woff2') format('woff2'); }
.page-hero--scene .page-hero__inner { grid-template-columns: 1fr 1.1fr; }
/* la scène est dessinée à 580 × 480 px (.scene__in) puis réduite (--z) ; .scene garde la place réduite et reçoit l'animation d'apparition */
.scene { --z: 1; position: relative; justify-self: end; width: calc(580px * var(--z)); height: calc(480px * var(--z)); }
.scene__in { position: absolute; left: 0; top: 0; width: 580px; height: 480px; transform: scale(var(--z)); transform-origin: 0 0; }
.page-hero--scene .page-hero__inner > * { min-width: 0; }
.scene__toast { position: absolute; display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 16px 11px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 24px 40px -18px rgba(31, 31, 84, .7); }
@media (max-width: 1199px) { .scene { --z: .82; } }
@media (max-width: 991px) { .page-hero--scene .page-hero__inner { grid-template-columns: 1fr; } .scene { justify-self: center; --z: .9; } }
@media (max-width: 640px) { .scene { justify-self: center; --z: .54; } }
@media (max-width: 360px) { .scene { --z: .48; } }
/* iPad Pro (paysage) : contour aluminium, bord noir fin, caméra au centre du grand côté */
.ipad { position: absolute; left: 0; top: 40px; width: 470px; aspect-ratio: 4 / 3; padding: 3px; border-radius: 30px; background: linear-gradient(145deg, #e9e9ec, #a7a8ae 30%, #dcdde1 55%, #9a9ba1 80%, #d8d9dd); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18), 0 60px 90px -40px rgba(31, 31, 84, .55), 0 26px 36px -26px rgba(0, 0, 0, .35); animation: mvB 7s ease-in-out infinite; }
.ipad::before { content: ""; position: absolute; inset: 3px; border-radius: 27px; background: #0b0b0d; }
.ipad__cam { position: absolute; z-index: 2; top: 9px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #3a4a6a, #0b0b0d 70%); }
.ipad__screen { position: absolute; inset: 18px; overflow: hidden; border-radius: 14px; background: #fff; }
.ipad__screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ipad__screen::after, .iph__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 35%); }

/* iPhone 15 Pro : titane naturel, Dynamic Island, boutons */
.iph { position: absolute; z-index: 2; right: 10px; top: 0; width: 220px; aspect-ratio: 71.6 / 147.6; padding: 3px; border-radius: 42px; background: linear-gradient(140deg, #e6e3dc 0%, #9d9a93 22%, #d6d3cc 48%, #8a8781 74%, #cfccc5 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 50px 70px -34px rgba(31, 31, 84, .6), 0 24px 30px -24px rgba(0, 0, 0, .35); animation: mvA 6s ease-in-out infinite; }
.iph__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #8a8781, #d6d3cc 60%, #9d9a93); }
.iph__btn--a { left: -2px; top: 17%; height: 5%; } .iph__btn--u { left: -2px; top: 25%; height: 9%; } .iph__btn--d { left: -2px; top: 36%; height: 9%; } .iph__btn--p { right: -2px; top: 29%; height: 14%; }
.iph__screen { position: relative; height: 100%; overflow: hidden; border: 8px solid #0a0a0c; border-radius: 39px; background: #f5f5f5; }
.iph__status { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 18px 0 24px; color: #fff; font: 600 12px/1 -apple-system, 'Segoe UI', sans-serif; }
.iph__island { width: 34%; height: 21px; border-radius: 999px; background: #000; }
.iph__ico { display: flex; align-items: flex-end; gap: 1.5px; }
.iph__ico i { display: block; width: 2.5px; border-radius: 1px; background: #fff; }
.iph__ico i:nth-child(1) { height: 4px; } .iph__ico i:nth-child(2) { height: 6px; } .iph__ico i:nth-child(3) { height: 8px; } .iph__ico i:nth-child(4) { height: 10px; margin-right: 5px; }
.iph__bat { width: 20px; height: 10px; border: 1.2px solid rgba(255, 255, 255, .6); border-radius: 3px; box-shadow: inset 0 0 0 1.2px #343a40, inset 0 0 0 10px #fff; }

/* interface mobile eKo, reproduite d'après l'application (Nunito, barre sombre, cartes bordées) */
.em { font-family: 'Nunito', sans-serif; color: #212529; font-size: 10.5px; background: #f5f5f5; min-height: 100%; }
.em svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.em svg.f, .em .ico { fill: currentColor; stroke: none; }
.em-bar { display: flex; gap: 5px; padding: 40px 8px 7px; background: #343a40; }
.em-btn { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: #23272b; color: #fff; }
.em-btn .ico { width: 11px; height: 11px; }
.em-sp { flex: 1; }
.em-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px; background: #fff; font-size: 13.5px; font-weight: 800; }
.em-head .ico { width: 14px; height: 14px; }
.em-kpi { margin: 8px 8px 7px; padding: 8px 10px; border: 1px solid #f5bd1f; border-radius: 6px; background: #fffdf5; }
.em-kpi small { display: block; color: #8a6d1d; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; }
.em-kpi b { font-size: 17px; font-weight: 800; }
.em-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 8px 7px; border-radius: 6px; overflow: hidden; background: #e9ecef; font-weight: 700; font-size: 9.5px; text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.em-tabs span { padding: 5px 2px; }
.em-tabs .is-on { background: #343a40; color: #fff; }
.em-card { margin: 0 8px 6px; padding: 7px 9px; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; }
.em-card p { margin: 0; }
.em-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px !important; }
.em-row b { font-size: 11px; font-weight: 800; }
.em-badge { flex: none; padding: 1px 6px; border-radius: 4px; font-size: 8.5px; font-weight: 700; white-space: nowrap; }
.em-badge--warn { background: #fff3cd; color: #8a6d1d; }
.em-badge--info { background: #e7f1ff; color: #2f6ad9; }
.em-badge--ok { background: #d1e7dd; color: #146c43; }
.em-badge--late { background: #f8d7da; color: #b02a37; }
.em-badge--grey { background: #e9ecef; color: #495057; }
.em-line { display: flex; align-items: center; gap: 5px; color: #495057; }
.em-line .ico { width: 10px; height: 10px; color: #868e96; }
.em-line--muted { color: #868e96; }
.em-when { display: flex; align-items: center; gap: 5px; margin-top: 4px !important; padding-top: 4px; border-top: 1px solid #f1f3f5; color: #e09400; font-weight: 600; }
.em-when .ico { width: 10px; height: 10px; }
.em-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 12px 10px; background: #343a40; color: #fff; font-size: 10px; }
.em-foot b { font-size: 12px; } .em-foot span { color: #f5bd1f; } .em-foot em { margin-left: auto; font-style: normal; color: #f5bd1f; }

/* mouvement */
@keyframes mvA { 0%, 100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-14px) rotate(2.5deg); } }
@keyframes mvB { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(12px) rotate(-3.5deg); } }
@keyframes mvT { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.scene__toast { left: 40px; bottom: 10px; z-index: 3; animation: mvT 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ipad, .iph, .scene__toast { animation: none; } }

/* Vue MacBook seule (_pc-scene) : bord noir fin, encoche, base aluminium */
.mbp { position: absolute; left: 10px; top: 40px; width: 560px; animation: mvB 7s ease-in-out infinite; filter: drop-shadow(0 40px 40px rgba(31, 31, 84, .35)); }
.mbp__lid { position: relative; padding: 2px; border-radius: 20px 20px 4px 4px; background: linear-gradient(145deg, #d9dadf, #9a9ba1 40%, #c9cacf); }
.mbp__lid::before { content: ""; position: absolute; inset: 2px; border-radius: 18px 18px 3px 3px; background: #0b0b0d; }
.mbp__notch { position: absolute; z-index: 2; top: 2px; left: 50%; width: 84px; height: 12px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #0b0b0d; }
.mbp__screen { position: relative; margin: 12px 12px 14px; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 6px; background: #fff; }
.mbp__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mbp__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 35%); }
.mbp__base { position: relative; height: 16px; margin: 0 -8%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#e4e5e9 0%, #c3c4ca 55%, #9fa0a6 100%); box-shadow: inset 0 1px 0 #f5f5f7; }
.mbp__base span { position: absolute; top: 0; left: 50%; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: linear-gradient(#b8b9bf, #d0d1d6); }
.scene--pc .scene__toast { left: 30px; bottom: 40px; }
@media (prefers-reduced-motion: reduce) { .mbp { animation: none; } }

/* ============ Page 404 : « Vous êtes perdu ? eKo peut vous guider » ============ */
.lost { position: relative; overflow: hidden; padding: 150px 0 clamp(64px, 8vw, 110px); text-align: center; }
.lost__inner { position: relative; max-width: 860px; }
.lost__title { margin: 0 0 18px; font-size: clamp(36px, 5.6vw, 66px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.lost__lead { max-width: 560px; margin: 0 auto 34px; font-size: 18px; color: var(--muted); }
.lost__map { position: relative; margin: 0 auto 34px; padding: 10px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(31, 31, 84, .45); }
.lost__svg { display: block; width: 100%; height: auto; }
.lost__route { stroke-dashoffset: 0; animation: lost-route 1.2s linear infinite; }
@keyframes lost-route { to { stroke-dashoffset: -28; } }
.lost__van { offset-path: path('M70 196 C 150 196, 150 120, 230 118 S 330 60, 370 118 S 470 200, 520 120 S 590 70, 580 60'); offset-rotate: auto; animation: lost-van 9s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes lost-van {
    0% { offset-distance: 0%; }
    28%, 40% { offset-distance: 38%; }      /* arrêt au carrefour : hésitation */
    46% { offset-distance: 33%; }           /* petite marche arrière */
    92%, 100% { offset-distance: 100%; }
}
.lost__doubt { transform-box: fill-box; transform-origin: center; animation: lost-doubt 9s ease-in-out infinite; }
@keyframes lost-doubt { 0%, 24% { opacity: 0; scale: .4; } 30%, 44% { opacity: 1; scale: 1; rotate: -10deg; } 37% { rotate: 12deg; } 50%, 100% { opacity: 0; scale: .4; } }
.lost__pulse { transform-box: fill-box; transform-origin: center; animation: lost-pulse 1.8s ease-out infinite; }
@keyframes lost-pulse { from { scale: .6; opacity: .45; } to { scale: 2.2; opacity: 0; } }
.lost__pin { animation: lost-pin 9s ease-in-out infinite; }
@keyframes lost-pin { 0%, 88% { translate: 0 0; } 92% { translate: 0 -12px; } 96% { translate: 0 0; } }
.lost__gps { position: absolute; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 14px 30px -14px rgba(31, 31, 84, .6); }
.lost__gps-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); animation: lost-dot 9s steps(1) infinite; }
.lost__gps-a, .lost__gps-b { animation: lost-gps-a 9s steps(1) infinite; }
.lost__gps-b { display: none; animation-name: lost-gps-b; }
@keyframes lost-gps-a { 0%, 49% { display: inline; } 50%, 100% { display: none; } }
@keyframes lost-gps-b { 0%, 49% { display: none; } 50%, 100% { display: inline; } }
@keyframes lost-dot { 0%, 49% { background: var(--yellow); } 50%, 100% { background: #22a07a; } }
.lost__links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; text-align: left; }
.lost__links a { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 700; font-size: 15px; transition: box-shadow .25s, transform .25s; }
.lost__links a:hover, .lost__links a:focus-visible { box-shadow: inset 0 0 0 1px var(--violet), 0 16px 30px -18px rgba(112, 74, 241, .6); }
.lost__links .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--violet); }
.lost__links small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
@media (max-width: 900px) { .lost__links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lost { padding-top: 120px; } .lost__links { grid-template-columns: 1fr; } .lost__gps { position: static; margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) {
    .lost__route, .lost__van, .lost__doubt, .lost__pulse, .lost__pin, .lost__gps-dot, .lost__gps-a, .lost__gps-b { animation: none; }
    .lost__van { offset-distance: 100%; } .lost__doubt { opacity: 0; } .lost__gps-a { display: none; } .lost__gps-b { display: inline; } .lost__gps-dot { background: #22a07a; }
}

/* Pages légales (mentions, CGV, cookies) : le texte commence juste sous le titre */
.page-hero:has(+ .legal) { padding-bottom: clamp(12px, 1.6vw, 24px); }
.legal__body > :first-child { margin-top: 0; }
