/* Scalinata — site stylesheet.
   Light theme with a brand gradient (purple → teal → coral) drawn from the
   Scalinata logo. Product logos are icon SVGs designed for dark backgrounds,
   so they sit on dark rounded tiles. */

:root {
  --brand-purple: #6c4cf5;
  --brand-teal: #2ec4b6;
  --brand-coral: #ff6b6b;
  --brand-gradient: linear-gradient(120deg, #6c4cf5 0%, #2ec4b6 55%, #ff6b6b 100%);

  --ink: #1b1d28;
  --ink-soft: #4a4d60;
  --muted: #71748a;
  --line: #e7e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --tile: #1e2030;            /* dark tile behind product logos */

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(27, 29, 40, .05), 0 8px 24px rgba(27, 29, 40, .07);
  --shadow-hover: 0 4px 8px rgba(27, 29, 40, .07), 0 16px 40px rgba(27, 29, 40, .12);

  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--brand-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; }
.brand-name { font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }

.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--brand-purple); text-decoration: none; }

.nav-menu { position: relative; }
.nav-menu-label { list-style: none; cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.nav-menu-label::-webkit-details-marker { display: none; }
.nav-menu-label::after { content: " \25BE"; font-size: .8em; }
.nav-menu-label:hover, .nav-menu[open] > .nav-menu-label { color: var(--brand-purple); }
.nav-submenu {
  position: absolute; top: 100%; left: -.8rem; z-index: 20; min-width: 10rem; margin-top: .5rem; padding: .4rem 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.nav-submenu a { display: block; padding: .45rem 1rem; white-space: nowrap; }
.nav-submenu a:hover { background: var(--bg-soft); }

.nav-toggles, .footer-lang { display: flex; align-items: center; gap: .35rem; font-size: .85rem; }
.lang-toggle { color: var(--muted); font-weight: 600; }
.lang-toggle.active { color: var(--brand-purple); }
.toggle-sep { color: var(--line); }

/* ---------- Main / layout ---------- */
.site-main { flex: 1; }
.narrow-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .65rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-purple); color: #fff; }
.btn-primary:hover { background: #5a3ce0; box-shadow: 0 6px 18px rgba(108, 76, 245, .35); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.btn-large { padding: .85rem 1.8rem; font-size: 1.05rem; }
.btn-youtube {
  background: #ff0033;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-youtube:hover { background: #e00029; box-shadow: 0 6px 18px rgba(255, 0, 51, .3); }
.yt-icon { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 50% -120px, rgba(108, 76, 245, .12), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}
.hero-logo { width: 72px; height: 72px; margin-bottom: 1rem; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  letter-spacing: -.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text { font-size: 1.12rem; color: var(--ink-soft); margin: 0 auto 1.8rem; max-width: 640px; }
.hero-cta { margin-top: .3rem; }

/* ---------- Product grid ---------- */
.product-grid-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
.section-title { text-align: center; font-size: 1.8rem; margin: 0 0 2.2rem; letter-spacing: -.01em; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #d7d9e8; }
.product-logo, .product-detail-logo {
  width: 56px;
  height: 56px;
  padding: 12px;
  background: var(--tile);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}
.product-name { font-size: 1.3rem; margin: 0 0 .5rem; }
.product-tagline { color: var(--ink-soft); font-size: .96rem; margin: 0 0 1.5rem; flex: 1; }
.product-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Pricing ---------- */
.product-price { margin: 0 0 1.3rem; display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.price-amount { font-size: 1.55rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.price-cur { font-size: .85rem; font-weight: 600; color: var(--muted); }
.price-note { font-size: .78rem; color: var(--muted); }
.product-detail-price {
  margin: 2.2rem 0 0;
  padding: 1.1rem 1.3rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.product-detail-price .price-line { display: flex; align-items: baseline; gap: .5rem; }
.product-detail-price .price-amount { font-size: 1.9rem; }
.product-detail-price .price-per { font-size: .9rem; color: var(--muted); font-weight: 600; }
.product-detail-price .price-note { font-size: .9rem; margin: .35rem 0 0; line-height: 1.5; }

/* ---------- Currency conversion window (indicative; payment in USD) ---------- */
.fx-link { background: none; border: none; padding: 0; margin: 0; font: inherit;
  color: var(--brand-purple); text-decoration: underline; cursor: pointer; }
.fx-link:hover { color: var(--ink); }
.fx-overlay { position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(27, 29, 40, .5); }
.fx-modal { background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 100%;
  max-width: 460px; max-height: 85vh; overflow-y: auto; padding: 1.5rem; }
.fx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.fx-title { margin: 0; font-size: 1.2rem; }
.fx-close { background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 .25rem; }
.fx-close:hover { color: var(--ink); }
.fx-loading { color: var(--muted); margin: 1rem 0 0; }
.fx-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.fx-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line); }
.fx-row:last-child { border-bottom: none; }
.fx-row-label { flex: 1 1 100%; color: var(--muted); font-size: .88rem; }
.fx-row-base { font-weight: 700; }
.fx-row-conv { color: var(--ink-soft); }
.fx-note { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.fx-unavailable { margin: 1rem 0 0; }
.fx-cta { text-align: center; color: var(--muted); font-size: .9rem; margin: 1.6rem 0 0; }
.product-detail-price .fx-cta { text-align: left; margin: .6rem 0 0; }

/* ---------- Product detail ---------- */
.product-detail { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.product-detail-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.product-detail-logo { width: 72px; height: 72px; padding: 14px; margin: 0; flex-shrink: 0; }
.product-detail-name {
  font-size: 2.2rem; margin: 0 0 .2rem; letter-spacing: -.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.product-detail-tagline { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.product-detail-intro { font-size: 1.1rem; color: var(--ink-soft); margin: 1.5rem 0 2rem; }
.product-detail-features h2, .product-detail-engines h2 { font-size: 1.25rem; margin: 1.8rem 0 .8rem; }
.product-detail-engines h2 { display: flex; align-items: center; gap: .6rem; }
.engine-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 .45rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}
.engine-chips {
  list-style: none;
  padding: 0;
  margin: .2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.engine-chip {
  background: var(--tile);
  color: #fff;
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.product-detail-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ---------- Feature checklist ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.feature { display: flex; align-items: flex-start; gap: .6rem; color: var(--ink-soft); }
.feature-icon { flex-shrink: 0; margin-top: .15rem; }
.feature-full .feature-icon { color: #1f9d57; }     /* green — fully delivered */
.feature-partial .feature-icon { color: #e0a316; }  /* amber — delivered with a caveat */
.feature-text { line-height: 1.5; }
/* screen-reader-only status word ("Yes:" / "Partial:") */
.feature-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Forms ---------- */
.stacked-form { margin-top: 1.5rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-field { flex: 1; min-width: 200px; margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.form-field label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(108, 76, 245, .15);
}
.field-error { color: #d64545; font-size: .85rem; margin: .35rem 0 0; }
.form-error {
  background: #fdecec; border: 1px solid #f5c2c2; color: #b13030;
  padding: .7rem .9rem; border-radius: var(--radius-sm);
}
.form-note {
  background: #eafaf3; border: 1px solid #b6e6cf; color: #1f7a4d;
  padding: 1rem 1.1rem; border-radius: var(--radius-sm);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- About / Who we are ---------- */
.about-page > p { color: var(--ink-soft); font-size: 1.1rem; }
.about-card {
  margin: 2rem 0 0;
  padding: 1.4rem 1.6rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-purple);
  border-radius: var(--radius-sm);
}
.about-card h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.about-details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; }
.about-details dt { font-weight: 600; color: var(--muted); font-size: .9rem; align-self: start; }
.about-details dd { margin: 0; color: var(--ink); }
.dicteo-list { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.dicteo-list li { margin: .4rem 0; }

/* Small note at the bottom of the temporary home page */
.home-note { text-align: center; padding: 2rem 1.5rem 3rem; color: var(--muted); font-size: .95rem; }
.home-note p { margin: 0; }

/* ---------- Commitments (home page) ---------- */
.commitments-section { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem 3.5rem; }
.commitments-intro { text-align: center; color: var(--ink-soft); font-size: 1.05rem; max-width: 620px; margin: 0 auto 2.2rem; }
.commitment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.commitment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-teal);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
}
.commitment-title { font-size: 1.02rem; margin: 0 0 .5rem; }
.commitment-text { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }

/* ---------- Legal / placeholder ---------- */
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal-page p { color: var(--ink-soft); }
.placeholder-page { text-align: center; }
.placeholder-page p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 2rem; }
.placeholder-page .product-detail-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 2rem; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-copyright { color: var(--muted); font-size: .88rem; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-purple); text-decoration: underline; cursor: pointer; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: .88rem; }
.footer-links a:hover { color: var(--brand-purple); text-decoration: none; }

/* ---------- Cookie notice banner ---------- */
.cookie-banner {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-banner-text { margin: 0; flex: 1; min-width: 220px; font-size: .9rem; color: var(--ink-soft); }
.cookie-banner-btn { white-space: nowrap; }

/* ---------- Bundles ---------- */
.bundles-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}
.bundles-intro {
  text-align: center;
  color: var(--ink-soft);
  margin: -1.4rem auto 2.2rem;
  max-width: 620px;
}
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: 760px;
  margin: 0 auto;
}
.bundle-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.bundle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #d7d9e8; }
.bundle-card-featured { border-color: var(--brand-purple); box-shadow: 0 8px 30px rgba(108, 76, 245, .16); }
.bundle-badge {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  background: var(--brand-gradient);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .22rem .55rem;
  border-radius: 999px;
}
.bundle-name { font-size: 1.35rem; margin: 0 0 .4rem; }
.bundle-tagline { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.2rem; }
.bundle-price { margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.bundle-list { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.bundle-list li {
  position: relative;
  padding: .28rem 0 .28rem 1.5rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.bundle-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .85rem;
  width: .5rem; height: .5rem;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.bundle-card .product-actions { justify-content: flex-start; }
.bundle-card .btn { width: 100%; }

/* ---------- Security band ---------- */
.security-section {
  background:
    radial-gradient(900px 300px at 50% 120%, rgba(46, 196, 182, .12), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.security-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
}
.security-icon { color: var(--brand-teal); flex-shrink: 0; margin-top: .2rem; }
.security-text h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
.security-text p { color: var(--ink-soft); margin: 0; }

.product-detail-security {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin: 2.2rem 0 0;
  padding: 1.1rem 1.3rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-teal);
  border-radius: var(--radius-sm);
}
.product-detail-security .security-icon { color: var(--brand-teal); margin-top: .25rem; }
.product-detail-security h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.product-detail-security p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .navbar { flex-wrap: wrap; gap: .8rem 1.2rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; }
  .product-detail-header { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .security-inner { flex-direction: column; gap: 1rem; }
}

/* Bouton « œil » des champs de mot de passe (data-reveal) : le champ et le bouton côte à côte. */
.pw-wrap { display: flex; gap: .5rem; align-items: stretch; }
.pw-wrap input { flex: 1; min-width: 0; }
.pw-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 0 .75rem; color: var(--ink); background: #fff; cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pw-toggle svg { display: block; }

/* Bulle d'aide sur un champ (data-tip) : posée sur le conteneur du champ, elle apparaît au survol
   (souris) ou au focus (clavier, toucher — :focus-within suit le champ qu'elle entoure). Rien n'est
   inséré dans la page tant qu'elle est cachée (display:none), pour qu'elle ne fasse jamais défiler la page. */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); display: none;
  position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 0;
  width: max-content; max-width: min(260px, 80vw); padding: 6px 10px;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 400; line-height: 1.35; text-align: left; white-space: normal;
  box-shadow: var(--shadow); pointer-events: none;
}
[data-tip]::before {
  content: ""; display: none;
  position: absolute; z-index: 30; bottom: calc(100% + 2px); left: 14px;
  border: 6px solid transparent; border-top-color: var(--ink); border-bottom-width: 0;
  pointer-events: none;
}
[data-tip]:hover::after, [data-tip]:hover::before,
[data-tip]:focus-visible::after, [data-tip]:focus-visible::before,
[data-tip]:focus-within::after, [data-tip]:focus-within::before { display: block; }
/* Délai d'apparition : la bulle reste invisible 0,7 s (fill-mode both) avant de se montrer en fondu, pour ne pas surgir au simple passage de la souris. */
[data-tip]:hover::after, [data-tip]:hover::before,
[data-tip]:focus-visible::after, [data-tip]:focus-visible::before,
[data-tip]:focus-within::after, [data-tip]:focus-within::before { animation: tip-apparait .15s ease .7s both; }
@keyframes tip-apparait { from { opacity: 0; } to { opacity: 1; } }
.pw-toggle:hover { background: var(--line); }

/* Titre de page qui renvoie au site du logiciel (dicteo.app, zourou.app) */
.titre-lien { text-decoration: underline; text-decoration-skip-ink: none; text-decoration-thickness: .07em; text-underline-offset: .18em; }
