/* Stratenzer — site de présentation v1 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --night: #0B2D5B;
  --primary: #2E6EB7;
  --light: #8CB4E6;
  --pale: #E6F0FA;
  --ivory: #F9F7F2;
  --ink: #26303D;
  --ink-soft: #5E6873;
  --line: #D9DCE1;
  --font-title: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Source Sans 3', 'Segoe UI', Roboto, sans-serif;
  --measure: 34rem;
  --wide: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-title); color: var(--night); font-weight: 500; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 300; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--light); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* En-tête */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header img { height: 52px; width: auto; display: block; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--primary); }

/* Boutons */
.btn { display: inline-block; font-family: var(--font-text); font-weight: 600; font-size: 1.0625rem; padding: 0.8rem 1.5rem; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--night); color: #fff; }
.btn-quiet { background: transparent; color: var(--night); border: 1.5px solid var(--night); }
.btn-quiet:hover { background: var(--pale); }
.on-night .btn-primary { background: #fff; color: var(--night); }
.on-night .btn-primary:hover { background: var(--pale); color: var(--night); }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero p.lead { font-size: 1.3rem; color: var(--ink-soft); }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero .note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 1rem; }

/* La conversation */
.chat { background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(11, 45, 91, 0.12); padding: 1.25rem; min-height: 26rem; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.chat-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-head strong { font-family: var(--font-title); font-weight: 500; color: var(--night); display: block; }
.chat-head span { font-size: 0.9rem; color: var(--ink-soft); }
.chat-body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.msg { max-width: 86%; padding: 0.65rem 0.95rem; font-size: 1rem; line-height: 1.45; opacity: 0; transform: translateY(6px); animation: msg-in 0.5s ease forwards; }
.msg.expert { align-self: flex-start; background: var(--pale); color: var(--night); border-radius: 16px 16px 16px 4px; }
.msg.user { align-self: flex-end; background: var(--night); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg.action { align-self: flex-start; background: #fff; border: 1.5px solid var(--light); color: var(--night); border-radius: 12px; font-size: 0.95rem; }
.msg.action b { font-weight: 600; }
.msg.action small { display: block; color: var(--ink-soft); margin-top: 0.2rem; }
.msg:nth-child(1) { animation-delay: 0.4s; }
.msg:nth-child(2) { animation-delay: 1.6s; }
.msg:nth-child(3) { animation-delay: 2.9s; }
.msg:nth-child(4) { animation-delay: 4.4s; }
.msg:nth-child(5) { animation-delay: 5.8s; }
.msg:nth-child(6) { animation-delay: 7.0s; }
@keyframes msg-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; opacity: 1; transform: none; } }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { max-width: 28ch; }
.intro { font-size: 1.2rem; color: var(--ink-soft); }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.three h3 { margin-bottom: 0.4em; }
.three p { font-size: 1.05rem; color: var(--ink-soft); }

/* Étapes : une vraie séquence */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; max-width: 44rem; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-title); font-weight: 300; font-size: 2rem; color: var(--light); line-height: 1; padding-top: 0.1rem; }
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* Bande nuit : accès anticipé */
.band { background: var(--night); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) 0; background-image: linear-gradient(100deg, var(--night) 55%, #163F78 100%); }
.band h2, .band p { color: #fff; }
.band p { color: var(--pale); }
.band form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; max-width: 34rem; }
.band input[type="email"] { flex: 1 1 16rem; padding: 0.8rem 1rem; border-radius: 12px; border: 1.5px solid var(--light); background: #fff; color: var(--ink); font: inherit; font-size: 1.0625rem; }
.band .form-note { font-size: 0.95rem; margin-top: 0.75rem; }
.band .form-msg { font-weight: 600; margin-top: 0.75rem; min-height: 1.4em; }

/* Pied */
.site-footer { padding: 2rem 0 2.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer img { height: 40px; width: auto; display: block; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* Pages intérieures */
.page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.page h1 { max-width: 20ch; }
.page h2 { font-size: 1.5rem; font-weight: 500; margin-top: 2.2em; }
.page ul { padding-left: 1.2rem; max-width: var(--measure); }
.page li { margin-bottom: 0.4em; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; max-width: 44rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--font-title); font-weight: 500; color: var(--night); font-size: 1.15rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 300; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.75rem; color: var(--ink-soft); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; max-width: 52rem; }
.plan { background: #fff; border-radius: 16px; padding: 1.75rem; border: 1.5px solid var(--line); }
.plan.featured { border-color: var(--primary); }
.plan h3 { margin-bottom: 0.25em; }
.plan .price { font-family: var(--font-title); font-weight: 300; font-size: 1.75rem; color: var(--night); margin: 0 0 0.75rem; }
.plan ul { padding-left: 1.1rem; color: var(--ink-soft); font-size: 1.02rem; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .chat { min-height: 0; }
  .site-nav { gap: 1rem; }
}

@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .site-nav { gap: 0.75rem 1rem; align-items: center; }
  .site-nav a { font-size: 0.95rem; }
}


/* ===== Accueil v2 : plus de bleu, un tableau de bord ===== */
body { background: #EEF4FB; }
.site-header { background: var(--night); }
.site-header .site-nav a { color: #fff; }
.site-header .site-nav a[aria-current="page"], .site-header .site-nav a:hover { color: var(--light); }
.site-header .site-nav a.btn-primary { background: #fff; color: var(--night); }
.site-header .site-nav a.btn-primary:hover { background: var(--pale); color: var(--night); }
.site-header img.logo-dark { display: none; }

.hero.on-night { background: var(--night); background-image: radial-gradient(1200px 600px at 85% 20%, #1B4A8A 0%, transparent 60%); color: #fff; margin-top: -1px; }
.hero.on-night h1 { color: #fff; }
.hero.on-night p.lead { color: var(--pale); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid var(--light); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.proof { list-style: none; margin: 2.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.proof b { display: block; font-family: var(--font-title); font-weight: 300; font-size: 1.75rem; color: #fff; line-height: 1.1; }
.proof span { font-size: 0.92rem; color: var(--light); display: block; margin-top: 0.2rem; line-height: 1.35; }

.section.pale { background: var(--pale); }
.dash-section { background: #EEF4FB; }
.section + .section { border-top: 0; }

.dash { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 1.1rem; margin-top: 2rem; }
.tile { background: #fff; border-radius: 16px; padding: 1.25rem 1.35rem; box-shadow: 0 10px 30px rgba(11,45,91,.10); border: 1px solid #D6E3F3; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.9rem; }
.tile-head span { font-family: var(--font-title); font-weight: 500; color: var(--night); font-size: 1.05rem; }
.tile-head em { font-style: normal; color: var(--primary); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }

.phases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin-bottom: 2.4rem; }
.phase { background: #E1EBF7; border-radius: 6px; height: 12px; position: relative; }
.phase i { display: block; height: 100%; border-radius: 6px; background: var(--light); }
.phase.done i { background: var(--primary); }
.phase.now i { background: var(--primary); }
.phase span { position: absolute; top: 100%; left: 0; font-size: 0.74rem; padding-right: 0.3rem; }
.phase span { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.45rem; line-height: 1.2; }
.phase.now span { color: var(--night); font-weight: 600; }

.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.todo li { position: relative; padding-left: 1.8rem; font-size: 0.98rem; line-height: 1.35; color: var(--ink); }
.todo li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid var(--light); }
.todo li.ok { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--light); }
.todo li.ok::before { background: var(--primary); border-color: var(--primary); }
.todo li.ok::after { content: ""; position: absolute; left: 0.36rem; top: 0.42rem; width: 0.3rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.todo small { display: block; color: var(--primary); font-weight: 600; font-size: 0.85rem; }

.tile-viz svg { width: 100%; height: auto; display: block; }

.bars { display: grid; gap: 0.5rem; }
.bars div { display: grid; grid-template-columns: 7.5rem 1fr 2rem; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.bars span { color: var(--ink-soft); }
.bars i { display: block; height: 10px; background: var(--primary); border-radius: 6px; }
.bars div:nth-child(1) i { background: var(--light); }
.bars div:nth-child(4) i { background: var(--night); }
.bars b { text-align: right; color: var(--night); }
.alert { margin: 1rem 0 0; padding: 0.7rem 0.9rem; background: var(--pale); border-left: 3px solid var(--primary); border-radius: 8px; font-size: 0.95rem; color: var(--night); max-width: none; }

.band { background: var(--night); background-image: radial-gradient(900px 500px at 15% 50%, #1B4A8A 0%, transparent 60%); }
.site-footer { background: var(--night); color: var(--light); padding: 2rem 0 2.5rem; }
.site-footer a { color: var(--pale); }
.site-footer span { color: var(--light); }

@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; gap: 0.75rem; }
  .phases { grid-template-columns: repeat(3, 1fr); }
}

.plan-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid #E1EBF7; }
.plan-meta b { display: block; font-family: var(--font-title); font-weight: 300; font-size: 1.6rem; color: var(--night); line-height: 1.1; }
.plan-meta span { font-size: 0.9rem; color: var(--ink-soft); }
.plan-next { margin: 1rem 0 0; font-size: 0.98rem; color: var(--night); max-width: none; }
.plan-next b { font-weight: 600; }
