/* ================================================================
   Harch RH — Design System
   Palette : violet foncé (#2C1654) / blanc / dégradés
   Typographie : Plus Jakarta Sans (titres) + Inter (corps)
================================================================ */

/* ── Reset & Variables ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Couleurs — charte Harch RH */
  --purple-dark:   #2A1150;
  --purple-main:   #441A66;
  --purple-mid:    #5A326E;
  --purple-light:  #7F5B8B;
  --purple-pale:   #D0B8D2;
  --white:         #FFFFFF;
  --off-white:     #F1F2EC;
  --gray-light:    #E6DBD9;
  --text-dark:     #1E0A35;
  --text-body:     #3A2352;
  --text-muted:    #6B4F78;

  /* Dégradés */
  --gradient-hero:    linear-gradient(135deg, rgba(42,17,80,0.88) 0%, rgba(42,17,80,0.55) 45%, rgba(42,17,80,0.15) 80%, transparent 100%);
  --gradient-section: linear-gradient(180deg, var(--purple-main) 0%, transparent 100%);
  --gradient-card:    linear-gradient(160deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  --gradient-overlay: linear-gradient(to right, rgba(68,26,102,0.95) 35%, rgba(68,26,102,0) 100%);

  /* Typographie */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Espacements */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 9rem;

  /* Rayons */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  32px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(44,22,84,0.08);
  --shadow-md: 0 8px 32px rgba(44,22,84,0.14);
  --shadow-lg: 0 20px 60px rgba(44,22,84,0.20);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease);

  /* Conteneur */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 5vw, 4rem);
}

/* ── Base ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* bloque le scroll horizontal au niveau racine */
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul[role="list"] {
  list-style: none;
}

/* ── Typo ────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -0.5px; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 3rem); letter-spacing: -0.3px; font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.1px; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 62ch;
}

.label-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: var(--space-sm);
}

/* ── Conteneur ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-2xl);
}

.section--lg {
  padding-block: calc(var(--space-2xl) * 1.3);
}

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple-main);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--purple-main);
  border: 1.5px solid var(--purple-main);
}
.btn-outline:hover {
  background: var(--purple-main);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--purple-main);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-nav {
  background: var(--purple-main);
  color: var(--white);
  padding: 0.625rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-nav:hover {
  background: var(--purple-dark);
}

/* ── Navigation ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(28, 15, 60, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 1.5rem var(--container-pad);
  transition: padding var(--transition);
}

.site-header.scrolled .nav-container {
  padding-block: 1rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  /* Le logo est violet — on le rend blanc sur fond sombre avec un filtre */
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}
.nav-logo img:hover {
  opacity: 0.85;
}
/* Logo couleur sur fond clair (ex: page scrolled vers blanc) */
.site-header.light .nav-logo img {
  filter: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Menu mobile */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 360px);
  background: var(--purple-dark);
  padding: 6rem 2.5rem 3rem;
  flex-direction: column;
  gap: var(--space-md);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.nav-mobile.open {
  transform: translateX(0);
}
.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--white);
}
.nav-mobile .btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--purple-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--purple-dark);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

/* ── Hero splitté — style éditorial Byron ────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  align-items: stretch;
  background: var(--purple-dark);
  overflow: hidden;
}

.hero-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--space-2xl) 6rem;
  padding-left: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
  color: var(--white);
  position: relative;
  z-index: 1;
}

.hero-split__content h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.hero-split__content h1 em {
  font-style: normal;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

.hero-split__content .lead {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
  max-width: 50ch;
}

.hero-split__images {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 100svh;
  overflow: hidden;
  position: relative;
}

/* Scrim : dégradé sombre en haut pour contraster la nav blanche */
.hero-split__images::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.62) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-split__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.hero-split__images img:hover {
  transform: scale(1.04);
}

/* ── Bandeau métiers (sous le hero) ────────────────────────── */
.ticker-band {
  background: var(--off-white);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  padding: 0.85rem 0;
  user-select: none;
  width: 100%;
}

.ticker-static {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.ticker-item {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ticker-sep {
  display: inline-block;
  color: var(--purple-pale);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

.hero .lead {
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Intro / Texte ───────────────────────────────────── */
.section-intro {
  max-width: 700px;
  margin-bottom: var(--space-xl);
}

.section-intro.centered {
  margin-inline: auto;
  text-align: center;
}

/* ── Split section éditorial ─────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 55vh;
}

.split-section.reversed {
  direction: rtl;
}
.split-section.reversed > * {
  direction: ltr;
}

.split-section__img {
  overflow: hidden;
}
.split-section__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.split-section__img:hover img {
  transform: scale(1.03);
}

.split-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
}

/* ── Cards offres d'emploi ───────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.card-offre {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 0;
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}
.card-offre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card-offre:hover {
  border-color: var(--purple-pale);
  box-shadow: var(--shadow-sm);
}
.card-offre:hover::before {
  transform: scaleX(1);
}

.card-offre__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  text-transform: uppercase;
}
.badge-purple { background: var(--purple-pale); color: var(--purple-mid); }
.badge-outline { border: 1px solid var(--gray-light); color: var(--text-muted); }
.badge-new    { background: var(--purple-main); color: var(--white); }

.card-offre__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.card-offre__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.card-offre__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--gray-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple-main);
  transition: gap var(--transition), color var(--transition);
}
.link-arrow:hover {
  gap: 0.7rem;
  color: var(--purple-mid);
}
.link-arrow::after {
  content: '→';
}

/* ── Section chiffres / stats ────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-main) 60%, var(--purple-mid) 100%);
  padding-block: var(--space-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  color: var(--white);
}
.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item__label {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Section Banner gradient ─────────────────────────────────── */
.banner-gradient {
  position: relative;
  padding-block: var(--space-xl);
  overflow: hidden;
  color: var(--white);
}
.banner-gradient-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
}
.banner-gradient-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  mix-blend-mode: luminosity;
}
.banner-gradient .container {
  position: relative;
  z-index: 1;
}
.banner-gradient h2 {
  color: var(--white);
  max-width: 600px;
  margin-bottom: var(--space-md);
}
.banner-gradient p {
  color: rgba(255,255,255,0.72);
  max-width: 55ch;
  margin-bottom: var(--space-md);
}

/* ── Team cards ──────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.card-team {
  text-align: center;
}

.card-team__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.card-team:hover .card-team__photo {
  filter: grayscale(0%);
}

.card-team__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.card-team__role {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
}
.card-team__bio {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-team__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--purple-light);
  margin-top: 0.9rem;
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}
.card-team__more:hover {
  color: var(--purple-main);
  gap: 0.55rem;
}

/* ── Page membre ─────────────────────────────────────────────── */
.membre-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 768px) {
  .membre-layout { grid-template-columns: 1fr; }
}

.membre-photo__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  filter: grayscale(10%);
}
.membre-photo__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.membre-poste {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.25rem;
}
.membre-bio {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.membre-bio p { margin: 0; }
.membre-bio strong { color: var(--text-dark); font-weight: 600; }
.membre-bio em { font-style: italic; }
.membre-bio u { text-decoration: underline; }
.membre-bio s { text-decoration: line-through; }
.membre-bio h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-dark); }
.membre-bio h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-dark); }
.membre-bio ul, .membre-bio ol { padding-left: 1.5rem; }
.membre-bio ul { list-style: disc; }
.membre-bio ol { list-style: decimal; }
.membre-bio li { margin-bottom: 0.25rem; }
.membre-bio blockquote {
  border-left: 3px solid var(--purple-main);
  padding-left: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}
.membre-bio a { color: var(--purple-main); text-decoration: underline; }
.membre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.page-hero--short .container { padding-block: 5rem 4rem; }

/* ── Blog cards ──────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.card-article {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.card-article:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--purple-pale);
}

.card-article__img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.card-article__img-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-article__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  gap: 0.75rem;
}

.card-article__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.card-article__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--text-dark);
}

.card-article__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

/* ── Formulaires ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(123, 82, 193, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ── Éditeur WYSIWYG maison ──────────────────────────────────── */
.wysiwyg-wrap {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 0.4rem 0.5rem;
  background: #f5f5f7;
  border-bottom: 1px solid var(--gray-light);
}
.wysiwyg-toolbar button {
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.wysiwyg-toolbar button:hover {
  background: #e2e2e8;
  border-color: var(--gray-light);
}
.wysiwyg-toolbar button.active {
  background: var(--purple-main);
  color: #fff;
  border-color: var(--purple-main);
}
.wysiwyg-sep {
  width: 1px;
  height: 20px;
  background: var(--gray-light);
  margin: 0 0.25rem;
}
.wysiwyg-editor {
  min-height: 160px;
  padding: 0.75rem 1rem;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dark);
  outline: none;
}
.wysiwyg-editor:focus {
  box-shadow: inset 0 0 0 2px var(--purple-main);
}
.wysiwyg-editor ul { list-style: disc; padding-left: 1.4rem; }
.wysiwyg-editor ol { list-style: decimal; padding-left: 1.4rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* Barre de filtres — page offres */
.offres-filters {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .offres-filters {
    grid-template-columns: 1fr 1fr;
  }
  .offres-filters .offres-filters__search {
    grid-column: 1 / -1;
  }
  .offres-filters .offres-filters__submit {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
}

.form-error {
  font-size: 0.8rem;
  color: #c0392b;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Alertes ─────────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.alert-success { background: #eaf7f0; color: #1a7a4a; border-left: 3px solid #27ae60; }
.alert-error   { background: #fdf0ef; color: #922b21; border-left: 3px solid #e74c3c; }
.alert-info    { background: var(--purple-pale); color: var(--purple-mid); border-left: 3px solid var(--purple-light); }

/* ── Page hero (sous-pages) ──────────────────────────────────── */
.page-hero {
  background-color: var(--purple-dark);
  padding-top: 10rem;
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.page-hero::after {
  content: none;
}
.page-hero__bg {
  display: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.7); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-light);
  transition: var(--transition);
}
.pagination a:hover {
  border-color: var(--purple-light);
  color: var(--purple-main);
}
.pagination .active {
  background: var(--purple-main);
  color: var(--white);
  border-color: var(--purple-main);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-xl);
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}
.footer-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 30ch;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

address { font-style: normal; }
address a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  margin-bottom: 0.5rem;
}
address a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-socials a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ── Background alterné sections ─────────────────────────────── */
.bg-off-white { background: var(--off-white); }
.bg-purple    { background: var(--purple-dark); color: var(--white); }
.bg-pale      { background: var(--gray-light); }

/* ── Divider dégradé ─────────────────────────────────────────── */
.divider-gradient {
  width: 48px;
  height: 1px;
  background: var(--purple-light);
  margin-bottom: var(--space-md);
}
.section-intro.centered .divider-gradient {
  margin-inline: auto;
}

/* ── Offre detail ─────────────────────────────────────────────── */

/* Hero compact */
.offre-hero {
  background: var(--purple-dark);
  padding-top: 10rem;
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.offre-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.offre-hero__back:hover { color: rgba(255,255,255,0.9); }

.offre-hero__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.offre-hero__title-group { flex: 1; }
.offre-hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0.6rem 0 1rem;
}
.offre-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.offre-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.offre-pill--muted { color: rgba(255,255,255,0.6); }
.offre-pill__unit {
  opacity: 0.65;
  font-weight: 400;
  font-size: 0.75em;
}
.offre-hero__cta { flex-shrink: 0; align-self: flex-start; margin-top: 0.3rem; }

/* Layout description + sticky */
.offre-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
  align-items: start;
}
.offre-body h2,
.offre-body h3 {
  margin-block: 1.5rem 0.75rem;
}
.offre-body p,
.offre-body li {
  color: var(--text-body);
  line-height: 1.8;
}
.offre-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ── Page Contact ───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-lg);
  align-items: start;
}

/* Sticky résumé */
.sticky-card {
  position: sticky;
  top: 6rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--gray-light);
}
.sticky-card__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 0;
}
.sticky-card__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sticky-card__label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sticky-card__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}
.sticky-card__unit {
  font-size: 0.78em;
  font-weight: 400;
  color: var(--text-muted);
}

/* Section formulaire */
.offre-apply-section {
  background: var(--off-white);
  border-top: 1px solid var(--gray-light);
}
.offre-apply-inner {
  max-width: 720px;
  margin: 0 auto;
}
.offre-apply-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.offre-apply-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}
.offre-apply-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.offre-apply-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}
.form-check a { color: var(--purple-main); }

/* Zone de dépôt CV */
.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  color: var(--text-muted);
}
.file-drop:hover,
.file-drop.drag-over {
  border-color: var(--purple-main);
  background: rgba(109,40,217,0.04);
}
.file-drop__text { font-size: 0.9rem; }
.file-drop__text strong { color: var(--purple-main); }
.file-drop__hint { font-size: 0.78rem; }
.file-drop.has-file {
  border-color: var(--purple-main);
  background: rgba(109,40,217,0.05);
  color: var(--purple-dark);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.offre-apply-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.offre-apply-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.offre-apply-note::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
}
.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  gap: 0.6rem;
}



body.is-admin {
  background: var(--purple-dark);
}

/* ── Admin ───────────────────────────────────────────────────── */
.admin-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--purple-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 1rem;
}
.admin-mobile-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  flex-shrink: 0;
}
.admin-side-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
}
.admin-side-overlay.open { display: block; }

.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-body);
}
.admin-side {
  grid-column: 1;
  grid-row: 1;
  background: var(--purple-dark);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-side-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.admin-side-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.admin-side a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.admin-side a:hover,
.admin-side a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.admin-side a.active { background: rgba(255,255,255,0.12); }

.admin-main {
  grid-column: 2;
  grid-row: 1;
  background: var(--off-white);
  padding: 2.5rem;
  overflow-y: auto;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}
.admin-topbar h1 {
  font-size: 1.6rem;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}
.admin-table th {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--off-white);
}
.admin-table td { color: var(--text-body); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--off-white); }

/* Alertes admin */
.admin-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}
.admin-alert--success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.admin-alert--error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.78rem;
}
.btn-danger {
  background: #e74c3c;
  color: var(--white);
}
.btn-danger:hover { background: #c0392b; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}
.stat-card__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--purple-main);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-card__label {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  .offre-layout {
    grid-template-columns: 1fr;
  }
  .sticky-card {
    position: static;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .offre-hero__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .offre-hero__cta { width: 100%; justify-content: center; }
  .admin-wrap {
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 300;
    display: flex;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  }
  .admin-side.open {
    transform: translateX(0);
  }
  .admin-mobile-bar {
    display: flex;
  }
  .admin-main {
    grid-column: 1;
    grid-row: 2;
    padding: 1.5rem;
  }
}

/* ── Tablette (≤ 1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Sections */
  .section     { padding-block: var(--space-xl); }
  .section--lg { padding-block: calc(var(--space-xl) * 1.3); }

  /* Hero splitté — ratio rééquilibré */
  .hero-split { grid-template-columns: 52% 48%; }
  .hero-split__content {
    padding: 8rem clamp(1.5rem, 5vw, var(--space-xl)) 6rem clamp(1.5rem, 6vw, var(--space-2xl));
  }

  /* Split section — padding plus léger */
  .split-section__content { padding: var(--space-xl) var(--space-md); }

  /* Grilles — on repasse à 2 cols max */
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .blog-grid  { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ── Mobile (≤ 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* --- Navigation --- */
  .nav-menu, .btn-nav { display: none; }
  .nav-burger         { display: flex; }
  .nav-mobile         { display: flex; }
  .nav-container      { padding-block: 1rem; }

  /* Fond permanent sur mobile : header toujours visible */
  .site-header {
    background: rgba(28, 15, 60, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* --- Typo : renforcement explicite en responsive --- */
  h1, h2, h3, h4 { font-family: var(--font-heading); }

  /* --- Logo mobile --- */
  .nav-logo img { height: 26px; }

  /* --- Offre candidature --- */
  .form-row { grid-template-columns: 1fr; }
  .offre-hero { padding-top: 6.5rem; padding-bottom: 3rem; }
  .offre-apply-footer { align-items: stretch; }
  .offre-apply-footer .btn-lg { justify-content: center; width: 100%; }

  /* --- Sections --- */
  .section     { padding-block: 4.5rem; }
  .section--lg { padding-block: 6rem; }

  /* --- Hero (ancien full-bleed, conservé pour d'autres pages) --- */
  .hero-content {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  .hero-scroll { display: none; }

  /* --- Page hero (sous-pages) --- */
  .page-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
  .page-hero h1 { letter-spacing: -0.5px; }

  /* --- Bannière gradient --- */
  .banner-gradient { padding-block: var(--space-lg); }
  .banner-gradient h2 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-inline: auto;
  }

  /* --- Stats bar --- */
  .stats-bar { padding-block: var(--space-md); }

  /* --- Grilles --- */
  .form-grid  { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid  { grid-template-columns: 1fr; }
  .team-grid  { grid-template-columns: repeat(2, 1fr); }

  /* --- Hero splitté --- */
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 62vw;
  }
  .hero-split__content {
    /* nav ≨97px + bandeau ∶50px = ~10rem de marge */
    padding: 10rem var(--container-pad) 3rem;
  }
  .hero-split__images {
    height: 62vw;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
  }

  /* --- Split section --- */
  .split-section { grid-template-columns: 1fr; }
  .split-section.reversed { direction: ltr; }
  .split-section__img { min-height: 55vw; }
  .split-section__content { padding: var(--space-lg) var(--container-pad); }

  /* --- Section intro --- */
  .section-intro { text-align: left; }
  .section-intro .lead { max-width: 100%; }

  /* --- Footer --- */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* --- Admin --- */
  .admin-card { padding: 1rem 0.75rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .admin-table { min-width: 580px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }

  /* --- Cibles tactiles --- */
  .btn { min-height: 44px; }
  .nav-burger { padding: 8px; }
}

@media (max-width: 480px) {
  /* --- Logo petit mobile --- */
  .nav-logo img { height: 24px; }

  /* --- Hero (ancien) --- */
  .hero-content { padding-top: 5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* --- Hero splitté petit mobile --- */
  .hero-split {
    grid-template-rows: auto 55vw;
  }
  .hero-split__content {
    padding: 5.5rem var(--container-pad) 2.5rem;
  }
  .hero-split__content h1 {
    font-size: clamp(2.6rem, 10vw, 3.5rem);
    letter-spacing: -1px;
  }
  .hero-split__images {
    height: 55vw;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  /* Masquer la 2e image sur très petit écran */
  .hero-split__images img:last-child { display: none; }

  /* --- Stats --- */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item__number { font-size: clamp(2rem, 8vw, 3rem); }

  /* --- Équipe --- */
  .team-grid { grid-template-columns: 1fr; }

  /* --- Cards --- */
  .card-offre  { padding: 1.5rem; }
  .card-article__body { padding: 1.25rem; }

  /* --- Formulaires : empêche le zoom automatique iOS --- */
  .form-input,
  .form-textarea,
  .form-select { font-size: 1rem; }

  /* --- Pagination --- */
  .pagination a,
  .pagination span { min-width: 36px; height: 36px; font-size: 0.8rem; }

  /* --- Bannière --- */
  .banner-gradient { padding-block: var(--space-md); }
  .banner-gradient h2 { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .banner-gradient p { font-size: 0.9rem; }

  /* --- Page hero sous-pages --- */
  .page-hero {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  /* --- Footer --- */
  .footer-brand p { display: none; }  /* masque la tagline sous le logo */

  /* --- Admin stats --- */
  .stat-cards { grid-template-columns: 1fr; }
}

/* ── Utilitaires ─────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-white   { color: var(--white) !important; }
.text-muted   { color: var(--text-muted); }
.text-purple  { color: var(--purple-main); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-sm       { gap: var(--space-sm); }
.gap-md       { gap: var(--space-md); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Animations d'apparition ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
