/* Tala Technology — feuille de style du site (refonte) */
:root {
  --ink: #14111f;
  --ink-2: #3b3750;
  --muted: #625e78;
  --line: #e4e1ee;
  --bg: #ffffff;
  --surface: #f6f5fb;
  --brand: #5a3db5;
  --brand-ink: #3f2a8c;
  --brand-soft: #ece8fa;
  --gold: #eec531;
  --sage: #7fae76;
  --night: #120d2b;
  --night-2: #1d1545;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 17, 31, .06), 0 8px 28px rgba(20, 17, 31, .08);
  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--surface); }
.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  margin-bottom: 1rem;
  display: block;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1 var(--font);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-light { background: #fff; color: var(--night); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.on-dark .btn-ghost:hover { border-color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

/* En-tête */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-row { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none !important; }
.brand svg { color: var(--brand); }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: .25rem; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a, .nav button.nav-link {
  font: 500 .98rem var(--font); color: var(--ink-2);
  padding: .6rem .9rem; border-radius: 8px; background: none; border: 0; cursor: pointer;
  text-decoration: none !important;
}
.nav a:hover, .nav button.nav-link:hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav .btn { margin-left: .5rem; padding: .7rem 1.2rem; font-size: .95rem; }
.nav a.btn-primary { background: var(--brand); color: #fff; }
.nav a.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + .5rem); left: -1rem;
  width: min(34rem, 92vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .75rem;
  display: none; grid-template-columns: 1fr 1fr; gap: .25rem;
}
.has-menu.open .menu { display: grid; }
.menu a { display: block; padding: .8rem 1rem; border-radius: 10px; }
.menu a strong { display: block; color: var(--ink); font-weight: 650; }
.menu a span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.menu a:hover { background: var(--brand-soft); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Héros */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #3a2490 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #d9d5ee; padding: clamp(4rem, 9vw, 7.5rem) 0; overflow: hidden; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .eyebrow { color: #b7a6f5; }
.hero .lede { color: #c9c3e6; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stack { position: relative; display: grid; gap: .9rem; }
.stack-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
  backdrop-filter: blur(6px);
}
.stack-card:nth-child(odd) { margin-right: 2.5rem; }
.stack-card:nth-child(even) { margin-left: 2.5rem; }
.stack-card b { display: block; color: #fff; font-weight: 650; }
.stack-card span { font-size: .92rem; color: #bfb8e0; }
.stack-card i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .5rem; }

/* Bandeau de confiance */
.trust { border-bottom: 1px solid var(--line); padding: 2rem 0; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 2.5rem; }
.trust small { width: 100%; text-align: center; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--muted); }
.trust-row span.n { font-weight: 650; color: var(--ink-2); font-size: 1.05rem; opacity: .85; }

/* Cartes produits */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.card { color: inherit; text-decoration: none !important; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand); }
.card .tag { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: .8rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); flex: 1; }
.card .link-arrow { margin-top: .5rem; }
.dot { width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }

/* Bandeau IA */
.band-dark { background: linear-gradient(180deg, var(--night-2), var(--night)); color: #d9d5ee; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede { color: #c9c3e6; }
.band-dark .eyebrow { color: #b7a6f5; }
.band-dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.band-dark .card p { color: #c9c3e6; }
.band-dark .card .tag { color: var(--gold); }
.pill { display: inline-block; background: var(--gold); color: #3a2f00; font: 700 .7rem var(--mono); padding: .15rem .5rem; border-radius: 999px; margin-left: .5rem; vertical-align: middle; }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.pillar h3 { border-top: 3px solid var(--brand); padding-top: 1rem; }
.pillar p { color: var(--muted); }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat b { display: block; font-size: clamp(3rem, 6vw, 4.5rem); color: var(--brand); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat span { color: var(--muted); }

/* Appel à l'action */
.cta { background: var(--brand); color: #fff; text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta h2 { color: #fff; }
.cta p { color: #e4defa; max-width: 40rem; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

/* Pages produit */
.page-hero { background: var(--surface); padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.feature { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; }
.feature .num { font-family: var(--mono); color: var(--brand); font-size: 1.1rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--muted); max-width: 44rem; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 2rem 0 0; }
.flow span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .92rem; font-weight: 500; }
.flow b { color: var(--brand); }

/* Références */
.ref { border-left: 4px solid var(--brand); }
.ref.v2 { border-left-color: var(--gold); }
.ref.v3 { border-left-color: var(--sage); }

/* Contact / formulaires */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form h2, .form h3 { margin-top: 0; font-size: 1.4rem; }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.field .req { color: var(--brand); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.consent { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.form-note { margin: .8rem 0 0; font-weight: 600; min-height: 1.4em; }

/* Pied de page */
.ftr { background: var(--night); color: #bfb8e0; padding: 4rem 0 2rem; }
.ftr a { color: #d9d5ee; }
.ftr h4 { color: #fff; font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ftr .brand { color: #fff; }
.ftr .brand em { color: #bfb8e0; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Mobile */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stack { display: none; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 4.5rem; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; margin: 0;
  }
  .nav.open { display: flex; }
  .menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 .5rem; grid-template-columns: 1fr; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
  .feature { grid-template-columns: 1fr; gap: .4rem; }
}
@media (max-width: 560px) {
  .ftr-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Campagne */
.offer {
  background: #fff; color: var(--ink-2);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  border-top: 5px solid var(--gold);
}
.offer .eyebrow { color: var(--brand); }
.offer p { margin: 0 0 .7rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; }
.price b { font-size: clamp(2.2rem, 4.5vw, 3rem); color: var(--ink); letter-spacing: -.03em; line-height: 1.05; }
.price span { color: var(--muted); font-weight: 600; }
.price.big b { font-size: clamp(2.8rem, 6vw, 4rem); color: var(--brand); }
.offer .limit { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--brand-ink); }
.offer-box { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); margin-top: 1rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.checks.questions { margin: 1.5rem 0 2rem; }
.checks.questions li { font-size: 1.15rem; color: var(--ink); }
.checks.questions li::before { content: "?"; }
.benefit { margin-top: 1rem !important; padding: .8rem 1rem; background: var(--brand-soft); border-radius: 10px; color: var(--ink-2) !important; }
.benefit b { color: var(--brand-ink); }
.feature .checks { margin: .6rem 0; }
.disclaimer { font-size: .88rem; color: var(--muted); margin-top: 2rem; max-width: 52rem; }
@media (max-width: 960px) { .offer-box { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Fenêtre d'annonce de la campagne */
.popup {
  border: 0; border-radius: var(--radius); padding: 2.25rem 2rem 2rem;
  width: min(32rem, calc(100% - 2rem)); color: var(--ink-2); background: #fff;
  border-top: 5px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.popup::backdrop { background: rgba(18, 13, 43, .6); backdrop-filter: blur(3px); }
.popup h2 { font-size: 1.9rem; margin-top: .3rem; }
.popup p { color: var(--muted); }
.popup .hero-actions { margin-top: 1.5rem; }
.popup-close {
  position: absolute; top: .6rem; right: .8rem; width: 2.4rem; height: 2.4rem;
  border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 8px;
}
.popup-close:hover { background: var(--surface); color: var(--ink); }

/* Pages légales */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }
.legal .muted { color: var(--muted); font-size: .9rem; }
mark.todo { background: #ffe58a; color: #3a2e00; padding: 0 .25em; border-radius: 3px; }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.ftr-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Illustration (capture de tableau de bord) */
.shot { margin: 1.4rem 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line, #e6e3f0); }
.shot figcaption { margin-top: .5rem; font-size: .82rem; color: var(--muted); }

/* Galerie de photos de chantier */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.photo figcaption { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.photo.vide div { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--line, #d9d5e8); border-radius: 12px; color: var(--muted); background: #faf9fd; }
.photo.vide small { font-size: .75rem; margin-top: .3rem; }
