/* ============================================================
   AstonLegacy — model-archive.css
   Page archive modèles ( /modeles/ ) — carousel scroll-driven
   Chargé uniquement sur is_post_type_archive('modeles')
   Style clair (fond gris perle) — cohérent avec la home
   ============================================================ */

/* ── MAIN — clip visuel + spotlight radial ── */
.am-main {
  background: radial-gradient(120% 90% at 50% 40%,
              #F4F1EB 0%,
              #EDEAE4 46%,
              #E2DED5 100%);
  overflow: hidden;
}

/* ── WRAP — conteneur flex vertical ── */
.am-wrap {
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--admin-h, 0px));
  padding-top: var(--nav-h, 56px);
  padding-bottom: var(--footer-h, 74px);
  box-sizing: border-box;
  overflow: visible;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

/* ── FOND : slash plein-couleur (carte active) + ghosts ── */
.am-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.am-bg__slash {
  position: absolute;
  top: -12%; bottom: -12%; left: 0; right: 0;
  background: var(--am-active-color, #1A1A1C);
  clip-path: polygon(60% 0, 82% 0, 46% 100%, 24% 100%);
  opacity: 0.92;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.am-bg__ghost {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2.5vh 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15vw;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-transform: uppercase;
  color: rgba(14, 12, 9, 0.1);
}
.am-bg__ghost span {
  display: block;
  width: 100vw;
  text-align: center;
  white-space: nowrap;
}

/* ── SCROLLER — conteneur scroll horizontal (au-dessus du fond) ── */
.alc-scroller {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  overflow-x: scroll;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px calc(50% - 160px) 0;
  flex: 1 1 0;
  scroll-snap-type: none;          /* snap ressort géré en JS (rebond doux) */
  cursor: grab;
}
.alc-scroller:active { cursor: grabbing; }
.alc-scroller::-webkit-scrollbar { display: none; }


/* ── CARTE — état par défaut (hors animation range) ── */
.alc-scard {
  flex-shrink: 0;
  width: 320px;
  height: 440px;
  /* Verre = composant DS .al-glass (cadre/ombre globaux). Par instance :
     teinte (inactives 0.30 ; active 0.38 via --active) + rayon 25px. */
  --glass-tint: rgba(255, 255, 255, 0.30);
  --glass-radius: 25px;
  transition: background-color 0.4s ease;
  position: relative;
  cursor: pointer;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  transform: scale(0.72) rotateY(14deg);
  opacity: 1;
  animation: alc-card-scroll linear none;
  animation-timeline: view(inline);
  animation-range: cover 0% cover 100%;
  will-change: transform, opacity;
}

/* Carte active : on GARDE le verre transparent (la lisibilité est portée par le
   panneau frosté intérieur .alc-scard__info, pas par un fond plein). La carte
   active se détache via la réfraction (--lg-mix→1) + le liseré + ce panneau. */
.alc-scard.alc-scard--active { --glass-tint: rgba(255, 255, 255, 0.38); }

@keyframes alc-card-scroll {
  0%   { transform: scale(0.56) rotateY(22deg);  opacity: 1; z-index: 1; }
  30%  { transform: scale(0.74) rotateY(10deg);  opacity: 1; z-index: 2; }
  50%  { transform: scale(1.00) rotateY(0deg);   opacity: 1; z-index: 10; }
  70%  { transform: scale(0.74) rotateY(-10deg); opacity: 1; z-index: 2; }
  100% { transform: scale(0.56) rotateY(-22deg); opacity: 1; z-index: 1; }
}

/* ── LIQUID GLASS PROGRESSIF ──
   Plus la carte est proche du centre (--lg-mix → 1), plus l'effet est présent.
   Repli universel : frosted blur. Chromium (classe .lg-svg) : réfraction SVG. */
.alc-scard.lg-on {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lg-svg .alc-scard.lg-on {
  -webkit-backdrop-filter: url(#al-liquidglass);
  backdrop-filter: url(#al-liquidglass);
}

/* Highlight spéculaire — liseré net sur le rim, angle + intensité pilotés par la position (JS) */
.alc-scard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  padding: 2px;                        /* largeur du liseré (specular largeur) */
  pointer-events: none;
  z-index: 40;
  opacity: var(--lg-mix, 0);
  background: linear-gradient(var(--lg-angle, 135deg),
              rgba(255, 255, 255, 1) 0%,
              rgba(255, 255, 255, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}


/* ── IMAGE VOITURE (clip-path / filter gérés par JS) ── */
.alc-scard__car {
  position: absolute;
  right: -70px;
  bottom: 130px;
  width: 420px;
  height: 220px;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
  z-index: 30;
  will-change: clip-path, filter;
}
.alc-scard__car--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(14,12,9,0.06);
  clip-path: none; right: 0; width: 100%;
}
.alc-scard__car--ph svg { width: 56px; height: 56px; }   /* icône voiture (module DS) à la place de la police Tabler */

/* ── INNER TEXTE — transparent, aucun fond ni ombre (fond porté par l'article) ── */
.alc-scard__inner {
  position: absolute; inset: 0; border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  justify-content: flex-end; z-index: 2; pointer-events: none;
}

.alc-scard__top {
  position: absolute; top: 16px; left: 30px; right: 30px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 4;   /* au-dessus du panneau frosté plein-carte */
}
.alc-scard__year { font-family: var(--font-serif); font-size: 10px; font-weight: 300; letter-spacing: 0.2em; color: rgba(14,12,9,1); }
.alc-scard__num  { font-family: var(--font-sans);  font-size: 10px; color: rgba(14,12,9,1); letter-spacing: 0.08em; }
/* Panneau intérieur frosté (« cadre dans le cadre ») : plus petit (en retrait),
   fond plus flou/opaque que le verre transparent de la carte → porte le titre +
   specs et garantit leur lisibilité par-dessus la photo. */
.alc-scard__info {
  /* Recette frostée = .al-glass__panel (commune). Ici : layout uniquement.
     Les valeurs (tint .6 / blur 22 / rayon 15) sont les défauts du panneau → pas de surcharge. */
  z-index: 3;
  flex: 1;                         /* le panneau monte sur TOUTE la carte (derrière la voiture) */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;       /* titre + specs restent en bas du panneau */
  margin: 12px;
  padding: 14px 16px 15px;
}
/* Option A — le nom + les specs n'apparaissent QUE sur la carte centrée (active),
   avec entrée scramble + chiffres défilants (module text-fx, posé par model-archive.js).
   Gaté par .al-js (reveal.js) → sans JS tout reste visible (repli SEO/accessibilité). */
html.al-js .alc-scard__info { opacity: 0; transition: opacity 0.4s ease; }
html.al-js .alc-scard--active .alc-scard__info { opacity: 1; }
/* Typo alignée sur le HERO de la home : Manrope (--font-nb), sans-serif. */
.alc-scard__title   { font-family: var(--font-nb); font-size: 28px; font-weight: 600; color: #0E0C09; line-height: 1; margin: 0 0 5px; letter-spacing: -0.03em; }
.alc-scard__tagline { font-family: var(--font-nb); font-size: 11px; font-style: normal; font-weight: 500; color: var(--muted); line-height: 1.35; margin: 0 0 14px; }
.alc-scard__divider { width: 22px; height: 0.5px; background: rgba(14,12,9,0.1); margin-bottom: 12px; }
.alc-scard__specs   { display: flex; gap: 16px; }
.alc-scard__spec-val { display: block; font-family: var(--font-nb); font-size: 17px; font-weight: 600; color: #0E0C09; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.alc-scard__spec-val em { font-size: 0.6em; font-style: normal; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.alc-scard__spec-key { display: block; font-family: var(--font-nb); font-size: 8px; color: rgba(14,12,9,0.90); letter-spacing: 0.12em; text-transform: uppercase; }

/* Lien */
.alc-scard__link { position: absolute; inset: 0; z-index: 4; border-radius: 6px; outline: none; }

/* ── BARRE DE PROGRESSION CUSTOM ── */
.alc-progressbar {
  position: relative;
  z-index: 1;
  width: calc(100% - 120px);
  margin: 0 60px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.alc-progressbar__track { display: none; }
.alc-progressbar__fill { display: none; }

/* Thumb — verre liquide / frosted glass + cadre doré */
/* Thumb — verre liquide / frosted glass + cadre doré */
.alc-progressbar__thumb {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  left: 0%;
  width: 48px;
  height: 140px;
  border-radius: 5px 5px 0 0;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(255,255,255,0.28);
  box-shadow: 0 6px 18px -6px rgba(14,12,9,0.3);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  pointer-events: none;
  transition: left 0.2s cubic-bezier(0.16,1,0.3,1), width 0.2s ease;
}
/* Chromium : réfraction liquid glass dédiée au thumb */
.lg-svg .alc-progressbar__thumb {
  -webkit-backdrop-filter: url(#al-liquidglass-thumb);
          backdrop-filter: url(#al-liquidglass-thumb);
}
.alc-progressbar__thumb::before,
.alc-progressbar__thumb::after { display: none; }

/* Numéro de la fiche — sombre, lisible sur le thumb clair */
.alc-progressbar__thumb-num {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(14,12,9,0.5);
  pointer-events: none;
  white-space: nowrap;
}

/* Dots + labels verticaux */
.alc-progressbar__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 50%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
}
.alc-progressbar__dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  position: relative;
}
.alc-progressbar__dot-label {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(14,12,9,0);            /* invisible par défaut */
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  height: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  margin-bottom: 6px;
  transition: color 0.35s ease;
}
.alc-progressbar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(14,12,9,0.3);
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}


/* Hover global */
.alc-progressbar--hover .alc-progressbar__dot-label { color: rgba(14,12,9,0.3); }
.alc-progressbar--hover .alc-progressbar__dot { background: rgba(14,12,9,0.25); }
.alc-progressbar--hover .alc-progressbar__dot-wrap--hovered .alc-progressbar__dot-label { color: rgba(14,12,9,0.9); }
.alc-progressbar--hover .alc-progressbar__dot-wrap--hovered .alc-progressbar__dot { background: rgba(14,12,9,0.7); }
.alc-progressbar--hover .alc-progressbar__dot-wrap--hovered-near .alc-progressbar__dot-label { color: rgba(14,12,9,0.5); }
.alc-progressbar--hover .alc-progressbar__dot-wrap--hovered-near .alc-progressbar__dot { background: rgba(14,12,9,0.4); }

/* Hover : dots plus GROS, 10 modèles visibles, défilement ← → — UNIQUEMENT ≤1024.
   Au-dessus, on garde le comportement d'origine de la progressbar (dots répartis). */
@media (max-width: 1024px) {
  .alc-progressbar--hover .alc-progressbar__dots {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .alc-progressbar--hover .alc-progressbar__dots::-webkit-scrollbar { display: none; }
  .alc-progressbar--hover .alc-progressbar__dot-wrap { flex: 0 0 10%; }   /* 10 visibles, le reste défile */
  .alc-progressbar--hover .alc-progressbar__dot { width: 6px; height: 6px; }
  .alc-progressbar--hover .alc-progressbar__dot-label { font-size: 9px; height: 64px; }
}

/* État actif — label TOUJOURS visible (suit le scroll) */
.alc-progressbar__dot-wrap--active .alc-progressbar__dot {
  background: var(--color-gold-deep);
  transform: scale(1.6);
}
.alc-progressbar__dot-wrap--active .alc-progressbar__dot-label {
  color: rgba(14,12,9,0.75);
}
/* Voisins proches du centre */
.alc-progressbar__dot-wrap--near .alc-progressbar__dot-label { color: rgba(14,12,9,0.22); }
.alc-progressbar__dot-wrap--near .alc-progressbar__dot { background: rgba(14,12,9,0.25); }

/* ── COMPTEUR ── */
.alc-counter {
  position: absolute; top: 20px; right: 28px;
  font-family: var(--font-serif); font-size: 12px; font-weight: 300;
  color: rgba(14,12,9,0.5); letter-spacing: 0.15em;
  display: flex; align-items: center; gap: 5px;
  z-index: 30; pointer-events: none;
}
.alc-counter span:first-child { font-size: 16px; color: var(--color-gold-deep); }
.alc-counter__sep { font-size: 10px; opacity: 0.4; }

/* ── TOOLTIP CARTE ACTIVE — fond transparent, texte sombre, cadre doré ── */
.alc-scard__tooltip {
  position: absolute;
  top: 38px;
  right: 30px;
  transform: translateY(-4px);
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0E0C09;
  background: transparent;
  border: 1px solid rgba(184,146,42,0.55);
  padding: 6px 14px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.alc-scard__tooltip i { color: #0E0C09; }
.alc-scard__tooltip svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.9; vertical-align: -1.5px; margin-right: 3px; }
.alc-scard--active:hover .alc-scard__tooltip {
  opacity: 1;
  transform: translateY(0px);
}

/* ── HINT NAVIGATION ── */
.alc-nav-hint {
  position: absolute;
  z-index: 2;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14,12,9,0.5);
  pointer-events: none;
  z-index: 20;
  opacity: 1;
  transition: opacity 0.6s ease;
  animation: alc-hint-pulse 2.5s ease-in-out infinite;
}
@keyframes alc-hint-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}
.alc-nav-hint--hidden { opacity: 0 !important; animation: none !important; }
.alc-nav-hint__arrow { font-size: 13px; color: rgba(184,146,42,0.6); }
.alc-nav-hint__text { letter-spacing: 0.25em; }
.alc-nav-hint__keys { display: flex; gap: 4px; margin-left: 4px; }
.alc-nav-hint__keys kbd {
  font-family: var(--font-sans);
  font-size: 9px;
  color: rgba(14,12,9,0.5);
  background: rgba(14,12,9,0.05);
  border: 0.5px solid rgba(14,12,9,0.2);
  border-radius: 3px;
  padding: 2px 5px;
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .alc-scard { width: 280px; height: 400px; }
  .alc-scard__car { width: 360px; right: -60px; }
  .alc-scroller { padding: 40px calc(50% - 140px); }
}
@media (max-width: 768px) {
  .alc-scard { width: 78vw; max-width: 300px; height: 400px; }
  .alc-scard__car { width: 110%; right: -20px; }   /* @768 + hérité @430 */
  .alc-scard__title { font-size: 24px; }
  .alc-scroller { padding: 40px calc(50% - 39vw); gap: 20px; scroll-snap-type: x mandatory; }  /* swipe natif snappé en tactile */
  .alc-counter { top: 14px; right: 16px; }
  .alc-nav-hint__keys { display: none; }   /* indice clavier inutile en tactile */

  /* Progressbar mobile : mode « 10 + scrollable » par défaut (pas de hover tactile),
     dots plus gros ; le modèle actif est recentré par le JS → thumb au centre. */
  .alc-progressbar__dots {
    justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .alc-progressbar__dots::-webkit-scrollbar { display: none; }
  .alc-progressbar__dot-wrap { flex: 0 0 10%; }   /* 10 visibles, le reste défile */
  .alc-progressbar__dot { width: 6px; height: 6px; }
}
@media (max-width: 480px) {
  .alc-scard { height: 360px; }
  .alc-scard__title { font-size: 21px; }
}
/* ============================================================
   HEADER + FOOTER liquid glass — page archive uniquement
   (model-archive.css n'est chargé que sur is_post_type_archive('modeles'))
   - Nav forcée en "état scrollé" même en haut (blur 2.8 / fond 41%)
   - Footer en liquid glass aux mêmes paramètres + remonté sous le main
   ============================================================ */

/* ── NAV : état scrollé permanent ── */
.site-nav {
  background: rgba(255, 255, 255, 0.41);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
          backdrop-filter: saturate(180%) blur(10px);
}
.lg-svg .site-nav {
  background: rgba(255, 255, 255, 0.41);
  -webkit-backdrop-filter: url(#al-lg-nav-sc);
          backdrop-filter: url(#al-lg-nav-sc);
}
/* Texte nav lisible sur le fond clair de l'archive */
.nav-logo-text { color: #0E0C09; }
.nav-menu li a {
  color: rgba(14, 12, 9, 0.92);
  text-shadow: 0 1px 8px rgba(237, 234, 228, 0.65);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a { color: var(--color-gold-deep); }
.nav-lang { color: rgba(14, 12, 9, 0.8); border-color: rgba(14, 12, 9, 0.14); }

/* ---- FOOTER — verre clair « comme le header », full-bleed ---- */
.site-footer{
  position:fixed;left:0;right:0;bottom:0;z-index:45;
}