:root {
  /* Palette TalaiNov : marine + turquoise */
  --bg: #F4F9FB;
  --bg-2: #E4EEF4;
  --ink: #10293F;
  --muted: #5E7285;
  --accent: #2BAAB5;      /* turquoise TalaiNov */
  --accent-2: #FFD60A;    /* jaune pop */
  --accent-3: #174A6B;    /* marine profond */
  --accent-4: #00D4A0;    /* mint */
  --accent-5: #1E6E8C;    /* bleu pétrole */
  --card: #FFFFFF;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Cairo', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body, [dir="rtl"] { font-family: 'Cairo', 'Inter', sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; position: relative; }

/* ================ HEADER ================ */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 28px; max-width: 1280px; margin: 0 auto; gap: 20px; flex-wrap: wrap; }
.logo { font-weight: 900; font-size: 25px; letter-spacing: -1.5px; display: flex; align-items: center; gap: 9px; }
.logo .t1 { color: var(--ink); } .logo .t2 { color: var(--accent); }
.logo img.mark { width: 42px; height: 42px; object-fit: contain; transition: transform .25s; }
.logo:hover img.mark { transform: rotate(4deg) scale(1.08); }
.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a { font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 0; width: 0; height: 3px; background: var(--accent); transition: width .25s; }
.nav a:hover::after, .nav a.on::after { width: 100%; }
/* Lien réservé au tiroir mobile : sur grand écran il ferait une neuvième entrée
   sans nécessité, l'espace affilié étant déjà atteignable depuis la page programme. */
.nav-tiroir { display: none; }

/* ===== Menu mobile =====
   Neuf entrées ne tiennent pas sur une ligne : la navigation passait sur deux
   rangées et repoussait tout le contenu vers le bas. Sous 900 px elle devient un
   tiroir latéral, avec des zones de touche à la bonne taille. */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 0 9px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm); }
.burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .22s, opacity .18s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-tiroir { display: block; }
  .nav {
    position: fixed; top: 0; inset-inline-end: 0; z-index: 70;
    width: min(310px, 82vw); height: 100dvh; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 84px 22px 28px;
    background: var(--bg); border-inline-start: 2px solid var(--ink);
    box-shadow: -8px 0 0 rgba(16,41,63,.08);
    transform: translateX(100%); transition: transform .26s ease;
  }
  [dir="rtl"] .nav { transform: translateX(-100%); }
  .nav.ouvert { transform: none; }
  .nav a { font-size: 17px; padding: 15px 4px; border-bottom: 2px solid var(--bg-2); }
  .nav a:last-child { border-bottom: 0; }
  /* Le soulignement au survol n'a pas de sens au doigt : la ligne active se marque
     par un liseré latéral, visible sans passer la souris. */
  .nav a::after { display: none; }
  .nav a.on { color: var(--accent); border-inline-start: 4px solid var(--accent); padding-inline-start: 12px; }
  .nav-voile { position: fixed; inset: 0; z-index: 65; background: rgba(16,41,63,.45); backdrop-filter: blur(2px); }
  body.nav-ouverte { overflow: hidden; }
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { background: #fff; border: 2px solid var(--ink); padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 13px; transition: background .15s, transform .15s; }
.lang-btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.lang-btn.on { background: var(--ink); color: var(--accent-2); }
/* ===== Sélecteurs de devise et de langue =====
   Six pastilles alignées occupaient toute la largeur de l'en-tête sur téléphone et
   passaient à la ligne. Deux boutons déroulants n'affichent que la valeur courante,
   et libèrent la place au menu. Même vocabulaire visuel que le reste : bordure
   franche, ombre portée, coins arrondis. */
.picker { position: relative; }
.picker-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 12px; font-weight: 800; font-size: 13px; line-height: 1;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, background .15s;
}
.picker-btn:hover { background: var(--accent-2); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.picker-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.picker-btn[aria-expanded="true"] { background: var(--ink); color: var(--accent-2); }
.picker-val { min-width: 20px; text-align: center; }
/* Chevron dessiné en CSS : pas de glyphe dont le rendu varie d'une police à l'autre. */
.picker-caret { width: 0; height: 0; border-inline: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
.picker-btn[aria-expanded="true"] .picker-caret { transform: rotate(180deg); }

.picker-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  min-width: 190px; padding: 6px;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); animation: pickerIn .14s ease-out;
  /* Jamais plus large que l'écran : sur téléphone le menu déborderait à droite. */
  max-width: calc(100vw - 28px);
}
@keyframes pickerIn { from { opacity: 0; transform: translateY(-6px); } }
.picker-menu > button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 9px; background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: start;
}
.picker-menu > button b { min-width: 26px; font-weight: 900; }
.picker-menu > button span { color: var(--muted); }
.picker-menu > button:hover { background: var(--bg-2); }
/* La valeur active se voit sans dépendre de la couleur seule. */
.picker-menu > button.on { background: var(--ink); color: #fff; }
.picker-menu > button.on span { color: rgba(255,255,255,.7); }
.picker-menu > button.on::after { content: "✓"; margin-inline-start: auto; font-weight: 900; }
/* Sur téléphone les sélecteurs sont en début de ligne : aligné sur leur bord de fin,
   le menu débordait de l'écran. Il s'ouvre donc vers l'intérieur. */
@media (max-width: 560px) { .picker-menu { inset-inline-end: auto; inset-inline-start: 0; } }

/* ================ HERO ================ */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--accent-2); padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 22px; }
.hero-tag .pulse { width: 8px; height: 8px; background: var(--accent-4); border-radius: 50%; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(1.25)} }
.hero h1 { font-size: clamp(42px, 7vw, 86px); font-weight: 900; line-height: 1.06; letter-spacing: -3px; margin-bottom: 22px; padding-block: .06em; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.2; }
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
  /* évite que les lettres italiques soient rognées à droite/gauche */
  padding-inline: .10em; margin-inline: -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  /* soulignement jaune qui suit le texte même sur plusieurs lignes */
  text-decoration-line: underline; text-decoration-color: transparent;
  text-decoration-thickness: .1em; text-underline-offset: -.02em; text-decoration-skip-ink: none;
  animation: underlineIn .9s .55s ease-out forwards;
}
@keyframes underlineIn { to { text-decoration-color: var(--accent-2); } }
[dir="rtl"] .hero h1 .highlight { font-style: normal; }
.hero p { font-size: 17px; color: var(--muted); max-width: 500px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.hero-trust strong { color: var(--ink); font-weight: 800; display: block; font-size: 22px; line-height: 1; }
.hero-visual { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 30% 20%, var(--accent-2) 0%, transparent 50%), radial-gradient(circle at 80% 70%, var(--accent) 0%, transparent 50%), linear-gradient(135deg, var(--accent-3), var(--accent-5)); border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: var(--shadow); overflow: hidden; max-height: 460px; }
.float-card { position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 13px 17px; box-shadow: var(--shadow-sm); font-weight: 700; font-size: 14px; animation: float 13s ease-in-out infinite; cursor: pointer; color: var(--ink); transition: box-shadow .2s, filter .2s; }
.float-card:hover { box-shadow: 5px 5px 0 var(--ink); filter: brightness(1.04); animation-play-state: paused; z-index: 3; }
.float-card .go { display: block; font-size: 11px; font-weight: 800; color: var(--accent-5); margin-top: 3px; opacity: 0; transition: opacity .2s; }
.float-card:hover .go { opacity: 1; }
.float-card .ic { font-size: 22px; display: block; margin-bottom: 4px; }
.float-card small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.fc1 { top: 12%; left: 8%; --r: -6deg; }
.fc2 { top: 18%; right: 8%; animation-delay: 1.6s; background: var(--accent-2); --r: 5deg; }
.fc3 { bottom: 22%; left: 12%; animation-delay: 3.2s; background: var(--accent-4); --r: 4deg; }
.fc4 { bottom: 14%; right: 10%; animation-delay: 4.8s; --r: -4deg; }
.fc-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--ink); color: var(--accent-2); width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 52px; box-shadow: var(--shadow); animation: spin 20s linear infinite; }
@keyframes float { 0%,100%{transform:translateY(0) rotate(var(--r,0deg))} 50%{transform:translateY(-10px) rotate(var(--r,0deg))} }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ================ MARQUEE ================ */
.marquee { background: var(--ink); color: var(--accent-2); padding: 15px 0; overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.marquee-track { display: flex; gap: 40px; animation: scroll 110s linear infinite; white-space: nowrap; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: "⚡"; color: var(--accent); }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ================ SECTIONS ================ */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 38px; flex-wrap: wrap; gap: 18px; }
.section-head h2, .page-title { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -2px; line-height: 1; }
[dir="rtl"] .section-head h2, [dir="rtl"] .page-title { letter-spacing: 0; }
.section-head h2 em { font-style: italic; color: var(--accent); }
[dir="rtl"] .section-head h2 em { font-style: normal; }
.section-head p, .page-sub { color: var(--muted); max-width: 420px; }
.page-sub { margin-top: 10px; }

/* ================ BUTTONS ================ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: 15px; background: #fff; color: var(--ink); transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-yellow { background: var(--accent-2); }
.btn-mint { background: var(--accent-4); }

/* ================ CATEGORY CARDS ================ */
/* auto-fit plutot que repeat(4) : l'ajout de la 5e categorie (SaaS) laissait
   une carte seule sur une deuxieme ligne. La grille s'adapte maintenant au
   nombre de categories, quel qu'il soit. */
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); gap: 18px; }
@media (max-width: 900px) { .categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .categories { grid-template-columns: 1fr; } }
.cat-card { border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 26px 22px; background: #fff; display: flex; flex-direction: column; gap: 20px; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; min-height: 200px; }
.cat-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-sm); }
.cat-card:nth-child(1):hover { background: var(--accent-2); }
.cat-card:nth-child(2):hover { background: var(--accent-4); }
.cat-card:nth-child(3):hover { background: var(--accent-3); color: #fff; }
.cat-card:nth-child(4):hover { background: var(--accent); color: #fff; }
.cat-card .cat-ico { width: 54px; height: 54px; background: var(--ink); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 25px; transition: transform .2s; }
.cat-card:hover .cat-ico { transform: rotate(-8deg) scale(1.1); }
.cat-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.cat-card .arrow { margin-top: auto; font-size: 22px; font-weight: 800; transition: transform .2s; }
.cat-card:hover .arrow { transform: translateX(6px); }
[dir="rtl"] .cat-card:hover .arrow { transform: translateX(-6px); }

/* ================ PRODUCTS ================ */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; position: relative; }
.product-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4/3; background: var(--bg-2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; font-size: 52px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.ptag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; z-index: 2; }
.ptag.c1 { background: var(--accent); } .ptag.c2 { background: var(--accent-4); color: var(--ink); } .ptag.c3 { background: var(--accent-3); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-meta { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; letter-spacing: .5px; }
.product-name { font-size: 17px; font-weight: 800; margin: 2px 0 7px; letter-spacing: -.3px; line-height: 1.2; }
.product-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.15); }
.price { font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.price small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.add-btn { background: var(--ink); color: #fff; border: none; padding: 10px 17px; border-radius: 999px; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; transition: background .15s, transform .15s; white-space: nowrap; }
.add-btn:hover { background: var(--accent); transform: translateY(-2px); }
/* « 🎁 Télécharger gratuitement » est trop long pour la largeur d'une carte : avec
   white-space: nowrap il débordait hors du cadre et le texte était coupé à l'écran.
   On autorise le repli et on empêche le pied de carte de forcer une seule ligne. */
.product-foot { flex-wrap: wrap; }
.product-foot .add-btn { white-space: normal; text-align: center; line-height: 1.3; max-width: 100%; }

/* filtres boutique */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 30px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: 13px; transition: all .15s; }
.filter:hover { background: var(--accent-2); transform: translateY(-2px); }
.filter.on { background: var(--ink); color: #fff; }

/* ================ PAGE PRODUIT ================ */
.pp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 56px 0; align-items: start; }
@media (max-width: 820px) { .pp { grid-template-columns: 1fr; } }
.pp-img { border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: var(--shadow); overflow: hidden; background: var(--bg-2); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 90px; position: relative; }
.pp-img img, .pp-img video, .pp-img iframe { width: 100%; height: 100%; object-fit: cover; border: none; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pp-thumb { width: 84px; height: 63px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-2); position: relative; padding: 0; transition: transform .15s, box-shadow .15s; flex-shrink: 0; }
.pp-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pp-thumb.on { outline: 3px solid var(--accent); outline-offset: 1px; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(16,41,63,.35); color: #fff; }
.pp h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; margin: 10px 0 14px; }
[dir="rtl"] .pp h1 { letter-spacing: 0; }
.pp-price { margin-top: 18px; }
.pp-price .big { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.pp-price .alt { font-size: 16px; color: var(--muted); font-weight: 600; }
.promo-ok { color: var(--accent-4); font-weight: 800; font-size: 14px; margin-top: 6px; }
.promo-row { display: flex; gap: 10px; margin-top: 18px; }
.promo-row input { flex: 1; }
.pay-box { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.pay { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 15px; border-radius: 18px; font-weight: 800; font-size: 15px; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; background: #fff; text-align: center; }
.pay:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.pay:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.pay .pay-txt { display: flex; flex-direction: column; gap: 1px; }
.pay .pay-sub { font-size: 11.5px; font-weight: 600; opacity: .75; }
.pay.pay-off { opacity: .45; filter: grayscale(.75); cursor: not-allowed; box-shadow: none; }
.pay.pay-off:hover { transform: none; box-shadow: none; }
.pay-group { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 14px 0 -3px; display: flex; align-items: center; gap: 8px; }
.pay-group::after { content: ""; flex: 1; height: 2px; background: var(--bg-2); border-radius: 2px; }
.pay-chargily { background: var(--accent-4); }
.pay-manual { background: var(--accent-2); }
.pay-wise { background: var(--accent-4); }
/* Replis de commande (WhatsApp, email) : repliés pour ne pas concurrencer les vrais
   boutons de paiement, mais atteignables en un clic. */
.pay-more { margin-top: 14px; }
.pay-more > summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--muted); padding: 6px 0; list-style: none; }
.pay-more > summary::-webkit-details-marker { display: none; }
.pay-more > summary::before { content: "＋ "; font-weight: 900; }
.pay-more[open] > summary::before { content: "－ "; }
.pay-more > summary:hover { color: var(--ink); }
.pay-more > .pay { margin-top: 8px; }
.pay-stripe { background: var(--ink); color: #fff; }
.pay-paypal { background: #FFC439; }
.includes { margin-top: 28px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 20px 22px; }
.includes h3 { font-weight: 800; margin-bottom: 10px; font-size: 16px; }
.includes p { color: var(--muted); line-height: 2; font-size: 14px; }

/* ================ FEATURES ================ */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feat { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 26px 24px; transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-sm); }
.feat .ic { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; border: 2px solid var(--ink); }
.feat:nth-child(1) .ic { background: var(--accent-2); } .feat:nth-child(2) .ic { background: var(--accent-4); }
.feat:nth-child(3) .ic { background: var(--accent-3); } .feat:nth-child(4) .ic { background: var(--accent); }
.feat h3 { font-size: 17px; font-weight: 800; margin-bottom: 7px; }
.feat p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ================ BLOG / POSTS ================ */
.post { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 26px; margin-bottom: 18px; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-sm); }
.post-body h2, .guide-body h2 { font-weight: 900; font-size: 21px; letter-spacing: -.5px; color: var(--ink); margin: 26px 0 8px; padding-inline-start: 12px; border-inline-start: 4px solid var(--accent); }
.post-body p, .guide-body p { font-size: 15.5px; line-height: 1.75; color: #2b3d4d; margin-bottom: 12px; }
.post-body strong, .guide-body strong { color: var(--ink); }
.guide-body figure { margin: 22px 0; }
.guide-body figure img { width: 100%; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm); display: block; background: #fff; }
.guide-body figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }
.post h3 { font-weight: 800; font-size: 21px; margin-bottom: 8px; letter-spacing: -.5px; }
.post .date { display: inline-block; background: var(--accent-2); border: 2px solid var(--ink); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.post p { color: var(--muted); line-height: 1.7; }

/* ================ FORMS ================ */
.form { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
input, textarea, select { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 12px 15px; color: var(--ink); font: inherit; font-weight: 500; width: 100%; transition: box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: var(--shadow-sm); }
textarea { min-height: 110px; resize: vertical; }
label { font-size: 13px; color: var(--muted); font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

/* ================ TABLES / ADMIN ================ */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
th, td { padding: 10px 12px; text-align: start; border-bottom: 1px solid rgba(0,0,0,.1); vertical-align: top; }
th { background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }
.status-tag { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; border: 2px solid var(--ink); white-space: nowrap; display: inline-block; background: var(--bg-2); }
.status-tag.paid { background: var(--accent-4); }
.status-tag.awaiting_review { background: var(--accent-2); }
.status-tag.rejected, .status-tag.pending { background: #fff; color: var(--muted); }
.del { color: var(--accent); background: none; border: none; font-size: 13px; font-weight: 700; }
.act { color: var(--ink); background: var(--accent-4); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 800; margin-inline-end: 8px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 22px 0 26px; }
.stat { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm); }
.stat .v { font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.stat .l { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px; }
.stat.hl { background: var(--accent-2); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 14px; }
.bars div { flex: 1; background: var(--accent-3); border: 1px solid var(--ink); border-bottom: none; border-radius: 3px 3px 0 0; min-height: 3px; }
.scroll-x { overflow-x: auto; }

/* ================ MISC ================ */
.deal-banner { background: var(--ink); color: #fff; padding: 10px 0; font-size: 14px; font-weight: 700; }
.deal-banner .container { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.deal-banner .cd { background: var(--accent-2); color: var(--ink); border-radius: 8px; padding: 3px 10px; font-family: monospace; font-weight: 800; font-size: 14px; }
.deal-banner .cta { background: var(--accent); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 5px 16px; font-size: 13px; font-weight: 800; }
.deal-banner .cta:hover { transform: translateY(-1px); }
@media print { .deal-banner { display: none !important; } }
/* Bulle WhatsApp discrète : plus petite, dans les couleurs du site plutôt qu'en
   vert vif, et masquée tant que le visiteur n'a pas commencé à faire défiler. */
.wa-bubble {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9);
  transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
.wa-bubble.on { opacity: .62; visibility: visible; transform: none; }
.wa-bubble:hover, .wa-bubble:focus-visible { opacity: 1; background: #25D366; }
.wa-bubble svg { width: 22px; height: 22px; fill: var(--ink); transition: fill .15s; }
.wa-bubble:hover svg, .wa-bubble:focus-visible svg { fill: #fff; }
@media (max-width: 700px) { .wa-bubble { width: 40px; height: 40px; bottom: 14px; inset-inline-end: 14px; } }
@media print { .wa-bubble { display: none !important; } }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 999px; padding: 14px 28px; z-index: 99; box-shadow: var(--shadow); font-weight: 700; animation: pop .3s; max-width: 90vw; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(16px); } }
.modal-bg { position: fixed; inset: 0; background: rgba(14,14,16,.55); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { position: relative; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 540px; width: 100%; max-height: 88vh; overflow: auto; }
.modal h3 { font-weight: 900; font-size: 22px; letter-spacing: -.5px; margin-bottom: 12px; padding-inline-end: 34px; }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.modal-x:hover { background: var(--ink); color: #fff; }
.info-box { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; margin: 14px 0; font-size: 14px; line-height: 1.8; box-shadow: var(--shadow-sm); }
.success-box { max-width: 520px; margin: 70px auto; text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 46px 34px; }
.success-box .big { font-size: 56px; margin-bottom: 14px; }
.success-box h2 { font-weight: 900; letter-spacing: -1px; }
.reveal { opacity: 0; transform: translateY(24px); transition: .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ================ EFFETS WOW ================ */
/* Barre de progression du scroll */
#scrollBar { position: fixed; top: 0; inset-inline-start: 0; height: 4px; width: 0; z-index: 99;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2)); transition: width .1s linear; }

/* Transition d'entrée de page */
#app { animation: pageIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }

/* Cartes produit : tilt 3D + halo qui suit la souris */
.product-card { transform-style: preserve-3d; will-change: transform; }
.product-card::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm); pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(43,170,181,.22), transparent 60%); }
.product-card:hover::after { opacity: 1; }

/* Boutons : effet ripple + brillance qui traverse */
.btn, .pay, .add-btn { position: relative; overflow: hidden; }
.btn::before, .pay::before { content: ""; position: absolute; top: 0; left: -120%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); }
.btn:hover::before, .pay:hover::before { animation: shine .75s ease-out; }
@keyframes shine { to { left: 140%; } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55);
  transform: scale(0); animation: rip .6s ease-out; pointer-events: none; }
@keyframes rip { to { transform: scale(3.2); opacity: 0; } }

/* Titre héro : apparition en cascade */
.hero h1, .hero p, .hero-actions, .hero-trust, .hero-tag { animation: riseIn .7s cubic-bezier(.2,.8,.2,1) backwards; }
.hero-tag { animation-delay: .05s } .hero h1 { animation-delay: .12s } .hero p { animation-delay: .22s }
.hero-actions { animation-delay: .32s } .hero-trust { animation-delay: .42s }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } }

/* Visuel héro : flottement + réaction à la souris */
.hero-visual { transition: transform .25s ease-out; will-change: transform; }
.cat-card .cat-ico, .feat .ic { transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.feat:hover .ic { transform: rotate(-10deg) scale(1.15); }

/* Prix : pulsation à l'application d'une promo */
@keyframes pricePop { 0%{transform:scale(1)} 40%{transform:scale(1.14)} 100%{transform:scale(1)} }
.price-pop { animation: pricePop .5s cubic-bezier(.3,1.5,.5,1); display: inline-block; }

/* Bouton retour en haut */
#toTop { position: fixed; bottom: 92px; inset-inline-end: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); z-index: 69;
  display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; visibility: hidden;
  transition: opacity .3s, transform .2s, visibility .3s; }
#toTop.on { opacity: 1; visibility: visible; }
#toTop:hover { transform: translateY(-3px); background: var(--accent); }

/* Étoiles des avis : légère mise en avant */
.product-card:hover .product-name { color: var(--accent-5); transition: color .2s; }

@media print { #scrollBar, #toTop { display: none !important; } }
details summary { cursor: pointer; list-style: none; }

/* ================ FACTURE ================ */
.invoice { max-width: 800px; margin: 40px auto; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.inv-title { font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.inv-paid { display: inline-block; background: var(--accent-4); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 18px; font-weight: 900; font-size: 14px; transform: rotate(-3deg); }
.inv-meta { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
@media (max-width: 620px) { .inv-parties { grid-template-columns: 1fr; } }
.inv-party { background: var(--bg-2); border: 2px solid var(--ink); border-radius: 12px; padding: 16px 18px; font-size: 13.5px; line-height: 1.7; }
.inv-party b { display: block; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; margin-bottom: 6px; }
.inv-table { margin: 22px 0; }
.inv-totals { margin-inline-start: auto; max-width: 300px; font-size: 14.5px; }
.inv-totals div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(0,0,0,.15); }
.inv-totals .grand { font-weight: 900; font-size: 19px; border-bottom: none; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 12px; }
.inv-foot { margin-top: 30px; text-align: center; color: var(--muted); font-size: 13px; }
@media print {
  .header, .footer, .no-print { display: none !important; }
  body { background: #fff; }
  .invoice { border: none; box-shadow: none; margin: 0; max-width: 100%; padding: 10px; }
  .inv-party, .invoice table, .inv-paid { border-color: #000; box-shadow: none; }
}


/* ===== Fenêtre de déblocage du bonus ===== */
.ul-head { display:flex; gap:14px; align-items:center; padding-bottom:14px; border-bottom:2px dashed var(--bg-2); margin-bottom:14px; }
.ul-head img { width:76px; height:58px; object-fit:cover; border:2px solid var(--ink); border-radius:10px; flex-shrink:0; }
.ul-head .t { font-weight:900; font-size:16px; line-height:1.25; }
.ul-head .s { font-size:11.5px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.6px; }
.ul-step { display:flex; align-items:center; gap:9px; font-weight:800; font-size:13.5px; margin:16px 0 8px; }
.ul-num { width:24px; height:24px; border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.ul-num.ok { background:var(--accent-4); }
.ul-field { position:relative; }
.ul-field label { position:absolute; top:-7px; inset-inline-start:12px; background:var(--bg); padding:0 6px; font-size:10.5px; font-weight:700; color:var(--muted); }
.ul-opts { display:grid; grid-template-columns:1fr; gap:10px; }
.ul-opt { border:2px solid var(--ink); border-radius:14px; padding:14px; background:#fff; transition:.2s; }
.ul-opt.done { background:var(--accent-4); border-color:var(--accent-4); }
.ul-opt .oh { display:flex; align-items:center; justify-content:space-between; gap:8px; font-weight:800; font-size:13.5px; margin-bottom:9px; }
.ul-opt .oh small { font-weight:600; color:var(--muted); font-size:11px; }
.ul-share { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.ul-share a { display:flex; flex-direction:column; align-items:center; gap:3px; padding:9px 4px; border-radius:10px; color:#fff; font-size:10.5px; font-weight:700; border:2px solid var(--ink); transition:transform .15s; }
.ul-share a:hover { transform:translateY(-2px); }
.ul-share a b { font-size:15px; line-height:1; }
.ul-or { text-align:center; font-size:11px; font-weight:800; color:var(--muted); letter-spacing:1px; margin:2px 0; }
.ul-bar { height:12px; border:2px solid var(--ink); border-radius:99px; overflow:hidden; background:var(--bg-2); }
.ul-bar div { height:100%; width:0; background:var(--accent); transition:width 1s linear; }
.ul-ok { text-align:center; padding:8px 0 2px; }
.ul-ok .big { font-size:44px; }
@media (max-width:520px){ .ul-share { grid-template-columns:repeat(2,1fr); } }

/* ================ FOOTER ================ */
.footer { background: var(--ink); color: #fff; padding: 54px 0 30px; margin-top: 70px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo .mark { background: var(--accent-2); color: var(--ink); }
.footer-desc { opacity: .7; max-width: 380px; font-size: 14px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; opacity: .6; }
@media (max-width: 700px) { .nav { gap: 14px; font-size: 14px; } .hero { padding: 44px 0 52px; } .section { padding: 52px 0; } }


/* ===== FAQ ===== */
.faq-cat { font-weight:900; font-size:20px; letter-spacing:-.6px; margin:26px 0 10px; display:flex; align-items:center; gap:9px; }
.faq-i { border:2px solid var(--ink); border-radius:14px; background:#fff; margin-bottom:10px; overflow:hidden; transition:box-shadow .2s; }
.faq-i[open] { box-shadow:var(--shadow-sm); }
.faq-i summary { list-style:none; cursor:pointer; padding:15px 18px; font-weight:800; font-size:14.5px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.faq-i summary::-webkit-details-marker { display:none; }
.faq-i summary::after { content:"+"; font-size:22px; font-weight:900; color:var(--accent); flex-shrink:0; }
.faq-i[open] summary::after { content:"\2212"; }
.faq-i summary:hover { background:var(--bg); }
.faq-a { padding:0 18px 16px; font-size:14px; line-height:1.7; color:#2b3d4d; border-top:1px dashed var(--bg-2); padding-top:13px; }
.faq-a b { color:var(--ink); }


/* ===== Liste d'attente / bientôt disponible ===== */
.ptag.soon { background:#7C5CFF; }
.wl-box { border:2px solid var(--ink); border-radius:16px; padding:20px; background:#fff; box-shadow:var(--shadow-sm); margin-top:18px; }
.wl-box h3 { font-weight:900; font-size:18px; margin-bottom:6px; }
.wl-gauge { height:16px; border:2px solid var(--ink); border-radius:99px; overflow:hidden; background:var(--bg-2); margin:12px 0 6px; }
.wl-gauge div { height:100%; background:var(--accent); transition:width .6s; }
.wl-count { font-size:12.5px; color:var(--muted); font-weight:700; }
.wl-count b { color:var(--ink); font-size:15px; }
.wl-idea { border:2px dashed var(--ink); border-radius:16px; padding:22px; background:var(--bg); margin-top:30px; text-align:center; }

/* ================ RÉCIT DE MARQUE (page À propos) ================
   Colonne étroite et interlignage généreux : un texte long se lit mal sur toute
   la largeur. La sobriété est volontaire — le sujet ne supporterait pas
   l'emphase graphique du reste du site. */
.recit { max-width: 680px; }
.recit-sur {
  font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.recit p { font-size: 17px; line-height: 1.8; color: #2b3d4d; margin: 0 0 20px; }
.recit .page-title { margin-bottom: 26px; }

/* La phrase du goût : c'est le cœur du récit, elle mérite un arrêt. */
.recit-fort {
  border-inline-start: 4px solid var(--accent-2);
  padding-inline-start: 18px;
  font-size: 18.5px !important; font-weight: 600; color: var(--ink) !important;
}
/* Charnière entre le village et le métier. */
.recit-pivot {
  font-weight: 900; font-size: 19px !important; color: var(--ink) !important;
  margin-top: 30px !important;
}
.recit-signature {
  border-top: 2px dashed rgba(16,41,63,.2); padding-top: 20px; margin-top: 30px !important;
  font-size: 16px !important;
}
.recit-suite { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

@media (max-width: 700px) {
  .recit p { font-size: 16px; line-height: 1.75; }
  .recit-fort { font-size: 17px !important; }
}

/* Jauge de progression vers le palier suivant. Une barre pleine dit en un coup d'oeil
   ce qu'un pourcentage isole ne dit pas : la distance qu'il reste a parcourir. */
.jauge { height: 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 6px 0; }
.jauge-in { height: 100%; background: var(--accent-4); border-right: 2px solid var(--ink); transition: width .5s ease; min-width: 2px; }
/* Les liens de parrainage sont longs : ils ne doivent pas etirer le tableau. */
.lien-aff { font-family: monospace; font-size: 12px; word-break: break-all; max-width: 380px; }

/* ===== Articles =====
   Le blog affichait tous les textes en entier, bout a bout : au troisieme article la
   page devenait interminable. Un aperçu en carte, puis une page par article. */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.art-card { display: flex; flex-direction: column; background: var(--card);
  border: 2px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .18s, box-shadow .18s; }
.art-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.art-cover { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--bg-2); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.art-date { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.art-card h3 { font-size: 18px; font-weight: 900; line-height: 1.3; letter-spacing: -.4px; }
.art-card p { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; }
.art-more { font-weight: 800; font-size: 13.5px; color: var(--accent); }
/* Image de tete d'un article : plus large que la vignette, sans deformer le cadrage. */
.art-cover-hero { aspect-ratio: 21 / 9; border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.art-partage { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--bg-2); }
.fil { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.fil a:hover { color: var(--accent); }

/* Qui est connecté, en tête de la navigation admin — seulement pour un compte nommé. */
.admin-qui { font-size: 12.5px; font-weight: 800; padding: 10px 12px; margin-bottom: 10px;
  background: var(--bg-2); border: 2px solid var(--ink); border-radius: 10px; }
/* Section accordée à un compte : lisible d'un coup d'oeil dans le tableau. */
.jeton { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 8px; margin: 2px 0;
  background: var(--bg-2); border-radius: 999px; white-space: nowrap; }

/* ================ APERÇU IMMERSIF ================
   Un logiciel ne se vend pas sur une capture d'écran : il faut pouvoir le
   manipuler. L'aperçu ouvre le produit réel en plein écran, dans un cadre
   d'appareil, avec une visite guidée à côté. */
.demo-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0 4px; }
.btn-demo {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px;
  padding: 14px 22px; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--accent-2); color: var(--ink); box-shadow: var(--shadow-sm); transition: .16s;
}
.btn-demo:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-demo .pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #E0342C; animation: demoPulse 1.8s infinite; }
@keyframes demoPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.35); } }
.demo-note { font-size: 13px; color: var(--muted); font-weight: 600; }
.ptag-demo { background: var(--accent-4); color: var(--ink); }

.demo-shell { position: fixed; inset: 0; z-index: 300; background: #0B1A27; display: flex; flex-direction: column; }
.demo-shell[hidden] { display: none !important; }
.demo-bar {
  display: flex; align-items: center; gap: 14px; padding: 11px 18px; flex-wrap: wrap;
  background: #08131D; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff;
}
.demo-bar h2 { font-size: 16px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.demo-bar .sous { font-size: 12px; color: #93A7B8; font-weight: 600; }
.demo-outils { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-outils button {
  background: rgba(255,255,255,.08); color: #D7E3EC; border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px; padding: 7px 13px; font-size: 13px; font-weight: 700;
}
.demo-outils button:hover { background: rgba(255,255,255,.16); color: #fff; }
.demo-outils button.on { background: var(--accent); border-color: var(--accent); color: #04222A; }
.demo-outils .fermer { background: #E0342C; border-color: #E0342C; color: #fff; }

.demo-corps { flex: 1; display: grid; grid-template-columns: 288px 1fr; min-height: 0; }
.demo-guide { background: #0B1A27; border-inline-end: 1px solid rgba(255,255,255,.1); padding: 18px 16px; overflow: auto; }
.demo-guide h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; margin: 0 0 12px; }
.demo-etape {
  display: block; width: 100%; text-align: start; background: rgba(255,255,255,.05); color: #C6D5E1;
  border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
  font-size: 13.5px; line-height: 1.45; transition: .15s;
}
.demo-etape:hover { background: rgba(255,255,255,.11); color: #fff; }
.demo-etape.on { background: var(--accent); border-color: var(--accent); color: #04222A; }
.demo-etape b { display: block; font-size: 14px; margin-bottom: 3px; font-weight: 800; }
.demo-etape.on b { color: #04222A; }
.demo-etape .num {
  display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%;
  background: rgba(255,255,255,.14); font-size: 11.5px; font-weight: 800; margin-inline-end: 8px; vertical-align: 1px;
}
.demo-etape.on .num { background: rgba(0,0,0,.22); }
.demo-guide .rappel { color: #7F94A6; font-size: 12px; line-height: 1.5; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }

.demo-scene { display: grid; place-items: center; padding: 22px; overflow: auto; min-height: 0; }
.demo-cadre {
  background: #fff; border-radius: 10px; overflow: hidden; width: 100%; height: 100%;
  box-shadow: 0 24px 70px rgba(0,0,0,.5); position: relative; transition: max-width .28s ease;
}
.demo-cadre iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Mode téléphone : largeur d'un appareil courant, coins arrondis, encoche.
   Le visiteur juge d'un coup d'œil si la boutique tient sur un écran de poche —
   c'est là que se passe la quasi-totalité des achats. */
.demo-scene.mobile .demo-cadre {
  max-width: 390px; height: min(800px, 100%); border-radius: 36px; border: 10px solid #1B2C3A;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  /* Une bande sous l'encoche, comme la barre d'état d'un vrai téléphone : sans
     elle, l'encoche masquait le bandeau « Aperçu » en haut de la boutique. */
  padding-top: 22px; background: #1B2C3A;
}
.demo-scene.mobile .demo-cadre::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 20px; background: #1B2C3A; border-radius: 0 0 12px 12px; z-index: 2;
}
.demo-chargement { position: absolute; inset: 0; background: #fff; display: grid; place-items: center; color: var(--muted); font-weight: 700; z-index: 3; }
/* Le display:grid ci-dessus l'emporte sur le display:none que le navigateur
   applique à [hidden] : sans cette ligne, l'écran « Chargement… » restait
   par-dessus l'aperçu une fois celui-ci prêt. */
.demo-chargement[hidden] { display: none; }

@media (max-width: 900px) {
  .demo-corps { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .demo-guide { border-inline-end: none; border-bottom: 1px solid rgba(255,255,255,.1); max-height: 168px; padding: 12px; }
  .demo-guide h3, .demo-guide .rappel { display: none; }
  .demo-etapes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .demo-etape { min-width: 210px; margin: 0; }
  .demo-scene { padding: 10px; }
  .demo-scene.mobile .demo-cadre { border-width: 6px; border-radius: 26px; }
}
