/* ============================================================
   ALBERTO SANTO ASSURANCES - Global Stylesheet
   Palette: Rouge #C0392B | Bleu #1A5276 | Blanc #FFFFFF
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --red:        #C0392B;
  --red-dark:   #922B21;
  --red-light:  #E74C3C;
  --blue:       #1A5276;
  --blue-light: #2980B9;
  --white:      #FFFFFF;
  --gray-light: #F4F6F7;
  --gray-mid:   #BDC3C7;
  --gray-dark:  #7F8C8D;
  --text:       #2C3E50;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.15);
  --radius:     10px;
  --transition: all 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden; /* évite scroll horizontal sur mobile */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: var(--red);
  border-radius: 2px;
}
.section-title p {
  color: var(--gray-dark);
  font-size: 1.05rem;
  margin-top: 14px;
}
.badge {
  display: inline-block;
  background: rgba(192,57,43,0.1);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.tag-blue { background: rgba(26,82,118,0.1); color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,0.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--red); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-2px); }
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.navbar-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--red);
  padding: 3px;
  background: white;
  box-shadow: 0 2px 8px rgba(192,57,43,0.2);
  transition: var(--transition);
}
.navbar-logo img:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(192,57,43,0.35); }
.navbar-logo-text span { display: block; }
.navbar-logo-text .brand-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--red);
  letter-spacing: 0.5px;
}
.navbar-logo-text .brand-sub {
  font-size: 0.7rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  padding: 16px 24px;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  font-weight: 500;
  color: var(--text);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu.open { display: flex; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 45%, var(--blue) 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}
.hero-text .badge { background: rgba(255,255,255,0.2); color: var(--white); }
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 16px 0 20px;
}
.hero-text h1 span { color: rgba(255,255,255,0.75); }
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.stat-item .stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-image {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-end;
}
@media (max-width: 900px) {
  .hero-image > div:last-child { display: none; }
  .hero-image > div:first-child img { height: 320px !important; }
}
.hero-badge-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge-float.top-left { top: 20px; left: -20px; }
.hero-badge-float.bottom-right { bottom: 20px; right: -20px; }
.hbf-icon {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.hbf-text .hbf-num { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.hbf-text .hbf-label { font-size: 0.72rem; color: var(--gray-dark); }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.service-card p { font-size: 0.9rem; color: var(--gray-dark); line-height: 1.7; margin-bottom: 16px; flex: 1; }
.service-card > div[style*="display:flex"] { margin-top: auto; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition);
}
.card-hidden { display: none !important; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(192,57,43,0.2); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 60px; height: 60px;
  background: rgba(192,57,43,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--red); }
.service-card:hover .service-icon i { color: white !important; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.service-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.service-download-btn:hover { background: var(--red); color: var(--white); }

/* ---------- PROCESS ---------- */
.process { background: var(--gray-light); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--red), var(--blue));
  z-index: 0;
  pointer-events: none; /* ne bloque plus les clics/hover sur les étapes */
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  cursor: default;
  transition: var(--transition);
}
.step-num {
  width: 72px; height: 72px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(192,57,43,0.35);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.process-step:hover .step-num,
.process-step.hovered .step-num {
  transform: scale(1.12);
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(26,82,118,0.4);
}
.process-step:hover h3,
.process-step.hovered h3 { color: var(--blue); }
.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; transition: color 0.3s ease; }
.process-step p { font-size: 0.88rem; color: var(--gray-dark); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-images {
  position: relative;
  height: 480px;
}
.about-img-main {
  width: 75%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  position: absolute;
  top: 0; left: 0;
  box-shadow: var(--shadow-lg);
}
.about-img-sec {
  width: 55%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  position: absolute;
  bottom: 0; right: 0;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.about-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--red);
  color: white;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-badge .ab-num { font-size: 2rem; font-weight: 800; }
.about-badge .ab-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.about-content .badge { margin-bottom: 14px; }
.about-content h2 { font-size: 2rem; font-weight: 700; line-height: 1.3; margin-bottom: 18px; }
.about-content p { color: var(--gray-dark); margin-bottom: 14px; font-size: 0.96rem; }
.about-features { margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.af-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(192,57,43,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--red);
}
.af-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.af-text p { font-size: 0.85rem; color: var(--gray-dark); margin: 0; }

/* Director card */
.director-card {
  margin-top: 36px;
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.director-avatar {
  width: 64px; height: 64px; min-width: 64px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: white;
  overflow: hidden;
}
.director-avatar img { width: 100%; height: 100%; object-fit: cover; }
.director-info h4 { font-weight: 700; font-size: 0.95rem; }
.director-info p { font-size: 0.8rem; color: var(--blue); font-weight: 600; }
.director-info span { font-size: 0.78rem; color: var(--gray-dark); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark), var(--red) 50%, var(--blue));
  padding: 70px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px; left: -100px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -150px; right: -50px;
}
.cta-banner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-banner p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 36px; position: relative; z-index: 1; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--red); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--white);
  transition: var(--transition);
}
.faq-item.open .faq-question { background: rgba(192,57,43,0.04); color: var(--red); }
.faq-question .faq-icon {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--red); color: white; transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer-inner { padding: 0 24px 20px; color: var(--gray-dark); font-size: 0.92rem; line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ---------- CONTACT ---------- */
.contact { background: var(--gray-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
}
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.contact-info p { color: var(--gray-dark); margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ci-icon {
  width: 46px; height: 46px; min-width: 46px;
  background: var(--red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.ci-text h4 { font-weight: 600; font-size: 0.88rem; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.ci-text p { font-size: 0.95rem; font-weight: 500; }
.ci-text a { color: var(--blue); }
.ci-text a:hover { color: var(--red); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label span { color: var(--red); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }
.form-control::placeholder { color: var(--gray-mid); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-success {
  display: none;
  background: rgba(39,174,96,0.1);
  border: 1px solid #27AE60;
  border-radius: 8px;
  padding: 14px 18px;
  color: #1E8449;
  font-weight: 500;
  margin-top: 14px;
}
.form-success.show { display: block; }

/* ---------- FOOTER ---------- */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.75); }
.footer-top {
  padding: 70px 0 50px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand .footer-logo img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(192,57,43,0.6);
  padding: 4px;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.footer-brand .fl-name { font-size: 0.95rem; font-weight: 700; color: white; }
.footer-brand .fl-sub { font-size: 0.7rem; color: var(--red-light); text-transform: uppercase; letter-spacing: 1px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-social a:hover { background: var(--red); color: white; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; color: white; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--red); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.87rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--red-light); padding-left: 4px; }
.footer-col p { font-size: 0.87rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--red-light); }

/* ---------- FLOATING ELEMENTS ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 900;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.55); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,0.65), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 90px; right: 28px;
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
  box-shadow: var(--shadow);
  z-index: 900;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ---------- AUTH PAGES ---------- */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 40%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 500px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-header {
  background: var(--red);
  padding: 32px;
  text-align: center;
}
.auth-header img { height: 64px; margin: 0 auto 12px; }
.auth-header h2 { color: white; font-size: 1.4rem; font-weight: 700; }
.auth-header p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-light);
}
.auth-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--gray-dark);
  transition: var(--transition);
  border: none;
  background: none;
}
.auth-tab.active { color: var(--red); border-bottom: 2px solid var(--red); margin-bottom: -2px; }
.auth-body { padding: 32px; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-link { text-align: center; font-size: 0.85rem; margin-top: 16px; color: var(--gray-dark); }
.auth-link a { color: var(--red); font-weight: 600; }
.auth-divider { text-align: center; font-size: 0.82rem; color: var(--gray-dark); margin: 16px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-mid); }
.auth-divider span { background: white; padding: 0 12px; position: relative; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 16px; }
.alert-danger { background: rgba(192,57,43,0.1); color: var(--red); border: 1px solid rgba(192,57,43,0.3); }
.alert-success { background: rgba(39,174,96,0.1); color: #1E8449; border: 1px solid rgba(39,174,96,0.3); }

/* ---------- DASHBOARD LAYOUT ---------- */
.dash-layout { display: flex; min-height: 100vh; background: #F0F2F5; }
.sidebar {
  width: 260px;
  min-width: 260px;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo img { height: 44px; }
.sidebar-logo .sl-text .sl-name { font-size: 0.85rem; font-weight: 700; color: white; }
.sidebar-logo .sl-text .sl-role { font-size: 0.68rem; color: var(--red-light); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav { flex: 1; padding: 20px 0; overflow-y: auto; }
.sidebar-section { margin-bottom: 28px; }
.sidebar-section-label {
  padding: 0 20px 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.sidebar-link .sl-icon { width: 20px; text-align: center; font-size: 0.95rem; }
.sidebar-link:hover, .sidebar-link.active { color: white; background: rgba(255,255,255,0.06); }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); border-radius: 0 2px 2px 0; }
.sidebar-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user .su-avatar {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem;
}
.sidebar-user .su-info .su-name { font-size: 0.85rem; font-weight: 600; color: white; }
.sidebar-user .su-info .su-role { font-size: 0.7rem; color: rgba(255,255,255,0.45); }
.sidebar-user .su-logout { margin-left: auto; color: rgba(255,255,255,0.4); font-size: 1rem; transition: var(--transition); }
.sidebar-user .su-logout:hover { color: var(--red-light); }

/* Main content area */
.dash-main { flex: 1; margin-left: 260px; display: flex; flex-direction: column; }
.dash-topbar {
  background: white;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
.dash-topbar h1 { font-size: 1.25rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-notif {
  position: relative;
  width: 38px; height: 38px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--gray-dark);
  font-size: 1rem;
}
.notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.topbar-user .tu-avatar {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.88rem;
}
.topbar-user .tu-name { font-weight: 600; font-size: 0.88rem; }

.dash-content { padding: 28px; flex: 1; }

/* Stat Cards */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.sci-red { background: rgba(192,57,43,0.12); color: var(--red); }
.sci-blue { background: rgba(26,82,118,0.12); color: var(--blue); }
.sci-green { background: rgba(39,174,96,0.12); color: #27AE60; }
.sci-orange { background: rgba(230,126,34,0.12); color: #E67E22; }
.stat-card-info .sc-num { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-card-info .sc-label { font-size: 0.8rem; color: var(--gray-dark); margin-top: 4px; }
.stat-card-info .sc-trend { font-size: 0.75rem; margin-top: 4px; }
.trend-up { color: #27AE60; } .trend-down { color: var(--red); }

/* Data Tables */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-light);
}
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 24px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-dark);
  background: var(--gray-light);
  font-weight: 700;
}
.data-table td { padding: 14px 16px; font-size: 0.88rem; border-bottom: 1px solid rgba(0,0,0,0.04); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0,0,0,0.02); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-new { background: rgba(41,128,185,0.12); color: #2980B9; }
.status-progress { background: rgba(230,126,34,0.12); color: #E67E22; }
.status-won { background: rgba(39,174,96,0.12); color: #27AE60; }
.status-lost { background: rgba(192,57,43,0.12); color: var(--red); }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-light);
  background: var(--red);
  color: white;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: white; font-size: 1.3rem; cursor: pointer; opacity: 0.8; transition: var(--transition); }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--gray-light); display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- PAGE LOADER ---------- */
.page-loader {
  position: fixed; inset: 0;
  background: var(--red);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.5s ease;
}
.page-loader img { height: 100px; width: 100px; animation: bounce 1s ease infinite alternate; }
.loader-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; }
.loader-bar::after { content: ''; display: block; height: 100%; width: 50%; background: white; border-radius: 2px; animation: load 1s ease infinite; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes load { 0% { margin-left: -50%; } 100% { margin-left: 150%; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-content { gap: 40px; }
  .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .burger { display: block; }
  .hero-content { grid-template-columns: 1fr; padding: 50px 0; }
  .hero-image { display: none; }
  .hero-text h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 260px; }
  .about-img-main { width: 80%; height: 220px; }
  .about-img-sec { width: 50%; height: 160px; bottom: 0; right: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .process-steps::before { display: none; }
  /* Dashboard mobile */
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 1.7rem; }
  .stats-
  /* Évite le zoom iOS sur les inputs (font-size doit être >= 16px) */
  .form-control { font-size: 1rem !important; }
  input, select, textarea { font-size: 1rem !important; }
  /* Cartes services pleine largeur */
  .service-card { padding: 24px 20px; }
  /* Section titre moins padding */
  .section-title { margin-bottom: 40px; }
  /* Container padding réduit */
  .container { padding: 0 16px; }
}

/* ---- Mobile chatbot ---- */
@media (max-width: 480px) {
  .chat-toggle .chat-label { display: none; }
  .chat-toggle { padding: 14px; border-radius: 50%; width: 52px; height: 52px; justify-content: center; font-size: 1rem; }
  .chatbot-overlay { left: 8px !important; right: 8px !important; bottom: 76px !important; }
  .chatbot-popup { width: 100%; max-width: calc(100vw - 16px); }
}

/* ---- Mobile modal souscription ---- */
@media (max-width: 600px) {
  .sous-modal-body { padding: 18px 16px !important; }
  .sous-modal-footer { padding: 14px 16px !important; flex-wrap: wrap; }
  .sous-modal-footer .btn { flex: 1 1 100%; justify-content: center; }
  .sous-modal { border-radius: 16px; }
  .sous-modal-header { padding: 18px 20px; border-radius: 16px 16px 0 0; }
  .tarif-body { padding: 16px !important; }
}

/* ---- Tables tarifs : scroll horizontal sur mobile ---- */
@media (max-width: 700px) {
  .tarif-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
  .tarif-table { min-width: 400px; }
}