/* ═══════════════════════════════════════════════════════════
   ALAIN SIMAC FORMATIONS — Design System
   Palette: Navy #0d2b4e · Teal #0ea5b0 · Light #f4f9fb
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --navy:       #0d2b4e;
  --navy-deep:  #091e36;
  --teal:       #0ea5b0;
  --teal-light: #d0f0f3;
  --teal-mid:   #0c8fa0;
  --cream:      #f4f9fb;
  --cream-dark: #e8f1f5;
  --sand:       #f0ece4;
  --text:       #0d2b4e;
  --text-muted: #5a7a95;
  --white:      #ffffff;
  --success:    #27ca40;
  --warn:       #f59e0b;
  --danger:     #e8572a;
  --border:     rgba(13,43,78,0.1);
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  color-scheme: light !important;
}
html, body {
  background-color: var(--cream) !important;
  color: var(--text) !important;
}
body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999;
}

/* ── TOPBAR / NAV ── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background-color: rgba(244,249,251,0.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.topbar.scrolled { box-shadow: 0 4px 24px rgba(13,43,78,0.07); }
/* ── LOGO ── */
.logo-img {
  height: 54px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
  opacity: .8;
}
.topbar nav { display: flex; align-items: center; gap: 8px; }
.topbar .nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-muted) !important;
  text-decoration: none; padding: 8px 16px; border-radius: 100px;
  transition: color 0.2s, background-color 0.2s;
}
.topbar .nav-link:hover { color: var(--navy) !important; background-color: var(--cream-dark); }
.topbar .cta-small {
  font-size: 14px; font-weight: 600; padding: 10px 24px;
  background-color: var(--navy); color: var(--white) !important;
  border-radius: 100px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.topbar .cta-small:hover {
  background-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(14,165,176,0.3);
}

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 120px 24px 60px; position: relative; overflow: hidden;
  background-color: var(--cream);
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -15%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,176,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%); width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--teal));
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line { 0%,100%{opacity:.25} 50%{opacity:1} }

/* Hero logo */
.hero-logo { margin-bottom: 28px; animation: fade-down .8s ease-out both; }
.hero-logo img { height: 90px; width: auto; }

.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--teal-mid) !important; background-color: var(--teal-light) !important;
  padding: 8px 20px; border-radius: 100px; margin-bottom: 32px;
  animation: fade-down .8s ease-out both;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px,7vw,80px); line-height: 1.05; letter-spacing: -2px;
  max-width: 820px; color: var(--navy) !important;
  animation: fade-down .8s ease-out .15s both;
}
.hero h1 em { font-style: italic; color: var(--teal) !important; }
.hero .subtitle {
  font-size: clamp(17px,2vw,20px); font-weight: 300; color: var(--text-muted) !important;
  max-width: 540px; margin: 24px auto 0;
  animation: fade-down .8s ease-out .3s both;
}
.hero .cta-main {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px; padding: 18px 42px; font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, var(--navy), var(--teal-mid));
  color: var(--white) !important;
  text-decoration: none; border-radius: 100px;
  transition: transform .25s, box-shadow .25s;
  animation: fade-down .8s ease-out .45s both;
  box-shadow: 0 4px 20px rgba(14,165,176,0.2);
}
.hero .cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(14,165,176,0.35);
}
.hero .cta-main svg { transition: transform .25s; }
.hero .cta-main:hover svg { transform: translateX(4px); }

/* Hero stats */
.hero-stats {
  display: flex; gap: 0; margin-top: 52px;
  animation: fade-down .8s ease-out .6s both;
  background-color: var(--white); border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(13,43,78,0.06);
  overflow: hidden;
}
.hero-stat {
  text-align: center; padding: 24px 36px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .val {
  font-family: 'DM Serif Display', serif;
  font-size: 32px; letter-spacing: -1px; color: var(--navy) !important;
}
.hero-stat .lbl {
  font-size: 13px; color: var(--text-muted) !important;
  font-weight: 400; margin-top: 2px;
}

/* Hero preview */
.hero-preview {
  margin-top: 52px; width: 100%; max-width: 700px;
  animation: fade-down .8s ease-out .75s both;
}
.hero-preview .mock-window {
  transform: perspective(1000px) rotateX(2deg);
  transition: transform .4s;
}
.hero-preview .mock-window:hover { transform: perspective(1000px) rotateX(0deg); }

@keyframes fade-down { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ── PROBLEM BAND ── */
.problem-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 90px 24px; text-align: center; position: relative; overflow: hidden;
}
.problem-band::before {
  content: ''; position: absolute; top: -40%; left: -10%; width: 120%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(14,165,176,.1) 0%, transparent 60%);
  pointer-events: none;
}
.problem-band h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px,3.5vw,40px); max-width: 700px;
  margin: 0 auto 20px; line-height: 1.25; position: relative;
  color: var(--white) !important;
}
.problem-band h2 em { font-style: italic; color: var(--teal) !important; }
.problem-band p {
  font-size: 18px; color: rgba(255,255,255,.65) !important;
  max-width: 520px; margin: 0 auto; font-weight: 300; position: relative;
}

/* ── SECTIONS ── */
.section {
  padding: 100px 24px; max-width: 1080px; margin: auto;
}
.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--teal) !important; margin-bottom: 16px;
}
.section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px,4vw,44px); letter-spacing: -1px; line-height: 1.15;
  max-width: 600px; margin-bottom: 24px; color: var(--navy) !important;
}
.section .lead { font-size: 18px; color: var(--text-muted) !important; max-width: 540px; font-weight: 300; }

/* ── SHOWCASES ── */
.showcases {
  padding: 100px 24px; max-width: 1080px; margin: auto;
}
.showcase {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; margin-bottom: 80px;
}
.showcase:last-child { margin-bottom: 0; }
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }
.showcase-text h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px; letter-spacing: -0.5px; line-height: 1.2;
  margin-bottom: 14px; color: var(--navy) !important;
}
.showcase-text p {
  font-size: 16px; color: var(--text-muted) !important; font-weight: 300; line-height: 1.7;
}
.showcase-text .tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--teal-mid) !important; margin-bottom: 12px;
}

/* ── MOCK WINDOW ── */
.mock-window {
  background-color: var(--white) !important; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(13,43,78,0.1), 0 1px 3px rgba(13,43,78,0.05);
  overflow: hidden; border: 1px solid var(--border);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background-color: var(--cream-dark) !important;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.r { background-color: #ff6058 !important; }
.mock-dot.y { background-color: #ffbd2e !important; }
.mock-dot.g { background-color: #27ca40 !important; }
.mock-titlebar span { font-size: 12px; color: #aaa !important; margin-left: 8px; }
.mock-body { padding: 24px; }

/* ── CHAT BUBBLES ── */
.chat-bubble {
  margin-bottom: 14px; max-width: 88%;
  padding: 14px 18px; border-radius: 18px;
  font-size: 14px; line-height: 1.55;
}
.chat-bubble.user {
  background: linear-gradient(135deg, var(--navy), var(--teal-mid)) !important;
  color: var(--white) !important;
  margin-left: auto; border-bottom-right-radius: 6px;
}
.chat-bubble.ai {
  background-color: var(--cream-dark) !important;
  color: var(--navy) !important;
  border-bottom-left-radius: 6px;
}
.chat-bubble .label-ai {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--teal-mid) !important; margin-bottom: 6px;
  display: block;
}
.chat-typing {
  display: flex; gap: 4px; padding: 14px 18px; max-width: 70px;
  background-color: var(--cream-dark) !important;
  border-radius: 18px; border-bottom-left-radius: 6px;
}
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background-color: var(--teal) !important;
  animation: blink 1.4s infinite both;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:.3} 40%{opacity:1} }

/* ── DOC LINES ── */
.doc-lines {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
  padding: 16px; background-color: var(--cream) !important; border-radius: 10px;
}
.doc-line { height: 8px; border-radius: 4px; background-color: var(--cream-dark) !important; }
.doc-line.short { width: 60%; }
.doc-line.med { width: 80%; }
.doc-line.long { width: 95%; }
.doc-line.xshort { width: 40%; }
.summary-result {
  padding: 16px; border-radius: 12px;
  background-color: var(--teal-light) !important;
  border-left: 3px solid var(--teal);
}
.summary-result .label-ai {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--teal-mid) !important; margin-bottom: 8px;
  display: block;
}
.summary-result p { font-size: 13px; color: var(--navy) !important; line-height: 1.6; }

/* ── IDEAS GRID ── */
.ideas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.idea-card {
  padding: 16px; background-color: var(--cream-dark) !important;
  border-radius: 12px; transition: transform .2s;
}
.idea-card:hover { transform: translateY(-2px); }
.idea-card .idea-emoji { font-size: 24px; margin-bottom: 8px; }
.idea-card h4 { font-size: 13px; font-weight: 600; color: var(--navy) !important; margin-bottom: 4px; }
.idea-card p { font-size: 11px; color: var(--text-muted) !important; font-weight: 300; line-height: 1.4; }

/* ── AUTO FLOW ── */
.auto-flow { display: flex; flex-direction: column; gap: 0; align-items: center; }
.auto-step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; width: 100%;
  background-color: var(--cream-dark) !important; border-radius: 12px;
}
.auto-step .step-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background-color: var(--white) !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.auto-step .step-text h4 { font-size: 13px; font-weight: 600; color: var(--navy) !important; }
.auto-step .step-text p { font-size: 11px; color: var(--text-muted) !important; font-weight: 300; }
.auto-arrow { font-size: 18px; color: var(--teal-light) !important; padding: 4px 0; }
.auto-step.active { background: linear-gradient(135deg, var(--navy), var(--teal-mid)) !important; }
.auto-step.active .step-icon { background-color: var(--teal) !important; }
.auto-step.active .step-text h4 { color: var(--white) !important; }
.auto-step.active .step-text p { color: rgba(255,255,255,.6) !important; }

/* ── PROGRAMME LIST ── */
.programme-list { list-style: none; margin-top: 48px; }
.programme-list li {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.programme-list li .num {
  font-family: 'DM Serif Display', serif; font-size: 36px;
  color: var(--teal-light) !important; line-height: 1; min-width: 48px;
}
.programme-list li .content h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--navy) !important; }
.programme-list li .content p { font-size: 15px; color: var(--text-muted) !important; font-weight: 300; }

/* ── FORMATEUR ── */
.formateur { padding: 100px 24px; max-width: 1080px; margin: auto; }
.formateur-inner { display: flex; align-items: center; gap: 56px; }
.formateur-avatar {
  flex-shrink: 0; width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; position: relative;
}
.formateur-avatar::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--teal); opacity: .3;
}
.formateur-text h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px,3.5vw,40px); letter-spacing: -.5px; line-height: 1.2;
  margin-bottom: 20px; color: var(--navy) !important;
}
.formateur-text p {
  font-size: 17px; color: var(--text-muted) !important; font-weight: 300; line-height: 1.7; max-width: 520px;
}
.formateur-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.formateur-tags span {
  font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 100px;
  background-color: var(--teal-light) !important; color: var(--teal-mid) !important;
}

/* ── FORMAT CARDS ── */
.format-row { display: flex; gap: 20px; margin-top: 48px; }
.format-item {
  flex: 1; text-align: center; padding: 36px 24px;
  background: linear-gradient(135deg, var(--white), var(--cream-dark));
  border-radius: 20px; border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(13,43,78,0.05);
  transition: transform .2s, box-shadow .2s;
}
.format-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,43,78,0.1); }
.format-item .big {
  font-family: 'DM Serif Display', serif; font-size: 40px;
  letter-spacing: -1px; margin-bottom: 8px; color: var(--navy) !important;
}
.format-item .label { font-size: 14px; color: var(--text-muted) !important; margin-top: 4px; }
.format-item .icon { font-size: 28px; margin-bottom: 12px; }

/* ── PRICING ── */
.pricing-card {
  max-width: 500px; margin: 52px auto 0;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-radius: 28px; padding: 56px 48px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(13,43,78,0.25);
}
.pricing-card::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, var(--teal), transparent);
  opacity: .15; filter: blur(40px);
}
.pricing-card .price-tag {
  font-family: 'DM Serif Display', serif; font-size: 72px;
  letter-spacing: -2px; margin-bottom: 8px; position: relative;
  color: var(--white) !important;
}
.pricing-card .price-tag sup { font-size: 32px; vertical-align: super; }
.pricing-card .price-sub {
  font-size: 15px; color: rgba(255,255,255,.5) !important;
  margin-bottom: 40px; font-weight: 300;
}
.pricing-card .includes { list-style: none; }
.pricing-card .includes li {
  font-size: 15px; padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.75) !important; font-weight: 300;
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.pricing-card .includes li::before { content: '✓'; color: var(--teal) !important; font-weight: 700; flex-shrink: 0; }
.pricing-card .cta-price {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px; padding: 18px 48px; font-size: 16px; font-weight: 600;
  background-color: var(--teal); color: var(--white) !important;
  text-decoration: none; border-radius: 100px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(14,165,176,0.4);
}
.pricing-card .cta-price:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(14,165,176,.5);
}

/* ── FOOTER ── */
.footer {
  text-align: center; padding: 60px 24px;
  color: var(--text-muted) !important; font-size: 14px; font-weight: 300;
  border-top: 1px solid var(--border);
  background-color: var(--cream);
}
/* footer-logo géré par .footer-logo-img */
.footer a { color: var(--teal-mid) !important; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar { padding: 14px 20px; }
  .logo-img { height: 40px; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse { direction: ltr; }
  .format-row { flex-direction: column; }
  .pricing-card { padding: 40px 28px; }
  .section { padding: 72px 20px; }
  .showcases { padding: 72px 20px; }
  .problem-band { padding: 70px 20px; }
  .formateur { padding: 72px 20px; }
  .formateur-inner { flex-direction: column; text-align: center; gap: 32px; }
  .formateur-tags { justify-content: center; }
  .hero-stats { flex-direction: column; border-radius: 16px; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 18px 24px; }
  .hero-stat:last-child { border-bottom: none; }
}
