/* ═══════════════════════════════════════════════════════
   MDBCRM — Feuille de style partagée
   Palette : navy #1e3a5f · accent #63b3ed · bg #f0f4f8
═══════════════════════════════════════════════════════ */

:root {
  --navy:        #1e3a5f;
  --navy-dark:   #162d4a;
  --navy-light:  #2a5080;
  --accent:      #63b3ed;
  --accent-dark: #2563eb;
  --bg:          #f0f4f8;
  --card:        #ffffff;
  --text:        #1a2533;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --gold:        #f6ad55;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .3px;
}
.navbar-brand .icon { font-size: 20px; }
.navbar-brand .accent { color: var(--accent); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.navbar-links a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 7px;
  transition: all .18s;
}
.navbar-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.navbar-links a.active { color: #fff; background: var(--accent-dark); }

/* ── Navbar right (lang + hamburger) ───────────────── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Navbar lang toggle ─────────────────────────────── */
.nav-lang {
  display: flex;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  margin-left: 6px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: .5px;
}
.lang-btn.active { background: var(--accent); color: var(--navy); }
.lang-btn:hover:not(.active) { color: rgba(255,255,255,.9); }

/* ── Footer ─────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 22px 40px;
  font-size: 13px;
  margin-top: auto;
  line-height: 1.7;
}
footer strong { color: rgba(255,255,255,.8); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Page wrapper ───────────────────────────────────── */
.page { flex: 1; }

/* ── Section helpers ────────────────────────────────── */
.section {
  padding: 72px 48px;
  max-width: 1140px;
  margin: 0 auto;
}
.section-alt {
  background: #fff;
  padding: 72px 0;
}
.section-alt .section { padding-top: 0; padding-bottom: 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, #1a4a80 60%, #1e5f8a 100%);
  color: #fff;
  padding: 96px 48px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99,179,237,.15);
  border: 1px solid rgba(99,179,237,.35);
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 18px;
  line-height: 1.15;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.78);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────── */
.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ── Cards ──────────────────────────────────────────── */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { font-size: 34px; margin-bottom: 14px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 9px; color: var(--navy); }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── CRM Type cards (page accueil) ─────────────────── */
.crm-type-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all .2s;
}
a.crm-type-card { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.crm-type-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.price-asterisk { font-size: 20px; color: var(--accent-dark); vertical-align: super; margin-left: 2px; }
.price-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.card-cta { margin-top: 20px; text-align: center; font-size: 14px; font-weight: 700; color: var(--accent-dark); letter-spacing: .3px; }
.crm-type-card .price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-dark);
  margin: 14px 0 6px;
}
.crm-type-card .price-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.crm-type-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.crm-type-card li { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.crm-type-card li::before { content: '✓'; color: var(--accent-dark); font-weight: 700; }
.crm-type-card .badge {
  display: inline-block;
  background: var(--gold);
  color: #1a2533;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Demo section ───────────────────────────────────── */
.demo-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a80 100%);
  padding: 64px 48px;
}
.demo-inner { max-width: 1200px; margin: 0 auto; }
.demo-header { margin-bottom: 28px; }
.demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(246,173,85,.15);
  border: 1px solid rgba(246,173,85,.4);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.demo-header h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.demo-header p { font-size: 15px; color: rgba(255,255,255,.65); }
.iframe-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  height: 640px;
}
.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── CTA strip ──────────────────────────────────────── */
.cta-strip {
  background: var(--accent-dark);
  padding: 52px 48px;
  text-align: center;
  color: #fff;
}
.cta-strip h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-strip p { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 28px; }
.btn-cta {
  background: #fff;
  color: var(--accent-dark);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta:hover { background: #e8f0fe; transform: translateY(-1px); }

/* ── About page ─────────────────────────────────────── */
.about-hero {
  background: linear-gradient(140deg, var(--navy) 0%, #1a4a80 100%);
  color: #fff;
  padding: 60px 48px;
  text-align: center;
}
.about-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.about-hero p { font-size: 17px; color: rgba(255,255,255,.7); }

.about-body { display: flex; flex-direction: column; gap: 40px; }

.about-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.photo-frame {
  width: 240px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--border);
}
.photo-frame img { width: 100%; height: auto; display: block; }

.about-intro { font-size: 15px; line-height: 1.8; color: var(--text); padding-top: 8px; }
.about-intro strong { color: var(--navy); }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.about-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.about-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.about-card strong { color: var(--navy); }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.about-list li::before { content: '→'; color: var(--accent-dark); font-weight: 700; flex-shrink: 0; }

.about-cta-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 24px 36px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  font-weight: 500;
}

/* ── Contact page ───────────────────────────────────── */
.contact-hero {
  background: linear-gradient(140deg, var(--navy) 0%, #1a4a80 100%);
  color: #fff;
  padding: 60px 48px;
  text-align: center;
}
.contact-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.contact-hero p { font-size: 17px; color: rgba(255,255,255,.7); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.contact-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: box-shadow .2s, transform .2s;
}
.contact-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-icon { font-size: 28px; flex-shrink: 0; }
.contact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.contact-value { font-size: 16px; font-weight: 600; color: var(--navy); }
.contact-value a { color: var(--navy); text-decoration: none; }
.contact-value a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────── */

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}
.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); }

.demo-mobile-note { display: none; }

@media (max-width: 900px) {
  .navbar { padding: 0 20px; position: relative; }
  .nav-hamburger { display: flex; }
  #nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    min-height: 50vh;
    background: var(--navy);
    flex-direction: column;
    padding: 0 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    z-index: 199;
  }
  #nav-menu.open { display: flex; }
  #nav-menu li { flex: 1; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
  #nav-menu li:last-child { border-bottom: none; }
  #nav-menu a { display: flex; align-items: center; width: 100%; height: 100%; padding: 0 8px; font-size: 17px; font-weight: 600; background: transparent; color: rgba(255,255,255,.8); border-radius: 0; }
  #nav-menu a.active { color: #fff; border-left: 4px solid var(--accent); padding-left: 12px; }
  #nav-menu a:hover { color: #fff; }

  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary, .btn-outline { justify-content: center; }

  .section { padding: 40px 20px; }
  .section-title { font-size: 22px; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }

  .demo-section { padding: 36px 20px; }
  .iframe-container { height: 380px; }
  .demo-mobile-note { display: block; }

  .cta-strip { padding: 40px 20px; }
  .cta-strip h2 { font-size: 22px; }

  .about-hero { padding: 40px 20px; }
  .about-hero h1 { font-size: 28px; }
  .about-top { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .photo-frame { width: 180px; }
  .about-cards { grid-template-columns: 1fr; }
  .about-cta-bar { padding: 20px; }

  .contact-hero { padding: 40px 20px; }
  .contact-hero h1 { font-size: 28px; }

  footer { padding: 16px 20px !important; flex-direction: column !important; gap: 6px !important; text-align: center !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .hero-eyebrow { font-size: 13px; }
  .card { padding: 20px; }
  .iframe-container { height: 260px; }
  .about-hero h1, .contact-hero h1 { font-size: 22px; }
  .photo-frame { width: 140px; }
  .about-card { padding: 20px; }
}
