/* =========================
   RESET & THEME
   ========================= */
*,*::before,*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
  --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
  --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
  --radius-sm: .25rem;
  --radius-md: .5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* =========================
   BASE
   ========================= */
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================
   HEADER
   ========================= */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #6f42c1 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.header-content { position: relative; z-index: 1; }

.header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,.2);
}

.header .highlight { color: var(--accent-color); }

.header p {
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  max-width: 850px;
  margin: 0 auto;
}

/* =========================
   CTA BANNER (TOP)
   ========================= */
a.cta-banner-link { display: block; text-decoration: none; color: inherit; }

.cta-banner {
  background: linear-gradient(45deg, #ffffff 0%, #fefefe 100%);
  padding: 2.5rem;
  text-align: center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-banner p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(45deg, var(--secondary-color) 0%, #218838 100%);
  color: #fff;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* =========================
   BREADCRUMB
   ========================= */
.breadcrumb {
  background: var(--bg-tertiary);
  padding: .75rem 0;
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* =========================
   CONTENT WRAPPER
   ========================= */
.main-content { flex: 1; padding: 3rem 0; }

.content-section {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  border: none;
}

.section-header {
  background: linear-gradient(135deg, var(--primary-color), #4a90e2);
  color: #fff;
  padding: 2.5rem;
  text-align: center;
  border-bottom: 5px solid var(--accent-color);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .75rem;
}

.section-body { padding: 2.5rem; }

/* =========================
   ARTICLE BLOCK (SECTION À RÉDUIRE)
   ========================= */
.text-block {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: none;
}

.text-block h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: .75rem;
}

.text-block h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.text-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
  .container { padding: 0 1rem; }
  .companies-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* ---------- MOBILE (≤768px) ---------- */
@media (max-width: 768px) {
  .section-body {
    padding: .5rem !important;
  }

  .section-body .text-block {
    margin: .3rem 0 !important;
    padding: 0.25rem !important; /* ✅ correction demandée */
    background: var(--bg-primary) !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: .4rem !important;
  }

  .section-body .text-block h3 {
    margin-bottom: .5rem !important;
    padding-bottom: .4rem !important;
  }

  .section-body .text-block h3::after {
    height: 3px !important;
    width: 64px !important;
  }

  .section-body .text-block p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .container { padding: 0 .5rem; }
  .main-content { padding: 1rem 0; }
  .content-section { margin-bottom: 1rem; border-radius: .6rem; box-shadow: none; }
  .header { padding: 2rem 0; }
}

/* ---------- SMALL MOBILE (≤480px) ---------- */
@media (max-width: 480px) {
  .section-body { padding: .25rem !important; }
  .section-body .text-block { margin: .2rem 0 !important; padding: .2rem !important; }
}

/* ---------- VERY SMALL (≤380px) ---------- */
@media (max-width: 380px) {
  .section-body .text-block { padding: .18rem !important; }
}
