/* =============================================================
   Pages « outil » — gabarit commun aux landing pages des produits.
   Chaque page définit son habillage dans un bloc <style> :
     .outil { --o-primary; --o-accent; --o-dark; --o-bg; --o-ink; --o-font-head ... }
   ============================================================= */

.outil {
  --o-primary: #2563EB;
  --o-primary-dark: #1D4ED8;
  --o-accent: #FF6A2B;
  --o-dark: #0A1834;          /* bandes foncées (écrans mobiles) */
  --o-on-dark: #C9D3E6;
  --o-bg: #F6F8FC;            /* fond des sections alternées */
  --o-ink: #0A1834;
  --o-hero-bg: var(--o-bg);   /* hero : clair par défaut, chaque outil peut le foncer */
  --o-hero-ink: var(--o-ink);
  --o-hero-sub: var(--text-soft);
  --o-font-head: var(--font-head);
  --o-font-body: var(--font-body);
  font-family: var(--o-font-body);
}
.outil h1, .outil h2, .outil h3, .outil h4 { font-family: var(--o-font-head); color: var(--o-ink); letter-spacing: -.02em; }
.outil .eyebrow { color: var(--o-primary); font-family: var(--o-font-head); }
.outil .bg-soft { background: var(--o-bg); }
.outil .btn, .outil .field label { font-family: var(--o-font-head); }
/* L'assistant et le bouton WhatsApp sont ceux de Bonkano : absents des pages outil */
.outil .bnk-fab, .outil .bnk-chat { display: none !important; }

/* Boutons aux couleurs de l'outil */
.outil .btn-primary { background: var(--o-primary); box-shadow: 0 10px 26px color-mix(in srgb, var(--o-primary) 30%, transparent); }
.outil .btn-primary:hover { background: var(--o-primary-dark); box-shadow: 0 16px 34px color-mix(in srgb, var(--o-primary) 40%, transparent); }
.outil .btn-soft { background: #fff; color: var(--o-ink); border: 1.5px solid var(--border); }
.outil .btn-soft:hover { border-color: var(--o-primary); color: var(--o-primary); transform: translateY(-3px); }
.outil .field input:focus, .outil .field textarea:focus, .outil .field select:focus { border-color: var(--o-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--o-primary) 14%, transparent); }
.outil a.o-link { color: var(--o-primary); font-weight: 600; }

/* ---------- En-tête propre à l'outil ---------- */
.o-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.o-header .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.o-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--o-font-head); font-weight: 800; font-size: 1.35rem; color: var(--o-ink); letter-spacing: -.02em; }
.o-logo img, .o-logo svg { width: 40px; height: 40px; flex: none; }
.o-nav { display: flex; gap: 6px; margin-left: auto; }
.o-nav a { padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--text-soft); font-family: var(--o-font-head); }
.o-nav a:hover { color: var(--o-primary); background: var(--o-bg); }
.o-header .btn { padding: 11px 20px; font-size: .95rem; }

/* ---------- Hero ---------- */
.o-hero { position: relative; background: var(--o-hero-bg); color: var(--o-hero-sub); padding: 76px 0 84px; overflow: hidden; }
.o-hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 44%; background: var(--o-primary); opacity: .09; }
.o-hero::before { content: ""; position: absolute; width: 300px; height: 300px; left: -120px; bottom: -150px; border-radius: 46%; background: var(--o-accent); opacity: .16; }
.o-hero .container { position: relative; z-index: 2; }
.o-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.o-hero-grid > * { min-width: 0; }
.o-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; background: color-mix(in srgb, var(--o-accent) 18%, #fff); color: var(--o-ink); font-family: var(--o-font-head); font-weight: 700; font-size: .82rem; }
.o-tag::before { content: ""; width: 8px; height: 8px; border-radius: 8px; background: var(--o-accent); }
.outil .o-hero h1 { color: var(--o-hero-ink); font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 20px 0 18px; }
.o-hero h1 em { font-style: normal; color: var(--o-primary); }
.o-hero .lead { font-size: 1.12rem; max-width: 520px; color: var(--o-hero-sub); }
.o-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.o-hero-note { margin-top: 18px; font-size: .88rem; }
.o-video { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 10px; box-shadow: 0 30px 70px color-mix(in srgb, var(--o-primary) 18%, transparent); }
.o-video video, .o-video img { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 14px; background: #000; object-fit: cover; }
.o-video figcaption { padding: 12px 8px 4px; font-size: .8rem; color: var(--text-soft); }

/* ---------- Pied de page propre à l'outil ---------- */
.o-footer { background: var(--o-ink); color: #B9C2D6; padding: 44px 0 30px; font-size: .92rem; }
.o-footer .container { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.o-footer .o-logo { color: #fff; }
.o-footer p { margin-top: 12px; max-width: 420px; }
.o-footer a { color: #fff; }
.o-footer a:hover { text-decoration: underline; }
.o-footer ul { display: grid; gap: 8px; }
.o-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.o-made { width: 100%; border-top: 1px solid rgba(255,255,255,.12); margin-top: 8px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; justify-content: space-between; }
.o-made img { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }

/* ---------- Cartes « piliers » ---------- */
.o-pillars .card h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.o-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--o-primary) 12%, #fff); color: var(--o-primary); }
.o-ic svg { width: 26px; height: 26px; }

/* ---------- Blocs fonctionnalité + capture ---------- */
.o-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.o-split > * { min-width: 0; }
.o-split + .o-split { margin-top: clamp(56px, 8vw, 96px); }
.o-split.reverse .o-shot { order: -1; }
.o-split h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 12px 0 14px; }
.o-split p { color: var(--text-soft); }
.o-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(16,24,40,.14); background: #fff; }
.o-shot img { display: block; width: 100%; height: auto; }
.o-shot.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 0; box-shadow: none; background: none; overflow: visible; }
.o-shot.duo img { border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(16,24,40,.14); }
.o-shot.duo img + img { margin-top: 36px; margin-left: -18px; }
.o-checks { display: grid; gap: 12px; margin-top: 22px; }
.o-checks li { display: flex; gap: 12px; align-items: flex-start; }
.o-checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; background: color-mix(in srgb, var(--o-primary) 14%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }

/* ---------- Bande sombre : écrans mobiles ---------- */
.o-dark { background: var(--o-dark); color: var(--o-on-dark); }
.outil .o-dark h2, .outil .o-dark h3 { color: #fff; }
.o-dark .eyebrow { color: var(--o-accent); }
.o-dark .section-head p { color: var(--o-on-dark); }
.o-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); max-width: 980px; margin-inline: auto; }
.o-phone { margin: 0; text-align: center; }
.o-phone img { display: block; width: 100%; max-width: 260px; margin-inline: auto; height: auto; border-radius: 30px; }
.o-phone figcaption { margin-top: 16px; }
.o-phone figcaption strong { display: block; color: #fff; font-family: var(--o-font-head); font-size: 1.05rem; }
.o-phone figcaption span { font-size: .9rem; }
.o-tabs-title { text-align: center; margin: clamp(48px, 7vw, 76px) 0 28px; font-size: 1.3rem; }

/* ---------- Étapes « comment ça marche » ---------- */
.o-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: o-step; }
.o-step { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; position: relative; }
.o-step::before { counter-increment: o-step; content: counter(o-step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--o-primary); color: #fff; font-family: var(--o-font-head); font-weight: 700; margin-bottom: 16px; }
.o-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.o-step p { font-size: .92rem; color: var(--text-soft); }

/* ---------- Grille de fonctionnalités ---------- */
.o-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.o-feature { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.o-feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.o-feature p { font-size: .94rem; color: var(--text-soft); }
.o-feature::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--o-accent); margin-bottom: 16px; }

/* ---------- Démo + formulaire ---------- */
.o-demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.o-demo > * { min-width: 0; }
.o-demo-box { margin-top: 26px; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.o-demo-box h3 { font-size: 1.05rem; margin-bottom: 8px; }
.o-demo-box p { font-size: .94rem; color: var(--text-soft); margin-bottom: 14px; }
.o-demo-box code { background: var(--o-bg); padding: 2px 7px; border-radius: 6px; font-size: .9em; color: var(--o-ink); }
.o-faq { max-width: 820px; margin-inline: auto; }
.o-faq details { padding: 20px 0; border-bottom: 1px solid var(--border); }
.o-faq summary { font-family: var(--o-font-head); font-weight: 600; font-size: 1.08rem; cursor: pointer; color: var(--o-ink); }
.o-faq details p { margin-top: 12px; color: var(--text-soft); }

@media (max-width: 992px) {
  .o-hero-grid, .o-split, .o-demo { grid-template-columns: 1fr; gap: 36px; }
  .o-split.reverse .o-shot { order: 0; }
  .o-steps { grid-template-columns: repeat(2, 1fr); }
  .o-features { grid-template-columns: repeat(2, 1fr); }
  .o-hero { padding: 48px 0 56px; }
  .o-nav { display: none; }
  .o-header .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .o-phones { grid-template-columns: 1fr; max-width: 300px; gap: 36px; }
  .o-steps, .o-features { grid-template-columns: 1fr; }
  .o-shot.duo { grid-template-columns: 1fr; }
  .o-shot.duo img + img { margin: 14px 0 0; }
  .o-hero-actions .btn { width: 100%; justify-content: center; }
}

/* Variantes */
.o-steps.three { grid-template-columns: repeat(3, 1fr); }
.o-phone.raw img { border: 8px solid var(--o-ink); border-radius: 34px; background: #fff; }
@media (max-width: 640px) { .o-steps.three { grid-template-columns: 1fr; } }
.o-steps.four { grid-template-columns: repeat(4, 1fr); }
.bg-soft .o-phone figcaption strong, .section:not(.o-dark) .o-phone figcaption strong { color: var(--o-ink); }
.o-logo img { border-radius: 10px; }
@media (max-width: 992px) { .o-steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .o-steps.four { grid-template-columns: 1fr; } }
.o-phones.two { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
@media (max-width: 640px) { .o-phones.two { grid-template-columns: 1fr; max-width: 300px; } }
