/* ==========================================================================
   Archives de valentind.ch et de ledrone.ch
   Pages non référencées. S'appuient sur assets/css/style.css (couleurs, police).
   ========================================================================== */

body { --cas-tile: #ececea; }

.arc-top { border-bottom: 1px solid var(--line); }
.arc-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.arc-top__here { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.arc-top__here svg { width: 32px; height: 32px; fill: var(--red); flex: none; }
.arc-top__back { font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.arc-top__back:hover { color: var(--red); }

.arc-intro { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.arc-intro h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; color: var(--ink); }
.arc-intro p { margin-top: 18px; max-width: 40em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink); }
.arc-intro p + p { margin-top: 10px; font-size: .9375rem; color: var(--muted); }

/* Filtres */
.arc-filters { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.arc-filters__row { display: flex; gap: 8px; padding-top: 10px; overflow-x: auto; scrollbar-width: none; }
.arc-filters__row:last-child { padding-bottom: 10px; }
.arc-filters__row::-webkit-scrollbar { display: none; }
.arc-filters__row + .arc-filters__row .arc-chip { min-height: 34px; padding: 5px 13px; font-size: .875rem; }
.arc-chip {
  flex: none; display: inline-flex; align-items: baseline; gap: 7px;
  min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.arc-chip span { font-size: .8125rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.arc-chip:hover { border-color: var(--ink); }
.arc-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.arc-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }

.arc-chip:disabled { opacity: .35; cursor: default; }
.arc-chip:disabled:hover { border-color: var(--line); }

/* Grille : les trois sites mélangés */
.arc-list { padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 112px); }
.arc-empty { margin-top: 8px; color: var(--muted); }

.arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(22px, 2.6vw, 34px) clamp(16px, 2vw, 26px); }
.arc-card { display: block; color: inherit; text-decoration: none; }
.arc-card[hidden] { display: none; }
.arc-card__img { display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--cas-tile); }
.arc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.arc-card:hover .arc-card__img img { transform: scale(1.04); }
.arc-card__title { display: block; margin-top: 12px; font-size: 1rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.arc-card:hover .arc-card__title { color: var(--red); }
.arc-card__meta { display: block; margin-top: 4px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.arc-card--text .arc-card__img { display: grid; place-items: center; padding: 20px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 1.125rem; text-align: center; }

/* Fiche */
.arc-item { padding-block: clamp(28px, 4vw, 52px) clamp(64px, 8vw, 112px); }
.arc-item__back { display: inline-block; margin-bottom: clamp(22px, 3vw, 36px); font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.arc-item__back:hover { color: var(--red); }
.arc-item h1 { max-width: 22em; font-size: clamp(1.875rem, 4.2vw, 3.125rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.arc-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: clamp(18px, 2.4vw, 28px) 0 clamp(26px, 3.4vw, 44px); padding-block: 16px; border-block: 1px solid var(--line); }
.arc-meta div { min-width: 0; }
.arc-meta dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.arc-meta dd { margin: 3px 0 0; font-size: .9375rem; color: var(--ink); overflow-wrap: anywhere; }

.arc-videos { display: grid; gap: clamp(18px, 2.4vw, 28px); max-width: 980px; }
.arc-videos--many { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); max-width: none; }
.arc-video figcaption { margin-top: 8px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.arc-video figcaption a { color: var(--ink); }
.arc-note { color: var(--red-dark); }

.arc-text { max-width: 44em; margin-top: clamp(26px, 3.4vw, 44px); color: var(--text); }
.arc-text > * + * { margin-top: 1em; }
.arc-text h2 { margin-top: 2.2em; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.arc-text h3 { margin-top: 1.6em; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.arc-text ul { padding-left: 1.2em; list-style: disc; }
.arc-text li + li { margin-top: .3em; }
.arc-text a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; overflow-wrap: anywhere; }
.arc-text a:hover { color: var(--red); }
.arc-links { margin-top: clamp(22px, 3vw, 34px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.arc-links small { font-size: .875rem; color: var(--muted); }

.arc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: 10px; margin-top: clamp(30px, 4vw, 52px); }
.arc-gallery a { display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--cas-tile); }
.arc-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.arc-gallery a:hover img { transform: scale(1.05); }
.arc-gallery--single { display: block; max-width: 980px; }
.arc-gallery--single a { aspect-ratio: auto; }
.arc-gallery--single img { width: auto; max-width: 100%; height: auto; object-fit: contain; }

.arc-origin { margin-top: clamp(30px, 4vw, 48px); font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.arc-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); }
.arc-nav a { max-width: 46%; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.arc-nav a:hover { color: var(--red); }
.arc-nav small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.arc-nav a:last-child { margin-left: auto; text-align: right; }

/* Visionneuse */
.arc-box { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 12, .96); color: var(--white); }
.arc-box::backdrop { background: rgba(10, 10, 12, .96); }
.arc-box img { position: absolute; inset: 56px 16px 56px; width: calc(100% - 32px); height: calc(100% - 112px); object-fit: contain; }
.arc-box button { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); font: inherit; font-size: 1.375rem; line-height: 1; cursor: pointer; }
.arc-box button:hover { background: var(--red); }
.arc-box__close { top: 8px; right: 12px; }
.arc-box__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.arc-box__next { right: 12px; top: 50%; transform: translateY(-50%); }
.arc-box__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: .875rem; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .arc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .arc-card__title { font-size: .9375rem; }
  .arc-nav { flex-direction: column; }
  .arc-nav a { max-width: none; }
  .arc-nav a:last-child { margin-left: 0; text-align: left; }
}

/* Page des textes de ledrone.ch */
.arc-videos--inset { margin-top: clamp(22px, 3vw, 36px); }
.arc-table { margin-top: clamp(22px, 3vw, 36px); overflow-x: auto; }
.arc-table table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .875rem; line-height: 1.45; }
.arc-table th, .arc-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.arc-table th { font-weight: 700; color: var(--ink); border-bottom-color: var(--ink); }
