:root {
  --b1: #1d5fd1;
  --b2: #0b3d91;
  --b3: #061a45;
  --k: #03091f;
  --mut: rgba(255, 255, 255, 0.8);
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.18);
  --r: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-gutter: stable;
}

html.intro-on {
  overflow: hidden;
}

body {
  font:
    16px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: #fff;
  background: var(--k);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 120% 90% at 50% 0%,
    var(--b1) 0%,
    var(--b2) 38%,
    var(--b3) 72%,
    var(--k) 100%
  );
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #fff;
  color: #061a45;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 200;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

svg.lg {
  width: 100%;
  height: 100%;
  display: block;
}

svg.icon {
  width: 22px;
  height: 22px;
  display: block;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2rem;
  animation: out 0.3s 3.6s forwards;
}

html.no-intro .intro {
  display: none;
}

.veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    #1250c0 0%,
    #061a45 55%,
    #000 100%
  );
  transition: opacity 0.85s ease;
}

.intro.go .veil {
  opacity: 0;
}

.fly {
  --s: min(48vmin, 300px);
  width: var(--s);
  height: var(--s);
  position: relative;
  perspective: 1100px;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.3, 1);
  will-change: transform;
}

.coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 2.05s cubic-bezier(0.25, 0.75, 0.2, 1) forwards;
}

.coin > * {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.coin .f {
  transform: translateZ(9px);
  backface-visibility: hidden;
}

.coin .b {
  transform: rotateY(180deg) translateZ(9px);
  backface-visibility: hidden;
}

.intro p {
  position: relative;
  font-size: clamp(1rem, 3.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: cap 0.8s 1s forwards;
}

.intro.go p {
  animation: capout 0.3s forwards;
}

@keyframes spin {
  0% {
    transform: rotateY(-900deg) rotateX(25deg) scale(0.15);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  80%,
  100% {
    transform: rotateY(0) rotateX(0) scale(1);
  }
}

@keyframes cap {
  to {
    opacity: 1;
  }
}
@keyframes capout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(3, 9, 31, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

header.solid {
  background: rgba(3, 9, 31, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand svg {
  width: 40px;
  height: 40px;
}

.brand span {
  transition: opacity 0.5s;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

html.intro-on .brand svg,
html.intro-on .brand span {
  opacity: 0;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-socials a,
.contact-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  color: #fff;
  transition:
    background 0.2s,
    transform 0.2s;
}

.header-socials a:hover,
.contact-socials a:hover {
  background: #fff;
  color: #061a45;
  transform: translateY(-2px);
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #fff;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.burger span:nth-child(1) { top: 11px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 31px; }

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(10px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateX(-50%) translateY(-10px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
  background: url("/public/img/bkgd_header/background.webp") center / cover;
}

@media (max-width: 768px) {
  .hero {
    background: url("/public/img/bkgd_header/background-mobile.webp") center / cover;
  }
}

.hero::after {
  content: "";
  position: absolute;
  width: 140vmax;
  height: 140vmax;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 18vmax rgba(255, 255, 255, 0.025),
    0 0 0 36vmax rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  font-weight: 900;
  text-wrap: balance;
  max-width: 12em;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--mut);
  max-width: 34em;
  margin: 24px auto 36px;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    color 0.25s;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
}
.btn.main {
  background: #fff;
  color: #061a45;
}
.btn:not(.main):hover {
  background: rgba(255, 255, 255, 0.14);
}

.scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
}

.scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 4px;
  animation: dot 1.8s infinite;
}

@keyframes dot {
  0% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

section.s {
  padding: clamp(72px, 10vw, 120px) 0;
}

section.s.dark {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(3, 9, 31, 0.7) 20%,
    rgba(3, 9, 31, 0.7) 80%,
    transparent
  );
}

.s h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 12px;
}

.s .sub {
  color: var(--mut);
  max-width: 40em;
  margin-bottom: 36px;
}

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.rv.in {
  opacity: 1;
  transform: none;
}

.btn-anim {
  position: relative;
  display: inline-block;
  background: var(--card);
  color: #fff;
  border: 1px solid var(--line);
  padding: 12px 24px;
  border-radius: 99px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.btn-anim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 99px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn-anim:hover::before {
  transform: scaleX(1);
}

.btn-anim:hover {
  color: #061a45;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-anim[aria-selected="true"] {
  background: #fff;
  color: #061a45;
  border-color: #fff;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 35px rgba(29, 95, 209, 0.4);
}

.btn-anim[aria-selected="true"]::before {
  transform: scaleX(1);
}

.tabs,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filters button {
  background: var(--card);
  color: #fff;
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 99px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.filters button:hover {
  transform: translateY(-2px);
}
.filters button[aria-pressed="true"] {
  background: #fff;
  color: #061a45;
  border-color: #fff;
}

/********** Fetch score *******/

#resultats {
  padding-bottom: 0px;
}

.fetch {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: auto;
  margin: 40px auto;
}

.fetch .fetch-match {
  height: auto;
  width: 100%;
  border-radius: 25px;
  transition: 0.4s ease;
  z-index: 2;
}

.fetch .fetch-classement {
  position: absolute;
  top: 0;
  right: 200px;
  height: auto;
  width: 100%;
  margin: auto 0;
  border-radius: 25px;
  transition: 0.4s ease;
  opacity: 0;
  z-index: 0;
}

.fetch-active {
  right: 0 !important;
  opacity: 1 !important;
  z-index: 3 !important;
}

.fetch-hidden {
  opacity: 0 !important;
  z-index: 0 !important;
}

/*********** Fin css fetch ********/

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s;
}

.card:hover {
  /* transform: translateY(-6px); */
  border-color: #fff;
  cursor: pointer;
}

.grid-actu {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-actu {
  display: flex;
  flex-direction: column;
  height: 440px;
  z-index: 2;
}

/******* ********/

/******* ********/

/* Arrière-plan sombre de la popup */

.modal {
  display: none; /* Caché par défaut */
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: -1;
  left: 0;
  top: -30px;
  width: 100%;
  height: 100%;
  background-color: rgba(77, 77, 77, 0.699);
  opacity: 0;
  transition: all 0.3s ease;
}

/* Classe ajoutée par le JS pour afficher la popup */
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 20;
}

/* Conteneur principal de la popup */
.modal-content {
  position: relative;
  background: radial-gradient(
    ellipse 120% 90% at 50% 0%,
    var(--b1) 0%,
    var(--b2) 38%,
    var(--b3) 72%,
    var(--k) 100%
  );
  padding: 30px;
  border-radius: 28px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

/* L'image dans la popup */
.modal-content img {
  max-width: 400px;
  max-height: 450px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
  border-radius: 20px;
  filter: drop-shadow(5px 5px 25px rgba(255, 255, 255, 0.534));
}

#popup-container {
  width: 100%;
  height: auto;
}
#popup-date {
  font-style: italic;
  margin: 10px auto;
}
#popup-title {
  font-size: 1.5rem;
  margin: 10px auto;
}

/* Le texte agrandi */
#popup-text {
  font-size: 1.3rem; /* Taille du texte plus grande */
  line-height: 1.6;
  color: #dfdfdf;
}

@media (max-width: 860px) {
  .modal-content img {
    max-width: 250px;
    max-height: 300px;
  }
  #popup-date {
    font-size: 0.9rem;
    font-style: italic;
    margin: 10px auto;
  }
  #popup-title {
    font-size: 1rem;
  }
  #popup-text {
    font-size: 1rem; /* Taille du texte plus grande */
    line-height: 1.6;
    color: #dfdfdf;
  }
}

/* La croix pour fermer en haut à droite */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #636363;
}

/****** *****/

/****** *****/

.card-actu .card-img {
  height: 70%;
  overflow: hidden;
  position: relative;
}

.card-actu .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card-actu .card-body {
  height: 50%;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.card-actu .date {
  font-size: 0.8rem;
  color: var(--mut);
  font-weight: 600;
}

.card-actu h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.card-actu p {
  font-size: 0.85rem;
  color: var(--mut);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-more-actu {
  display: none;
}

@media (max-width: 600px) {
  .card-actu.hidden {
    display: none;
  }

  @keyframes deployCard {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .card-actu.revealing {
    animation: deployCard 0.5s var(--ease) forwards;
  }

  .btn-more-actu {
    margin: 20px auto 0;
    display: block;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 99px;
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    transition:
      background 0.25s,
      color 0.25s,
      transform 0.25s var(--ease),
      opacity 0.3s ease;
  }

  .btn-more-actu:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-actu.revealing {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.card-team {
  display: flex;
  flex-direction: column;
}

.card-team .card-img {
  height: 270px;
  overflow: hidden;
  position: relative;
}

.card-team .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card-team:hover .card-img img {
  transform: scale(1.06);
}

.card-team .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-team h3 {
  font-size: 1.2rem;
}

.card-team .tag {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 99px;
}

.card-team p {
  color: var(--mut);
  font-size: 0.9rem;
}

/* ==========================================================
   Carrousel Vidéos Tuto — La Vaillante Immaculée
   ========================================================== */

.vc {
  --vc-card-w: 312px;
  --vc-gap: 24px;
  --vc-radius: 14px;
  position: relative;
  margin-block: 2.5rem 2rem;
  /* fondu sur les bords gauche / droite */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

/* Le padding vertical laisse la place au scale(1.1) sans être rogné */
.vc-viewport {
  overflow: hidden;
  padding-block: 1.5rem;
}

.vc-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* ---------- Vignette ---------- */
.vc-card {
  position: relative;
  flex: 0 0 var(--vc-card-w);
  width: var(--vc-card-w);
  margin-right: var(--vc-gap);
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition:
    transform 0.35s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0, 0, 1),
    border-color 0.35s cubic-bezier(0.2, 0, 0, 1);
  display: block;
}

.vc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.vc-card:hover img,
.vc-card:focus-visible img {
  transform: scale(1.05);
}

.vc-card:hover,
.vc-card:focus-visible {
  transform: translateY(-6px) scale(1.03);
  z-index: 2;
  border-color: #fff;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.vc-card:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 0.1s;
}

.vc-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 28px;
}

/* Dégradé sombre en bas pour garder le texte lisible */
.vc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    transparent 90%
  );
  pointer-events: none;
  z-index: 1;
}

.vc-title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  margin: 0;
}

/* Bouton lecture centré */
.vc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  transition:
    transform 0.3s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vc-play::before {
  content: "";
  width: 20px;
  height: 24px;
  margin-left: 4px;
  background: var(--c2);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.vc-card:hover .vc-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.vc-card:active .vc-play {
  transform: translate(-50%, -50%) scale(0.92);
}

/* Overlay "Bientôt disponible" sur les vidéos sans source */
.vc-soon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(3, 9, 31, 0.65);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  backdrop-filter: blur(6px);
}

/* ---------- Mouvement réduit : pas d'animation, défilement manuel ---------- */
.vc.is-static .vc-viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.vc.is-static .vc-card {
  scroll-snap-align: start;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .vc {
    --vc-card-w: 252px;
    --vc-gap: 16px;
  }
}

/*----------------- Fin -----------*/

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact .card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
}

.contact .card:hover {
  transform: none;
}

.btn-map {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-start;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.btn-map:hover {
  background: #fff;
  color: #061a45;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  padding-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-block h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-block p {
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }
  .header-socials {
    display: none;
  }

  nav {
    position: fixed;
    inset: 68px 0 auto;
    background: rgba(3, 9, 31, 0.97);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  nav.open {
    max-height: 80vh;
    border-bottom: 1px solid var(--line);
  }

  nav ul {
    flex-direction: column;
    padding: 12px 20px 20px;
  }

  nav a {
    padding: 14px;
  }
  .contact,
  .footer-content {
    grid-template-columns: 1fr;
  }
  .scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Page vidéos ---------- */
nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

section.page-head {
  padding-top: calc(68px + clamp(48px, 8vw, 96px));
}

.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.vin {
  animation: vpop 0.6s var(--ease) both;
}

.vmeta {
  color: var(--mut);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.grid-video {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card-video {
  display: flex;
  flex-direction: column;
  animation: vpop 0.45s var(--ease) both;
}

.card-video .card-img {
  cursor: pointer;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--b2), var(--b3));
}

.vbtn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.vbtn:disabled {
  cursor: default;
}

.vbtn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.card-video:hover .vbtn:not(:disabled) img {
  transform: scale(1.06);
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}

.play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -11px 0 0 -7px;
  border-left: 20px solid #061a45;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.card-video:hover .vbtn:not(:disabled) .play {
  transform: scale(1.12);
}

.vbtn:disabled .play {
  opacity: 0.35;
}

.soon {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(3, 9, 31, 0.8);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.card-video .card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-video .tag {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 99px;
}

.card-video h3 {
  font-size: 1.1rem;
}

.card-video .date {
  color: var(--mut);
  font-size: 0.85rem;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--mut);
}

dialog#player {
  margin: auto;
  width: min(980px, 94vw);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: var(--k);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

dialog#player::backdrop {
  background: rgba(3, 9, 31, 0.88);
  backdrop-filter: blur(4px);
}

.phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 700;
}

.pclose {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.pclose:hover {
  background: #fff;
  color: #061a45;
}

.pstage {
  aspect-ratio: 16 / 9;
  background: #000;
}

.pstage iframe,
.pstage video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@keyframes vpop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
}
