/* ============================================================
   A.G.I.R - css/catalogue-public.css
   Section d'accueil « Catalogue A.G.I.R » : tete d'affiche + rangees
   d'affiches par rubrique. Chargee seulement quand la section est
   affichee. Tout est prefixe .cp : rien ne touche home.css.
   ============================================================ */
.cp {
  --cp-rouge: #e63329; --cp-rouge-btn: #c92a21; --cp-jaune: #f5c200; --cp-bleu: #1a6bbf; --cp-vert: #2da84a;
  --cp-noir: #080808; --cp-or: #c9a227; --cp-or-clair: #e3c15a;
  --cp-pad: clamp(1.2rem, 4vw, 3rem);
  position: relative; background: var(--cp-noir); color: #fff;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif); line-height: 1.6;
  scroll-margin-top: 70px;
}
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp img { max-width: 100%; }
.cp a:focus-visible, .cp button:focus-visible { outline: 3px solid var(--cp-jaune); outline-offset: 3px; }

.cp-bar { display: flex; height: 5px; }
.cp-bar i { flex: 1; }
.cp-bar i:nth-child(1) { background: var(--cp-rouge); }
.cp-bar i:nth-child(2) { background: var(--cp-jaune); }
.cp-bar i:nth-child(3) { background: var(--cp-bleu); }
.cp-bar i:nth-child(4) { background: var(--cp-vert); }

.cp-in { max-width: 1200px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--cp-pad) 0; }
.cp-head { margin-bottom: 2rem; }
.cp-label { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: #ff6a5f; margin-bottom: .8rem; }
.cp-title { font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.1; margin: 0; color: #fff; }
.cp-lead { margin: .9rem 0 0; max-width: 46ch; color: rgba(255,255,255,.84); font-size: 1.05rem; }

/* tete d'affiche */
.cp-ved { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: #10142e; border-top: 4px solid var(--acc); }
.cp-ved-img { position: relative; min-height: 440px; overflow: hidden; background: #181c3a; }
.cp-ved-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cp-ved-txt { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 3rem); min-width: 0; }
.cp-ved-tag { margin: 0; font-size: .95rem; font-weight: 700; color: var(--cp-or-clair); }
.cp-ved-h { margin: 0; font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.05; color: #fff; }
.cp-ved-h img { display: block; width: 100%; max-width: 380px; height: auto; }
.cp-ved-base { margin: 0; font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-style: italic; font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--cp-or-clair); }
.cp-ved-acc { margin: 0; max-width: 52ch; color: rgba(255,255,255,.9); font-size: 1.02rem; }
.cp-pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.cp-pills li { display: inline-flex; align-items: center; border: 1px solid var(--acc); padding: .35rem .85rem; font-size: .88rem; color: #fff; }
.cp-pills .cp-pill-statut { background: var(--acc); border-color: var(--acc); color: #111; font-weight: 700; }
.cp-pills .cp-pill-lg { border-color: transparent; padding-left: 0; }
.cp-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; font-weight: 700; font-size: .88rem; letter-spacing: .04em; text-decoration: none; border: 1px solid transparent; border-radius: 0; transition: background .2s, border-color .2s; }
.cp-btn-red { background: var(--cp-rouge-btn); color: #fff; border-color: var(--cp-rouge-btn); }
.cp-btn-red:hover { background: #a91f17; border-color: #a91f17; }
.cp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.cp-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* repere de langues : indication visuelle, jamais un filtre */
.cp-lg { display: inline-flex; gap: .25rem; vertical-align: middle; }
.cp-lg b { font-size: .68rem; font-weight: 700; letter-spacing: .06em; line-height: 1; padding: .18rem .35rem; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; }

/* barre de rubriques */
.cp-chips { margin: 2.4rem 0 .6rem; }
.cp-chips ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.cp-chips a, .cp-chips .cp-off { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid rgba(255,255,255,.6); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; background: transparent; transition: background .2s, color .2s; }
.cp-chips a:hover { background: #fff; color: var(--cp-noir); }
.cp-chips .cp-off { border-color: #4a4a4a; color: #9a9a9a; cursor: default; }

/* rangees d'affiches */
.cp-row { margin-top: .8rem; }
.cp-row h3 { font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-weight: 900; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 1rem 0 0; color: #fff; scroll-margin-top: 90px; }
.cp-row h3::before { content: ''; display: inline-block; width: 28px; height: 4px; background: var(--acc); vertical-align: .25em; margin-right: .7rem; }
.cp-row h3:focus { outline: none; }
.cp-row-w { position: relative; margin: 0 calc(var(--cp-pad) * -1); }
.cp-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--cp-pad); padding: 1.8rem var(--cp-pad) 2.2rem; margin: 0; list-style: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cp-track::-webkit-scrollbar { display: none; }
.cp-pz { position: relative; flex: none; width: clamp(168px, 17vw, 232px); scroll-snap-align: start; }
.cp-pz:hover, .cp-pz:focus-within { z-index: 4; }
.cp-poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #1a1a1a; color: #fff; text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.cp-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cp-noimg { position: absolute; inset: 0; display: flex; align-items: flex-start; padding: 1.2rem 1rem; font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-weight: 900; font-size: 1.5rem; line-height: 1.1; color: rgba(255,255,255,.18); background: linear-gradient(160deg, #1b1f3d, #0d0f1f); }
.cp-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,8,.95) 0, rgba(8,8,8,.25) 58%, rgba(8,8,8,0) 78%); }
.cp-band { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--acc); z-index: 2; }
.cp-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: block; padding: 1rem 1rem 1rem 1.3rem; }
.cp-info > b { display: block; font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-size: 1.4rem; font-weight: 900; line-height: 1.1; }
.cp-st { display: block; margin-top: .3rem; font-size: .76rem; font-weight: 700; line-height: 1.3; color: var(--cp-jaune); }
.cp-info > .cp-lg { display: flex; margin-top: .4rem; }
.cp-more { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .3s; }
.cp-more em { display: block; font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-size: .92rem; margin-top: .5rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cp-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.cp-meta i { font-style: normal; font-size: .78rem; border: 1px solid rgba(255,255,255,.7); padding: .05rem .5rem; }
.cp-go { display: block; margin-top: .7rem; font-size: .85rem; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.cp-poster:hover, .cp-poster:focus-visible { transform: scale(1.1); box-shadow: 0 18px 46px rgba(0,0,0,.7); }
.cp-poster:hover > img { transform: scale(1.05); }
.cp-poster:hover .cp-more, .cp-poster:focus-visible .cp-more { max-height: 15rem; opacity: 1; }
.cp-poster:focus-visible { outline: 3px solid var(--cp-jaune); outline-offset: 3px; }

.cp-arrow { position: absolute; top: 1.8rem; bottom: 2.2rem; width: 56px; z-index: 6; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .95; transition: opacity .2s; padding: 0; }
.cp-arrow[hidden] { display: none; }
.cp-prev { left: 0; background: linear-gradient(90deg, rgba(8,8,8,.95), rgba(8,8,8,0)); }
.cp-next { right: 0; background: linear-gradient(270deg, rgba(8,8,8,.95), rgba(8,8,8,0)); }
.cp-arrow:disabled { opacity: 0; pointer-events: none; }
.cp-arrow:focus-visible { outline-offset: -4px; }

/* ecrans tactiles : pas de survol, details toujours visibles */
@media (hover: none) {
  .cp-arrow { display: none !important; }
  .cp-more { max-height: none; opacity: 1; }
  .cp-more em, .cp-go { display: none; }
  .cp-poster:hover { transform: none; box-shadow: none; }
}
@media (max-width: 860px) {
  .cp-ved { grid-template-columns: 1fr; }
  .cp-ved-img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .cp-btn { flex: 1 1 100%; }
  .cp-pz { width: 152px; }
  .cp-info > b { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cp *, .cp *::before, .cp *::after { transition: none !important; animation: none !important; }
  .cp-poster:hover, .cp-poster:focus-visible { transform: none; }
  .cp-poster:hover > img { transform: none; }
}
