/*
 * Canal12 - Styles 2026
 * Feuille réservée aux nouveaux modèles.
 * L'ancien fichier styles.css reste inchangé.
 */

:root {
  --c12-background: #003063;
  --c12-panel: #202020;
  --c12-text: #ffffff;
  --c12-accent: #fdee00;
  --c12-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --c12-page-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
header,
main,
footer,
nav,
section,
article,
figure,
h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

body {
  min-width: 280px;
  background: var(--c12-background);
  color: var(--c12-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.25;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a img {
  border: 0;
}

.c12-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.blason,
.menunav,
main > .trailer,
main > .related,
.single {
  width: calc(100% - 20px);
  max-width: var(--c12-page-width);
  margin-right: auto;
  margin-left: auto;
}

.blason {
  margin-top: 10px;
  margin-bottom: 10px;
}

.blason img {
  display: block;
  width: 100%;
}

.menunav,
.trailer,
.related,
.movie {
  background: var(--c12-panel);
  box-shadow: var(--c12-shadow);
}

.menunav {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 10px;
}

.menunav > p {
  margin-bottom: 8px !important;
}

.menunav nav > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.menunav a {
  display: block;
  line-height: 0;
}

.menunav img {
  display: block;
  width: 76px;
  height: 56px;
}

.trailer,
.related {
  padding: 10px;
}

main > .trailer,
main > .related {
  margin-top: 20px;
  margin-bottom: 20px;
}

.trailer h1 {
  margin-bottom: 10px;
  color: var(--c12-text);
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.trailer_frame.c12-video {
  float: none;
  clear: both;
  position: relative;
  width: 100%;
  max-width: none;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 25px 0 35%;
  aspect-ratio: auto;
  overflow: hidden;
}

/* YouTube et Vimeo partagent exactement le même cadre panoramique. */
.c12-video--youtube,
.c12-video--vimeo {
  background: #000;
}

.trailer_frame.c12-video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.c12-share {
  text-align: center;
}

.c12-share h2 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 400;
}

.c12-share a {
  display: inline-block;
  margin: 0 5px;
}

.c12-share img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.single {
  margin-top: 20px;
  margin-bottom: 20px;
}

.single > .related,
.single > .trailer {
  width: 100%;
  margin: 0;
}

.content,
.panel,
.mostslider {
  width: 100%;
}

.content::after,
.panel::after,
.related::after,
.trailer::after {
  display: table;
  clear: both;
  content: "";
}

.c12-photo-banner {
  display: block;
  width: 100%;
}

/* Fiche film 2026 */
.c12-film-sheet {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: var(--c12-text);
}

.c12-film-sheet__title {
  margin: 0 0 34px;
  color: var(--c12-text);
  font-size: 16px;
  text-align: center;
}

.c12-film-sheet__layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}

.c12-film-sheet__poster,
.c12-film-sheet__content {
  width: auto;
  margin: 0;
}

.c12-film-sheet__poster img {
  display: block;
  width: 100%;
  margin: 0;
}

.c12-film-sheet__content {
  color: var(--c12-text);
  font-size: 14px;
  line-height: 1.12;
}

.c12-film-sheet__facts p {
  margin: 0;
  padding: 0;
}

.c12-film-sheet__facts strong,
.c12-film-sheet__summary strong,
.c12-film-sheet__cast strong {
  color: var(--c12-text);
}

.c12-film-sheet__cast {
  margin-top: 10px;
}

.c12-film-sheet__cast p {
  margin: 0;
  color: var(--c12-accent);
}

.c12-film-sheet__summary {
  display: block;
  width: auto;
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--c12-text);
  font-size: 14px;
  line-height: 1.2;
}

.c12-film-sheet__summary h3,
.c12-film-sheet__summary p {
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--c12-text);
}

.c12-quality {
  margin-top: 36px;
}

.c12-quality img {
  display: block;
  width: auto;
  margin: 0;
}

.c12-slider-title,
.related > h2 {
  margin-bottom: 10px;
  color: var(--c12-text);
  font-size: 18px;
  font-weight: 400;
}

.panel {
  margin-top: 10px;
}

.swiper-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.swiper-slide > a > img {
  display: block;
  width: 100%;
}

.hometitle {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  padding: 7px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--c12-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.nextdirection,
.leftdirection {
  position: absolute !important;
  top: 0 !important;
  bottom: 0;
  z-index: 20 !important;
  width: 40px !important;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.nextdirection {
  right: 0 !important;
}

.leftdirection {
  left: 0 !important;
}

.nextdirection img,
.leftdirection img {
  position: absolute;
  top: 50%;
  width: 24px;
  margin: 0 !important;
  transform: translateY(-50%);
}

.nextdirection img {
  right: 8px;
}

.leftdirection img {
  left: 8px;
}

.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.footer {
  width: 100%;
  margin-top: 30px;
  text-align: center;
}

.footermenu ul {
  width: 100%;
  text-align: center;
  list-style: none;
}

.footermenu li {
  display: inline-block;
  padding: 0 10px;
}

.footermenu img {
  display: block;
}

@media (max-width: 1024px) {
  .nextdirection,
  .leftdirection {
    width: 24px !important;
  }

  .nextdirection img,
  .leftdirection img {
    width: 16px;
  }

  .nextdirection img {
    right: 4px;
  }

  .leftdirection img {
    left: 4px;
  }
}

@media (max-width: 760px) {
  .blason,
  .menunav,
  main > .trailer,
  main > .related,
  .single {
    width: calc(100% - 12px);
  }

  .menunav img {
    width: 64px;
    height: auto;
  }

  .c12-film-sheet__layout {
    grid-template-columns: 1fr;
  }

  .c12-film-sheet__poster {
    width: 100%;
    max-width: 190px;
    margin: 0 auto;
  }

  .c12-film-sheet__content {
    font-size: 13px;
    line-height: 1.2;
  }

  .trailer h1 {
    font-size: 17px;
  }

  .c12-slider-title,
  .related > h2 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
