/* ============================================================
   EstimAIA — style.css (fichier global partagé)
   ============================================================ */

/* ── Variables (Thème Clair Professionnel) ── */
:root {
  --noir: #F8FAFC;          /* Fond global clair */
  --noir-soft: #FFFFFF;     /* Navigation / panels */
  --noir-card: #FFFFFF;     /* Cartes de contenu */
  --noir-border: rgba(0,0,0,0.08); /* Bordures subtiles */
  
  --or: #2563EB;            /* Bleu professionnel de confiance (remplace le or) */
  --or-light: #60A5FA;      /* Bleu clair */
  --or-pale: #DBEAFE;       /* Fond bleu pastel */
  
  --blanc: #0F172A;         /* Texte principal très foncé */
  --blanc-soft: #334155;    /* Texte de contenu standard */
  --gris: #64748B;          /* Gris secondaire lisible */
  --gris-light: #94A3B8;    /* Gris clair pour désactivés/placeholders */
  
  --rouge: #EF4444;
  --vert: #10B981;
  --bleu: #3B82F6;
  --orange: #F59E0B;
  --sidebar-w: 260px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--noir);
  color: var(--blanc-soft);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
.font-serif { font-family: 'Cormorant Garamond', serif; }
.text-or { color: var(--or); }
.text-gris { color: var(--gris); }

/* ── NAV ── */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--noir-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blanc);
}
.nav-logo span { color: var(--or); }
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}
.nav-links a {
  color: var(--gris);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--or); }
.nav-cta { display: flex; gap: 0.8rem; align-items: center; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blanc);
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background:#94A3B8;
  border-bottom: 1px solid var(--noir-border);
  z-index: 99;
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: #000000;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--noir-border);
  transition: color 0.3s;
}
.nav-drawer a:hover { color: #000000; }
.nav-drawer a:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  outline: none;
  text-decoration: none;
  border-radius: 6px;
}
.btn-primary {
  background: var(--or);
  color: #ffffff;
  padding: 0.85rem 1.8rem;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover { background: var(--or-light); transform: translateY(-1px); box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3); }
.btn-outline {
  background: white;
  border: 1px solid var(--or);
  color: var(--or);
  padding: 0.75rem 1.5rem;
}
.btn-outline:hover { background: rgba(37, 99, 235, 0.05); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--noir-border);
  color: var(--gris);
  padding: 0.75rem 1.2rem;
}
.btn-ghost:hover { border-color: var(--or); color: var(--or); background: rgba(37, 99, 235, 0.03); }
.btn-full { width: 100%; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.75rem; }

/* ── CARDS ── */
.card {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.card:hover { border-color: rgba(37,99,235,0.2); box-shadow: 0 10px 20px rgba(0,0,0,0.04); }
.card-primary-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}

/* ── FORMS ── */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.5rem;
}
.form-input, .form-select {
  width: 100%;
  background: white;
  border: 1px solid var(--noir-border);
  color: var(--blanc);
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 6px;
}
.form-input:focus, .form-select:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.form-input::placeholder { color: var(--gris-light); }
.form-select option { background: white; color: var(--blanc); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}
.badge-vert  { background: rgba(16,185,129,0.1);  color: var(--vert);   border: 1px solid rgba(16,185,129,0.2); }
.badge-rouge { background: rgba(239,68,68,0.1);   color: var(--rouge);  border: 1px solid rgba(239,68,68,0.2); }
.badge-or    { background: rgba(37,99,235,0.1);   color: var(--or);     border: 1px solid rgba(37,99,235,0.2); }
.badge-bleu  { background: rgba(59,130,246,0.1);  color: var(--bleu);   border: 1px solid rgba(59,130,246,0.2); }
.badge-orange{ background: rgba(245,158,11,0.1);  color: var(--orange); border: 1px solid rgba(245,158,11,0.2); }
.badge-gris  { background: rgba(0,0,0,0.05);      color: var(--gris);   border: 1px solid var(--noir-border); }

/* ── SECTIONS ── */
.section { padding: 6rem 4rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  color: var(--blanc);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--or); }
.section-desc { color: var(--gris); font-size: 1rem; font-weight: 500; line-height: 1.7; max-width: 550px; }

/* ── BUSINESS / MONEY FLOWS ── */
.section-band {
  background: white;
  border-top: 1px solid var(--noir-border);
  border-bottom: 1px solid var(--noir-border);
}
.value-grid,
.money-flow,
.billing-grid,
.faq-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 3rem;
}
.value-grid { grid-template-columns: repeat(3, 1fr); }
.money-flow { grid-template-columns: repeat(4, 1fr); }
.billing-grid { grid-template-columns: repeat(3, 1fr); }
.faq-grid { grid-template-columns: 1fr 1fr; }
.value-card,
.flow-card,
.billing-card,
.faq-item,
.mini-card {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.value-card:hover,
.flow-card:hover,
.billing-card:hover {
  border-color: rgba(37,99,235,0.28);
  box-shadow: 0 10px 20px rgba(37,99,235,0.05);
}
.value-icon,
.flow-num {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  color: var(--or);
  border: 1px solid rgba(37,99,235,0.18);
  font-weight: 700;
  margin-bottom: 1rem;
}
.value-title,
.flow-title,
.billing-title,
.faq-title,
.mini-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blanc);
  margin-bottom: 0.5rem;
}
.value-desc,
.flow-desc,
.billing-desc,
.faq-desc,
.mini-desc {
  color: var(--gris);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
}
.money-flow-note {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 8px;
  color: var(--blanc-soft);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.metric-box {
  background: var(--noir);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 1rem;
}
.metric-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--or);
  line-height: 1;
}
.metric-label {
  color: var(--gris);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.roi-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 3rem;
  background: white;
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 1.5rem;
}
.roi-controls {
  display: grid;
  gap: 1rem;
}
.roi-result {
  background: var(--noir);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 1.5rem;
}
.roi-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--or);
  line-height: 1;
}
.roi-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--noir-border);
  padding: 0.75rem 0;
  color: var(--blanc-soft);
  font-size: 0.88rem;
  font-weight: 500;
}
.roi-line:last-child { border-bottom: none; }
.billing-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  background: rgba(16,185,129,0.1);
  color: var(--vert);
  border: 1px solid rgba(16,185,129,0.18);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.timeline {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.8rem;
  align-items: start;
}
.timeline-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--or);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--gris);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}
.checkbox-row input {
  margin-top: 0.2rem;
  accent-color: var(--or);
}
.integration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.integration-chip {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--noir-border);
  border-radius: 20px;
  background: white;
  color: var(--gris);
  font-size: 0.75rem;
  font-weight: 600;
}
.fine-print {
  color: var(--gris-light);
  font-size: 0.75rem;
  line-height: 1.6;
  font-weight: 500;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: white;
  border: 1px solid var(--noir-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-left: 4px solid var(--or);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  z-index: 500;
  transform: translateX(120%);
  transition: transform 0.4s;
  max-width: 320px;
  pointer-events: none;
}
.toast.show { transform: translateX(0); }
.toast-title { color: var(--or); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.toast-msg { color: var(--gris); font-size: 0.85rem; font-weight: 500; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: white;
  border: 1px solid var(--noir-border);
  border-radius: 12px;
  width: 100%; max-width: 540px;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.modal-overlay.open .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: transparent; border: none;
  color: var(--gris); font-size: 1.2rem;
  cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--blanc); }

/* ── FOOTER ── */
footer.main-footer {
  background: #F1F5F9;
  border-top: 1px solid var(--noir-border);
  padding: 5rem 4rem 3rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 1rem;
  display: block;
}
.footer-logo span { color: var(--or); }
.footer-desc { font-size: 0.9rem; font-weight: 500; color: var(--gris); line-height: 1.7; }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--gris); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: var(--or); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--noir-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gris-light);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: var(--gris-light); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--or); text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── LOADER ── */
.page-loader {
  position: fixed; inset: 0;
  background: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blanc);
}
.loader-logo span { color: var(--or); }
.loader-bar {
  width: 180px; height: 3px;
  background: rgba(0,0,0,0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  animation: loaderSweep 1s ease forwards;
}
@keyframes loaderSweep { to { left: 100%; } }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
  border-bottom: 2px solid var(--noir-border);
  background: var(--noir);
  white-space: nowrap;
}
td {
  padding: 1.2rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--noir-border);
  color: var(--blanc-soft);
}
tr:hover td { background: rgba(0,0,0,0.01); }
tr:last-child td { border-bottom: none; }

/* ── TOGGLE ── */
.toggle {
  width: 44px; height: 24px;
  background: rgba(0,0,0,0.15);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.toggle.on { background: var(--or); }
.toggle::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.toggle.on::after { transform: translateX(20px); }

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════ */

/* Tablette */
@media (max-width: 1024px) {
  nav.main-nav { padding: 0rem 0rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 5rem 2rem; }
  .value-grid,
  .money-flow,
  .billing-grid,
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .roi-panel,
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
	

  nav.main-nav { padding: 0rem 0rem; }
  .nav-logo { font-size: 1.5rem; }
  .nav-cta .btn-outline { display: none; }
  .section { padding: 4rem 1.2rem; }
  .section-title { font-size: 2rem; }
  .value-grid,
  .money-flow,
  .billing-grid,
  .metric-strip { grid-template-columns: 1fr; }
  .roi-panel { padding: 1rem; }
  .roi-main { font-size: 2rem; }
  .card { padding: 1.5rem; }
  .modal-box { padding: 1.5rem; }
  footer.main-footer { padding: 4rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .btn-primary, .btn-outline { padding: 0.75rem 1.2rem; font-size: 0.75rem; }
  
 
  .nav-cta { display: none;}
  
  

}
