/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Conteneur étroit pour blocs de texte longs — lisibilité (page article, etc.) */
/* Narrow container for long text blocks — readability (article page, etc.) */
.container--narrow {
  max-width: 760px;
}

/* Typographie */
h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--text-h2); font-weight: 600; line-height: 1.3; }
h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.4; }
h4 { font-size: var(--text-h4); font-weight: 500; line-height: 1.4; }
p  { line-height: 1.6; }

/* Sections */
.section         { padding: var(--space-lg) 0; }
.section--blue   { background: var(--color-blue);         color: var(--color-white); }
.section--pastel { background: var(--color-blue-pastel); }
.section--green  { background: var(--color-green-pastel); }

/* CTA — image de fond */
.section--cta {
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero/hero-cta.png') center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.section--cta .container {
  position: relative;
  z-index: 1;
}

/* Grilles */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

/* Card */
.card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card--accompagnement {
  background: var(--color-green-pastel);
  border-color: var(--color-green-light);
}

/* Etiquette de groupe d'offres */
.offers-group-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue-mid);
  margin-bottom: var(--space-sm);
}
.offers-group-label--accomp {
  color: var(--color-green-dark);
  margin-top: var(--space-md);
}

/* Page header (bandeau pages internes) */
.page-header {
  background: var(--color-blue);
  color: var(--color-white);
  padding: var(--space-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-img, none) center center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.page-header__eyebrow {
  display: inline-block;
  background: rgba(110,165,147,0.2);
  color: var(--color-green-light);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}
.page-header h1 {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.page-header p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto var(--space-md);
}

/* Utilitaires */
.text-center { text-align: center; }
.text-blue   { color: var(--color-blue); }
.text-green  { color: var(--color-green); }
.text-muted  { color: var(--color-gray-mid); }

/* Page d'erreur (404) — styles déplacés depuis les attributs inline (CSP style-src 'self') */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-page__eyebrow {
  display: inline-block;
  color: var(--color-green-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.error-page h1 { margin: var(--space-sm) 0; }
.error-page p  { margin-bottom: var(--space-md); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: var(--space-md) 0; }
}
