/* =========================================================
   Standard Téléphonique IA — Charte graphique
   Base : version_complète (navy + turquoise + Inter)
   Adaptation : dominante claire
   ========================================================= */

:root {
  --navy:            #041021;
  --navy-light:      #0A1629;
  --turquoise:       #14B7C5;
  --turquoise-light: #48EAF5;
  --turquoise-hover: #0fa3b0;
  --white:           #FFFFFF;
  --bg:              #F3F5F7;
  --bg-card:         #FFFFFF;
  --text:            #041021;
  --text-muted:      #5A6472;
  --border:          #E2E8F0;
  --radius:          18px;
  --radius-sm:       10px;
  --radius-xs:       8px;
  --shadow:          0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-light:    0 2px 8px rgba(0, 0, 0, 0.06);
  --transition:      0.25s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--turquoise); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--turquoise-hover); }

/* ---- Navbar ---- */
.navbar-main {
  background: var(--navy);
  padding: 0 2rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.navbar-logo-icon {
  height: 130px;
  vertical-align: middle;
}

.navbar-logo-text {
  height: 50px;
  vertical-align: middle;
}

.navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: -0.3px;
}

.navbar-brand span { color: var(--turquoise); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---- Language selector ---- */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--turquoise);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary:hover {
  background: var(--turquoise-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--turquoise);
  border: 1.5px solid var(--turquoise);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-outline:hover {
  background: var(--turquoise);
  color: var(--white);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.btn-ghost:hover { color: var(--text); background: var(--border); }

.btn-danger {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover { background: #DC2626; color: var(--white); }

.btn-ms {
  background: #0078D4;
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
}

.btn-ms:hover { background: #106EBE; color: var(--white); }

.btn-google {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
}

.btn-google:hover { border-color: var(--turquoise); color: var(--turquoise); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.card-sm { padding: 1rem 1.25rem; border-radius: var(--radius-sm); }

/* ---- Stat cards ---- */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(20, 183, 197, 0.12);
}

select.form-control { cursor: pointer; }

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead th {
  background: var(--bg);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(20, 183, 197, 0.03); }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success  { background: #D1FAE5; color: #065F46; }
.badge-warning  { background: #FEF3C7; color: #92400E; }
.badge-danger   { background: #FEE2E2; color: #991B1B; }
.badge-neutral  { background: #F1F5F9; color: #475569; }
.badge-turquoise { background: rgba(20, 183, 197, 0.12); color: var(--turquoise-hover); }

/* ---- Alerts ---- */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.alert-info    { background: rgba(20, 183, 197, 0.1); color: var(--turquoise-hover); border-left: 3px solid var(--turquoise); }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 3px solid #F59E0B; }
.alert-success { background: #D1FAE5; color: #065F46; border-left: 3px solid #10B981; }
.alert-danger  { background: #FEE2E2; color: #991B1B; border-left: 3px solid #EF4444; }

/* ---- Page layout ---- */
.page-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}

.sidebar {
  display: none; /* navbar only, pas de sidebar */
}

.page-content {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ---- Stats grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* ---- Onboarding / Auth pages ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0b2a4a 100%);
  padding: 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo .logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.auth-logo .logo-text span { color: var(--turquoise); }

.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Landing page ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0b2a4a 100%);
  padding: 5rem 2rem;
  color: var(--white);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content { flex: 1; }

.hero-wordmark {
  height: 80px;
  margin-bottom: 1rem;
  display: block;
}

.hero-badge {
  display: inline-block;
  background: rgba(20, 183, 197, 0.15);
  border: 1px solid rgba(20, 183, 197, 0.35);
  color: var(--turquoise-light);
  font-size: 0.865rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.9rem;
  line-height: 1.15;
}

.hero h1 span { color: var(--turquoise); }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.hero-bullets li::before {
  content: "✓";
  color: var(--turquoise);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-no-cc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
  margin-top: 0.75rem;
  display: block;
}

.hero-visual {
  flex: 0 0 840px;
  margin-top: -280px;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}

.features-section {
  padding: 5rem 2rem;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: rgba(20, 183, 197, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 2.5rem;
}

/* ---- Pricing ---- */
.pricing-section {
  padding: 5rem 2rem;
  background: var(--white);
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  margin: 1.25rem 0;
}

.pricing-price .currency { font-size: 1.5rem; margin-top: 0.6rem; }
.pricing-price .period { font-size: 1rem; color: var(--text-muted); align-self: flex-end; font-weight: 400; }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: "✓";
  color: var(--turquoise);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Footer ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 2.5rem 2rem 1.75rem;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

footer a { color: rgba(255,255,255,0.55); }
footer a:hover { color: var(--turquoise); }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Provider badge ---- */
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}

.provider-ms     { background: #EFF6FF; color: #1D4ED8; }
.provider-google { background: #FEF3C7; color: #92400E; }
.provider-none   { background: var(--bg); color: var(--text-muted); }

/* ---- Help tooltips ---- */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: help;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}

.help-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.help-icon:hover::after { opacity: 1; }

/* ---- Setup checklist banner ---- */
.setup-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
}

.setup-banner-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.setup-steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.setup-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  text-decoration: none;
  transition: all var(--transition);
}

.setup-step:hover { border-color: var(--turquoise); color: var(--navy); }

.setup-step.done {
  color: #059669;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.setup-step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
}

.setup-step.done .setup-step-icon {
  background: #059669;
  color: #fff;
}

/* ---- Steps section (landing) ---- */
.steps-section {
  padding: 5rem 2rem;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(20, 183, 197, 0.55);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ---- Integrations strip (landing) ---- */
.integrations-section {
  padding: 2.75rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.integrations-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
}

/* ---- btn-outline on dark background ---- */
.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 2.5rem; }
  .hero-content { text-align: center; }
  .hero-bullets li { text-align: left; }
  .hero-actions { justify-content: center; }
  .hero-visual { flex: none; width: 100%; max-width: 640px; }
  .hero-wordmark { height: 60px; margin: 0 auto 1rem; }
}

@media (max-width: 768px) {
  .page-content { padding: 1.25rem 1rem; }
  .navbar-main { padding: 0 1rem; }
  .navbar-links { display: none; }
  .hero { padding: 3.5rem 1.25rem; }
}
