/* ==========================================================================
   AGENCY.CSS — VERSION OPTIMISÉE
   Optimisations :
   - Keyframes unifiées (at-bounce-y, at-shimmer)
   - Variables CSS pour box-shadow/border répétitifs
   - Structure préservée, aucune régression
   ========================================================================== */

/* ==========================================================================
   VARIABLES LOCALES (agency scope)
   ========================================================================== */
.at-agence {
  --at-glass-shadow: 0 18px 52px rgba(0,0,0,.12);
  --at-glass-shadow-hover: 0 22px 60px rgba(0,0,0,.14);
  --at-glass-border: 1px solid rgba(0,0,0,.06);
  --at-glass-inset: inset 0 0 0 1px rgba(255,255,255,.5);
}

/* ==========================================================================
   KEYFRAMES UNIFIÉES
   ========================================================================== */

/* Bounce vertical (utilisé par scrollhints, nudge) */
@keyframes at-bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--at-bounce-dist, 4px)); }
}

/* Shimmer horizontal (ligne lumineuse) */
@keyframes at-shimmer {
  0%, 100% {
    background-position: 200% 0;
    opacity: .5;
  }
  50% {
    background-position: -200% 0;
    opacity: 1;
  }
}

/* Nudge horizontal (KPIs mobile) */
@keyframes at-nudge {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: .95; }
  50% { transform: translateY(-50%) translateX(4px); opacity: 1; }
}

/* ==========================================================================
   SECTION 1 — HERO (copie HOME) + layout 2 colonnes + KPIs
   ========================================================================== */

.at-hero {
  position: relative;
  isolation: isolate;
  color: var(--trafic-dark);
  padding: calc(var(--at-header-h) + 86px) 20px 78px 20px;
}

.at-hero-cta {
  display: flex;
  justify-content: center;
  margin-bottom: var(--at-margin);
  gap: 12px;
  flex-wrap: wrap;
}

/* Fond statique */
.at-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(rgba(0, 0, 0, 0.094) 1.1px, transparent 1.1px) 0 0 / 18px 18px,
    linear-gradient(160deg, rgba(0,120,200,0.3) 0%, rgba(0,120,200,0.15) 35%, rgba(0,120,200,0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Canvas */
.at-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Contraste (halo blanc) */
.at-hero-contrast {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(600px 320px at 50% 38%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.68) 28%, rgba(255,255,255,.25) 52%, rgba(255,255,255,0) 70%);
  transition: opacity .25s, transform .25s;
  opacity: 1;
}

/* AGENCE : background plus doux (lisibilité) */
.at-agence .at-hero--agence .at-hero-bg {
  background:
    radial-gradient(rgba(0, 0, 0, 0.06) 1.1px, transparent 1.1px) 0 0 / 18px 18px,
    linear-gradient(160deg, rgba(0,120,200,0.18) 0%, rgba(0,120,200,0.08) 35%, rgba(0,120,200,0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.at-agence .at-hero--agence .at-hero-canvas {
  opacity: .72;
}

/* ===== MEDIA-QUERIES HERO ===== */
@media (max-width: 991px) {
  .at-hero { padding: calc(var(--at-header-h) + 86px) 20px 78px 20px; }
}

@media (max-width: 767px) {
  .at-hero { padding: calc(var(--at-header-h) + 88px) 20px 78px 20px; }
}

@media (max-width: 450px) {
  .at-hero { padding: calc(var(--at-header-h) + 84px) 20px 78px 20px; }
  .at-hero-contrast {
    background: radial-gradient(520px 300px at 50% 40%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.62) 30%, rgba(255,255,255,.18) 55%, rgba(255,255,255,0) 72%);
  }
}

/* ===== LAYOUT AGENCE : 2 colonnes desktop ===== */
@media (min-width: 992px) {
  .at-agence .at-hero--agence .at-ag-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(18px, 4vw, 58px);
    align-items: center;
  }

  .at-agence .at-hero--agence .at-ag-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .at-agence .at-hero--agence .at-ag-hero-left .at-hero-cta {
    justify-content: center;
  }

  .at-agence .at-hero--agence .at-ag-hero-right {
    justify-self: end;
    width: min(520px, 100%);
    text-align: center;
  }
}

@media (max-width: 991px) {
  .at-agence .at-hero--agence .at-ag-hero-right {
    margin-top: 50px;
    padding-top: 35px;
    position: relative;
  }

  .at-agence .at-hero--agence .at-ag-hero-right::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(520px, 100%);
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--trafic-primary) 30%, transparent),
      transparent
    );
    opacity: .9;
    pointer-events: none;
  }
}

/* ===== Titre KPI ===== */
.at-ag-kpi-title {
  margin: 0 0 12px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 16px;
  color: var(--trafic-dark);
  opacity: .92;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.at-ag-kpi-title::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  width: 90px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--trafic-primary) 85%, #fff 15%),
    color-mix(in srgb, var(--trafic-primary) 15%, transparent)
  );
  opacity: .95;
}

@media (max-width: 450px) {
  .at-ag-kpi-title { font-size: 15px; }
}

/* ==========================================================================
   KPIs (style partagé avec HOME)
   ========================================================================== */

.at-metrics-strip { position: relative; }

.at-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0;
  background: transparent;
}

/* Cartes "verre" */
.at-metric {
  position: relative;
  padding: 13px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(220px 160px at 104% -18%, color-mix(in srgb, var(--trafic-primary) 22%, transparent) 0%, transparent 60%),
    radial-gradient(600px 300px at -20% -30%, rgba(0,0,0,.08), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.98));
  border: 1px solid color-mix(in srgb, var(--trafic-dark) 12%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.55),
    0 18px 52px rgba(0,0,0,.12);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 8px;
}

@supports (backdrop-filter: blur(8px)) {
  .at-agence .at-hero--agence .at-metric { backdrop-filter: blur(6px); }
}

/* Halo conique */
.at-metric::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -12px;
  width: 120px;
  height: 120px;
  z-index: 0;
  background: conic-gradient(from 210deg, var(--trafic-primary), transparent 40%);
  filter: blur(18px);
  opacity: .24;
  transform: rotate(-8deg);
}

/* Sheen */
.at-metric::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 40%,
                           rgba(255,255,255,.45) 52%,
                           rgba(255,255,255,0) 64%);
  background-repeat: no-repeat;
  background-size: 26% 200%;
  background-position: -140% -30%;
  transition: background-position 1.1s cubic-bezier(.2,.8,.2,1);
  mix-blend-mode: screen;
  opacity: .55;
}

/* Valeur + libellés */
.at-metric-value {
  margin: 0;
  line-height: 1;
  font-weight: 900;
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  order: 1;
  background: linear-gradient(90deg, var(--trafic-dark), var(--trafic-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 0.5px rgba(0,0,0,.22);
}

.at-metric .at-counter {
  min-width: 1ch;
  display: inline-block;
  font-weight: 500;
}

.at-metric-label {
  margin: 0;
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--trafic-dark);
  opacity: .75;
  font-family: 'Oswald', sans-serif;
  order: 2;
}

.at-metric-sub {
  font-size: 12px;
  text-transform: none;
}

/* Reveal KPI pour la HERO Agence */
.at-hero--agence.at-js-kpi .at-metric {
  opacity: 0;
  transform: translateY(18px);
}

.at-hero--agence.at-js-kpi .at-metric.is-in {
  opacity: 1;
  transform: none;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s ease;
}

.at-hero--agence.at-js-kpi .at-metric.is-in::before {
  background-position: 160% 30%;
}

/* Mobile KPIs */
@media (max-width: 767px) {
  .at-metrics {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 14px;
    height: auto;
    background: transparent;
    scrollbar-color: color-mix(in srgb, var(--trafic-dark) 22%, transparent) transparent;
  }

  .at-metrics::-webkit-scrollbar { height: 6px; }
  .at-metrics::-webkit-scrollbar-track { background: transparent; }
  .at-metrics::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--trafic-dark) 22%, transparent);
    border-radius: 999px;
  }

  .at-metric {
    flex: 0 0 60%;
    scroll-snap-align: start;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, .015);
  }

  .at-metrics { position: relative; }

  .at-metrics[data-nudge="right"]::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 64px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.95));
  }

  .at-metrics[data-nudge="right"]::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    z-index: 4;
    pointer-events: none;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%230078C8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6l6 6-6 6"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    animation: at-nudge 1.8s ease-in-out infinite;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .at-metrics[data-nudge="right"]::after { animation: none; }
}

/* ===== UTIL : Drapeau FR ===== */
.at-flag {
  display: inline-block;
  width: 16px;
  height: 10px;
  margin-left: 8px;
  vertical-align: baseline;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
}

.at-flag--fr {
  background: linear-gradient(90deg, #0055A4 0 33.333%, #fff 33.333% 66.666%, #EF4135 66.666% 100%);
}

/* ==========================================================================
   SECTION 2 — TEAM CAROUSEL (version enrichie)
   ========================================================================== */

.at-ag-team {
  position: relative;
  padding: 78px 20px;
  overflow-x: clip;
  background:
    radial-gradient(60% 70% at 18% -10%, color-mix(in srgb, var(--trafic-primary) 9%, #fff) 0%, transparent 60%),
    radial-gradient(55% 70% at 92% 110%, color-mix(in srgb, var(--trafic-cta) 9%, #fff) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f8fafc 100%);
  color-scheme: light;
  forced-color-adjust: none;
}

/* Transition depuis la section précédente */
.at-ag-team::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--trafic-primary) 55%, transparent),
    color-mix(in srgb, var(--trafic-cta) 40%, transparent),
    transparent
  );
  transform: scaleX(0);
  transform-origin: 50% 50%;
  opacity: .95;
}

/* Fondu vers le bas pour raccord parfait avec la vague */
.at-ag-team::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, #f5f5f5 100%);
  z-index: 0;
}

.at-ag-team.is-inview::before {
  transition: transform .9s cubic-bezier(.22,1,.36,1);
  transform: scaleX(1);
}

.at-ag-team-head {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 22px;
}

/* Shell : fond teinté + liseré premium */
.at-ag-team-shell {
  position: relative;
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--trafic-primary) 10%, transparent) 0%, transparent 50%),
    radial-gradient(500px 250px at 100% 100%, color-mix(in srgb, var(--trafic-cta) 8%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.99));
  border: 1px solid rgba(0,0,0,.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.6),
    0 20px 64px rgba(0,0,0,.11);
}

/* Liseré dégradé en haut du shell */
.at-ag-team-shell::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(
    90deg,
    var(--trafic-primary),
    color-mix(in srgb, var(--trafic-primary) 50%, var(--trafic-cta) 50%),
    var(--trafic-cta)
  );
  opacity: .9;
}

/* Topbar */
.at-ag-team-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--trafic-primary) 12%, transparent);
}

.at-ag-team-status {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  color: var(--trafic-dark);
  opacity: .72;
  flex: 0 0 auto;
}

.at-ag-team-top-title {
  flex: 1 1 auto;
  text-align: center;
  margin: 0;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  color: var(--trafic-dark);
  opacity: .62;
  pointer-events: none;
}

.at-ag-team-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

/* Boutons nav : plus de présence */
.at-ag-team-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  box-shadow:
    0 8px 20px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.8);
  cursor: pointer;
  color: var(--trafic-dark);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.at-ag-team-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.9);
  border-color: color-mix(in srgb, var(--trafic-primary) 25%, transparent);
}

.at-ag-team-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

html.mod-keyboard .at-ag-team-btn:focus {
  outline: 2px solid color-mix(in srgb, var(--trafic-primary) 65%, #fff 35%);
  outline-offset: 2px;
}

/* Viewport + track */
.at-ag-team-viewport {
  position: relative;
  border-radius: 18px;
  overflow: clip;
  background: transparent;
}

.at-ag-team-track {
  list-style: none;
  margin: 0;
  padding: 2px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  background: transparent;
  scrollbar-gutter: stable;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.at-ag-team-track:focus { outline: none; }

html.mod-keyboard .at-ag-team-track:focus {
  outline: 2px solid color-mix(in srgb, var(--trafic-primary) 40%, transparent);
  outline-offset: 4px;
  border-radius: 18px;
}

/* Slides */
.at-ag-team-slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 992px) {
  .at-ag-team-slide { flex-basis: calc((100% - 14px) / 2); }
}

/* Card prestige */
.at-ag-team-card {
  --mx: 50%;
  --my: 50%;
  height: 100%;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: stretch;
  border-radius: 18px;
  overflow: clip;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(360px 220px at var(--mx) var(--my), rgba(0,120,200,.16), transparent 58%),
    radial-gradient(320px 180px at 110% -10%, rgba(0,120,200,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.99));
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.5),
    0 18px 56px rgba(0,0,0,.11);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}

/* Liseré premium */
.at-ag-team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--trafic-primary) 60%, #fff 40%),
    rgba(255,255,255,.3) 50%,
    color-mix(in srgb, var(--trafic-cta) 50%, #fff 50%)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .6;
  transition: opacity .25s ease;
}

.at-ag-team-card::after { content: none !important; }

@media (hover: hover) {
  .at-ag-team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,0,0,.12);
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.6),
      0 26px 70px rgba(0,0,0,.15);
  }

  .at-ag-team-card:hover::before {
    opacity: .85;
  }
}

/* Media */
.at-ag-team-media {
  padding: 14px;
  display: grid;
  align-content: start;
}

/* Photo : cadre premium avec liseré dégradé */
.at-ag-team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: clip;
  background: linear-gradient(135deg, #e4e9ef, #d8dfe8);
  box-shadow:
    0 16px 40px rgba(0,0,0,.18),
    inset 0 0 0 1px rgba(255,255,255,.4);
  transition: box-shadow .25s ease;
}

/* Liseré dégradé autour de la photo */
.at-ag-team-photo::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--trafic-primary) 55%, #fff 45%),
    rgba(255,255,255,.25) 50%,
    color-mix(in srgb, var(--trafic-cta) 45%, #fff 55%)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: .75;
  transition: opacity .25s ease;
}

/* Vignette subtile sur la photo */
.at-ag-team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 16px;
  background: radial-gradient(70% 60% at 50% 40%, transparent 50%, rgba(0,0,0,.12) 100%);
  mix-blend-mode: multiply;
  opacity: .25;
}

.at-ag-team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

@media (hover: hover) {
  .at-ag-team-card:hover .at-ag-team-photo {
    box-shadow:
      0 20px 50px rgba(0,0,0,.22),
      inset 0 0 0 1px rgba(255,255,255,.5);
  }

  .at-ag-team-card:hover .at-ag-team-photo::before {
    opacity: .95;
  }

  .at-ag-team-card:hover .at-ag-team-photo img {
    transform: scale(1.07);
  }
}

/* Content */
.at-ag-team-content {
  padding: 14px 16px 16px 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.at-ag-team-meta { display: grid; gap: 2px; }

.at-ag-team-name {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 20px;
  color: var(--trafic-dark);
}

.at-ag-team-role {
  margin: 0;
  font-size: 14px;
  opacity: .75;
  color: var(--trafic-dark);
}

.at-ag-team-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--trafic-dark) 90%, #000 10%);
  opacity: .92;
}

/* KPIs : fond légèrement teinté */
.at-ag-team-kpis {
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.at-ag-team-kpi {
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.96),
    color-mix(in srgb, var(--trafic-primary) 5%, #fff)
  );
  border: 1px solid color-mix(in srgb, var(--trafic-primary) 12%, transparent);
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
  .at-ag-team-card:hover .at-ag-team-kpi {
    border-color: color-mix(in srgb, var(--trafic-primary) 20%, transparent);
    box-shadow: 0 10px 24px rgba(0,0,0,.07);
  }
}

.at-ag-team-kpi dt {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  opacity: .70;
  margin: 0;
  line-height: 1.1;
}

.at-ag-team-kpi dd {
  margin: 4px 0 0;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .04em;
  font-size: 14px;
  color: var(--trafic-dark);
  line-height: 1.2;
  word-break: break-word;
}

.at-ag-team-kpi-suf {
  margin-left: 4px;
  font-size: 12px;
  opacity: .75;
}

/* Liens */
.at-ag-team-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
   justify-content:center;
}

.at-ag-team-link {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  color: var(--trafic-primary);
  text-decoration: none;
  transition: color .15s ease;
}

.at-ag-team-link:hover {
  color: var(--trafic-cta);
  text-decoration: underline;
}

.at-ag-team-dot { opacity: .35; }

/* Dots : plus visibles et dynamiques */
.at-ag-team-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

.at-ag-team-dotbtn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--trafic-dark) 10%, transparent);
  background: color-mix(in srgb, var(--trafic-dark) 18%, transparent);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.at-ag-team-dotbtn[aria-current="true"] {
  background: linear-gradient(135deg, var(--trafic-primary), color-mix(in srgb, var(--trafic-primary) 70%, var(--trafic-cta) 30%));
  border-color: transparent;
  transform: scale(1.45);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--trafic-primary) 40%, transparent);
}

.at-ag-team-dotbtn:hover:not([aria-current="true"]) {
  background: color-mix(in srgb, var(--trafic-primary) 45%, transparent);
  border-color: color-mix(in srgb, var(--trafic-primary) 30%, transparent);
  transform: scale(1.2);
}

html.mod-keyboard .at-ag-team-dotbtn:focus {
  outline: 2px solid color-mix(in srgb, var(--trafic-primary) 65%, #fff 35%);
  outline-offset: 3px;
}

/* ==========================================================================
   Responsive mobile/tablette
   ========================================================================== */
/* Tablette : KPIs en 2 colonnes + 1 centré en dessous */
@media (min-width: 992px) and (max-width: 1200px) {
  .at-ag-team-card {
    grid-template-columns: 180px 1fr;
    gap: 14px;
  }

  .at-ag-team-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .at-ag-team-kpi:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .at-ag-team-kpi {
    padding: 8px 10px;
  }

  .at-ag-team-kpi dt { font-size: 10px; }
  .at-ag-team-kpi dd { font-size: 13px; }

  .at-ag-team-name { font-size: 18px; }
  .at-ag-team-bio { font-size: 13px; }
}

@media (max-width: 991px) {
  .at-ag-team-card { grid-template-columns: 1fr; }
  .at-ag-team-top-title { display: none; }
  .at-ag-team-media { padding: 12px 12px 0; }

  .at-ag-team-photo {
    aspect-ratio: 5 / 4;
    min-height: 200px;
    max-height: 52vh;
    border-radius: 16px;
  }

  .at-ag-team-content {
    padding: 0 12px 12px;
    gap: 8px;
  }

  .at-ag-team-name { font-size: 18px; }
  .at-ag-team-role { font-size: 13px; }

  .at-ag-team-bio {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .at-ag-team-kpi:nth-child(3) { display: none; }

  .at-ag-team-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
    align-items: stretch;
  }

  .at-ag-team-kpi {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 9px 10px;
    border-radius: 14px;
    min-width: 0;
  }

  .at-ag-team-kpi dt { font-size: 10px; }
  .at-ag-team-kpi dd { font-size: 13px; }

  .at-ag-team-topbar {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   TEAM CARDS — Petits écrans (< 560px)
   ========================================================================== */
@media (max-width: 560px) {
  .at-ag-team-slide {
    flex: 0 0 92%;
  }

  .at-ag-team-media {
    padding: 10px 10px 0;
  }

  .at-ag-team-content {
    padding: 10px 14px 14px;
    gap: 6px;
  }

  .at-ag-team-name {
    font-size: 16px;
  }

  .at-ag-team-role {
    font-size: 12px;
  }

  .at-ag-team-bio {
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 4;
  }

  .at-ag-team-kpis {
    gap: 6px;
  }

  .at-ag-team-kpi {
    padding: 8px;
    border-radius: 12px;
  }

  .at-ag-team-kpi dt {
    font-size: 9px;
  }

  .at-ag-team-kpi dd {
    font-size: 12px;
  }

  .at-ag-team-kpi-suf {
    font-size: 10px;
  }

  .at-ag-team-links {
    gap: 8px;
  }

  .at-ag-team-link {
    font-size: 11px;
  }
}

/* ==========================================================================
   TEAM CARDS — Très petits écrans (< 400px)
   ========================================================================== */
@media (max-width: 400px) {
  .at-ag-team-slide {
    flex: 0 0 95%;
  }

  .at-ag-team-shell {
    padding: 12px;
  }

  .at-ag-team-photo {
    aspect-ratio: 1 / 1;
    min-height: 180px;
    max-height: 45vh;
  }

  .at-ag-team-content {
    padding: 8px 12px 12px;
  }

  .at-ag-team-name {
    font-size: 15px;
  }

  .at-ag-team-bio {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }

  .at-ag-team-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .at-ag-team-kpi {
    padding: 6px 8px;
  }

  .at-ag-team-kpi dt {
    font-size: 8px;
  }

  .at-ag-team-kpi dd {
    font-size: 11px;
  }

  .at-ag-team-topbar {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .at-ag-team-btn {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   Motion safety
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .at-ag-team-btn,
  .at-ag-team-card,
  .at-ag-team-card::before,
  .at-ag-team-photo,
  .at-ag-team-photo::before,
  .at-ag-team-photo img,
  .at-ag-team-kpi,
  .at-ag-team-dotbtn {
    transition: none !important;
  }
  .at-ag-team-track { scroll-behavior: auto; }
  .at-ag-team.is-inview::before { transition: none; transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .at-ag-team-track { scroll-behavior: smooth; }
}

/* ==========================================================================
   SECTION — TIMELINE (Histoire)
   ========================================================================== */

.at-timeline {
  position: relative;
  isolation: isolate;
  margin-top: clamp(60px, 8vw, 90px);
  padding: clamp(64px, 7vw, 96px) 20px;
  padding-bottom: clamp(32px, 4vw, 48px);
  color: #fff;
  background: var(--trafic-dark);
  overflow: visible;
}

/* Vague SVG en haut */
.at-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(-60px, -8vw, -90px);
  height: clamp(60px, 8vw, 90px);
  z-index: 2;
  pointer-events: none;
  background: #130c28;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,80 C360,0 720,120 1080,40 C1260,0 1380,30 1440,60 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,80 C360,0 720,120 1080,40 C1260,0 1380,30 1440,60 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Ligne lumineuse */
.at-timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(-35px, -4.5vw, -50px);
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--trafic-primary) 50%, transparent) 15%,
    var(--trafic-primary) 35%,
    #fff 50%,
    var(--trafic-primary) 65%,
    color-mix(in srgb, var(--trafic-primary) 50%, transparent) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .6s ease;
}

.at-timeline.is-inview::after {
  opacity: 1;
  animation: at-shimmer 4s ease-in-out infinite;
}

@media (max-width: 767px) {
  .at-timeline::before {
    top: clamp(-35px, -6vw, -60px);
    height: clamp(40px, 6vw, 60px);
  }

  .at-timeline::after {
    top: clamp(-24px, -3.5vw, -35px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-timeline.is-inview::after {
    animation: none;
    background-position: 50% 0;
    opacity: .7;
  }
}

/* Fond décoratif */
.at-tl-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 22% 10%, rgba(0,120,200,.10), transparent 62%),
    radial-gradient(950px 560px at 96% 85%, rgba(255,160,0,.08), transparent 62%),
    radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  opacity: .80;
}

/* Head */
.at-tl-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.at-timeline .at-p-desc {
  color: rgba(255,255,255,.80);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.6;
}

/* Grid */
.at-tl-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* Rail sticky */
.at-tl-rail {
  align-self: start;
  position: sticky;
  top: var(--at-tl-rail-top, calc(var(--at-header-h) + 24px));
  z-index: 10;
}

.at-tl-rail-inner {
  border-radius: 20px;
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.40);
  backdrop-filter: blur(12px);
}

.at-tl-rail-top {
  text-align: center;
  margin-bottom: 16px;
}

.at-tl-rail-kicker {
  margin: 0 0 6px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  color: rgba(255,255,255,.65);
}

.at-tl-rail-year {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: .5px;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1;
  color: #fff;
  transition: all 0.3s ease;
}

.at-timeline.is-year-2023 .at-tl-rail-year {
  background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--trafic-cta) 70%, #fff 30%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255,160,0,.2);
}

/* Track vertical */
.at-tl-track {
  position: relative;
  width: 16px;
  height: 320px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.at-tl-track-line {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}

.at-tl-track-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(0%, var(--at-tl-progress, 0%), 100%);
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,120,200,.55), rgba(0,120,200,.15));
  box-shadow: 0 0 24px rgba(0,120,200,.15);
  transition: height 0.08s ease-out;
}

.at-tl-track-dot {
  position: absolute;
  left: 50%;
  top: clamp(8px, var(--at-tl-progress, 0%), calc(100% - 8px));
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 5px rgba(0,120,200,.18),
    0 8px 24px rgba(0,0,0,.40);
  transition: top 0.08s ease-out;
}

.at-timeline.is-year-2023 .at-tl-track-progress {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--trafic-cta) 60%, var(--trafic-primary) 40%),
    rgba(0,120,200,.10)
  );
  box-shadow: 0 0 30px rgba(255,160,0,.12);
}

.at-timeline.is-year-2023 .at-tl-track-dot {
  box-shadow:
    0 0 0 6px rgba(255,160,0,.18),
    0 8px 24px rgba(0,0,0,.40);
}

/* Markers */
.at-tl-markers {
  position: absolute;
  inset: 6px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.at-tl-marker-row {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 22px;
  transform: translateX(24px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.at-tl-marker-row:hover {
  background: rgba(255,255,255,.08);
}

.at-tl-marker-row:focus-visible {
  outline: 2px solid var(--trafic-primary);
  outline-offset: 2px;
}

.at-tl-marker {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.20);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: all 0.25s ease;
}

.at-tl-marker-label {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 12px;
  color: rgba(255,255,255,.60);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.at-tl-marker-row.is-active .at-tl-marker {
  width: 12px;
  height: 12px;
  background: #fff;
  border-color: rgba(255,255,255,.5);
  box-shadow:
    0 0 0 5px rgba(0,120,200,.15),
    0 8px 20px rgba(0,0,0,.35);
}

.at-tl-marker-row.is-active .at-tl-marker-label {
  color: #fff;
}

.at-tl-marker-row.is-featured .at-tl-marker {
  width: 14px;
  height: 14px;
  background: #fff;
  border-color: rgba(255,255,255,.6);
  box-shadow:
    0 0 0 8px rgba(255,160,0,.12),
    0 12px 32px rgba(0,0,0,.45);
}

.at-tl-marker-row.is-featured .at-tl-marker-label {
  color: var(--trafic-cta);
  font-weight: 500;
}

/* Scroll hint */
.at-tl-scrollhint {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.at-tl-scrollhint-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

.at-tl-scrollhint-arrow {
  --at-bounce-dist: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  line-height: 1;
  animation: at-bounce-y 1.5s ease-in-out infinite;
}

/* Stream + Cards */
.at-tl-stream { min-width: 0; }

.at-tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.at-tl-item {
  position: relative;
  min-height: 120vh;
}

.at-tl-item:first-child {
  min-height: auto;
  margin-bottom: 0;
  padding-bottom: 30vh;
}

.at-tl-item:last-child {
  min-height: auto;
  padding-bottom: 0;
}

.at-tl-card {
  position: sticky;
  top: var(--at-tl-card-top, calc(var(--at-header-h) + 100px));
  z-index: var(--at-tl-z, 1);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 360px at 20% 0%, rgba(0,120,200,.18), transparent 55%),
    radial-gradient(900px 360px at 90% 90%, rgba(255,160,0,.10), transparent 62%),
    linear-gradient(180deg, rgba(18,20,32,1), rgba(10,12,20,1));
  box-shadow: 0 30px 80px rgba(0,0,0,.50);
  transform: translateY(var(--at-tl-ty, 0px)) scale(var(--at-tl-sc, 1));
  opacity: var(--at-tl-op, 1);
  will-change: transform, opacity;
}

.at-tl-item:first-child .at-tl-card {
  transform: none;
  opacity: 1;
}

.at-tl-card-head {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.at-tl-year-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: 12px;
  color: rgba(255,255,255,.80);
}

.at-tl-card-title {
  margin: 0 0 8px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.2;
  color: #fff;
}

.at-tl-card-sub {
  margin: 0;
  color: rgba(255,255,255,.80);
  font-size: 15px;
  line-height: 1.55;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.at-tl-card-body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 16px;
}

.at-tl-media {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 48px rgba(0,0,0,.40);
}

.at-tl-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.at-tl-copy {
  max-width: 70ch;
  margin: 0 auto;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.at-tl-copy p { margin: 0; }

.at-tl-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* 2023 featured */
.at-tl-item--featured .at-tl-card {
  border-color: color-mix(in srgb, var(--trafic-cta) 40%, rgba(255,255,255,.15));
  box-shadow:
    0 40px 100px rgba(0,0,0,.60),
    0 0 0 1px rgba(255,160,0,.12) inset;
  background:
    radial-gradient(900px 380px at 18% 0%, rgba(0,120,200,.22), transparent 58%),
    radial-gradient(860px 420px at 85% 70%, rgba(255,160,0,.16), transparent 62%),
    linear-gradient(180deg, rgba(18,20,32,1), rgba(10,12,20,1));
}

.at-tl-item--featured .at-tl-year-badge {
  background: rgba(255,160,0,.15);
  color: var(--trafic-cta);
}

.at-tl-bottom-space { display: none; }

/* Desktop overlap */
@media (min-width: 992px) {
  .at-tl-item { min-height: 120vh; }

  .at-tl-item:first-child {
    min-height: auto;
    padding-bottom: 0vh;
  }

  .at-tl-item:not(:first-child) {
    --at-tl-overlap: 60vh;
    margin-top: calc(-1 * var(--at-tl-overlap));
    padding-top: var(--at-tl-overlap);
  }

  .at-tl-item:last-child {
    min-height: auto;
    padding-bottom: 0;
  }
}

/* Mobile / Tablet */
@media (max-width: 991px) {
  .at-tl-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .at-tl-rail {
    position: sticky;
    top: var(--at-header-h);
    z-index: 50;
    margin: 0 -20px;
    padding: 0;
  }

  .at-tl-rail-inner {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .at-tl-rail-top {
    margin-bottom: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
  }

  .at-tl-rail-kicker {
    margin: 0;
    font-size: 10px;
  }

  .at-tl-rail-year {
    font-size: clamp(22px, 6vw, 30px);
  }

  .at-tl-scrollhint { display: none; }

  .at-tl-track {
    flex: 1;
    width: auto;
    height: 10px;
    border-radius: 999px;
  }

  .at-tl-track-progress {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    height: 100%;
    width: clamp(0%, var(--at-tl-progress, 0%), 100%);
    transition: width 0.1s ease-out;
  }

  .at-tl-track-dot {
    top: 50%;
    left: clamp(6px, var(--at-tl-progress, 0%), calc(100% - 6px));
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    transition: left 0.1s ease-out;
  }

  .at-tl-markers {
    inset: 0 6px;
    flex-direction: row;
  }

  .at-tl-marker-row {
    transform: none;
    padding: 4px;
  }

  .at-tl-marker-label { display: none; }
  .at-tl-marker { width: 8px; height: 8px; }
  .at-tl-marker-row.is-active .at-tl-marker { width: 10px; height: 10px; }
  .at-tl-marker-row.is-featured .at-tl-marker { width: 12px; height: 12px; }

  .at-tl-item {
    min-height: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .at-tl-item + .at-tl-item { margin-top: 16px !important; }

  .at-tl-card {
    position: relative;
    top: auto;
    transform: none !important;
    opacity: 1 !important;
  }

  .at-tl-card-head { text-align: center; }
  .at-tl-card-sub { text-align: center; max-width: 100%; }
  .at-tl-copy { text-align: center; max-width: 100%; }
  .at-tl-cta { justify-content: center; }
}

@media (max-width: 600px) {
  .at-timeline {
    padding-left: 16px;
    padding-right: 16px;
  }

  .at-tl-rail { margin: 0 -16px; }
  .at-tl-card-head { padding: 16px 14px 12px; }
  .at-tl-card-body { padding: 14px; }
  .at-tl-card-title { font-size: 17px; }
}

/* ==========================================================================
   SECTION — BUREAUX (Mosaïque 3D)
   ========================================================================== */

.at-office {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 7vw, 96px) 0 clamp(48px, 5vw, 72px);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%, #f8fafc 100%);
  overflow: hidden;
}

/* Transition haut */
.at-office::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--trafic-primary) 55%, transparent),
    color-mix(in srgb, var(--trafic-cta) 40%, transparent),
    transparent
  );
  transform: scaleX(0);
  transform-origin: 50% 50%;
  opacity: .9;
}

.at-office.is-inview::before {
  transition: transform .9s cubic-bezier(.22,1,.36,1);
  transform: scaleX(1);
}

/* Fond décoratif */
.at-office-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 450px at 18% 20%, rgba(0,120,200,.06), transparent 55%),
    radial-gradient(800px 400px at 85% 75%, rgba(255,160,0,.05), transparent 55%),
    radial-gradient(rgba(0,0,0,.03) 1px, transparent 1px) 0 0 / 20px 20px;
  opacity: .85;
}

/* Header */
.at-office-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(18px, 3vw, 28px);
  padding: 0 20px;
}

/* Mosaïque container */
.at-office-mosaic {
  position: relative;
  min-height: clamp(480px, 68vh, 720px);
  perspective: 1400px;
  perspective-origin: 50% 45%;
}

.at-office-scene {
  --mouse-x: 0;
  --mouse-y: 0;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
}

/* Items base */
.at-office-item {
  position: absolute;
  margin: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}

/* Frame photo */
.at-office-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 16/10);
  border-radius: 16px;
  overflow: hidden;
  background: #e4e9ef;
  box-shadow:
    0 20px 50px rgba(0,0,0,.14),
    var(--at-glass-inset);
}

/* Liseré */
.at-office-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--trafic-primary) 50%, #fff),
    rgba(255,255,255,.25) 50%,
    color-mix(in srgb, var(--trafic-cta) 40%, #fff)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  opacity: .6;
}

/* Vignette */
.at-office-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 50% 45%, transparent 55%, rgba(0,0,0,.10) 100%);
  mix-blend-mode: multiply;
  opacity: .2;
}

.at-office-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Caption */
.at-office-cap {
  margin-top: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--trafic-dark);
  opacity: .68;
  text-align: center;
}

/* Zoning desktop */
.at-office-A {
  --ar: 16/10;
  --rot: -3deg;
  left: 5%;
  top: 0%;
  width: clamp(240px, 30vw, 380px);
  transform: translateZ(-60px) rotate(var(--rot));
  z-index: 3;
  opacity: .92;
}

.at-office-B {
  --ar: 4/3;
  --rot: 2.5deg;
  right: 8%;
  top: 0%;
  width: clamp(200px, 24vw, 320px);
  transform: translateZ(-40px) rotate(var(--rot));
  z-index: 4;
  opacity: .94;
}

.at-office-C {
  --ar: 1/1;
  --rot: -5deg;
  left: 13%;
  top: 50%;
  width: clamp(150px, 16vw, 260px);
  transform: translateZ(20px) rotate(var(--rot));
  z-index: 5;
  opacity: 1;
}

.at-office-D {
  --ar: 3/4;
  --rot: 3deg;
  right: 2%;
  top: 40%;
  width: clamp(140px, 15vw, 200px);
  transform: translateZ(10px) rotate(var(--rot));
  z-index: 5;
  opacity: 1;
}

.at-office-E {
  --ar: 16/10;
  --rot: -1deg;
  left: 50%;
  top: 30%;
  width: clamp(260px, 30vw, 440px);
  transform: translate(-50%, -50%) translateZ(50px) rotate(var(--rot));
  z-index: 6;
  opacity: 1;
}

.at-office-F {
  --ar: 4/3;
  --rot: -2.5deg;
  right: 22%;
  bottom: 5%;
  width: clamp(180px, 20vw, 280px);
  transform: translateZ(30px) rotate(var(--rot));
  z-index: 4;
  opacity: .96;
}

.at-office-G {
  --ar: 16/10;
  --rot: 1.5deg;
  left: 32%;
  bottom: 11%;
  width: clamp(180px, 23vw, 320px);
  transform: translateZ(-20px) rotate(var(--rot));
  z-index: 3;
  opacity: .90;
}

/* Grands écrans */
@media (min-width: 1400px) {
  .at-office-A { left: 8%; top: 6%; }
  .at-office-B { right: 15%; top: 8%; }
  .at-office-C { left: 15%; top: 45%; }
  .at-office-D { right: 10%; top: 34%; }
  .at-office-F { right: 25%; bottom: 10%; }
  .at-office-G { left: 30%; bottom: 8%; }
}

@media (min-width: 1800px) {
  .at-office-mosaic { max-width: 1600px; margin-inline: auto; }
  .at-office-A { left: 12%; }
  .at-office-B { right: 18%; }
  .at-office-C { left: 11%; }
  .at-office-D { right: 14%; }
  .at-office-F { right: 26%; }
  .at-office-G { left: 30%; }
}

/* Parallax desktop */
@media (hover: hover) and (pointer: fine) {
  .at-office-scene {
    transform:
      rotateY(calc(var(--mouse-x) * 6deg))
      rotateX(calc(var(--mouse-y) * -4deg));
  }

  .at-office-item {
    transition: transform .2s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  }

  .at-office-A {
    transform:
      translateZ(-60px)
      translate(calc(var(--mouse-x) * -8px), calc(var(--mouse-y) * -6px))
      rotate(var(--rot));
  }

  .at-office-B {
    transform:
      translateZ(-40px)
      translate(calc(var(--mouse-x) * -12px), calc(var(--mouse-y) * -8px))
      rotate(var(--rot));
  }

  .at-office-C {
    transform:
      translateZ(20px)
      translate(calc(var(--mouse-x) * -20px), calc(var(--mouse-y) * -14px))
      rotate(var(--rot));
  }

  .at-office-D {
    transform:
      translateZ(10px)
      translate(calc(var(--mouse-x) * -18px), calc(var(--mouse-y) * -12px))
      rotate(var(--rot));
  }

  .at-office-E {
    transform:
      translate(-50%, -50%)
      translateZ(50px)
      translate(calc(var(--mouse-x) * -26px), calc(var(--mouse-y) * -18px))
      rotate(var(--rot));
  }

  .at-office-F {
    transform:
      translateZ(30px)
      translate(calc(var(--mouse-x) * -22px), calc(var(--mouse-y) * -15px))
      rotate(var(--rot));
  }

  .at-office-G {
    transform:
      translateZ(-20px)
      translate(calc(var(--mouse-x) * -10px), calc(var(--mouse-y) * -7px))
      rotate(var(--rot));
  }
}

/* Scroll hint */
.at-office-scrollhint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease .6s;
}

.at-office.is-inview .at-office-scrollhint { opacity: 1; }

.at-office-scrollhint-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--trafic-dark);
}

.at-office-scrollhint-icon {
  --at-bounce-dist: 3px;
  animation: at-bounce-y 1.6s ease-in-out infinite;
}

/* Bandeau badges */
.at-office-strip {
  margin-top: clamp(28px, 4vw, 48px);
  padding: 0 20px;
}

.at-office-strip-head {
  text-align: center;
  margin-bottom: 18px;
}

.at-office-strip-title {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--trafic-dark);
  opacity: .65;
}

.at-office-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.at-office-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  border: var(--at-glass-border);
  box-shadow: 0 8px 24px rgba(0,0,0,.07), var(--at-glass-inset);
  transition: transform .2s ease, box-shadow .2s ease;
}

.at-office-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.09), inset 0 0 0 1px rgba(255,255,255,.6);
}

.at-office-badge-icon {
  font-size: 1.25em;
  line-height: 1;
}

.at-office-badge-text {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--trafic-dark);
}

/* Mobile slider */
@media (max-width: 991px) {
  .at-office-mosaic {
    min-height: auto;
    perspective: none;
    background: transparent;
  }

  .at-office-scene {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    padding: 8px 20px 16px;
    transform: none !important;
    background: transparent;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  }

  .at-office-item {
    position: relative;
    flex: 0 0 75vw;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    scroll-snap-align: center;
    background: transparent;
  }

  .at-office-frame {
    aspect-ratio: 4/3;
    background: transparent;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
  }

  .at-office-scrollhint { display: none; }

  .at-office-strip-inner { gap: 8px; }
  .at-office-badge { padding: 10px 14px; }
  .at-office-badge-text { font-size: 11px; }
}

@media (max-width: 560px) {
  .at-office-item { flex-basis: 85vw; }
  .at-office-badge { padding: 9px 12px; gap: 7px; }
  .at-office-badge-icon { font-size: 1.1em; }
  .at-office-badge-text { font-size: 10px; }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .at-office-scene,
  .at-office-item { transition: none !important; }
  .at-office-scrollhint-icon { animation: none; }
  .at-office.is-inview::before { transition: none; transform: scaleX(1); }
  .at-ag-team.is-inview::before { transition: none; transform: scaleX(1); }
}
