/* ============================
   FONTS
============================ */
@font-face {
  font-family: "SuisseIntl";
  font-weight: 300;
  src: url(fonts/SuisseIntl/SuisseIntl-Ultralight.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 400;
  src: url(fonts/SuisseIntl/SuisseIntl-Thin.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 500;
  src: url(fonts/SuisseIntl/SuisseIntl-Light.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 600;
  src: url(fonts/SuisseIntl/SuisseIntl-Regular.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntlIta";
  font-weight: 600;
  src: url(fonts/SuisseIntl/SuisseIntl-RegularItalic.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 700;
  src: url(fonts/SuisseIntl/SuisseIntl-SemiBold.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 800;
  src: url(fonts/SuisseIntl/SuisseIntl-Bold.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 900;
  src: url(fonts/SuisseIntl/SuisseIntl-Black.otf) format("opentype");
}

/* ============================
   GLOBAL
============================ */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
}

body {
  background-color: black;
  overflow-x: hidden;
}

/* ============================
   BLUE STROKE OVERLAY
============================ */
.blue-stroke-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  box-shadow:
    inset 0 0 80px 15px rgba(98, 138, 237, 0.35),
    inset 0 0 200px 40px rgba(98, 138, 237, 0.12),
    inset 0 0 400px 80px rgba(98, 138, 237, 0.04);
  animation: strokePulse 6s ease-in-out infinite;
}

@keyframes strokePulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.card img {
  cursor: crosshair;
}

/*
███╗  ██╗███████╗ █████╗ ██████╗ ███████╗██████╗ 
██║  ██║██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗
███████║█████╗  ███████║██║  ██║█████╗  ██████╔╝
██╔══██║██╔══╝  ██╔══██║██║  ██║██╔══╝  ██╔══██╗
██║  ██║███████╗██║  ██║██████╔╝███████╗██║  ██║
╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚══════╝╚═╝  ╚═╝
*/
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 3.5vh;
  z-index: 100;
  transition: transform 0.4s ease, opacity 0.4s ease, background 0.3s ease;
  will-change: transform;
  opacity: 1;
}

body.scroll-down .main-header {
  transform: translateY(-100%);
}

body.scroll-up .main-header {
  transform: translateY(0);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  margin: 0 auto;
  height: 2.7vh;
  padding-top: 0.7vh;
}

.header-logo {
  display: flex;
  width: 30vw;
}

.header-logo a {
  font-family: 'SuisseIntl', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #628aed;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.header-logo a:hover {
  opacity: 0.6;
  color: white;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 15%;
}

.header-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #628aed;
  font-family: 'SuisseIntl', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.header-nav a:hover {
  color: white;
}


/*

 /$$$$$$ /$$   /$$ /$$$$$$$$ /$$$$$$   /$$$$$$ 
|_  $$_/| $$$ | $$| $$_____//$$__  $$ /$$__  $$
  | $$  | $$$$| $$| $$     | $$  \ $$| $$  \__/
  | $$  | $$ $$ $$| $$$$$  | $$  | $$|  $$$$$$ 
  | $$  | $$  $$$$| $$__/  | $$  | $$ \____  $$
  | $$  | $$\  $$$| $$     | $$  | $$ /$$  \ $$
 /$$$$$$| $$ \  $$| $$     |  $$$$$$/|  $$$$$$/
|______/|__/  \__/|__/      \______/  \______/ 
                                               
                                               
                                               
*/
.case {
  width: 100%;
  overflow: hidden;
  margin-bottom: 3vh;
  position: relative;
}

.item1 {
  width: 100%;
  margin: 0 auto;
  margin-top: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.textes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  text-align: center;
  width: 100%;
}

.item1 h1 {
  font-family: 'SuisseIntl', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: #628aed;
  font-size: 1rem;
  text-align: center;
  margin: 1vh auto;
}

.video-center-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2vh;
}

.smif-logo-video {
  display: block;
  width: 60vh;
  max-width: 90vw;
  height: auto;
}

.textes h2 {
  font-family: 'SuisseIntl', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  color: white;
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.3;
}

.textes p {
  font-family: 'SuisseIntl', sans-serif;
  font-weight: 500;
  color: white;
  font-size: 0.95rem;
  line-height: 0.9;
  max-width: 35ch;
}

/*
 ██████╗  █████╗ ██╗     ███████╗██████╗ ██╗███████╗
██╔════╝ ██╔══██╗██║     ██╔════╝██╔══██╗██║██╔════╝
██║  ███╗███████║██║     █████╗  ██████╔╝██║█████╗  
██║   ██║██╔══██║██║     ██╔══╝  ██╔══██╗██║██╔══╝  
╚██████╔╝██║  ██║███████╗███████╗██║  ██║██║███████╗
 ╚═════╝ ╚═╝  ╚═╝╚══════╝╚══════╝╚═╝  ╚═╝╚═╝╚══════╝
*/

.contenair {
  width: 100%;
  height: auto;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  padding-bottom: 5vh;
}

.item2 {
  width: 100%;
  height: auto;
  overflow: visible;
}

.item2::-webkit-scrollbar {
  display: none;
}

.group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1vw;
  width: 90%;
  margin: 0 auto;
  padding-top: 5vh;
}

.card {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease-out;
}

.card img,
.card video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.card:hover img,
.card:hover video {
  transform: scale(0.95);
  opacity: 1;
}

/* ============================
   ANIMATION FADE + SLIDE
============================ */
.item1,
.card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.item1.visible,
.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   LIGHTBOX
============================ */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: transparent;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close::after {
  content: '+';
  color: #628aed;
  font-family: 'SuisseIntl', sans-serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
}

/* /$$$$$$$$ /$$$$$$   /$$$$$$  /$$$$$$$$ /$$$$$$$$ /$$$$$$$ 
| $$_____//$$__  $$ /$$__  $$|__  $$__/| $$_____/| $$__  $$
| $$     | $$  \ $$| $$  \ $$   | $$   | $$      | $$  \ $$
| $$$$$  | $$  | $$| $$  | $$   | $$   | $$$$$   | $$$$$$$/
| $$__/  | $$  | $$| $$  | $$   | $$   | $$__/   | $$__  $$
| $$     | $$  | $$| $$  | $$   | $$   | $$      | $$  \ $$
| $$     |  $$$$$$/|  $$$$$$/   | $$   | $$$$$$$$| $$  | $$
|__/      \______/  \______/    |__/   |________/|__/  |__/
*/
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3vh;
  background-color: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 9999;
}

.marquee {
  width: 100%;
  overflow: hidden;
  background-color: transparent;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
}

.marquee-content a,
.marquee-content span {
  margin: 0.5vh 1.5vw;
  text-decoration: none;
  font-family: 'SuisseIntl';
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #628aed;
}

.marquee-content a:hover {
  color: white;
}

.footer:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/*
   /$$$$$$$  /$$$$$$$$  /$$$$$$  /$$$$$$$   /$$$$$$  /$$   /$$  /$$$$$$  /$$$$$$ /$$    /$$ /$$$$$$$$
| $$__  $$| $$_____/ /$$__  $$| $$__  $$ /$$__  $$| $$$ | $$ /$$__  $$|_  $$_/| $$   | $$| $$_____/
| $$  \ $$| $$      | $$  \__/| $$  \ $$| $$  \ $$| $$$$| $$| $$  \__/  | $$  | $$   | $$| $$      
| $$$$$$$/| $$$$$   |  $$$$$$ | $$$$$$$/| $$  | $$| $$ $$ $$|  $$$$$$   | $$  |  $$ / $$/| $$$$$   
| $$__  $$| $$__/    \____  $$| $$____/ | $$  | $$| $$  $$$$ \____  $$  | $$   \  $$ $$/ | $$__/   
| $$  \ $$| $$       /$$  \ $$| $$      | $$  | $$| $$\  $$$ /$$  \ $$  | $$    \  $$$/  | $$      
| $$  | $$| $$$$$$$$|  $$$$$$/| $$      |  $$$$$$/| $$ \  $$|  $$$$$$/ /$$$$$$   \  $/   | $$$$$$$$
|__/  |__/|________/ \______/ |__/       \______/ |__/  \__/ \______/ |______/    \_/    |________/  
 */


@media (max-width: 992px) {

  .main-header {
    background-color: #628aed;
  }

  /* structure interne */
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 0 auto;
    height: 2vh;
    padding-top: 0.7vh;
  }

  /* logo */
  .header-logo {
    display: flex;
    width: 40%;
  }

  .header-logo a {
    font-family: 'SuisseIntl', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    color: white;
  }

  .header-logo a:hover {
    opacity: 0.6;
    color: white;
  }

  /* nav */
  .header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 30%;
  }

  .header-nav a {
    text-align: center;
    text-decoration: none;
    color: white;
    font-family: 'SuisseIntl', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    transition: color 0.3s ease, opacity 0.3s ease;
  }

  .header-nav a:hover {
    color: white;
  }

  .group {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    width: 100%;
    height: auto;
    scroll-snap-align: start;
  }

  .card img,
  .card video {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .case {
    display: flex;
    flex-direction: column;
  }

  /* === texte au-dessus de la galerie === */
  .item1 {
    width: 90vw;
    max-width: 500px;
    order: -1;
    margin: 2.5vh auto;
    position: relative;
  }

  .item1 h1 {
    text-align: center;
    margin-bottom: 1vh;
  }

  .item1 .textes {
    display: block;
    text-align: center;
  }

  .item1 h2 {
    margin: 1vh auto;
    text-align: center;
  }

  .item1 p {
    text-align: center;
  }

  /* === CORRECTION VIDÉO MOBILE === */
  .video-center-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2vh;
  }

  .smif-logo-video {
    display: block;
    width: 80vw;
    max-width: 500px;
    height: auto;
  }

  .footer {
    display: none !important;
  }
}

/* Désactivation hover sur appareils tactiles */
@media (hover: none) and (pointer: coarse) {
  /* On garde les comportements par défaut pour éviter de casser les liens */
}