/* Valeurs mesurées sur Noesia avec Playwright (styles calculés) */
:root {
  --blue: #0559eb;       /* barre du haut */
  --sand: #f0eeea;       /* barre latérale */
  --bg: #fbf8f2;         /* fond de page, crème très léger (Noesia : #f7f9fa) */
  --surface: #ffffff;    /* cartes */
  --border: #e4e7eb;     /* bordures */
  --ink: #191b1f;        /* titres */
  --text: #3b3b3b;       /* texte courant */
  --muted: #717680;      /* texte secondaire */
  --muted-2: #545861;
  --accent: #f95c2a;     /* bouton orange */
  --active: #e0f7b5;     /* élément actif */
  --icon: #e2238f;       /* icônes magenta de la barre latérale */

  --radius-card: 16px;
  --radius-btn: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-box: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --topbar-h: 64px;
  --sidebar-w: 320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Emplacements à remplir, bien visibles pendant le développement */
.todo {
  background: #fef0c7;
  color: #93370d;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 500;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, background-color 0.15s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(0.94); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { background: var(--bg); }
.btn-block { width: 100%; }

/* Barre du haut */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px 0 24px;
  background: var(--blue);
}
.logo {
  color: #fff;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.04em;
  justify-self: start;
}
.tabs { display: flex; gap: 8px; }
.tab {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.tab:hover { background: rgba(255, 255, 255, 0.12); }
.tab.is-active { background: #fff; color: #000; }
.topbar-cta { justify-self: end; }

/* Structure générale */
.layout { display: flex; align-items: flex-start; }

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  flex: 0 0 var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 20px 12px;
  background: var(--sand);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #000;
  transition: background-color 0.15s;
}
.side-link + .side-link { margin-top: 4px; }
.side-link:hover { background: rgba(0, 0, 0, 0.04); }
.side-link.is-active { background: var(--active); }
.side-link svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: var(--icon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.side-link:first-child svg { stroke: #000; }
.side-heading {
  margin: 24px 12px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #000;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 0 48px 48px;
}

/* Bandeau titre collé sous la barre du haut */
.page-head {
  position: sticky;
  top: var(--topbar-h);
  z-index: 10;
  max-width: 1024px;
  margin: 0 auto;
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}
.page-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.page-actions { display: flex; gap: 8px; }

.columns {
  max-width: 1024px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 680px) 320px;
  gap: 24px;
  align-items: start;
}
.col-main, .col-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-side { position: sticky; top: calc(var(--topbar-h) + 97px); }

/* Cartes */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.post { padding: 24px; }
.card-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.card-intro { margin-top: 12px; color: var(--ink); letter-spacing: 0.1px; }

/* Bandeau d'information, comme « Laissez un avis » */
.notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 16px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
}
.notice p { flex: 1; }
.notice-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-box);
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
}

/* Hero */
.eyebrow {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--muted);
}
.hero-title {
  margin-top: 8px;
  font-size: 36px;
  line-height: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  text-wrap: balance;
}
.lead { margin-top: 16px; color: var(--ink); letter-spacing: 0.1px; max-width: 590px; }
.hero-actions { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Signature : le mini navigateur qui assemble un site vitrine */
.browser {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-box);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-url {
  margin-left: 12px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.browser-page { padding: 16px; display: grid; gap: 12px; }
.mock { animation: build 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mock-nav { display: flex; align-items: center; gap: 10px; animation-delay: 0.15s; }
.mock-nav i { width: 56px; height: 10px; border-radius: 3px; background: var(--blue); margin-right: auto; }
.mock-nav b { width: 36px; height: 6px; border-radius: 3px; background: var(--border); }
.mock-hero {
  display: grid; gap: 10px; justify-items: start;
  padding: 24px 20px;
  border-radius: 10px;
  background: var(--sand);
  animation-delay: 0.45s;
}
.line { height: 12px; border-radius: 4px; background: var(--ink); }
.l1 { width: 70%; }
.l2 { width: 45%; opacity: 0.35; height: 8px; }
.pill { width: 88px; height: 22px; border-radius: 6px; background: var(--accent); margin-top: 4px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; animation-delay: 0.75s; }
.mock-grid span { height: 56px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.mock-grid span:nth-child(2) { background: var(--active); border-color: transparent; }
@keyframes build {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Ce qui est inclus */
.features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.features li { display: flex; gap: 12px; }
.features svg {
  width: 20px; height: 20px; flex: none; margin-top: 2px;
  fill: none; stroke: var(--icon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.features h3, .steps h3 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.features p, .steps p { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--muted-2); }

/* Méthode, cases inspirées des dates d'événements */
.steps { margin-top: 20px; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-box, .fact-box {
  width: 44px; height: 44px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  box-shadow: var(--shadow-box);
}
.step-box b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.step-box small { font-size: 10px; line-height: 12.5px; font-weight: 700; color: var(--muted); }

/* FAQ */
.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--radius-btn);
  background: var(--bg);
  font-size: 18px;
  color: var(--ink);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; font-size: 14px; line-height: 20px; color: var(--muted-2); }

/* Calendrier Calendly intégré */
.calendly-frame {
  margin-top: 20px;
  height: 1060px; /* Calendly empile ses blocs dans une colonne étroite, cette hauteur évite un défilement interne */
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.calendly-fallback { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.calendly-fallback a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* Formulaire */
.form {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.field textarea { resize: vertical; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 14px; line-height: 20px; color: var(--muted-2); }

.footer { padding: 8px 4px 0; font-size: 12px; line-height: 18px; color: var(--muted); display: grid; gap: 4px; justify-items: start; }

/* Colonne de droite */
.side-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.side-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.price { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.6px; color: var(--ink); }
.price .todo { font-size: 16px; letter-spacing: 0; }
.meta { margin-top: -8px; font-size: 12px; line-height: 18px; color: var(--muted); }

.facts, .works { display: grid; gap: 16px; }
.facts li, .works li { display: flex; align-items: center; gap: 12px; }
.facts b, .works b { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.facts small, .works small { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.facts small.todo { display: inline-block; color: #93370d; }
.fact-box svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.avatar { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--sand); border: 1px solid var(--border); }

/* Écran moyen : la colonne de droite passe sous la colonne principale */
@media (max-width: 1279px) {
  .columns { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .page-head { max-width: 680px; }
  .col-side { position: static; }
}

/* Mobile et tablette : pas de barre latérale, onglets défilants sous la barre bleue */
@media (max-width: 1023px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo cta" "tabs tabs";
    padding: 0;
  }
  .logo { grid-area: logo; height: 56px; display: flex; align-items: center; padding-left: 22px; font-size: 16px; }
  .topbar-cta { grid-area: cta; margin-right: 16px; }
  .tabs {
    grid-area: tabs;
    height: 61px;
    align-items: center;
    padding: 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { height: 36px; padding: 8px 16px; font-size: 15px; }
  .sidebar { display: none; }
  html { scroll-padding-top: 130px; }
  .main { padding: 16px 16px 40px; }
  .page-head { display: none; }
  .columns { margin-top: 0; }
}

@media (max-width: 560px) {
  .post { padding: 20px; }
  .hero-title { font-size: 28px; line-height: 34px; letter-spacing: -0.6px; }
  .features, .form { grid-template-columns: 1fr; }
  .notice { flex-wrap: wrap; padding: 16px; }
  .notice .btn { width: 100%; }
  .browser-page { padding: 12px; }
  .mock-hero { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock { animation: none; }
  * { transition: none !important; }
}
