/* ==========================================================
   Styles du site (en complément de Tailwind CDN)
   Couleurs : modifier les variables ci-dessous (format R G B).
   ========================================================== */
:root {
  --c-bg: 250 248 244;
  --c-surface: 255 255 255;
  --c-ink: 16 24 40;
  --c-muted: 84 94 112;
  --c-line: 229 225 217;
  --c-brand: 13 110 122;        /* bleu calanque */
  --c-brand-ink: 255 255 255;
  --c-brand-soft: 226 241 242;
  --c-accent: 226 109 68;       /* terracotta */
  --c-accent-soft: 252 233 224;
  color-scheme: light;
}
.dark {
  --c-bg: 10 15 24;
  --c-surface: 18 26 38;
  --c-ink: 234 239 245;
  --c-muted: 152 163 179;
  --c-line: 38 49 66;
  --c-brand: 72 196 208;
  --c-brand-ink: 6 22 28;
  --c-brand-soft: 16 46 54;
  --c-accent: 240 140 104;
  --c-accent-soft: 58 32 24;
  color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  background: rgb(var(--c-bg));
  color: rgb(var(--c-ink));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgb(var(--c-brand) / .2); }
:focus-visible { outline: 3px solid rgb(var(--c-brand)); outline-offset: 3px; border-radius: 6px; }
[x-cloak] { display: none !important; }
h1, h2, h3, .font-display { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.02em; }
.lucide { stroke-width: 1.75; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .8rem 1.35rem; font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: rgb(var(--c-brand)); color: rgb(var(--c-brand-ink)); box-shadow: 0 8px 20px -8px rgb(var(--c-brand) / .7); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 12px 26px -10px rgb(var(--c-brand) / .8); }
.btn-ghost { background: rgb(var(--c-surface)); color: rgb(var(--c-ink)); border-color: rgb(var(--c-line)); }
.btn-ghost:hover { border-color: rgb(var(--c-brand)); color: rgb(var(--c-brand)); }
.btn-dark { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); }
.btn-dark:hover { filter: brightness(1.15); }
.btn-whatsapp { background: #25D366; color: #06240f; }
.btn-whatsapp:hover { filter: brightness(1.05); }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  color: rgb(var(--c-ink)); border: 1.5px solid rgb(var(--c-line)); background: rgb(var(--c-surface));
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: rgb(var(--c-brand)); color: rgb(var(--c-brand)); }

/* ---------- Éléments ---------- */
.card { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); border-radius: 1.25rem; }
.card-hover { transition: transform .2s ease, box-shadow .25s ease, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(16 24 40 / .05), 0 24px 48px -20px rgb(16 24 40 / .3); border-color: rgb(var(--c-brand) / .45); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c-brand));
}
.pill {
  display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .3rem .7rem;
  font-size: .78rem; font-weight: 600; background: rgb(var(--c-brand-soft)); color: rgb(var(--c-brand));
}
.pill-accent { background: rgb(var(--c-accent-soft)); color: rgb(var(--c-accent)); }
.text-gradient {
  background: linear-gradient(100deg, rgb(var(--c-brand)) 10%, rgb(var(--c-accent)) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-mark {
  display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .8rem;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
  color: #fff; background: linear-gradient(135deg, rgb(13 110 122), rgb(226 109 68));
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15);
}

/* Bloc sombre, identique en mode clair et en mode sombre */
.panel-dark { background: #0c1422; color: #eef2f6; }
.dark .panel-dark { background: #14223a; box-shadow: inset 0 0 0 1px rgb(var(--c-line)); }
.btn-outline-light { border-color: rgb(255 255 255 / .3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }

/* Fond pointillé discret */
.dots-bg {
  background-image: radial-gradient(rgb(var(--c-ink) / .09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.glow { filter: blur(70px); opacity: .45; border-radius: 999px; pointer-events: none; }

/* ---------- Formulaires ---------- */
.field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.input {
  width: 100%; min-width: 0; border-radius: .8rem; border: 1.5px solid rgb(var(--c-line)); background: rgb(var(--c-bg));
  color: rgb(var(--c-ink)); padding: .75rem .95rem; font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: rgb(var(--c-muted) / .8); }
.input:focus { outline: none; border-color: rgb(var(--c-brand)); box-shadow: 0 0 0 4px rgb(var(--c-brand) / .15); }
.input[aria-invalid="true"] { border-color: #d6453d; }

/* Cartes de choix (radio / checkbox stylés) */
.choice {
  position: relative; display: flex; gap: .85rem; align-items: flex-start; text-align: left; width: 100%;
  border: 1.5px solid rgb(var(--c-line)); background: rgb(var(--c-surface)); border-radius: 1rem;
  padding: .95rem 1rem; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice:hover { border-color: rgb(var(--c-brand) / .6); }
.choice.is-on { border-color: rgb(var(--c-brand)); background: rgb(var(--c-brand-soft) / .55); box-shadow: 0 0 0 3px rgb(var(--c-brand) / .12); }
.choice.is-locked { cursor: default; opacity: .75; border-style: dashed; }
.choice .tick {
  flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-top: .1rem;
  border-radius: .45rem; border: 1.5px solid rgb(var(--c-line)); background: rgb(var(--c-bg)); color: transparent;
}
.choice .tick.round { border-radius: 999px; }
.choice.is-on .tick { background: rgb(var(--c-brand)); border-color: rgb(var(--c-brand)); color: rgb(var(--c-brand-ink)); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid rgb(var(--c-line)); border-radius: 999px; overflow: hidden; }
.stepper button { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; color: rgb(var(--c-ink)); }
.stepper button:hover { background: rgb(var(--c-brand-soft)); color: rgb(var(--c-brand)); }
.stepper output { min-width: 2rem; text-align: center; font-weight: 700; }

.switch { position: relative; width: 2.9rem; height: 1.65rem; border-radius: 999px; background: rgb(var(--c-line)); transition: background-color .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.switch[aria-checked="true"] { background: rgb(var(--c-brand)); }
.switch[aria-checked="true"]::after { transform: translateX(1.25rem); }

/* ---------- FAQ (details/summary) ---------- */
.faq details { border-bottom: 1px solid rgb(var(--c-line)); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 999px; display: grid; place-items: center; background: rgb(var(--c-brand-soft)); color: rgb(var(--c-brand)); transition: transform .25s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: rgb(var(--c-muted)); line-height: 1.7; max-width: 62ch; }

/* ---------- Maquettes (navigateur / téléphone) ---------- */
.mock-browser { border-radius: 1rem; overflow: hidden; background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); box-shadow: 0 2px 4px rgb(16 24 40 / .05), 0 30px 60px -20px rgb(16 24 40 / .35); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid rgb(var(--c-line)); background: rgb(var(--c-bg)); }
.mock-bar i.dot { width: .65rem; height: .65rem; border-radius: 999px; display: inline-block; }
.mock-url { flex: 1; margin-left: .6rem; font-size: .75rem; color: rgb(var(--c-muted)); background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); border-radius: 999px; padding: .25rem .75rem; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.float-card { animation: floaty 6s ease-in-out infinite; }
.float-card.delay { animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Bandeau défilant (métiers) */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: .75rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Impression (récapitulatif de devis) ---------- */
@media print {
  header, footer, .no-print, #sb-chat-root, #launch-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .print-only { display: block !important; }
  .card { border-color: #ccc; box-shadow: none; }
}
.print-only { display: none; }
