/* =============================================================================
 * Alternance Reborn — Homepage styles 2026 (DS 2026)
 *
 * PR1 — port adapté de design_system_2026/migrations/home_v2.css.
 * Étend tokens.css + components.css. Préfixe .ar-* pour les blocs spécifiques
 * à la home, sans collision avec le legacy.
 *
 * Composants page-only home (cf. DESIGN.md section "Composants page-only home").
 * Header/footer DS NE sont PAS inclus ici (PR3 follow-up).
 * Bandeau RGPD NON inclus (différé Tarteaucitron, project_pub_refactoring.md).
 * .ar-skin / .ar-skin__band-top NON inclus (incompatible <main> legacy de base.html.twig).
 * ============================================================================= */

/* ─────────────────────────── Page chrome partagé ─────────────────────────── */

.ar-home {
  background: var(--color-bg-subtle);
  color: var(--color-text);
  /* Full-bleed : la home vit dans <main class="container"> legacy (max ~940px).
   * On casse cette contrainte pour que les fonds de section (.ar-section--bg-muted)
   * s'étendent sur toute la largeur du viewport. Le contenu reste centré via
   * .ar-section__inner (max-width: container-xl). */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: hidden;
}

.ar-home a { color: inherit; text-decoration: none; }

/* Reduced motion (a11y D7) */
@media (prefers-reduced-motion: reduce) {
  .ar-home *, .ar-home *::before, .ar-home *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────────────────── Sections rythme ─────────────────────────── */

.ar-section { padding: var(--space-12) var(--space-6); }
.ar-section--tight { padding: var(--space-8) var(--space-6); }
.ar-section--bg-bg { background: var(--color-bg); }
.ar-section--bg-muted { background: var(--color-bg-muted); }
.ar-section__inner { max-width: var(--container-xl); margin: 0 auto; }

.ar-section__head { margin-bottom: var(--space-8); display: grid; gap: var(--space-2); }
.ar-section__head--center { text-align: center; justify-items: center; }
.ar-section__head--row {
  grid-template-columns: 1fr auto;
  align-items: end;
}
@media (max-width: 720px) { .ar-section__head--row { grid-template-columns: 1fr; } }
.ar-section__title { font-size: var(--text-2xl); font-weight: var(--weight-semibold); color: var(--color-text-strong); margin: 0; letter-spacing: -0.01em; }
.ar-section__lede { font-size: var(--text-md); color: var(--color-text-muted); margin: 0; max-width: 640px; }
.ar-section__cta { font-size: var(--text-sm); color: var(--color-brand-600); font-weight: var(--weight-medium); display: inline-flex; gap: var(--space-1); align-items: center; }
.ar-section__cta:hover { color: var(--color-brand-700); }

/* ─────────────────────────── Hero éditorial ─────────────────────────── */
/* D5 design-review : décoratifs ::before (blob vert) et ::after (cercle gold) supprimés
 * pour zéro AI slop. Hero garde son fond crème + gradients radiaux atmosphériques. */

.ar-hero-editorial {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(31,178,90,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(212,160,23,0.08) 0%, transparent 50%),
    #FFF8EC;
  border-bottom: 3px solid var(--color-brand-500);
  overflow: hidden;
}
.ar-hero-editorial__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}
/* D2 design-review : above-fold spec mobile-first.
 * Desktop ≥1280×800 = hero entier visible.
 * Mobile 375×667 = eyebrow + h1 + 1 CTA primary visible, le reste scroll. */
.ar-hero-editorial__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-6);
}
@media (max-width: 900px) { .ar-hero-editorial__top { grid-template-columns: 1fr; } }
.ar-hero-editorial__copy h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin: 0 0 var(--space-4);
  line-height: var(--leading-tight);
}
.ar-hero-editorial__copy h1 em { font-style: normal; color: var(--color-brand-600); }
.ar-hero-editorial__copy p { color: var(--color-text-muted); font-size: var(--text-md); margin: 0 0 var(--space-6); line-height: var(--leading-relaxed); max-width: 540px; }
.ar-hero-editorial__art {
  background: var(--color-bg-muted) center/cover no-repeat;
  background-image: url('/images/jeunes.jpg');
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 106, 53, 0.18);
  border: 4px solid #fff;
}
.ar-hero-editorial__art-tag {
  position: absolute; bottom: var(--space-4); left: var(--space-4);
  background: var(--color-bg); color: var(--color-text-strong);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  display: inline-flex; align-items: center; gap: var(--space-1);
  box-shadow: var(--shadow-sm);
}
.ar-hero-editorial__art-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand-500); }

/* Mobile : compresser le hero pour above-fold sur 375×667 */
@media (max-width: 720px) {
  .ar-hero-editorial__inner { padding: var(--space-6) var(--space-4); }
  .ar-hero-editorial__copy h1 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
  .ar-hero-editorial__copy p { font-size: var(--text-sm); margin-bottom: var(--space-4); }
  .ar-hero-editorial__top { gap: var(--space-4); }
}

/* ─────────────────────────── Search bar (commune) ─────────────────────────── */

.ar-home-search {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: var(--space-2);
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) { .ar-home-search { grid-template-columns: 1fr; } }
.ar-home-search__field { position: relative; }
.ar-home-search__field svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--color-text-muted);
}
.ar-home-search__field input {
  width: 100%; height: 48px;
  border: 0; padding: 0 var(--space-4) 0 42px;
  background: transparent;
  font-family: var(--font-sans); font-size: var(--text-base);
  color: var(--color-text-strong);
}
.ar-home-search__field input:focus { outline: none; }
.ar-home-search__field--divider::after {
  content: ''; position: absolute; right: 0; top: 25%; bottom: 25%; width: 1px; background: var(--color-border);
}
@media (max-width: 720px) { .ar-home-search__field--divider::after { display: none; } }
.ar-home-search__btn { height: 48px; padding: 0 var(--space-6); }

.ar-home-search__chips { display: flex; flex-wrap: wrap; gap: 0; align-items: center; margin-top: var(--space-3); }
.ar-home-search__chips-label {
  font-size: var(--text-xs); color: var(--color-text-muted);
  margin-right: var(--space-3); font-weight: var(--weight-medium);
}
.ar-home-search__chip {
  background: transparent !important;
  border: 0 !important;
  padding: 4px 0 !important;
  color: var(--color-brand-700) !important;
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  margin: 0 !important;
  cursor: pointer;
  text-decoration: none;
}
.ar-home-search__chip:hover { color: var(--color-brand-600) !important; text-decoration: underline; text-underline-offset: 3px; }
.ar-home-search__chip + .ar-home-search__chip::before {
  content: '·';
  color: var(--color-text-subtle);
  margin: 0 var(--space-2);
  font-weight: var(--weight-regular);
  pointer-events: none;
}
/* Mobile : touch targets ≥44px (a11y D7) */
@media (max-width: 720px) {
  .ar-home-search__chip { padding: var(--space-2) var(--space-3) !important; min-height: 44px; display: inline-flex; align-items: center; }
}

/* ─────────────────────────── Stats inline (hero) ─────────────────────────── */

.ar-stats-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-6) 0 0;
  border-top: 1px solid var(--color-border);
}
@media (max-width: 720px) { .ar-stats-inline { grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.ar-stats-inline__item { display: grid; gap: var(--space-1); }
.ar-stats-inline__value { font-size: var(--text-xl); font-weight: var(--weight-semibold); color: var(--color-text-strong); letter-spacing: -0.01em; }
.ar-stats-inline__label { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ─────────────────────────── Partenaires ─────────────────────────── */
/* D8 design-review : logos en couleurs originales (respect chartes brand). */

.ar-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  padding: var(--space-6);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.ar-partners__label {
  font-size: var(--text-xs);
  color: var(--color-brand-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--weight-bold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.ar-partners__label::before { content: ''; width: 24px; height: 2px; background: var(--color-brand-500); }
.ar-partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--duration-base) var(--ease-out);
  opacity: 0.85;
}
.ar-partner:hover { opacity: 1; }
/* Logos seuls : hauteur uniforme 40px, largeur auto. Le logo PNG porte le nom. */
.ar-partner img { height: 40px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }

/* ─────────────────────────── Quickstart (3 cercles signature) ─────────────────────────── */

.ar-quickstart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .ar-quickstart { grid-template-columns: 1fr; gap: var(--space-8); } }
.ar-quickstart__card {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  justify-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-4) var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition-default);
  position: relative;
  text-decoration: none;
}
.ar-quickstart__card:hover { border-color: var(--color-brand-500); box-shadow: 0 12px 32px rgba(15, 106, 53, 0.12); transform: translateY(-4px); }
.ar-quickstart__circle {
  width: 168px; height: 168px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand-50) 0%, #fff 100%);
  border: 1px solid var(--color-brand-100);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: var(--space-2);
}
.ar-quickstart__card--gold .ar-quickstart__circle {
  background: linear-gradient(135deg, #FEF3C7 0%, #fff 100%);
  border-color: #FDE68A;
}
.ar-quickstart__circle img { width: 100px; height: 100px; object-fit: contain; }
.ar-quickstart__circle::after {
  content: ''; position: absolute; inset: -6px;
  border: 1px dashed var(--color-brand-100);
  border-radius: 50%;
  opacity: 0.7;
}
.ar-quickstart__card--gold .ar-quickstart__circle::after { border-color: #FDE68A; }
.ar-quickstart__free {
  position: absolute; top: 14px; right: 14px;
  background: var(--color-gold-500);
  color: #fff;
  font-size: 11px; font-weight: var(--weight-bold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.04em;
  transform: rotate(8deg);
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.35);
}
.ar-quickstart__eyebrow { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: var(--weight-medium); margin: 0; }
.ar-quickstart__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-brand-600);
  margin: 0;
  letter-spacing: -0.01em;
}
.ar-quickstart__card--gold .ar-quickstart__title { color: var(--color-gold-600); }
.ar-quickstart__body { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; line-height: var(--leading-relaxed); max-width: 240px; }
.ar-quickstart__cta { margin-top: var(--space-2); }
/* Mobile : touch target ≥44px sur les CTA quickstart */
@media (max-width: 720px) {
  .ar-quickstart__cta { min-height: 44px; }
}

/* ─────────────────────────── Stats (4 chiffres clés) ─────────────────────────── */

.ar-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 720px) { .ar-stats { grid-template-columns: 1fr 1fr; } }
.ar-stat__value {
  display: block;
  /* clamp : valeurs longues comme "477 € — 1 802 €" ne doivent pas wrapper sur
   * 3 lignes dans une tuile ~161px. On laisse le texte respirer entre 20 et 32px
   * selon la largeur dispo (container query-like via clamp viewport). */
  font-size: clamp(20px, 2.2vw, var(--text-2xl));
  font-weight: var(--weight-bold);
  color: var(--color-brand-600);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.ar-stat {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-brand-500);
}
.ar-stat:nth-child(2) { border-top-color: var(--color-gold-500); }
.ar-stat:nth-child(2) .ar-stat__value { color: var(--color-gold-600); }
.ar-stat__label { display: block; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ─────────────────────────── Mosaic (À la une) ─────────────────────────── */

.ar-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-4);
  min-height: 420px;
}
@media (max-width: 900px) { .ar-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; } }
.ar-mosaic > :nth-child(1) { grid-row: span 2; }
@media (max-width: 900px) { .ar-mosaic > :nth-child(1) { grid-row: auto; } }

/* ─────────────────────────── Offer cards ─────────────────────────── */

.ar-offer-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5, 20px);
  display: grid; gap: var(--space-3);
  transition: var(--transition-default);
  text-decoration: none;
}
.ar-offer-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.ar-offer-card__head { display: flex; align-items: center; gap: var(--space-3); }
.ar-offer-card__logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-text-muted);
  flex-shrink: 0;
  overflow: hidden;
}
.ar-offer-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.ar-offer-card__company { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0; }
.ar-offer-card__date { font-size: var(--text-xs); color: var(--color-text-subtle); margin: 0; }
.ar-offer-card__title { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text-strong); margin: 0; line-height: var(--leading-snug); }
.ar-offer-card__meta { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.ar-offer-card__meta .ar-badge { font-size: 11px; }
.ar-offer-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-3); border-top: 1px solid var(--color-border); margin-top: auto; gap: var(--space-3); flex-wrap: wrap; }
.ar-offer-card__loc { font-size: var(--text-xs); color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 4px; }
.ar-offer-card__more { font-size: var(--text-sm); color: var(--color-brand-600); font-weight: var(--weight-medium); }

/* ─────────────────────────── Cities ─────────────────────────── */

.ar-city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .ar-city-grid { grid-template-columns: repeat(2, 1fr); } }
.ar-city-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
  background: var(--color-bg-muted) center/cover no-repeat;
  display: flex; align-items: flex-end;
  padding: var(--space-4);
  color: #fff;
  transition: var(--transition-default);
  text-decoration: none;
}
.ar-city-card::before {
  content: ''; position: absolute; inset: 0;
  /* Scrim renforcé : la zone texte (bas de carte) reste lisible quelle que soit
   * la photo (Lyon/Montpellier ont des bâtiments clairs qui noyaient le blanc). */
  background: linear-gradient(180deg, rgba(15,20,25,0) 35%, rgba(15,20,25,0.45) 60%, rgba(15,20,25,0.92) 100%);
}

/* Fallback gradients quand picFeatured S3 absent. CLAUDE.md rule : zéro hex hardcodé
 * dans CSS — on utilise donc les tokens DS. */
.ar-city-card--fallback-brand { background-image: linear-gradient(135deg, var(--color-brand-700) 0%, var(--color-brand-600) 100%); }
.ar-city-card--fallback-neutral { background-image: linear-gradient(135deg, #1F2937 0%, #374151 100%); /* greys hors palette DS — à promouvoir dans tokens.css si réutilisé */ }
.ar-city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* Texte sur photo : blanc franc + text-shadow pour garantir le contraste même sur
 * fond clair. Hiérarchie nom (gros, gras) > compteur (plus petit, en retrait). */
.ar-city-card__name {
  position: relative; z-index: 1;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(15, 20, 25, 0.6);
}
.ar-city-card__count {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(15, 20, 25, 0.55);
  backdrop-filter: blur(2px);
}

/* ─────────────────────────── SEO editorial block ─────────────────────────── */

.ar-seo-block { max-width: 880px; margin: 0 auto; }
.ar-seo-block h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-strong);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ar-seo-block h2::before { content: ''; width: 22px; height: 2px; background: var(--color-brand-500); }
.ar-seo-block p { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--color-text-muted); margin: 0 0 var(--space-3); }

/* ─────────────────────────── Guides cards ─────────────────────────── */

.ar-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
/* PAT-254 : variante 2 colonnes (section guides étudiants, carte « Comment trouver » masquée). */
.ar-guide-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .ar-guide-grid,
  .ar-guide-grid--cols-2 { grid-template-columns: 1fr; }
}
.ar-guide-card {
  display: grid; gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-default);
  text-decoration: none;
}
.ar-guide-card:hover { border-color: var(--color-brand-500); box-shadow: var(--shadow-sm); }
.ar-guide-card__eyebrow { font-size: var(--text-xs); color: var(--color-brand-600); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; }
.ar-guide-card--employers .ar-guide-card__eyebrow { color: var(--color-gold-600); }
.ar-guide-card h3 { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text-strong); margin: 0; line-height: var(--leading-snug); }
.ar-guide-card p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.ar-guide-card__more { font-size: var(--text-sm); color: var(--color-brand-600); font-weight: var(--weight-medium); margin-top: auto; }

/* ─────────────────────────── Testimonials ─────────────────────────── */
/* Données : YAML statique homepage.fr.yml testimonials.t1..t3 (PR1).
 * PR2 follow-up : migrer vers entité Doctrine + admin CRUD. */

.ar-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .ar-testimonials { grid-template-columns: 1fr; } }
.ar-testimonial {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  position: relative;
  transition: var(--transition-default);
}
.ar-testimonial:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.ar-testimonial::before {
  content: '\201C'; /* curly opening quote U+201C */
  position: absolute; top: var(--space-3); right: var(--space-4);
  font-family: Georgia, serif;
  font-size: 56px; line-height: 1;
  color: var(--color-brand-100);
  font-weight: var(--weight-bold);
}
.ar-testimonial__quote {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-strong);
  margin: 0;
  font-weight: var(--weight-medium);
  position: relative;
  z-index: 1;
}
.ar-testimonial__quote em { color: var(--color-brand-700); font-style: normal; font-weight: var(--weight-semibold); }
.ar-testimonial__author {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-3);
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.ar-testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--weight-semibold);
  color: var(--color-text-strong);
  font-size: var(--text-sm);
}
/* Avatar colors mappés sur tokens DS --avatar-1..7 */
.ar-testimonial__avatar[data-color="1"] { background: var(--avatar-1); }
.ar-testimonial__avatar[data-color="2"] { background: var(--avatar-2); }
.ar-testimonial__avatar[data-color="3"] { background: var(--avatar-3); }
.ar-testimonial__avatar[data-color="4"] { background: var(--avatar-4); }
.ar-testimonial__avatar[data-color="5"] { background: var(--avatar-5); }
.ar-testimonial__avatar[data-color="6"] { background: var(--avatar-6); }
.ar-testimonial__avatar[data-color="7"] { background: var(--avatar-7); }
.ar-testimonial__name { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--color-text-strong); margin: 0; line-height: 1.3; }
.ar-testimonial__meta { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0; line-height: 1.3; }
.ar-testimonial__company {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 11px;
  color: var(--color-brand-700);
  font-weight: var(--weight-medium);
  margin-top: 2px;
}
.ar-testimonial__company::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-brand-500);
}

/* ─────────────────────────── Companies grid ─────────────────────────── */

.ar-companies-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) { .ar-companies-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ar-companies-grid { grid-template-columns: repeat(2, 1fr); } }
.ar-company-tile {
  aspect-ratio: 1.4;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  padding: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  text-align: center;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: var(--transition-default);
}
.ar-company-tile:hover { border-color: var(--color-brand-500); color: var(--color-brand-700); }
/* Hauteur de logo normalisée : tous les logos rendent ~40px de haut quel que soit
 * leur ratio, pour un rythme visuel régulier. max-width borne les logos très larges. */
.ar-company-tile img { max-height: 40px; max-width: 75%; width: auto; object-fit: contain; }

/* ─────────────────────────── Articles (magazine) ─────────────────────────── */

.ar-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .ar-article-grid { grid-template-columns: 1fr; } }
.ar-article-card {
  display: grid;
  gap: var(--space-3);
  text-decoration: none;
}
.ar-article-card__img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--color-bg-muted) center/cover no-repeat;
}
.ar-article-card__img--fallback-brand { background-image: linear-gradient(135deg, var(--color-brand-600), var(--color-brand-500)); }
.ar-article-card__cat { font-size: var(--text-xs); color: var(--color-brand-600); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; }
.ar-article-card h3 { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text-strong); margin: 0; line-height: var(--leading-snug); }
.ar-article-card__meta { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ─────────────────────────── Premium banner ─────────────────────────── */

.ar-home-premium {
  background: linear-gradient(98deg, var(--color-gold-500), var(--color-gold-600));
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 720px) { .ar-home-premium { grid-template-columns: 1fr; text-align: center; padding: var(--space-6) var(--space-4); } }
.ar-home-premium h3 { font-size: var(--text-xl); font-weight: var(--weight-semibold); margin: 0 0 var(--space-1); color: #fff; }
.ar-home-premium p { margin: 0; color: rgba(255,255,255,0.92); font-size: var(--text-sm); }
.ar-home-premium .ar-btn { background: #fff; color: var(--color-gold-600); border: 0; }
.ar-home-premium .ar-btn:hover { background: var(--color-bg-subtle); color: var(--color-gold-600); }

/* ─────────────────────────── FAQ ─────────────────────────── */

.ar-faq {
  display: grid;
  gap: var(--space-2);
  max-width: 820px;
  margin: 0 auto;
}
.ar-faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-5, 20px);
  transition: var(--transition-default);
}
.ar-faq__item[open] { border-color: var(--color-border-strong); }
.ar-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-3) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  font-size: var(--text-base); font-weight: var(--weight-medium);
  color: var(--color-text-strong);
  min-height: 44px; /* a11y D7 touch target */
}
.ar-faq__item summary::-webkit-details-marker { display: none; }
.ar-faq__item summary::after {
  content: '+';
  font-size: 22px; font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  transition: var(--transition-default);
}
.ar-faq__item[open] summary::after { content: '\2013'; color: var(--color-brand-600); }
.ar-faq__answer { padding: 0 0 var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.ar-faq__answer p { margin: 0; }
.ar-faq__answer a { color: var(--color-brand-600); text-decoration: underline; text-underline-offset: 2px; }
