@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
:root{
  --bg:#0b1220;
  --panel:#0f172a;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --brand:#38bdf8;
  --accent:#f59e0b;
  --line:#1e293b;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{font-family:'Inter',system-ui,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.65}
.container{max-width:1200px;margin:0 auto;padding:0 24px}
a{text-decoration:none;color:inherit}

header{background:#0b1220;border-bottom:1px solid #111827;position:sticky;top:0;z-index:40}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.nav{display:flex;align-items:center}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:18px}
.brand__name{font-weight:700;letter-spacing:.2px}
.nav a{color:white;margin-left:22px;font-weight:600}
.nav a:hover{color:#666666}

.hero{background: radial-gradient(1000px 600px at 20% -10%, #0ea5e922 0%, transparent 70%), radial-gradient(800px 500px at 100% 0%, #38bdf822 0%, transparent 60%)}
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;padding:80px 0}
.hero h1{font-size:2.6rem;line-height:1.2;margin-bottom:12px}
.hero p{color:white;margin-bottom:18px;font-size:1.1rem}
.ctas{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;background:var(--brand);color:#0b1220;padding:12px 18px;border-radius:10px;font-weight:800;transition:all 0.3s ease}
.btn:hover{background:#0284c7;transform:translateY(-2px)}
.btn--ghost{background:transparent;border:2px solid #334155;color:#e5e7eb;transition:all 0.3s ease}
.btn--ghost:hover{background:#334155;color:#ffffff}
.hero-media{background:#0b1220;border:1px solid #1e293b;border-radius:14px;padding:12px}
.hero-media img{width:100%;display:block;border-radius:10px}

.section{padding:68px 0}
.section h2{font-size:2rem;margin-bottom:10px}
.section p.lead{color:white;margin-bottom:22px}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.card{background:var(--panel);border:1px solid #111827;border-radius:14px;box-shadow:0 0 0 1px #0b1220 inset;padding:24px;transition:all 0.3s ease}
.card:hover{background:#1e293b}
.card h3{margin-bottom:8px}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.feature{background:var(--panel);border:1px solid #111827;border-radius:14px;padding:18px;text-align:center;transition:all 0.3s ease}
.feature:hover{background:#1e293b;transform:translateY(-3px)}
.feature img{width:36px;height:36px;margin-bottom:10px}
.feature h4{color:#e2e8f0;margin-bottom:6px}
.feature p{color:white;font-size:.95rem}

.screens{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.screens img{width:100%;border-radius:12px;border:1px solid #1f2937;background:#0b1220}

.experience-wrap{background:#0b1220;border-top:1px solid #111827;border-bottom:1px solid #111827}
.experience{padding:58px 0}
.experience h3{text-align:center;font-size:1.9rem;margin-bottom:10px}
.experience p.lead{text-align:center;color:white;margin-bottom:24px}
.timeline{display:flex;align-items:center;justify-content:center;gap:16px;overflow-x:auto;padding:8px 0}
.step{position:relative;background:#0b1220;color:#e5e7eb;width:150px;height:150px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #1e293b;box-shadow:0 10px 24px rgba(0,0,0,.35);padding:10px;transition:transform .2s}
.step:hover{transform:translateY(-4px)}
.step img{width:38px;height:38px;margin-bottom:8px}
.step .t{font-weight:700}
.step .d{font-size:.85rem;color:white;margin-top:6px}
.arrow{width:60px;height:0;border-top:2px dashed #334155;position:relative;flex:0 0 60px}
.arrow:after{content:'';position:absolute;right:-8px;top:-6px;border-left:10px solid #334155;border-top:8px solid transparent;border-bottom:8px solid transparent}

.team{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.member{background:var(--panel);border:1px solid #111827;border-radius:14px;padding:20px;text-align:center;transition:all 0.3s ease}
.member:hover{background:#1e293b;transform:translateY(-5px)}
.member img{width:120px;height:120px;border-radius:50%;object-fit:cover;margin-bottom:10px;border:2px solid #1f2937}
.member h4{margin:6px 0}
.member p{color:white;font-size:.95rem}

.testimonials{background:radial-gradient(800px 500px at 0% 0%, #1f293720 0%, transparent 60%), radial-gradient(800px 500px at 100% 0%, #1f293720 0%, transparent 60%);padding:64px 0;border-top:1px solid #111827}
.testimonials h3{text-align:center;font-size:1.9rem;margin-bottom:16px}
.t-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.t-card{background:var(--panel);border:1px solid #111827;border-radius:14px;padding:22px;min-height:220px;position:relative;transition:all 0.3s ease}
.t-card:hover{background:#1e293b}
.t-author{display:flex;align-items:center;gap:10px;margin-top:14px}
.t-author img{width:36px;height:36px;border-radius:50%;border:2px solid #1f2937}
.t-name{font-weight:700}
.t-role{color:white;font-size:.9rem}

.pricing{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.price{background:var(--panel);border:1px solid #111827;border-radius:14px;padding:24px}
.price h3{margin-bottom:8px}
.price .amount{font-size:2rem;font-weight:800;margin:8px 0 14px;color:#e2e8f0}
.badge{display:inline-block;background:#0b1220;border:1px solid #1f2937;color:#e2e8f0;border-radius:999px;padding:6px 10px;font-size:.8rem}

/* Theme Toggle - Modern */
.theme-toggle {
  background: var(--panel);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.theme-toggle:hover {
  background: var(--brand);
  transform: scale(1.1);
}

/* Light mode styles - Global */
body.light-mode {
  --bg: #ffffff;
  --panel: #f8f9fa;
  --text: #333333;
  --brand: #007bff;
  --accent: #ffc107;
  --line: #dee2e6;
}

body.light-mode h1,
body.light-mode h2, 
body.light-mode h3,
body.light-mode h4,
body.light-mode p,
body.light-mode .lead,
body.light-mode .brand__name,
body.light-mode .feature h4,
body.light-mode .step .t,
body.light-mode .step .d,
body.light-mode .t-name,
body.light-mode .member h4,
body.light-mode .member p,
body.light-mode .faq-question h4,
body.light-mode .faq-answer p,
body.light-mode .t-card p {
  color: #333333 !important;
}

body.light-mode .nav a:hover {
  color: #666666;
}

body.light-mode .btn:hover {
  background: #0056b3;
}

body.light-mode .btn--ghost:hover {
  background: #6c757d;
}

body.light-mode .card:hover,
body.light-mode .feature:hover,
body.light-mode .member:hover,
body.light-mode .t-card:hover {
  background: #e9ecef;
}

body.light-mode .faq-question:hover {
  background: #6c757d;
}

body.light-mode .nav a {
  color: #333333 !important;
}

body.light-mode .experience-wrap {
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

body.light-mode .step {
  background: #ffffff;
  color: #333333;
  border: 1px solid #dee2e6;
}

body.light-mode header {
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
}

body.light-mode .export-btn {
  background: #e9ecef;
  color: #333333;
}

body.light-mode .btn--ghost {
  color: #333333 !important;
  border: 2px solid #6c757d;
}

body.light-mode .section-flow .bullets li {
  color: #333333 !important;
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode #card-element {
  background: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  color: #333333 !important;
}

body.light-mode .form-group label {
  color: #333333 !important;
}

body.light-mode .form-group textarea {
  background: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  color: #333333 !important;
}

body.light-mode footer {
  background: #ffffff !important;
  border-top: 1px solid #dee2e6 !important;
}

body.light-mode footer a {
  color: #333333 !important;
}

.faq details{background:var(--panel);border:1px solid #111827;border-radius:12px;padding:14px;margin:8px 0}
.faq summary{cursor:pointer;font-weight:700;color:#e2e8f0}


@media (max-width: 1024px){
  .hero-inner{grid-template-columns:1fr}
  .features{grid-template-columns:repeat(2,1fr)}
  .pricing{grid-template-columns:1fr}
  .t-grid{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .features{grid-template-columns:1fr}
  .timeline{flex-direction:column}
  .arrow{width:0;height:40px;border-top:none;border-left:2px dashed #334155}
  .arrow:after{right:auto;left:-9px;top:auto;bottom:-8px;border-left:none;border-top:10px solid #334155;border-right:8px solid transparent;border-left:8px solid transparent}
  .screens{grid-template-columns:1fr}
  .team{grid-template-columns:1fr}
}

/* Formulaire de commande */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid #374151;
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
#card-element {
  padding: 12px;
  background: var(--bg);
  border: 1px solid #374151;
  border-radius: 8px;
  margin-bottom: 16px;
}
#card-errors {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-banner {
  margin: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.old-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 1.2rem;
}
.new-price {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--accent);
}
.offer-tag {
  background: #1e293b;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* ==== MERGE: burger & mobile menu ==== */

/* === Bouton burger amélioré === */
.nav-toggle {
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:50%;
  background:rgba(255,255,255,0.04);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.nav-toggle span {
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition:transform .3s, opacity .3s;
}
.nav-toggle:hover {
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,.3);
  transform:scale(1.05);
}
.nav-toggle:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
.nav-toggle[aria-expanded=\"true\"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded=\"true\"] span:nth-child(2) { opacity:0; }
.nav-toggle[aria-expanded=\"true\"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Apparition mobile + menu */
:root{ --header-h:64px; }
@media (max-width: 768px){
  .nav-toggle{display:flex}
  .nav{
    position:absolute;left:0;right:0;
    top:calc(var(--header-h) + 4px);
    display:none;
    flex-direction:column;
    background:#0b1726;
    border-top:1px solid rgba(255,255,255,.08);
    padding:8px 16px;
    animation: slideDown .25s ease forwards;
  }
  .nav.is-open{display:flex;}
  .nav a{
    padding:10px 4px;
    text-align:center;
    border-radius:6px;
    transition:background-color .2s;
  }
  .nav a:hover{ background-color:rgba(255,255,255,0.06); }
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px);} to { opacity:1; transform:translateY(0);} }


/* ==== MERGE: flow additions ==== */
/* ====== AJOUTS : rollovers + flow (problème -> solution) ====== */

/* Rollover pour tous les boutons */
.btn{
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  filter: brightness(.98);
}
.btn:active{
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.btn:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn.btn--ghost:hover{
  background:#111827;
  border-color:#334155;
}

/* Flow vertical : du problème vers la solution */
.section-flow .flow-wrap{max-width: 980px; margin: 0 auto; position: relative}
.flow-block{
  background: var(--panel);
  border: 1px solid #111827;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 0 0 #0b1220 inset;
}
.flow-block + .flow-block{margin-top: 18px}
.flow-kicker{font-weight:800;letter-spacing:.3px;color:#e5e7eb;opacity:.9;margin-bottom:6px}
.flow-kicker.ok{color:#86efac}
.section-flow .bullets{list-style:disc;padding-left:18px;color:white;margin-top:8px}

/* Connecteur */
.flow-connector{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding: 14px 0;
}
.flow-line{
  width: 3px; height: 46px;
  background: linear-gradient(180deg, #334155, #38bdf8);
  border-radius: 3px;
  opacity: .7;
}
.flow-arrow{
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #38bdf8;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}

/* Petite animation à l’apparition */
@media (prefers-reduced-motion: no-preference){
  .flow-block{transform: translateY(8px); opacity: .96; transition: transform .35s ease, opacity .35s ease}
  .section-flow .flow-wrap:hover .flow-block{transform: translateY(0); opacity: 1}
}


/* ==== MERGE: inline examples css ==== */

/* ==== Styles pour les exemples concrets ==== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.example-card {
  background: var(--panel);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.example-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Tableau avant/après */
.table-comparison {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.table-comparison table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 100px;
}
.table-comparison caption {
  font-weight: bold;
  margin-bottom: 4px;
}
.table-comparison th,
.table-comparison td {
  border: 1px solid #475569;
  padding: 2px 4px;
}
.avant { background: #fca5a520; }
.apres { background: #bbf7d020; }

/* KPI cards */
.kpi-cards {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
}
.kpi { text-align: center; }
.kpi-value { font-size: 1.2rem; font-weight: bold; color: #38bdf8; }
.kpi-label { font-size: 0.85rem; color: white; }

/* Mini bar chart */
.bar-chart {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 80px;
}
.bar-chart div {
  flex: 1;
  background: #38bdf8;
  border-radius: 3px;
}

/* Export buttons */
.export-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.export-btn {
  background: #1e293b;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}



/* ====== PATCH v2 ====== */

/* ==== OVERRIDES: spacing to avoid text touching edges ==== */
.container { padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px){ .container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px){ .container { padding-left: 40px; padding-right: 40px; } }

/* Ensure hero uses the same container padding and adds a bit more breathing */
.hero { padding-bottom: clamp(24px, 6vh, 56px); }
.hero .container { padding-left: inherit; padding-right: inherit; }

/* ==== OVERRIDES: only animate the Solution block in flow ==== */
@media (prefers-reduced-motion: no-preference){
  .flow-block { transform: none; opacity: 1; }
  .flow-block.solution { transform: translateY(8px); opacity: .96; transition: transform .35s ease, opacity .35s ease; }
  .section-flow .flow-wrap:hover .flow-block.solution { transform: translateY(0); opacity: 1; }
}
/* Improved mobile responsiveness */
@media (max-width: 1240px){
  .mobile-pad {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Better mobile typography */
@media (max-width: 640px){
  .hero h1 { font-size: 2.2rem; line-height: 1.15; }
  .section h2 { font-size: 1.8rem; }
  .hero p { font-size: 1.05rem; }
  .step { width: 130px; height: 130px; font-size: 0.9rem; }
  .step img { width: 32px; height: 32px; }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Better footer styling */
footer {
  background: #0b1220;
  border-top: 1px solid #111827;
  color: #94a3b8;
  text-align: center;
  padding: 24px 16px;
  margin-top: 40px;
}

footer a {
  color: var(--brand);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Enhanced Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #1f2937;
  border-radius: 10px;
  background: #0b1220;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
}

.contact-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
