/* ============================================
   SITE B2B AGRESSIF - CSS GLOBAL
   Design: professionnel, conversion-oriented
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0f4c81;
  --primary-dark: #0a3259;
  --primary-light: #1a6bb5;
  --accent: #ff6b35;
  --accent-dark: #e55a2b;
  --accent-light: #ff8c5a;
  --dark: #1a1a2e;
  --gray-900: #2d2d44;
  --gray-700: #4a4a68;
  --gray-500: #7a7a96;
  --gray-300: #b8b8cc;
  --gray-100: #f0f0f5;
  --white: #ffffff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--dark); color: var(--white); }
.section--primary { background: var(--primary); color: var(--white); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--primary h1, .section--primary h2, .section--primary h3 { color: var(--white); }

h1 { font-size: 2.8rem; margin-bottom: 24px; }
h2 { font-size: 2.2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.2rem; margin-bottom: 12px; }
p { margin-bottom: 16px; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.subtitle {
  font-size: 1.25rem;
  color: var(--gray-700);
  max-width: 700px;
  margin: 0 auto 40px;
}
.section--dark .subtitle, .section--primary .subtitle { color: rgba(255,255,255,0.85); }

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}
.btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}
.btn--large { padding: 18px 42px; font-size: 1.1rem; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-group--center { justify-content: center; }

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.header__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.header__logo span { color: var(--accent); }

.nav__list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav__link {
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 6px;
  transition: var(--transition);
}
.nav__link:hover { color: var(--primary); background: var(--gray-100); }
.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--accent-dark); color: var(--white); }

/* Dropdown */
.nav__item { position: relative; }
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 12px 0;
  z-index: 100;
}
.nav__item:hover .nav__dropdown { display: block; }
.nav__dropdown a {
  display: block;
  padding: 10px 24px;
  color: var(--gray-700);
  font-size: 0.9rem;
}
.nav__dropdown a:hover { background: var(--gray-100); color: var(--primary); }
.nav__dropdown a strong { display: block; color: var(--dark); font-size: 0.95rem; }
.nav__dropdown a span { font-size: 0.82rem; color: var(--gray-500); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--white); font-size: 3rem; line-height: 1.15; }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 540px; }
.hero__visual {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Hero stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.hero__stat {
  text-align: center;
  padding: 20px 16px;
  background: var(--gray-100);
  border-radius: 12px;
  border: 1px solid var(--gray-300);
}
.hero__stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.hero__stat-label {
  font-size: 0.85rem;
  color: var(--gray-700);
}
/* Stats on dark backgrounds (hero, section--dark) */
.hero .hero__stat,
.section--dark .hero__stat {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.hero .hero__stat-label,
.section--dark .hero__stat-label {
  color: rgba(255,255,255,0.7);
}

/* --- Pain Points Bar --- */
.pain-bar {
  background: var(--accent);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}
.pain-bar__items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.pain-bar__item { display: flex; align-items: center; gap: 8px; }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 36px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--primary-light);
}
.feature-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--white);
}
.feature-card h3 { font-size: 1.2rem; }
.feature-card p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 12px; }
.feature-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}
.feature-card__link:hover { color: var(--accent-dark); }

/* --- ERP Logos --- */
.erp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.erp-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.erp-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.erp-card__name { font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.erp-card__link { font-size: 0.82rem; color: var(--accent); font-weight: 600; }

/* --- Sectors --- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sector-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--primary-dark);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  transition: var(--transition);
}
.sector-card:hover { transform: translateY(-4px); }
.sector-card__content {
  padding: 24px;
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.sector-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.sector-card p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 0; }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-left: 4px solid var(--accent);
}
.testimonial-card__quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 20px;
  line-height: 1.8;
}
.testimonial-card__author { font-weight: 700; color: var(--dark); }
.testimonial-card__role { color: var(--gray-500); font-size: 0.9rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: var(--white); font-size: 2.4rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 32px; }

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.comparison-table th, .comparison-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.comparison-table thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}
.comparison-table tbody tr:hover { background: var(--gray-100); }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--danger); }
.comparison-table .highlight-col { background: rgba(255, 107, 53, 0.05); }

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.blog-card__img {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}
.blog-card__body { padding: 24px; }
.blog-card__tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p { color: var(--gray-700); font-size: 0.9rem; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent); }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}
.faq-answer p { color: var(--gray-700); }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Sticky CTA bar --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  padding: 12px 24px;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta p { color: var(--white); font-weight: 600; margin: 0; line-height: 1.2; }

/* --- Lead Form / Popup --- */
.lead-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  max-width: 480px;
  margin: 0 auto;
}
.lead-form h3 { text-align: center; margin-bottom: 8px; }
.lead-form p { text-align: center; color: var(--gray-500); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.form-submit:hover { background: var(--accent-dark); }

/* --- Page Banner (inner pages) --- */
.page-banner {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: var(--white);
}
.page-banner h1 { color: var(--white); }
.page-banner p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 700px; }
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb span { color: rgba(255,255,255,0.4); margin: 0 8px; }

/* --- Content Page --- */
.content-page { padding: 60px 0; }
.content-page__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
}
.content-main h2 { margin-top: 40px; }
.content-main h3 { margin-top: 32px; }
.content-main ul, .content-main ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
.content-main li { margin-bottom: 8px; color: var(--gray-700); }

/* Sidebar */
.sidebar-cta {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 32px;
  position: sticky;
  top: 96px;
}
.sidebar-cta h4 { margin-bottom: 12px; }
.sidebar-cta p { color: var(--gray-700); font-size: 0.9rem; margin-bottom: 20px; }

/* --- Two columns feature --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* --- Numbered steps --- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.step__number {
  counter-increment: step;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.step__number::before { content: counter(step); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .erp-grid { grid-template-columns: repeat(3, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .content-page__inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .section { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .erp-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .nav__list { display: none; }
  .nav__toggle { display: block; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .pain-bar__items { flex-direction: column; gap: 8px; }
}
