/* ==========================================================================
   e-Tijara PRO — feuille de style principale
   Identité conservée : menthe / cyan / jaune #ffc107 / bleu canard #1b3c45 / Cairo
   Propriétés logiques (inline-start/end) => fonctionne en LTR et en RTL.
   ========================================================================== */

:root {
  --ink: #1b3c45;
  --ink-2: #2b525d;
  --text: #24363d;
  --muted: #5d7077;
  --line: #dcebe8;
  --bg: #f4fffb;
  --surface: #ffffff;
  --alt: #e7f8fa;
  --yellow: #ffc107;
  --yellow-2: #ffb300;
  --yellow-soft: #fff4cc;
  --mint: #5fd5b6;
  --lime: #d0f224;
  --cyan: #79dfff;
  --green: #1fa855;
  --red: #d93848;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(27, 60, 69, .06), 0 2px 8px rgba(27, 60, 69, .05);
  --shadow: 0 10px 30px rgba(27, 60, 69, .08);
  --shadow-lg: 0 24px 60px rgba(27, 60, 69, .14);
  --container: 1200px;
  --header-h: 72px;
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: rgba(27, 60, 69, .35); text-underline-offset: 3px; }
a:hover { color: #0f2a31; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; cursor: pointer; }
[dir="rtl"] body { font-size: 18px; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 1.5rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.4em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #1a1a1a; box-shadow: 0 6px 18px rgba(255, 179, 0, .35); }
.btn-primary:hover { background: var(--yellow-2); color: #000; box-shadow: 0 10px 24px rgba(255, 179, 0, .45); }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.btn-lg { padding: .9em 1.7em; font-size: 1.06rem; }
.btn-sm { padding: .5em 1.05em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn small { font-weight: 500; opacity: .7; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-align: start; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow:hover { gap: .65em; }
.link-arrow i { font-size: .85em; transition: transform .2s; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(27, 60, 69, .08); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: .98rem; }
.main-nav a:hover { background: var(--alt); }
.main-nav a[aria-current="page"] { background: var(--yellow-soft); color: #6b4f00; }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-login { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; padding: 8px 10px; border-radius: 999px; font-size: .95rem; }
.header-login:hover { background: var(--alt); }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; cursor: pointer; background: #fff; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary img, .lang-menu li img { border-radius: 3px; display: inline-block; }
.lang-menu .chev { font-size: .65rem; opacity: .6; transition: transform .2s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; }
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.lang-menu li a:hover { background: var(--alt); }
.lang-menu li a[aria-current="true"] { background: var(--yellow-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; position: relative; }
.nav-toggle span { position: absolute; inset-inline-start: 12px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .header-login span { display: none; }
  .main-nav a { padding: 8px 10px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-block; }
  .header-login, .lang-menu { display: none; }
  .header-actions { margin-inline-start: auto; }
  .main-nav { position: absolute; top: 100%; inset-inline: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff; padding: 20px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 16px; font-size: 1.1rem; border-radius: 12px; }
  .nav-mobile-extra { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
  .nav-mobile-langs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
  .nav-mobile-langs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
  .nav-mobile-langs a[aria-current="true"] { background: var(--yellow-soft); border-color: var(--yellow); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .header-cta { padding: .5em .8em; font-size: .85rem; }
  .brand img { height: 34px; }
}

/* ---------- Fond animé du hero (identité existante, adoucie) ---------- */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(60% 70% at 8% 10%, rgba(95, 213, 182, .55), transparent 60%),
  radial-gradient(40% 50% at 92% 4%, rgba(208, 242, 36, .45), transparent 60%),
  radial-gradient(60% 60% at 70% 90%, rgba(121, 223, 255, .45), transparent 65%),
  linear-gradient(180deg, #f4fffb 0%, #f4fffb 100%);
  background-size: 140% 140%; animation: bgShift 18s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .5) 1.5px, transparent 2px); background-size: 46px 46px; mask-image: linear-gradient(180deg, #000 30%, transparent); }
@keyframes bgShift { from { background-position: 0% 0%; } to { background-position: 100% 60%; } }

/* ---------- Hero accueil ---------- */
.hero { position: relative; isolation: isolate; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .hl { position: relative; white-space: nowrap; z-index: 0; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: -4px; bottom: .08em; height: .38em; background: var(--yellow); opacity: .55; border-radius: 6px; z-index: -1; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(255, 193, 7, .6); color: #6b4f00; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.hero-chips i { color: var(--green); margin-inline-end: 4px; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 40px rgba(27, 60, 69, .18)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-actions, .hero-chips { justify-content: center; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
}

/* ---------- Bandeau chiffres ---------- */
.stats-band { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 26px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--yellow); line-height: 1.2; font-weight: 800; }
.stat span { font-size: .95rem; opacity: .9; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--alt); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head .lead { color: var(--ink-2); }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: none; text-align: start; margin-bottom: 28px; }
.section-head-row h2 { margin: 0; }
.section-outro { max-width: 760px; margin: 44px auto 0; text-align: center; font-size: 1.1rem; }
.section-outro strong { color: var(--ink); background: linear-gradient(transparent 62%, rgba(255, 193, 7, .45) 0); }
.kicker { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: #b07f00; margin-bottom: 10px; }
[dir="rtl"] .kicker { letter-spacing: .02em; }
@media (max-width: 700px) { .section { padding: 56px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- Cartes ---------- */
.cards-grid { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.feature-card, .pillar-card { transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover, .pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card p, .pillar-card p { color: var(--muted); margin: 0; }
.pillar-card { text-align: center; }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--yellow); color: #1a1a1a; font-size: 1.3rem; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(255, 179, 0, .3); }
.icon-badge-lg { width: 64px; height: 64px; border-radius: 50%; font-size: 1.6rem; }
.icon-badge-soft { background: var(--alt); color: var(--ink); box-shadow: none; }
.integration-card { display: flex; gap: 16px; align-items: flex-start; }
.integration-card .icon-badge { flex-shrink: 0; margin: 0; }
.integration-card h3 { margin-bottom: .25em; font-size: 1.08rem; }
.integration-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Listes à coches ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 32px; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check-list-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .check-list-2 { grid-template-columns: 1fr; } }

/* ---------- Blocs image / texte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.split:last-of-type { margin-bottom: 40px; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); }
.split-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .split-reverse .split-media { order: 0; }
}

/* ---------- Vitrine vidéo ---------- */
.showcase { display: grid; grid-template-columns: 1.15fr .8fr 1fr; gap: 20px; align-items: end; margin-bottom: 36px; }
.showcase-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 8px; box-shadow: var(--shadow-sm); }
.showcase-item video { width: 100%; border-radius: 10px; aspect-ratio: auto; background: #fff; }
.showcase-item figcaption { text-align: center; font-weight: 700; color: var(--muted); font-size: .9rem; padding-top: 6px; }
@media (max-width: 800px) { .showcase { grid-template-columns: 1fr 1fr; } .showcase-desktop { grid-column: 1 / -1; } }

/* ---------- Tarifs ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-principle { display: flex; flex-direction: column; align-items: flex-start; }
.pricing-principle .btn { margin-top: auto; }
.rule-badge { display: inline-block; background: var(--ink); color: var(--yellow); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .95rem; }
.tagline { font-weight: 800; color: #b07f00; font-size: 1.1rem; }
.bonus-line { background: var(--yellow-soft); border-radius: 12px; padding: 10px 14px; font-weight: 600; color: #5d4500; width: 100%; }
.bonus-line i { margin-inline-end: 6px; }
.pricing-sim { text-align: center; }
.sim-result { background: linear-gradient(135deg, #fffaf0, #f2fdf9); border: 1px dashed rgba(27, 60, 69, .2); border-radius: 14px; padding: 18px; margin: 16px 0 22px; }
.sim-result p { margin: 0; }
.sim-qty { font-size: 1.1rem; color: var(--muted); }
.sim-qty strong { color: var(--ink); font-size: 1.5rem; }
.sim-total { display: flex; justify-content: center; align-items: baseline; gap: 10px; }
.sim-total > span:first-child { color: var(--muted); }
.sim-total strong { font-size: 2.3rem; color: var(--ink); line-height: 1.2; }
.sim-unit { color: var(--muted); font-weight: 600; }
.pricing-sim input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--yellow) var(--fill, 8%), #e4ecea var(--fill, 8%)); outline: none; }
[dir="rtl"] .pricing-sim input[type=range] { background: linear-gradient(-90deg, var(--yellow) var(--fill, 8%), #e4ecea var(--fill, 8%)); }
.pricing-sim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); border: 5px solid var(--yellow); cursor: pointer; box-shadow: var(--shadow-sm); }
.pricing-sim input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 5px solid var(--yellow); cursor: pointer; }
.sim-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.sim-rule { margin: 18px 0 0; font-weight: 700; color: var(--ink); }
.sim-rule i { color: var(--green); }
.pricing-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .pricing-details { grid-template-columns: 1fr; } }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.price-table th, .price-table td { padding: 12px 10px; text-align: start; border-bottom: 1px solid var(--line); }
.price-table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.price-table tbody tr:hover { background: #fbfefd; }

/* ---------- Témoignages ---------- */
.testimonials-grid { columns: 3 300px; column-gap: 22px; }
.testimonial { break-inside: avoid; margin: 0 0 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.testimonial blockquote { margin: 10px 0 18px; }
.testimonial blockquote p { margin: 0; font-size: 1.02rem; color: var(--text); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); }
.testimonial figcaption strong { display: block; color: var(--ink); line-height: 1.2; }
.testimonial figcaption small { color: var(--muted); }
.stars { color: var(--yellow-2); font-size: .9rem; letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: 48px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-intro p { color: var(--muted); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 24px; } .faq-intro { position: static; text-align: center; } }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: rgba(255, 193, 7, .7); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--alt); position: relative; transition: background .2s, transform .25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq-item[open] .faq-icon { background: var(--yellow); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq-answer p { margin: 0; }

/* ---------- Bandeau CTA ---------- */
.cta-band { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 32px 40px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-inline-end: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 193, 7, .35), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; opacity: .88; }
.cta-mascot { width: 120px; height: auto; }
.cta-band-actions { display: flex; flex-direction: column; gap: 10px; position: relative; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-band .btn-ghost:hover { border-color: #fff; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; justify-items: center; } .cta-mascot { width: 100px; } }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { position: relative; isolation: isolate; padding: 52px 0 56px; text-align: center; overflow: hidden; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 720px; margin-inline: auto; margin-bottom: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Aide : canaux ---------- */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .channels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }
.channel { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); text-align: start; transition: transform .2s, box-shadow .2s; }
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.channel strong, .help-list strong { display: block; color: var(--ink); line-height: 1.3; }
.channel small, .help-list small { color: var(--muted); font-size: .85rem; }
.help-ico { flex-shrink: 0; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem; }
.ico-wa { background: #e3f8ea; color: #128c3e; }
.ico-yt { background: #fde8e8; color: #d0101a; }
.ico-faq { background: var(--alt); color: var(--ink); }
.ico-mail { background: var(--yellow-soft); color: #8a6500; }

/* ---------- Bouton « Aide » unique ---------- */
.help-widget { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.help-fab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; border: 1px solid rgba(27, 60, 69, .12); background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 10px 28px rgba(27, 60, 69, .28); transition: transform .2s, background .2s; }
[dir="rtl"] .help-fab { padding: 10px 14px 10px 18px; }
.help-fab:hover { transform: translateY(-2px); background: #133037; }
.help-fab i { color: var(--yellow); font-size: 1.15rem; }
.help-panel { width: min(340px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: bottom right; animation: popIn .18s ease-out; }
[dir="rtl"] .help-panel { transform-origin: bottom left; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.help-panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; }
.help-panel-title { margin: 0; font-weight: 800; font-size: 1.1rem; }
.help-panel-sub { margin: 0; font-size: .9rem; opacity: .85; }
.help-close { background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.help-list { list-style: none; margin: 0; padding: 8px; }
.help-list a, .help-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--text); background: none; border: 0; text-align: start; }
.help-list a:hover, .help-list button:hover { background: var(--bg); }
@media (max-width: 520px) {
  .help-widget { inset-inline-end: 14px; bottom: 14px; }
  .help-fab span { display: none; }
  .help-fab, [dir="rtl"] .help-fab { padding: 0; width: 48px; height: 48px; justify-content: center; }
}

/* ---------- Modale vidéo ---------- */
.video-modal { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 16px; background: #000; overflow: visible; }
.video-modal::backdrop { background: rgba(10, 25, 30, .78); backdrop-filter: blur(3px); }
.video-frame { position: relative; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; }
.video-close { position: absolute; top: -44px; inset-inline-end: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.1rem; }

/* ---------- Inscription ---------- */
.signup-section { position: relative; isolation: isolate; background: linear-gradient(180deg, var(--alt), #f2fcf8); }
.signup-page { background: none; padding-top: 48px; overflow: hidden; }
.signup-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.signup-aside { text-align: center; }
.signup-aside img { margin-inline: auto; width: 260px; animation: floaty 5s ease-in-out infinite; }
.signup-page .signup-aside { text-align: start; }
.signup-page .signup-aside img { margin-inline: 0; width: 160px; margin-bottom: 12px; }
@media (max-width: 900px) {
  .signup-layout { grid-template-columns: 1fr; gap: 20px; }
  .signup-section:not(.signup-page) .signup-aside { display: none; }
  .signup-page .signup-aside { text-align: center; }
  .signup-page .signup-aside img { margin-inline: auto; width: 120px; }
  .signup-page .signup-aside .check-list { display: none; }
}
.signup-card { background: #fff; border-radius: 24px; border: 2px solid rgba(255, 193, 7, .65); box-shadow: var(--shadow-lg); padding: 32px; position: relative; }
.signup-head { text-align: center; margin-bottom: 22px; }
.signup-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .25em; }
.signup-head p { color: var(--muted); margin: 0; }
.gift-badge { display: inline-block; background: var(--yellow-soft); color: #6b4f00; font-weight: 800; border-radius: 999px; padding: 6px 16px; margin-bottom: 12px !important; }
.signup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.signup-form .field:first-child, .signup-form .check, .signup-form .captcha-slot, .signup-form button, .signup-points, .signup-trust { grid-column: 1 / -1; }
@media (max-width: 600px) { .signup-form { grid-template-columns: 1fr; } .signup-card { padding: 24px 18px; } }
.field { display: grid; gap: 6px; position: relative; }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfe0dc; border-radius: 12px; background: #fbfefd; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27, 60, 69, .1); background: #fff; }
.field .is-invalid, .field input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 56, 72, .1); }
.field-error { color: var(--red); font-size: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; }
.form .btn { justify-self: start; }
.tel-msg { font-size: .85rem; font-weight: 600; }
.tel-ok { color: var(--green); }
.tel-ko { color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--yellow-2); flex-shrink: 0; }
.check a { font-weight: 700; }
.captcha-slot { display: flex; justify-content: center; min-height: 78px; }
.signup-points { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.signup-points i { color: var(--green); }
.signup-trust { text-align: center; color: var(--muted); font-size: .9rem; margin: 0; }
.signup-trust .stars { margin-inline-end: 4px; }
/* intl-tel-input (ancienne version jQuery) */
.intl-tel-input { width: 100%; display: block; }
.intl-tel-input .flag-container { direction: ltr; }
.intl-tel-input.separate-dial-code .selected-flag { background: #eef6f4; border-radius: 12px 0 0 12px; }
.intl-tel-input .country-list { z-index: 20; max-width: 320px; white-space: normal; border-radius: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.contact-quick { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.contact-quick a, .contact-quick button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 10px 12px; border: 1px solid var(--line, #e3ece9); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.contact-quick a:hover, .contact-quick button:hover { border-color: var(--yellow); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 60, 69, .08); }
.contact-quick i, .contact-quick svg { font-size: 1.3rem; color: var(--yellow-2); flex: none; width: 24px; text-align: center; }
.contact-quick span { display: flex; flex-direction: column; line-height: 1.35; }
.contact-quick small { color: var(--muted); font-size: .85rem; }
.alert { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.alert-success { background: #e3f8ea; color: #116b33; }
.alert-error { background: #fde8ea; color: #9b1c2a; }

/* ---------- Blog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.chips a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a small { color: var(--muted); margin-inline-start: 2px; }
.chips a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips a[aria-current="page"] small { color: rgba(255, 255, 255, .7); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--alt); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: 1.15rem; margin-bottom: .45em; }
.post-card-body h3 a { text-decoration: none; color: var(--ink); }
.post-card-body h3 a:hover { text-decoration: underline; }
.post-card-body p { color: var(--muted); font-size: .96rem; }
.post-card-body .link-arrow { margin-top: auto; font-size: .95rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--yellow-soft); color: #6b4f00; font-weight: 700; font-size: .8rem; text-decoration: none; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pagination a { min-width: 42px; text-align: center; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { text-align: center; padding: 40px 0; color: var(--muted); font-size: 1.1rem; }
.empty-state img { margin: 0 auto 12px; }

.post-header { position: relative; isolation: isolate; padding: 48px 0 36px; overflow: hidden; text-align: center; }
.post-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.post-header .post-meta { justify-content: center; }
.post-cover { margin: 0 0 36px; }
.post-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1200 / 630; object-fit: cover; }
.prose { font-size: 1.1rem; line-height: 1.8; color: #22333a; }
.prose h2 { font-size: 1.65rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose img { border-radius: 14px; margin: 1.5em auto; }
.prose a { color: #0e5d73; font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding: 12px 22px; border-inline-start: 4px solid var(--yellow); background: #fffbea; border-radius: 0 12px 12px 0; }
[dir="rtl"] .prose blockquote { border-radius: 12px 0 0 12px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose pre { background: #0f2a31; color: #e8f4f2; padding: 16px; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.post-share { display: flex; align-items: center; gap: 10px; margin: 36px 0; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.post-share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--alt); text-decoration: none; }
.post-share a:hover { background: var(--yellow); }
.post-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--yellow-soft); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 64px; }
.post-cta-title { font-weight: 800; color: var(--ink); font-size: 1.15rem; margin: 0; }
.post-cta p { margin: 0; }
@media (max-width: 700px) { .post-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- Pages légales ---------- */
.legal-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 36px 28px; box-shadow: var(--shadow-sm); }
.legal-doc section + section { border-top: 1px solid var(--line); }
.legal-doc h2 { font-size: 1.3rem; margin-top: 1.4em; }
@media (max-width: 600px) { .legal-doc { padding: 6px 20px 20px; } }

.notfound img { margin: 0 auto 12px; }

/* ---------- Pied de page ---------- */
.site-footer { background: #10272d; color: #c9d7d5; padding: 64px 0 0; font-size: .96rem; }
.site-footer a { color: #e6f0ee; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 160px; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 16px; }
.footer-title, .footer-social-title { color: #fff; font-weight: 800; margin-bottom: 14px; }
.footer-social-title { margin: 18px 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .link-btn { color: #e6f0ee; }
.site-footer .link-btn:hover { color: var(--yellow); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.social { display: flex !important; gap: 10px !important; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--yellow); color: #1a1a1a; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 88px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .muted { color: #8fa5a2; }
.footer-legal { display: flex !important; flex-wrap: wrap; gap: 6px 18px !important; }

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Grilles : empêcher un contenu long (select des pays…) d'élargir la page */
.signup-layout > *, .signup-form > *, .hero-grid > *, .split > *, .pricing-grid > *, .contact-grid > *, .faq-layout > * { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }

/* intl-tel-input : liste des pays plus large */
.intl-tel-input .country-list { min-width: 300px; max-height: 260px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.intl-tel-input .country-list .country { padding: 7px 12px; }

/* ==========================================================================
   Animations & fluidité (désactivées si l'utilisateur préfère moins de mouvement)
   ========================================================================== */

/* Transitions douces entre les pages (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .32s cubic-bezier(.2, .8, .2, 1) both; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* Barre de progression de lecture */
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; z-index: 200; background: linear-gradient(90deg, var(--yellow), var(--mint)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* En-tête : se compacte au défilement */
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.header-inner { transition: height .3s ease; }
.brand img { transition: height .3s ease; }
.is-scrolled .site-header { box-shadow: 0 8px 30px rgba(27, 60, 69, .08); background: rgba(255, 255, 255, .94); }
@media (min-width: 961px) {
  .is-scrolled .header-inner { height: 60px; }
  .is-scrolled .brand img { height: 38px; }
}

/* Menu : soulignement animé */
.main-nav a { position: relative; transition: background-color .2s, color .2s; }
@media (min-width: 961px) {
  .main-nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--yellow-2); transform: scaleX(0); transition: transform .25s ease; }
  .main-nav a:hover { background: transparent; }
  .main-nav a:hover::after { transform: scaleX(1); }
  .main-nav a[aria-current="page"]::after { transform: scaleX(0); }
}
/* Menu mobile : liens qui glissent un par un */
@media (max-width: 960px) {
  .main-nav li, .nav-mobile-extra { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
  .nav-open .main-nav li, .nav-open .nav-mobile-extra { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(2) { transition-delay: .04s; } .nav-open .main-nav li:nth-child(3) { transition-delay: .08s; }
  .nav-open .main-nav li:nth-child(4) { transition-delay: .12s; } .nav-open .main-nav li:nth-child(5) { transition-delay: .16s; }
  .nav-open .nav-mobile-extra { transition-delay: .2s; }
}

/* Boutons : reflet lumineux + léger enfoncement au clic */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; inset-inline-start: -60%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); z-index: -1; transition: none; }
.btn-primary:hover::after { inset-inline-start: 120%; transition: inset-inline-start .7s ease; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-shine::after { animation: shineLoop 4.5s ease-in-out 2s infinite; }
@keyframes shineLoop { 0%, 70% { inset-inline-start: -60%; } 100% { inset-inline-start: 130%; } }

/* Cartes : survol plus vivant */
.icon-badge { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.card:hover .icon-badge, .channel:hover .help-ico { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.help-ico { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.post-card-media { overflow: hidden; display: block; }
.post-card-media img { transition: transform .6s ease; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.split-media img { transition: transform .6s ease; }
.split-media:hover img { transform: scale(1.02); }
.testimonial { transition: transform .3s ease, box-shadow .3s ease; }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.link-arrow i { transition: transform .25s ease; }
.link-arrow:hover i { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover i { transform: translateX(-4px); }

/* Apparition au défilement (seulement si JS actif : sinon tout reste visible) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.reveal-left { transform: translateX(-36px); }
.js .reveal.reveal-right { transform: translateX(36px); }
.js .reveal.reveal-zoom { transform: scale(.94); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero : entrée en cascade */
.js .hero-text > * { animation: heroIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-text > :nth-child(1) { animation-delay: .05s; }
.js .hero-text > :nth-child(2) { animation-delay: .15s; }
.js .hero-text > :nth-child(3) { animation-delay: .28s; }
.js .hero-text > :nth-child(4) { animation-delay: .4s; }
.js .hero-text > :nth-child(5) { animation-delay: .52s; }
.js .hero-visual { animation: heroVisual 1s cubic-bezier(.2, .7, .2, 1) .2s backwards; }
.js .page-hero .container > *, .js .post-header .container > * { animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) both; }
.js .page-hero .container > :nth-child(2), .js .post-header .container > :nth-child(2) { animation-delay: .08s; }
.js .page-hero .container > :nth-child(3), .js .post-header .container > :nth-child(3) { animation-delay: .16s; }
.js .page-hero .container > :nth-child(4) { animation-delay: .24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes heroVisual { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.hero h1 .hl::after { transform-origin: left; animation: hlGrow .8s cubic-bezier(.2, .7, .2, 1) .7s both; }
[dir="rtl"] .hero h1 .hl::after { transform-origin: right; }
@keyframes hlGrow { from { transform: scaleX(0); } }
.hero-visual { will-change: transform; }
.hero-visual .parallax { transition: transform .4s ease-out; }

/* Puces de la FAQ : ouverture fluide */
.faq-answer { overflow: hidden; }
.faq-item summary h3 { transition: color .2s; }
.faq-item:hover summary h3 { color: #0f2a31; }

/* Bouton Aide : petite invitation après quelques secondes */
.help-fab.nudge { animation: nudge 1.2s ease 1; }
@keyframes nudge { 0%, 100% { transform: none; } 20% { transform: translateY(-6px); } 40% { transform: translateY(0); } 60% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
.sim-result.pulse { animation: simPulse .35s ease; }
@keyframes simPulse { 50% { transform: scale(1.015); border-color: rgba(255, 179, 0, .6); } }

/* Tableaux d'articles : défilement horizontal sur mobile */
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .95rem; }
.prose thead th { background: var(--alt); color: var(--ink); text-align: start; }
.prose tbody tr:nth-child(even) { background: #fbfefd; }
.prose ol { padding-inline-start: 1.4em; }
.prose em { color: var(--ink-2); }

/* ==========================================================================
   Loader de transition entre les pages
   ========================================================================== */
.page-loader { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; background: radial-gradient(60% 60% at 50% 45%, rgba(255, 255, 255, .92), rgba(244, 255, 251, .86)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.page-loader.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease; }
.pl-center { display: grid; justify-items: center; gap: 18px; transform: scale(.92); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.page-loader.is-active .pl-center { transform: none; }
.pl-logo { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.pl-logo img { width: 60px; height: 60px; position: relative; z-index: 2; animation: plPulse 1.4s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(255, 179, 0, .35)); }
.pl-ring { position: absolute; inset: 0; border-radius: 50%; }
.pl-ring-1 { background: conic-gradient(from 0deg, transparent 0 55%, var(--yellow) 75%, var(--yellow-2) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: plSpin 1s linear infinite; }
.pl-ring-2 { inset: 12px; background: conic-gradient(from 180deg, transparent 0 60%, var(--mint) 80%, var(--cyan) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: plSpin 1.5s linear infinite reverse; }
.pl-ring-1::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 193, 7, .18), transparent); }
.pl-dots { display: flex; gap: 7px; }
.pl-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .25; animation: plDot 1.2s ease-in-out infinite; }
.pl-dots i:nth-child(2) { animation-delay: .15s; } .pl-dots i:nth-child(3) { animation-delay: .3s; }
.pl-bar { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--yellow), var(--mint), var(--cyan)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(255, 193, 7, .6); }
[dir="rtl"] .pl-bar { transform-origin: right; }
.page-loader.is-active .pl-bar { animation: plBar 6s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes plDot { 0%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-5px); background: var(--yellow-2); } }
@keyframes plBar { 0% { transform: scaleX(0); } 20% { transform: scaleX(.45); } 60% { transform: scaleX(.75); } 100% { transform: scaleX(.92); } }
@media (prefers-reduced-motion: reduce) { .pl-ring, .pl-logo img, .pl-dots i { animation-duration: 3s; } }

/* Pays rempli automatiquement */
.field select.auto-filled { border-color: var(--mint); background-color: #f1fcf8; }

/* Messages « numéro valide / invalide » : place réservée → aucun décalage de la mise en page
   (évitait qu'un clic sur la case « J'accepte » tombe à côté au moment où le message apparaît) */
.signup-form { row-gap: 26px; }
.signup-form .field { position: relative; }
.signup-form .tel-msg { position: absolute; top: 100%; inset-inline-start: 2px; margin-top: 3px; line-height: 1.2; white-space: nowrap; }

/* Comment ça marche */
.how-section { padding-top: 64px; background:
  radial-gradient(900px 340px at 10% 0%, rgba(255, 193, 7, .10), transparent 70%),
  radial-gradient(800px 360px at 95% 30%, rgba(31, 168, 85, .08), transparent 70%); }
.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-media { margin: 0; aspect-ratio: 720 / 440; overflow: hidden; background: var(--alt); }
.step-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.step:hover .step-media img { transform: scale(1.04); }
.step-body { position: relative; padding: 20px 22px 24px; }
.step h3 { margin-bottom: .35em; display: flex; align-items: center; gap: 10px; }
.step-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); display: inline-grid; place-items: center; font-size: .95rem; flex: none; }
.step p { color: var(--muted); margin: 0; }
.step-num { position: absolute; top: -26px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; border: 4px solid #fff; box-shadow: 0 6px 14px rgba(27, 60, 69, .2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* « No limits! Just sales! » : bandeau sombre avec visuel */
.about-band { color: #d9e8e5; overflow: hidden; background:
  radial-gradient(700px 420px at 85% 40%, rgba(255, 193, 7, .22), transparent 65%),
  radial-gradient(600px 400px at 0% 100%, rgba(31, 168, 85, .22), transparent 65%),
  linear-gradient(160deg, #163640 0%, #1b3c45 55%, #12303a 100%); }
.about-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px); background-size: 24px 24px; pointer-events: none; }
.about-band h2 { color: #fff; }
.about-band .kicker { color: var(--yellow); }
.about-band .lead { color: #cfe1dd; }
.about-band .lead strong, .about-band strong { color: #fff; }
.about-split { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.about-pillars { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.about-pillars li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(4px); transition: background .25s, transform .25s; }
.about-pillars li:hover { background: rgba(255, 255, 255, .1); transform: translateX(4px); }
[dir="rtl"] .about-pillars li:hover { transform: translateX(-4px); }
.about-pillars li > span:last-child { display: flex; flex-direction: column; gap: 2px; line-height: 1.55; font-size: .97rem; }
.about-pillars .icon-badge { flex: none; }
.about-visual { margin: 0; position: relative; }
.about-visual::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 193, 7, .35), transparent 65%); filter: blur(10px); }
.about-visual img { position: relative; width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.about-outro { position: relative; text-align: center; max-width: 760px; margin: 34px auto 0; font-size: 1.08rem; color: #e6f0ee; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 28px; } .about-visual { max-width: 460px; margin: 0 auto; order: -1; } }

/* « Pourquoi les commerçants choisissent… » : visuel + liste */
.why-section { background:
  linear-gradient(180deg, var(--alt) 0%, #fff 100%); }
.why-section::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(27, 60, 69, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 60, 69, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.why-split { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.why-visual { margin: 0; position: relative; }
.why-visual img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(27, 60, 69, .18)); }
.why-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 16px 8px 10px; font-weight: 800; color: var(--ink); box-shadow: 0 12px 26px rgba(27, 60, 69, .16); animation: float 5s ease-in-out infinite; }
.why-float i { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: .85rem; }
.why-float-1 { top: 8%; inset-inline-start: 2%; }
.why-float-2 { bottom: 10%; inset-inline-end: 4%; animation-delay: -2.5s; }
.why-float-2 i { background: var(--green); color: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.why-split .why-list { grid-template-columns: 1fr 1fr; }
.why-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(255, 193, 7, .6); }
.why-item h3 { font-size: 1.02rem; margin: 0 0 .25em; }
.why-item p { color: var(--muted); margin: 0; font-size: .94rem; line-height: 1.55; }
.why-item .icon-badge { flex: none; }
@media (max-width: 1000px) { .why-split { grid-template-columns: 1fr; } .why-visual { max-width: 480px; margin: 0 auto; } }
@media (max-width: 600px) { .why-split .why-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .why-float { animation: none; } }

/* Encadré « Un crédit, c'est quoi ? » */
.credits-box { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: linear-gradient(135deg, #fffaf0, #f2fdf9); border: 1.5px solid rgba(255, 193, 7, .55); border-radius: var(--radius); padding: 24px 28px; max-width: 920px; margin: 0 auto; }
.credits-box-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--yellow); display: grid; place-items: center; font-size: 1.5rem; color: #1a1a1a; box-shadow: 0 6px 16px rgba(255, 179, 0, .3); }
.credits-box h3 { margin-bottom: .4em; }
.credits-box p { margin: 0 0 .6em; }
.credits-example { font-weight: 700; color: #5d4500; }
.credits-example i { color: var(--yellow-2); margin-inline-end: 4px; }
.credits-note { font-size: .92rem; color: var(--muted); margin: 0 !important; }
@media (max-width: 600px) { .credits-box { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- Page « Bienvenue » (boutique créée) ---------- */
.welcome { padding-block: clamp(40px, 8vw, 90px); overflow-x: clip; }
.welcome-card { position: relative; max-width: 640px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 48px); box-shadow: 0 24px 60px rgba(27, 60, 69, .1); }
.welcome-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .4em; }
.welcome-check { width: 96px; height: 96px; display: block; margin: 0 auto 10px; }
.welcome-check circle { fill: #e9f8ef; stroke: var(--green); stroke-width: 4; stroke-dasharray: 227; stroke-dashoffset: 227; animation: wDraw .7s ease-out forwards; }
.welcome-check path { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: wDraw .45s ease-out .55s forwards; }
@keyframes wDraw { to { stroke-dashoffset: 0; } }
.welcome-sub { color: var(--muted); max-width: 520px; margin: 0 auto 14px; }
.welcome-url { display: inline-flex; gap: 8px; align-items: center; background: var(--yellow-soft); border-radius: 999px; padding: 6px 16px; font-weight: 700; margin-bottom: 8px; }
.welcome-url a { color: #6b4f00; text-decoration: none; }
.welcome-steps { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; text-align: start; }
.welcome-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; opacity: 0; transform: translateY(8px); animation: wIn .5s ease-out forwards; }
.welcome-steps li:nth-child(1) { animation-delay: .7s; } .welcome-steps li:nth-child(2) { animation-delay: .85s; } .welcome-steps li:nth-child(3) { animation-delay: 1s; }
@keyframes wIn { to { opacity: 1; transform: none; } }
.welcome-steps .n { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-weight: 800; }
.welcome-steps span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.welcome-steps small { color: var(--muted); font-size: .9rem; }
.welcome-auto { margin: 14px 0 8px; }
.welcome-progress { height: 5px; border-radius: 99px; background: #e8f1ef; overflow: hidden; }
.welcome-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--green)); animation: wProg 10s linear forwards; }
@keyframes wProg { to { width: 100%; } }
.welcome-burst { position: absolute; top: 80px; left: 50%; pointer-events: none; }
.welcome-burst i { position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--yellow); opacity: 0; animation: wBurst 1.3s ease-out .5s forwards; }
.welcome-burst i:nth-child(3n) { background: var(--green); } .welcome-burst i:nth-child(4n) { background: #4cc9f0; } .welcome-burst i:nth-child(5n) { background: #ff8c42; }
@keyframes wBurst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
.welcome-burst i:nth-child(1) { --x: -150px; --y: -50px; --r: 200deg; } .welcome-burst i:nth-child(2) { --x: 140px; --y: -60px; --r: -160deg; }
.welcome-burst i:nth-child(3) { --x: -90px; --y: -110px; --r: 120deg; } .welcome-burst i:nth-child(4) { --x: 90px; --y: -120px; --r: -220deg; }
.welcome-burst i:nth-child(5) { --x: -190px; --y: 20px; --r: 300deg; } .welcome-burst i:nth-child(6) { --x: 190px; --y: 10px; --r: -90deg; }
.welcome-burst i:nth-child(7) { --x: -40px; --y: -150px; --r: 90deg; } .welcome-burst i:nth-child(8) { --x: 40px; --y: -160px; --r: -300deg; }
.welcome-burst i:nth-child(9) { --x: -140px; --y: 70px; --r: 180deg; } .welcome-burst i:nth-child(10) { --x: 145px; --y: 65px; --r: -180deg; }
.welcome-burst i:nth-child(11) { --x: -220px; --y: -80px; --r: 240deg; } .welcome-burst i:nth-child(12) { --x: 220px; --y: -90px; --r: -240deg; }
.welcome-burst i:nth-child(13) { --x: -70px; --y: 100px; --r: 60deg; } .welcome-burst i:nth-child(14) { --x: 70px; --y: 110px; --r: -60deg; }
.welcome-burst i:nth-child(15) { --x: -250px; --y: -10px; --r: 150deg; } .welcome-burst i:nth-child(16) { --x: 250px; --y: -20px; --r: -150deg; }
@media (prefers-reduced-motion: reduce) { .welcome-burst i, .welcome-steps li, .welcome-progress span { animation: none; opacity: 1; transform: none; } }

/* Mention « HT » discrète à côté des prix */
.ht { white-space: nowrap; font-size: .55em; font-weight: 700; color: var(--muted); vertical-align: super; letter-spacing: .02em; margin-inline-start: 2px; text-transform: none; }
.sim-total strong .ht { font-size: .38em; }
.price-table th .ht { font-size: .75em; vertical-align: baseline; }
.nowrap { white-space: nowrap; }

/* ---------- Inscription : formulaire compact sur téléphone (tient dans l'écran) ---------- */
@media (max-width: 600px) {
  .signup-page { padding-top: 18px; }
  .signup-page .signup-aside img, .signup-page .signup-aside .lead { display: none; }
  .signup-page .signup-aside h1 { font-size: 1.35rem; margin: 0; }
  .signup-section:not(.signup-page) { padding-top: 40px; }
  .signup-card { padding: 18px 16px 16px; border-radius: 20px; }
  .signup-head { margin-bottom: 14px; }
  .signup-head .gift-badge { margin-bottom: 8px !important; padding: 4px 12px; font-size: .82rem; }
  .signup-head h2 { font-size: 1.3rem; margin-bottom: .15em; }
  .signup-head p { font-size: .88rem; line-height: 1.45; }
  .signup-form { row-gap: 16px; }
  .signup-form .field { gap: 3px; }
  .signup-form .field label { font-size: .85rem; }
  .signup-form .field input, .signup-form .field select { padding: 9px 12px; font-size: 16px; /* 16px : évite le zoom iOS */ border-radius: 10px; }
  .signup-form .check { font-size: .86rem; line-height: 1.4; }
  .signup-form .captcha-slot { min-height: 67px; margin: -4px 0; }
  .signup-form .captcha-slot .g-recaptcha { transform: scale(.86); transform-origin: 50% 0; height: 67px; }
  .signup-form .btn-lg { padding: 13px 18px; font-size: 1rem; }
  .signup-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: -4px 0 0; font-size: .78rem; }
  .signup-points li { margin: 0; }
  .signup-trust { font-size: .78rem; margin: 0; }
  .signup-form .tel-msg { font-size: .75rem; }
}

/* ---------- Sélecteur de langue flottant (mobile) ---------- */
.lang-fab { display: none; }
@media (max-width: 960px) {
  .nav-mobile-langs { display: none !important; }
  .lang-fab { display: block; position: fixed; inset-inline-start: 14px; bottom: 14px; z-index: 89; }
  .lang-fab summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(27, 60, 69, .14); box-shadow: 0 10px 28px rgba(27, 60, 69, .2); font-weight: 800; color: var(--ink); cursor: pointer; transition: transform .2s; -webkit-tap-highlight-color: transparent; }
  .lang-fab summary::-webkit-details-marker { display: none; }
  .lang-fab summary:active { transform: scale(.96); }
  .lang-fab summary img, .lang-fab li img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
  .lang-fab .chev { font-size: .7rem; transition: transform .25s; }
  .lang-fab[open] .chev { transform: rotate(180deg); }
  .lang-fab ul { position: absolute; bottom: calc(100% + 10px); inset-inline-start: 0; min-width: 190px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); transform-origin: bottom left; animation: popIn .18s ease-out; }
  [dir="rtl"] .lang-fab ul { transform-origin: bottom right; }
  .lang-fab li a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
  .lang-fab li a span { flex: 1; }
  .lang-fab li a[aria-current="true"] { background: var(--yellow-soft); color: #6b4f00; }
  .lang-fab li a i { color: var(--green); }
  .nav-open .lang-fab { display: none; }
}

/* Mentions fiscales (HT, TVA) : uniquement pour les prix en dinars tunisiens */
html[data-cur]:not([data-cur="TND"]) .tax-only { display: none !important; }
/* Nombres « 2 850 » : toujours lus de gauche à droite, même en arabe */
[data-sim-qty], [data-sim-total], [data-sim-unit], [data-price-total], [data-price-unit] { unicode-bidi: isolate; direction: ltr; }

/* ---------- Accueil : de la commande à l'encaissement ---------- */
.flow-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
.flow-strip li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flow-strip li:not(:last-child)::after { content: ""; position: absolute; top: 42px; inset-inline-end: -14px; width: 14px; height: 2px; background: var(--yellow); }
.flow-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-soft); color: var(--ink); font-size: 18px; }
.flow-strip li:last-child .flow-ic { background: var(--yellow); }
.flow-strip strong { color: var(--ink); font-size: 16px; }
.flow-p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .flow-strip { grid-template-columns: 1fr; gap: 10px; }
  .flow-strip li { flex-direction: row; flex-wrap: wrap; text-align: start; align-items: center; gap: 4px 14px; }
  .flow-strip li:not(:last-child)::after { top: auto; bottom: -10px; inset-inline-end: auto; inset-inline-start: 35px; width: 2px; height: 10px; }
  .flow-p { flex-basis: 100%; padding-inline-start: 62px; }
}

/* ---------- Accueil : circuit d'une commande (« Gérez tout, de la commande au paiement ») ---------- */
.flow { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; }
.flow::before { content: ""; position: absolute; top: 34px; inset-inline: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--yellow), var(--mint)); opacity: .55; }
.flow-step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.flow-ico { position: relative; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 1.45rem; box-shadow: var(--shadow); margin-bottom: 14px; border: 3px solid var(--yellow); }
.flow-ico em { position: absolute; top: -6px; inset-inline-end: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-style: normal; font-size: .8rem; font-weight: 800; }
.flow-step h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.flow-step p { margin: 0 0 .6em; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.flow-more { margin-top: auto; font-weight: 700; font-size: .9rem; }
@media (max-width: 980px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .flow::before { display: none; }
}
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: start; align-items: start; padding: 0 0 22px; position: relative; }
  .flow-step::before { content: ""; position: absolute; top: 58px; bottom: 0; inset-inline-start: 27px; width: 3px; background: var(--yellow); opacity: .45; }
  .flow-step:last-child::before { display: none; }
  .flow-ico { width: 56px; height: 56px; font-size: 1.15rem; grid-row: span 3; margin: 0; }
  .flow-step h3, .flow-step p, .flow-more { grid-column: 2; }
}

/* ---------- Page Fonctionnalités : 8 domaines ---------- */
.fx-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.fx-nav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.fx-nav ul::-webkit-scrollbar { display: none; }
.fx-nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink); white-space: nowrap; }
.fx-nav a:hover, .fx-nav a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fx-domain { scroll-margin-top: calc(var(--header-h) + 60px); }
.fx-domain h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: 0 0 .35em; }
.fx-split { margin-bottom: 0; }
.fx-list li b { color: var(--ink); }
.fx-text { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.fx-intro { position: sticky; top: calc(var(--header-h) + 80px); }
.fx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fx-grid li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); border-inline-start: 4px solid var(--yellow); }
.fx-grid b { color: var(--ink); font-size: 1.02rem; } .fx-grid span { color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (max-width: 900px) {
  .fx-nav ul { justify-content: flex-start; padding-inline: 4px; }
  .fx-text { grid-template-columns: 1fr; gap: 24px; } .fx-intro { position: static; }
}
@media (max-width: 600px) { .fx-grid { grid-template-columns: 1fr; } }
html, body { overflow-x: clip; }   /* aucun défilement horizontal sur mobile (apparitions au défilement, carrousels) — « clip » garde les éléments collants */

/* ---------- Équilibre visuel (v3) ---------- */
/* Démo : trois cartes de même hauteur, légendes alignées en bas */
.showcase { align-items: stretch; }
.showcase-item { display: flex; flex-direction: column; }
.showcase-item video { margin-block: auto; }
.showcase-item figcaption { margin-top: 8px; }
/* Témoignages : grille régulière (plus de colonnes décalées), signatures alignées en bas */
.testimonials-grid { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.testimonial { margin: 0; display: flex; flex-direction: column; }
.testimonial figcaption { margin-top: auto; }
@media (max-width: 980px) { .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }
/* « Pourquoi… » hors de l'accueil : 3 colonnes (6 éléments = 2 lignes pleines) */
.why-list:not(.why-split .why-list) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .why-list:not(.why-split .why-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why-list:not(.why-split .why-list) { grid-template-columns: 1fr; } }
/* Fonctionnalités : un nombre impair de cartes → la dernière prend toute la largeur */
.fx-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Fonctionnalités : écosystème (logos des partenaires) ---------- */
.eco-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.eco-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 104px; padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }
.eco-tile img { max-width: 100%; width: auto; height: 46px; object-fit: contain; }
.eco-tile .eco-name { font-size: .88rem; color: var(--muted); font-weight: 700; line-height: 1.25; }
.eco-tile.no-img .eco-name { font-size: 1.12rem; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.eco-tile small { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.eco-cod { background: var(--yellow-soft); border-color: rgba(255, 193, 7, .5); }
.eco-cod > i { font-size: 1.5rem; color: #8a5d00; }
.eco-cod .eco-name { color: var(--ink) !important; font-size: 1rem !important; }
.eco-tiles-sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.eco-tiles-sm .eco-tile { min-height: 76px; padding: 10px; }
.eco-tiles-sm .eco-tile img { height: 34px; }
.eco-tiles-sm .eco-tile:not(.no-img) .eco-name { display: none; }
.eco-strip { margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--line); }
.eco-strip-t { display: block; margin-bottom: 12px; font-weight: 800; font-size: .85rem; color: var(--muted); }
.eco-brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.eco-brands li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .92rem; color: var(--ink); }
.eco-brands i { font-size: 1.05rem; }
.eco-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eco-group { background: var(--alt); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.eco-group-wide { grid-column: 1 / -1; }
.eco-group > header { display: flex; gap: 14px; align-items: flex-start; }
.eco-group > header .icon-badge { margin: 0; flex: none; background: #fff; }
.eco-group h3 { margin: 0 0 .2em; font-size: 1.2rem; } .eco-group header p { margin: 0; color: var(--muted); font-size: .96rem; }
.eco-more { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 24px; border-radius: var(--radius); border: 2px dashed rgba(255, 193, 7, .6); background: #fff; }
.eco-more > div { display: flex; flex-direction: column; } .eco-more b { color: var(--ink); font-size: 1.08rem; } .eco-more span { color: var(--muted); }
@media (max-width: 800px) { .eco-groups { grid-template-columns: 1fr; } .eco-group { padding: 18px; } }
@media (max-width: 480px) { .eco-tiles, .eco-tiles-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Accueil : ce que l'on gère, en pastilles (sous le titre) ---------- */
.hero-tags { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 12px; }
.hero-tags li { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 700; font-size: .95rem; color: var(--ink); white-space: nowrap; }
html[dir="rtl"] .hero-tags li { padding: 6px 6px 6px 14px; }
.hero-tag-ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-size: .85rem; }
.hero-sub { font-size: 1.05rem; margin-bottom: 1.2em; }
@media (max-width: 1100px) { .hero-tags { grid-template-columns: repeat(2, max-content); } }
@media (max-width: 420px) { .hero-tags { grid-template-columns: 1fr 1fr; gap: 8px; } .hero-tags li { font-size: .86rem; padding-inline-end: 10px; white-space: normal; line-height: 1.2; } .hero-tag-ic { width: 26px; height: 26px; } }
@media (max-width: 900px) { .hero-tags { justify-content: center; } }

/* ---------- Logos des partenaires : bandeau qui défile ---------- */
.eco-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.eco-track { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 14px; width: max-content; animation: eco-scroll 38s linear infinite; }
.eco-track .eco-tile { flex: none; width: 168px; min-height: 84px; padding: 10px 14px; }
.eco-track .eco-tile img { height: 40px; }
.eco-track .eco-tile:not(.no-img) .eco-name { display: none; }
.eco-marquee:hover .eco-track, .eco-marquee:focus-within .eco-track { animation-play-state: paused; }
@keyframes eco-scroll { to { transform: translateX(calc(-50% - 7px)); } }
html[dir="rtl"] .eco-track { animation-name: eco-scroll-rtl; }
@keyframes eco-scroll-rtl { to { transform: translateX(calc(50% + 7px)); } }
@media (max-width: 600px) { .eco-track { animation-duration: 28s; } .eco-track .eco-tile { width: 136px; } }
@media (prefers-reduced-motion: reduce) {
  .eco-marquee { -webkit-mask-image: none; mask-image: none; }
  .eco-track { animation: none; width: auto; flex-wrap: wrap; }
  .eco-track [aria-hidden="true"] { display: none; }
}
.hero-tags li { text-align: start; }

/* Menu mobile ouvert : il couvre tout l'écran, la page dessous est figée (main.js), les boutons flottants sont masqués */
@media (max-width: 960px) {
  .main-nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .nav-open .site-header { position: fixed; top: 0; inset-inline: 0; background: #fff; }   /* la page est figée (position fixe) : l’en-tête reste en haut de l’écran */
  .nav-open .lang-fab, .nav-open .help-widget { display: none !important; }
}
.legal-doc .legal-html { padding-top: .4em; } .legal-doc .legal-html h2:first-child { margin-top: .8em; } .legal-doc .legal-html img { max-width: 100%; height: auto; } .legal-doc .legal-html table { width: 100%; border-collapse: collapse; } .legal-doc .legal-html td, .legal-doc .legal-html th { border: 1px solid var(--line); padding: 6px 10px; }
