/* =====================================================
   VARIABLES CSS & BASE
   ===================================================== */
:root {
  --primary-blue: #002F66;
  --light-blue: #4a9eff;
  --accent-orange: rgb(232, 89, 15);
  --dark-bg: #080808;
  --light-bg: #f4f4f4;
  --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3vh;
}

body {
  background-color: var(--light-bg);
  background-image: radial-gradient(var(--primary-blue) 1px, transparent 1px);
  background-size: 20px 20px;
  color: #1a1a1a;
  transition: var(--transition);
  min-height: 100vh;
  /* Force la page à faire au moins la hauteur de l'écran */
}

body.dark-mode {
  background-color: var(--dark-bg);
  background-image: repeating-linear-gradient(45deg, #080808, #080808 10px, #111111 10px, #111111 20px);
  color: #ffffff;
}

.content-wrapper {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  /* Espacement sur les côtés pour mobile */
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
  height: 50px;
  width: 100%;
  background-color: var(--primary-blue);
  position: relative;
  z-index: 1001;
}

.header nav {
  height: 100%;
  position: relative;
}

.header nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  gap: 50px;
  height: 100%;
  margin: 0;
  padding: 0;
}

.header nav ul li a {
  color: white;
  text-decoration: none;
  font-family: "Permanent Marker", cursive;
  font-size: 1.3rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.active-nav {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: var(--light-blue) !important;
  font-weight: bold;
  padding: 5px 10px;
}

body.dark-mode .active-nav {
  background-color: rgba(74, 158, 255, 0.2);
  color: white !important;
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
}

body.dark-mode .header {
  background-color: #001a33;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Logo & Controls */
.logo {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 67px;
  z-index: 10;
}

.ui-switch {
  position: absolute;
  right: 200px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  --switch-bg: rgb(135, 150, 165);
  --switch-width: 48px;
  --switch-height: 20px;
  --circle-diameter: 32px;
  --circle-bg: var(--accent-orange);
  --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}

.ui-switch input {
  display: none;
}

.slider {
  position: relative;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 100px;
  cursor: pointer;
  display: flex;
}

.slider .circle {
  top: calc(var(--circle-inset) * -1);
  left: 0;
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  position: absolute;
  background: var(--circle-bg);
  border-radius: inherit;
  display: block;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
  background-repeat: no-repeat;
  background-position: center;
  transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.ui-switch input:checked+.slider .circle {
  left: calc(100% - var(--circle-diameter));
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
  background-color: rgb(0, 56, 146);
}

/* Language Selector */
.language-selector {
  position: absolute !important;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-family: "Permanent Marker", cursive;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.arrow-down {
  transition: transform 0.3s ease;
}

.lang-btn.active .arrow-down {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--primary-blue);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-family: "Permanent Marker", cursive;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 25px;
}

.lang-option.active {
  background: rgba(74, 158, 255, 0.2);
  font-weight: 600;
}

.lang-option.active::before {
  content: '✓';
  position: absolute;
  right: 15px;
  color: var(--light-blue);
}

/* Force l'affichage des émojis drapeaux sur Windows */
.flag-icon {
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

body.dark-mode .lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(74, 158, 255, 0.3);
}

body.dark-mode .lang-dropdown {
  background: #001a33;
  border-color: rgba(74, 158, 255, 0.3);
}

/* =====================================================
   SECTIONS COMMUNES
   ===================================================== */

.section h2 {
  font-family: "Permanent Marker", cursive;
  text-align: center;
  font-size: 45px;
  letter-spacing: 4px;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 30px;
  transition: 0.2s;
  color: #1a1a1a;
  /* Ajout de sécurité */
}

.section h2:hover {
  color: var(--accent-orange);
  text-shadow: 2px 2px 0px var(--primary-blue), -2px -2px 0px white;
  transform: skew(-5deg);
  cursor: default;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

body.dark-mode .section h2 {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}

body.dark-mode .section h2::after {
  background: linear-gradient(90deg, #003d7a, var(--light-blue), #003d7a);
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.6);
}

/* =====================================================
   BOUTONS
   ===================================================== */
/* Premier bouton de l'accueil */


.button3 {
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--primary-blue);
  font-family: roboto;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  font-size: 15px;
}

.button3:hover {
  background: #012145;
}

.button3>svg {
  width: 34px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
}

.button3:hover svg {
  transform: translateX(5px);
}

.button3:active {
  transform: scale(0.95);
}

button {
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--primary-blue);
  font-family: roboto;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  font-size: 15px;
}

button:hover {
  background: #012145;
}

button>svg {
  width: 34px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
}

button:hover svg {
  transform: translateX(5px);
}

button:active {
  transform: scale(0.95);
}

.button1 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #002F66;
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 2px #4a9eff;
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.svgIcon {
  width: 18px;
  margin: 0;
  transition-duration: 0.3s;
  height: auto;
}

.svgIcon path {
  fill: whitesmoke;
}

.button1:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: #003d7a;
  align-items: center;
}

.button1:hover .svgIcon {
  transform: translateY(-200%);
}

.button1::before {
  position: absolute;
  bottom: -20px;
  content: "Haut de page";
  color: whitesmoke;
  font-size: 0px;
  font-family: "Roboto", sans-serif;
}

.button1:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}

.button1.show {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   SECTION HERO
   ===================================================== */
.one {
  height: 710px;
  width: 100%;
  background-image: url(../images/back.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.one>* {
  /* Contenu centré à 1080px */
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}


body.dark-mode .one {
  /* Je passe de 0.6 à 0.2 pour que l'image soit beaucoup plus claire */
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../images/back.jpg);
}

.rap {
  color: whitesmoke;
}

.fleche {
  rotate: 90deg;
}

/* =====================================================
   SECTION HISTOIRE (CARDS)
   ===================================================== */
.histoire {
  width: 100%;
  padding: 50px 0;
}

.histoire h1 {
  max-width: 1080px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.cardflex {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.cardflex {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.card {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primary-blue);
  box-shadow: 10px 10px 0 #000000;
  border-radius: 17px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: black;
  max-width: 340px;

}

.card:hover {
  transform: scale(1.05);
  border: 2px solid black;
}

.card p {
  color: black;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
}

body.dark-mode .card {
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid var(--light-blue);
  box-shadow: 0 0 15px rgba(74, 158, 255, 0.2);
  color: white;
}

body.dark-mode .card p {
  color: #d0d0d0;
}

/* =====================================================
   SLIDER
   ===================================================== */
.slider1 {
  width: 100%;
  overflow: hidden;
  height: 640px;
  padding: 50px 0;
}

.container {
  position: relative;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 837px;
  height: 400px;
  background: #f5f5f5;
  border-radius: 20px;
  max-width: 900px;

}

.container .slide .item {
  width: 200px;
  height: 250px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(14, 2, 188, 0.81);
  background-position: center;
  background-size: cover;
  transition: all 0.5s;

}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.slide .item:nth-child(3) {
  left: 49%;
}

.slide .item:nth-child(4) {
  left: calc(49% + 220px);
}

.slide .item:nth-child(5) {
  left: calc(49% + 440px);
}

.slide .item:nth-child(n + 6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  width: 265px;
  background-color: rgba(0, 0, 0, 0.53);
  border-radius: 10px;
  color: white;
  transform: translate(0, -50%);
  display: none;
}

.slide .item:nth-child(2) .content {
  display: block;
}

.content .name,
.content .des {
  opacity: 0;
  animation: animate 1s ease-in-out forwards;
  padding: 5px;
  font-family: "Roboto", sans-serif;
}

.content .name {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  animation-delay: 0s;
}

.content .des {
  animation-delay: 0.3s;
}

@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }

  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

.button {
  display: flex;
  gap: 20px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.button button {
  width: 40px;
  height: 35px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.74);
  background: rgba(255, 255, 255, 0.58);
  transition: var(--transition);
  position: relative;
  z-index: 100;
}

.button button:hover {
  border: 2px solid rgba(255, 255, 255, 0.74);
  transform: scale(1.1);
}

.flechenav {
  position: relative;
  right: 7px;
}

body.dark-mode .container {
  background: #1a1a1a;
}

body.dark-mode .button button {
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid var(--light-blue);
  color: white;
}

/* =====================================================
   ARTISTE DU MOIS
   ===================================================== */
.spotlight {
  padding: 50px 20px;
  width: 100%;

}

.spotlight h1 {
  max-width: 1080px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.spotlight-content {
  background-color: #DCDCDC;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  max-width: 1080px;
  margin: 10px auto 0;
  height: 400px;
  border-radius: 15px;
  width: 100%;
  padding: 40px;
}

.spotlight-img img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

.spotlight-img img:hover {
  transform: scale(1.05);
}

.spotlight-text {
  max-width: 500px;
}

.spotlight-text h2 {
  font-family: "Permanent Marker", cursive;
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.spotlight-text p {
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.sdm {
  color: white;
}

/* Nouveau style pour le bouton Spotify (c'est un lien <a> déguisé en bouton) */
.bouton-spotify {
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--primary-blue);
  font-family: 'Roboto', sans-serif;
  border: 1px solid transparent;
  display: inline-flex;
  /* Important pour centrer le contenu d'un lien */
  align-items: center;
  font-size: 15px;
  text-decoration: none;
  /* Enlève le soulignement du lien */

  /* On remet ton animation spécifique */
  animation: pulse-rap 2s infinite;
}

.bouton-spotify:hover {
  background: #012145;
}

/* On s'assure que le texte à l'intérieur reste blanc */
.bouton-spotify span {
  color: white;
}

.spotlight-text button {
  animation: pulse-rap 2s infinite;
}

@keyframes pulse-rap {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 89, 15, 0.7);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(232, 89, 15, 0);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(232, 89, 15, 0);
    transform: scale(1);
  }
}

body.dark-mode .spotlight-content {
  background-color: black;
}

body.dark-mode .spotlight-text h2 {
  color: var(--light-blue);
}

/* =====================================================
   PLAYER SPOTIFY
   ===================================================== */
.three {
  padding: 50px 0;
  width: 100%;
}

.three h1 {
  max-width: 1080px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.main1 {
  max-width: 1080px;
  width: calc(100% - 40px);
  background-color: #DCDCDC;
  border-radius: 15px;
  display: grid;
  place-items: center;
  width: min(1201px, 90%);
  margin: 11px auto 0;
  height: 340px;
  gap: 20px;
  padding: 20px;
  left: 0;
  right: 0;
  transform: none;
}

.currentplaying {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.currentplaying1 {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  left: 40%;
}

.spotify {
  width: 50px;
  height: 50px;
}

.heading {
  font-family: "Roboto", sans-serif;
  font-size: 1.1em;
  font-weight: bold;
}

.loader {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 4em;
  width: 222px;
  padding: 0 1em;
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
  left: 3%;
  position: relative;
}

.loader:hover {
  background-color: lightgray;
}

.loader.active {
  background-color: rgba(211, 211, 211, 0.5);
}

.albumcover {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
}

#werenoi {
  background-image: url(../images/16.02.jpg);
}

#toto {
  background-image: url(../images/boom.jpg);
}

#morad {
  background-image: url(../images/ojos.jpg);
}

.song {
  font-family: "Roboto", sans-serif;
  flex: 1;
}

.song .name {
  font-weight: bold;
  font-size: 1em;
}

.song .artist {
  font-size: 0.8em;
  opacity: 0.7;
}

.status-icon.play {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid black;
  transition: var(--transition);
}

.loader:hover .status-icon.play {
  border-left-color: var(--light-blue);
  transform: scale(1.1);
}

body.dark-mode .main1 {
  background-color: black;
}

body.dark-mode .heading,
body.dark-mode .song {
  color: white;
}

body.dark-mode .status-icon.play {
  border-left-color: white;
}

body.dark-mode .loader:hover {
  background-color: #2a2a2a;
}

body.dark-mode .loader.active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   TABLEAU
   ===================================================== */
main {
  padding: 40px 20px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

#tableau {
  width: 100% !important;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  border: none !important;
}

.dataTables_wrapper {
  max-width: 1080px !important;
  margin: 0 auto !important;
  width: 100%;
}

#tableau thead tr {
  background: linear-gradient(90deg, rgba(16, 34, 98, 1) 0%, rgba(75, 95, 191, 1) 54%, rgba(27, 67, 193, 1) 100%) !important;
  color: white;
}

#tableau thead th {
  padding: 16px 12px !important;
  font-weight: 600;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
}

#tableau tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}

#tableau tbody tr:hover {
  background: linear-gradient(90deg, #f8f9ff 0%, #ffffff 100%);
  transform: translateX(5px);
  border-left: 3px solid #667eea;
}

#tableau tbody td {
  padding: 14px 12px !important;
  font-size: 14px;
  color: #333;
  border: none !important;
}

#tableau tbody tr:nth-child(even) {
  background: linear-gradient(90deg, #fafafa 0%, #f5f5f5 100%);
}

#tableau_previous:hover {
  color: white;
}

body.dark-mode select option {
  color: #000;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 6px 15px;
  font-size: 14px;
  transition: var(--transition);
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: #667eea;
}

.dt-button {
  background: #102262 !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.dt-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 2px solid #e0e0e0 !important;
  background: white !important;
  color: #000 !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  margin: 0 3px !important;
  transition: var(--transition) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: #3441A8 !important;
  background: #3441A8 !important;
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(90deg, rgba(16, 34, 98, 1) 0%, rgba(75, 95, 191, 1) 54%, rgba(27, 67, 193, 1) 100%) !important;
  border-color: #3441A8 !important;
  color: white !important;
}

body.dark-mode #tableau {
  background: #1a1a1a;
  color: white;
}

body.dark-mode #tableau tbody td {
  color: #e0e0e0;
}

body.dark-mode #tableau tbody tr {
  border-bottom: 1px solid #333;
  /* Séparation des lignes plus subtile */
}

body.dark-mode #tableau tbody tr:nth-child(even) {
  background: linear-gradient(90deg, #222222 0%, #1a1a1a 100%);
}

body.dark-mode #tableau tbody tr:hover {
  background: linear-gradient(90deg, #002f66 0%, #1a1a1a 100%);
  transform: translateX(5px);
  border-left: 3px solid var(--light-blue);
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #fff !important;
  background: #1a1a1a !important;
  border: 1px solid var(--light-blue) !important;
}

body.dark-mode .dataTables_wrapper .dataTables_filter input {
  border: 2px solid #ffffff !important;
}

body.dark-mode .dataTables_wrapper .dataTables_length select {
  border: 2px solid #ffffff;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--light-blue) !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary-blue) !important;
}

/* --- Dans la partie body.dark-mode de style-clean.css --- */

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--light-blue) !important;
  color: white !important;
  /* <--- C'est cette ligne qui force le texte en blanc */
  border-color: var(--light-blue) !important;
  /* Optionnel : pour que la bordure match le fond */
}

/* =====================================================
   GALERIE
   ===================================================== */
.gallery {
  --s: 200px;
  --g: 10px;
  --f: 1.7;
  margin: 0 auto;
  max-width: 1080px;
  display: grid;
  gap: var(--g);
  width: calc(3 * var(--s) + 2 * var(--g));
  aspect-ratio: 1;
  grid-template-columns: repeat(3, auto);
}

.gallery>img {
  width: 0;
  height: 0;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(100%);
  transition: 0.35s linear;
}

.gallery img:hover {
  filter: grayscale(0);
  width: calc(var(--s) * var(--f));
  height: calc(var(--s) * var(--f));
}

/* =====================================================
   UPLOAD FORM - Corrections et Ajouts
   ===================================================== */

.upload-files-container {
  background-color: #f7fff7;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.upload-files-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.drag-file-area {
  border: 2px dashed #002F66;
  border-radius: 20px;
  margin: 10px 0 15px;
  padding: 40px;
  width: 100%;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.drag-file-area:hover {
  background: rgba(0, 47, 102, 0.05);
  border-color: var(--light-blue);
}

.drag-file-area .upload-icon {
  font-size: 50px;
  color: var(--primary-blue);
}

.drag-file-area h3 {
  font-size: 1.3rem;
  margin: 15px 0;
  color: var(--primary-blue);
  font-family: 'Montserrat', sans-serif;
}

.drag-file-area label {
  font-size: 1rem;
  color: #666;
}

.drag-file-area .browse-files-text {
  color: #002F66;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}

.drag-file-area .browse-files-text:hover {
  color: var(--light-blue);
}

.file-requirements {
  margin-top: 15px;
  font-size: 0.85rem;
  color: #96370D;
  font-weight: 600;
  font-style: italic;
}

body.dark-mode .file-requirements {
  color: #F0702E;
}

.default-file-input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.browse-files {
  cursor: pointer;
}

body.dark-mode .browse-files-text {
  color: #4795FF;
}

/* Message d'erreur */
.cannot-upload-message {
  background-color: #ffe6e6;
  border: 2px solid #ff4444;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  margin: 15px 0;
  padding: 12px 20px;
  border-radius: 10px;
  color: #cc0000;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.cannot-upload-message .material-icons-outlined {
  margin-right: 10px;
}

.cancel-alert-button {
  margin-left: auto;
  cursor: pointer;
  transition: var(--transition);
}

.cancel-alert-button:hover {
  transform: scale(1.2);
  color: #990000;
}

/* Bloc fichier sélectionné */
.file-block {
  background-color: #002F66;
  color: white;
  width: 100%;
  position: relative;
  display: none;
  flex-direction: column;
  margin: 15px 0;
  padding: 15px 20px;
  border-radius: 15px;
  overflow: hidden;
}

.file-info {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  gap: 10px;
}

.file-size {
  position: relative;
  right: 20px;
}

.barre {
  position: relative;
  right: 20px;
}

.file-icon {
  font-size: 24px;
}

.file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.remove-file-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 24px;
}

.remove-file-icon:hover {
  color: var(--accent-orange);
  transform: scale(1.2) rotate(90deg);
}

/* Barre de progression */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--light-blue), var(--accent-orange));
  border-radius: 0 0 15px 15px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.6);
}

/* Bouton Upload */
.upload-button {
  background-color: #002F66;
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  margin-top: 10px;
  padding: 12px 40px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upload-button:hover:not(:disabled) {
  background-color: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 158, 255, 0.4);
}

.upload-button:active {
  transform: translateY(0);
}

.upload-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mode Sombre */
body.dark-mode .upload-files-container {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .drag-file-area {
  border-color: var(--light-blue);
  background: rgba(0, 47, 102, 0.1);
}

body.dark-mode .drag-file-area h3,
body.dark-mode .drag-file-area label {
  color: #ffffff;
}

body.dark-mode .drag-file-area .upload-icon {
  color: var(--light-blue);
}

body.dark-mode .cannot-upload-message {
  background-color: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  color: #ffcccc;
}

/* =====================================================
   LIGHTBOX GALERIE - STYLE RAP
   ===================================================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Conteneur principal */
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Image principale */
.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 3px var(--primary-blue),
    0 0 30px rgba(74, 158, 255, 0.5);
  transition: all 0.3s ease;
}

/* Infos sous l'image */
.lightbox-info {
  margin-top: 20px;
  text-align: center;
  color: white;
  animation: slideUp 0.5s ease 0.2s backwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 2rem;
  color: var(--light-blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(74, 158, 255, 0.6);
}

.lightbox-counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Bouton fermer */
/* 1. Le bouton (Le cercle) */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  /* Taille du cercle */
  height: 60px;
  /* Taille du cercle */
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100000;
  /* Très important */
}

.lightbox-close:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(232, 89, 15, 0.6);
}

/* 2. L'icône (La croix à l'intérieur) */
.lightbox-close svg {
  width: 45px;
  /* Augmenté de 35px à 45px pour que la croix remplisse le cercle */
  height: 45px;
  /* Pareil ici */
  stroke-width: 3;
  transition: transform 0.3s ease;
  margin-left: 0;
}

/* Boutons navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background: rgba(0, 47, 102, 0.8);
  border: 2px solid var(--light-blue);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: var(--light-blue);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 30px rgba(74, 158, 255, 0.8);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-nav svg {
  width: 40px;
  /* Avant: 30px -> Beaucoup plus grand */
  height: 40px;
  stroke-width: 3;
  /* Rend la flèche plus GRASSE */
  margin-left: 0px;
}

/* Barre de miniatures */
.lightbox-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 2px solid rgba(74, 158, 255, 0.3);
  overflow-x: auto;
  max-width: 90%;
  scrollbar-width: thin;
  scrollbar-color: var(--light-blue) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: var(--light-blue);
  border-radius: 10px;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.lightbox-thumb:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.lightbox-thumb.active {
  border-color: var(--light-blue);
  opacity: 1;
  box-shadow: 0 0 15px rgba(74, 158, 255, 0.6);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Curseur personnalisé dans la lightbox */
.lightbox.active {
  cursor: default;
}

.lightbox-image {
  cursor: default;
}

/* Animation des boutons */
.lightbox-nav,
.lightbox-close,
.lightbox-thumb {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Amélioration du scroll des miniatures sur mobile */
.lightbox-thumbnails {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Effet de chargement */
.lightbox-image {
  background: linear-gradient(90deg,
      rgba(0, 47, 102, 0.2) 0%,
      rgba(74, 158, 255, 0.2) 50%,
      rgba(0, 47, 102, 0.2) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.lightbox-image[src] {
  animation: none;
  background: transparent;
}

/* =====================================================
   FORMULAIRE
   ===================================================== */

.form {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1080px;
  padding: 20px;
  border-radius: 20px;
  position: relative;
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  width: 600px;
  font-family: "Inter", sans-serif;
  margin-top: 10px
}

.title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
  color: #00bfff;
}

.title::before {
  width: 18px;
  height: 18px;
}

.title::after {
  width: 18px;
  height: 18px;
  animation: pulse 1s linear infinite;
}

.title::before,
.title::after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 0px;
  background-color: #00bfff;
}

.message {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
}

.etoile {
  color: rgb(232, 89, 15);
  /* Ton orange, ou "red" pour rouge */
  font-weight: bold;
  /* Optionnel : pour la rendre plus visible */
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
  justify-content: space-between;
}

.name {
  width: 50%;
}

.form label {
  position: relative;
}

.form label .input {
  background-color: #333;
  color: #fff;
  width: 100%;
  padding: 20px 05px 05px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
}

.form label textarea.input {
  min-height: 150px;
  /* Hauteur minimum */
  max-height: 300px;
  /* Hauteur maximum */
  resize: vertical;
  /* Redimensionnable verticalement */
  padding: 15px 10px;
  line-height: 1.5;
}

.form label .input+span {
  color: #C2C2C2;
  position: absolute;
  left: 10px;
  top: 0px;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown+span {
  top: 12.5px;
  font-size: 0.9em;
}

/* NOUVEAU CODE (La correction) */
.form label .input:focus+span,
.form label .input:not(:placeholder-shown)+span {
  color: #00bfff;
  top: 0px;
  font-size: 0.7em;
  font-weight: 600;
}

.input {
  font-size: medium;
}

/* From Uiverse.io by adamgiebl */
.cssbuttons-io-button {
  background: #002F66;
  color: white;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 1.2em;
  font-size: 17px;
  font-weight: 500;
  border-radius: 0.9em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em #024490;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  padding-right: 3.3em;
  cursor: pointer;
  width: 200px;
  margin: 0 auto;
}

.cssbuttons-io-button .icon {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 0.7em;
  box-shadow: 0.1em 0.1em 0.6em 0.2em #024490;
  width: 50px;
  right: 0.3em;
  transition: all 0.3s;
}

.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: #002F66;
}

.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
  transform: scale(0.95);
}


@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* =====================================================
   BOUTONS RADIO "TAGS"
   ===================================================== */
.radio-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  margin-bottom: 10px;
  margin-left: 5px;
}

.radio-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  /* Pour que ça passe à la ligne sur mobile */
}

/* On cache le vrai petit rond moche du bouton radio */
.radio-container input[type="radio"] {
  display: none;
}

/* Le style du bouton (le rectangle) */
.radio-style {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: 1px solid rgba(105, 105, 105, 0.4);
  border-radius: 50px;
  /* Bords très arrondis */
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Effet au survol */
.radio-container:hover .radio-style {
  border-color: #00bfff;
  background-color: #444;
}

/* L'ÉTAT SÉLECTIONNÉ (C'est là que la magie opère) */
.radio-container input[type="radio"]:checked+.radio-style {
  background-color: #002F66;
  border-color: #00bfff;
  color: #fff;
  transform: scale(1.05);
  font-weight: bold;
}

/* =====================================================
   BANDEAU NOTIFICATION STYLE RAP (CORRIGÉ)
   ===================================================== */
.rap-notification {
  /* Changement important : relative au lieu de fixed */
  position: relative;
  margin: 30px auto;
  /* Marge haut/bas de 30px pour espacer */

  width: 90%;
  max-width: 600px;
  padding: 25px 20px;
  /* Un peu plus de place en hauteur */
  z-index: 1000;

  text-align: center;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 3px solid #fff;
  box-shadow: 10px 10px 0px #000;

  /* On garde l'animation mais adaptée */
  animation: dropTheMic 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  overflow: hidden;
}

/* --- Style Succès --- */
.rap-notification.good-vibes {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #000 100%);
  border-color: var(--light-blue);
}

/* --- Style Erreur --- */
.rap-notification.bad-vibes {
  background: linear-gradient(135deg, #8B0000 0%, #000 100%);
  border-color: var(--accent-orange);
  color: #fff;
}

.rap-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.rap-icon {
  font-size: 1.8rem;
  animation: bounceHead 1s infinite;
}

/* --- Barre de progression --- */
.rap-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  /* Barre un peu plus épaisse */
  background: #fff;
  width: 100%;
  animation: timeOut 5s linear forwards;
}

/* --- Animations --- */
@keyframes dropTheMic {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(-5deg);
    /* On utilise TranslateY au lieu de top */
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes bounceHead {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

@keyframes timeOut {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}



/* =====================================================
   FOOTER
   ===================================================== */
footer {
  font-family: "Permanent Marker", cursive;
  background-color: var(--primary-blue);
  padding: 0 50px;
  width: 100%;
  margin-top: auto;
}

footer a,
footer p {
  color: whitesmoke;
  text-decoration: none;
  font-size: 1.1rem;
  margin: 0;
}

.footer1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  bottom: 10px;
}

.footer1 .a:hover {
  color: var(--accent-orange);
}

/* Credits */
.hover-underline {
  font-size: 2rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ffffff, var(--accent-orange));
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after {
  transform: scaleX(1);
}

.social {
  display: flex;
  gap: 15px;
}

.moi {
  left: 3%;
  position: relative;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: var(--transition);
}

.social svg {
  width: 24px;
  height: 24px;
  fill: whitesmoke;
}

.social .social-link1:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  animation: bounce_613 0.4s linear;
}

.social .social-link3:hover {
  background-color: #5865f2;
  animation: bounce_613 0.4s linear;
}

.social .social-link4:hover {
  background-color: #0a66c2;
  animation: bounce_613 0.4s linear;
}

@keyframes bounce_613 {
  40% {
    transform: scale(1.4);
  }

  60% {
    transform: scale(0.8);
  }

  80% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}



body.dark-mode footer {
  background-color: #001a33;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   PAGE LOADER (TRANSITIONS)
   ===================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(0, 47, 102, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.page-loader.active {
  opacity: 1;
  visibility: visible;
}

.vinyl-loader {
  margin: 0 auto 30px;
  width: 120px;
  height: 120px;
  position: relative;
}

.vinyl-disk {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
  border-radius: 50%;
  animation: spin 2s linear infinite;
  box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.vinyl-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(74, 158, 255, 0.8);
}

.loader-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: 2px;
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* =====================================================
   INTRO "ONE SHOT" STYLE RAP
   ===================================================== */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #080808;
  /* Fond très sombre */
  z-index: 99999;
  /* Par dessus tout */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  /* Transition pour la disparition (Effet Rideau) */
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

/* La classe qui sera ajoutée pour cacher le loader */
#intro-overlay.slide-up {
  transform: translateY(-100%);
  /* Le loader part vers le haut */
}

.intro-content {
  text-align: center;
  color: white;
}

.intro-title {
  font-family: "Permanent Marker", cursive;
  font-size: 3rem;
  margin-top: 20px;
  letter-spacing: 5px;
  text-transform: uppercase;
  /* Petit effet glitch sur le texte */
  animation: textFlicker 3s infinite alternate;
}

.intro-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--light-blue);
  margin-top: 10px;
  opacity: 0.7;
}

/* --- Réutilisation de ton style Vinyle --- */
.vinyl-wrapper {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(0, 47, 102, 0.8);
  /* Glow bleu */
}

.vinyl-disk {
  width: 100%;
  height: 100%;
  background: repeating-radial-gradient(#111 0,
      #111 5px,
      #222 6px,
      #222 7px);
  border-radius: 50%;
  animation: spinIntro 1s linear infinite;
  /* Ça tourne vite ! */
}

.vinyl-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--accent-orange);
  border-radius: 50%;
  border: 3px solid white;
}

/* --- Animations --- */
@keyframes spinIntro {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes textFlicker {
  0% {
    opacity: 1;
    text-shadow: 0 0 10px white;
  }

  5% {
    opacity: 0.8;
  }

  10% {
    opacity: 1;
  }

  50% {
    text-shadow: 0 0 20px var(--primary-blue);
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 10px white;
  }
}

/* =====================================================
   PUNCHLINE GENERATOR
   ===================================================== */
.punchline-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px auto;
  /* Centré avec marge en bas */
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.punchline-text {
  font-family: 'Permanent Marker', cursive;
  /* Ta police Rap */
  font-size: 1.1rem;
  color: var(--light-blue);
  /* Ta couleur bleu clair */
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.quote-icon {
  font-size: 1.5rem;
  color: var(--accent-orange);
  /* Ta couleur orange pour les guillemets */
  vertical-align: -5px;
  /* Petit ajustement pour aligner */
  margin: 0 10px;
}

/* Petit effet au survol pour le fun */
.punchline-text:hover {
  transform: scale(1.05);
  color: #fff;
  text-shadow: 0 0 10px var(--primary-blue);
  cursor: default;
}

/* Mode Sombre (si besoin d'ajustement spécifique) */
body.dark-mode .punchline-text {
  color: #fff;
}

/* =====================================================
Page Partenaires
   ===================================================== */

@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,600);


/* Presentation du groupe */

section.card3 {
  position: relative;
  margin: 0 auto;
  width: 500px;
  font-family: "Roboto", sans-serif;
  height: 200px;
  background-image: url(../images/partner_back.jpg);
  background-repeat: no-repeat;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card3 svg {
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 3px;
}

.card3:hover {
  transform: scale(1.05);
  color: #ffffff;
}

.card__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #000000;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card3:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0 auto;
  text-align: center;
  text-decoration: underline;
  padding-left: 5px;
  font-size: 24px;
  color: var(--white);
  font-weight: 700;
}

.card3:hover svg {
  scale: 0;
}

.card__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
}

.snip1336 {
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 230px;
  max-width: 315px;
  width: 100%;
  color: #ffffff;
  text-align: left;
  line-height: 1.4em;
  background-color: #141414;
}

.snip1336 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.snip1336 img {
  max-width: 100%;
  vertical-align: top;
  opacity: 0.85;
}

.snip1336 figcaption {
  width: 100%;
  background-color: #141414;
  padding: 25px;
  position: relative;
}

.snip1336 figcaption:before {
  position: absolute;
  content: '';
  bottom: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 55px 0 0 400px;
  border-color: transparent transparent transparent #141414;
}

.snip1336 figcaption a {
  padding: 5px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 0.7em;
  text-transform: uppercase;
  margin: 10px 0;
  display: inline-block;
  opacity: 0.65;
  width: 47%;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
}

.snip1336 figcaption a:hover {
  opacity: 1;
}

.snip1336 .profile {
  border-radius: 50%;
  position: absolute;
  bottom: 100%;
  left: 25px;
  z-index: 1;
  max-width: 90px;
  opacity: 1;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}



.snip1336 h2 {
  margin: 0 0 5px;
  font-weight: 300;
}

.snip1336 h2 span {
  display: block;
  font-size: 0.5em;
  color: #2980b9;
}

.snip1336 p {
  margin: 0 0 10px;
  font-size: 0.8em;
  letter-spacing: 1px;
  opacity: 0.8;
}

.partenaires {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 20px;
  justify-items: center;
}

.snip1336 {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardAppear 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.snip1336:nth-child(1) {
  animation-delay: 0.1s;
}

.snip1336:nth-child(2) {
  animation-delay: 0.2s;
}

.snip1336:nth-child(3) {
  animation-delay: 0.3s;
}

.snip1336:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.snip1336:hover {
  transform: translateY(-15px);
}

.snip1336:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.snip1336:hover .profile {
  transform: scale(1.15);
}

.snip1336:hover figcaption a {
  transform: translateY(3px);
  opacity: 1;
}

.snip1336 figcaption a {
  transition: all 0.3s ease;
  text-align: center;
}

.btn {
  display: flex;
  justify-content: center;
}

.snip1336 img {
  transition: all 0.4s ease;
}

.snip1336 .profile {
  transition: all 0.4s ease;
}



.titre_partenaires {
  font-family: "Permanent Marker", cursive;
  text-align: center;
  font-size: 45px;
  letter-spacing: 4px;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 30px;
}


.titre_partenaires::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

body.dark-mode .titre_partenaires {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}

body.dark-mode .titre_partenaires::after {
  background: linear-gradient(90deg, #003d7a, var(--light-blue), #003d7a);
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.6);
}

/* =====================================================
   SECTION BOUTONS PDF
   ===================================================== */
.pdf-section {
  margin-top: 50px;
  padding: 30px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 108px;
}

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  background-color: black;
  font-size: 16px;
  border-radius: 100px;
  font-weight: 600;
  color: white;
  box-shadow: 0 0 0 2px #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: rgb(255, 255, 255);
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 400;
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #1f387e;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #1f387e;
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

.docs {
  text-decoration: none;
  color: white;
}

/* =====================================================
   Page Credits
   ===================================================== */

/* Header de la page de credits */
.navbar {
  margin-bottom: 15px;
  font-family: "Permanent Marker", cursive;
  font-size: 0.9rem;
}

.credits {
  font-family: "Permanent Marker", cursive;
  text-align: center;
  font-size: 45px;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 30px;
  transition: 0.2s;
  color: #1a1a1a;
  /* Ajout de sécurité */
}

.credits:hover {
  color: var(--accent-orange);
  transform: skew(-5deg);
  cursor: default;
}

.credits::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

body.dark-mode .credits {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}

body.dark-mode .credits::after {
  background: linear-gradient(90deg, #003d7a, var(--light-blue), #003d7a);
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.6);
}

.header_credits nav ul {
  width: 890px;
  position: relative;
  display: flex;
  list-style-type: none;
  justify-content: space-evenly;
  align-items: center;
  margin: 0 auto;
}

.header_credits nav ul li {
  position: relative;
  top: 10px;
}

.header_credits a {
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 16px;
}

.header_credits a:hover {
  text-decoration: underline
}

.header_credits .nav-link {
  color: var(--primary-blue);
}

.header_credits .active-nav {
  background-color: #d6d6d6;
  border: none;
  border-radius: 5px;
  color: var(--primary-blue) !important;
}

.header_credits .active-nav:hover {
  color: var(--accent-orange) !important;
  text-decoration: none;
}

.header_credits .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

.header_credits .nav-link:hover::after {
  width: 100%;
}

.header_credits .nav-link:hover {
  color: var(--accent-orange);
  text-decoration: none;
}

.header_credits .active-nav:hover::after {
  width: 0;
}

.credit {
  display: grid;
  justify-content: center;
}

#back {
  width: 400px;
  height: 180px;
  border: 0;
  border-radius: 10px;
}

.img-credit {
  width: 300px;
  height: 300px;
  border-radius: 15px;
}

.img-credit:hover,
#back:hover {
  transform: scale(1.02);
}

.accueil1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 colonnes de taille égale */
  gap: 20px;
  /* Espacement entre les éléments */
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
  /* Aligne les éléments en haut */
}

/* Pour que chaque crédit prenne toute la largeur de sa colonne */
.credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.alert {
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
  border-left: 4px solid;
  margin-bottom: 0.5rem;
  width: auto;
  /* On enlève le width: 400px fixe */
  max-width: 450px;
  /* On met un maximum pour pas que ça soit géant */
  min-width: 300px;
  margin: 0 auto;
  overflow: hidden;
}

.alert:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#alert {
  position: relative;
  top: 10px;
}

.alert svg {
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
  stroke: currentColor;
}

.alert p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 auto;
  word-wrap: break-word;
  /* Force le retour à la ligne */
  overflow-wrap: break-word;
  max-width: 100%;

}

.alert-error {
  background-color: var(--primary-blue);
  border-color: var(--accent-orange);
  color: white;
  margin-bottom: 10px;
  margin-top: 10px;
}

.alert-error:hover {
  background-color: #05458e;
}

.alert-error svg {
  color: var(--accent-orange);
}

.sous_titre {
  border: white 0px solid;
  padding: 5px;
  width: 140px;
  margin: 0 auto;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.3rem;
  position: relative;
  letter-spacing: 4px;
  color: var(--accent-orange);
  margin-top: 40px;
}


.credit_lien {
  text-decoration: none;
  color: white;
}

/* Le fond noir derrière l'image (caché par défaut) */
.modal {
  display: none;
  /* Caché par défaut */
  position: fixed;
  /* Reste fixe même si on scrolle */
  z-index: 9999;
  /* Au-dessus de TOUT (même du header) */
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  /* Couleur de secours */
  background-color: rgba(0, 0, 0, 0.9);
  /* Noir transparent */
  backdrop-filter: blur(5px);
  /* Petit effet flou sympa derrière */
}

/* L'image elle-même */
.modal-content {
  margin: 0 auto;
  display: block;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* Animation de zoom à l'ouverture */
@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

/* Le bouton pour fermer (la croix) */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 10000;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: var(--accent-orange);
  /* Ta couleur orange */
  text-decoration: none;
  cursor: pointer;
}

/* Curseur pointer sur les images de la galerie pour montrer qu'on peut cliquer */
.credit img {
  cursor: zoom-in;
  transition: 0.3s;
}


body.dark-mode .nav-link {
  color: white;
}

/* =====================================================
   CUSTOM SCROLLBAR (Style Rap/Sombre)
   ===================================================== */
/* La largeur de la barre */
::-webkit-scrollbar {
  width: 12px;
}

/* Le fond de la barre (le rail) */
::-webkit-scrollbar-track {
  background: var(--dark-bg);
  /* Noir/Gris très sombre */
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* La partie qui bouge (l'ascenseur) */
::-webkit-scrollbar-thumb {
  background-color: var(--primary-blue);
  /* Ton bleu nuit */
  border-radius: 6px;
  /* Bords ronds */
  border: 3px solid var(--dark-bg);
  /* Petite marge autour pour faire "flottant" */
}

/* Quand on survole l'ascenseur */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-orange);
  /* Ton orange au survol ! */
}

/* =====================================================
   SÉLECTION DE TEXTE
   ===================================================== */
::selection {
  background-color: var(--accent-orange);
  color: white;
  text-shadow: none;
}

/* Pour Firefox */
::-moz-selection {
  background-color: var(--accent-orange);
  color: white;
  text-shadow: none;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
/* Cache le curseur par défaut sur tout le site (optionnel, sinon garde-le) */
/* body { cursor: none; } */
/* Si tu caches le curseur, assure-toi que tes boutons restent cliquables visuellement */

.cursor-dot,
.cursor-dot-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  /* Important : laisse passer les clics au travers */
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
}

.cursor-dot-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  transition: width 0.2s, height 0.2s, top 0.1s, left 0.1s;
  /* Petit retard pour effet de traine */
}

body.dark-mode .cursor-dot-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Effet quand on clique */
body:active .cursor-dot-outline {
  width: 25px;
  height: 25px;
  background-color: rgba(232, 89, 15, 0.2);
  border-color: var(--accent-orange);
}


/* ==========================================
   Le scrolle reveal
   ========================================== */

/* L'état de départ : caché et un peu plus bas */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  /* Décalé de 50px vers le bas */
  transition: all 0.8s ease-out;
  /* L'animation dure 0.8s */
}

/* L'état d'arrivée : visible et à sa place */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================
   L'effet d'écriture
   ========================================== */


.typewriter {
  overflow: hidden;
  border-right: .15em solid var(--accent-orange);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .15em;
  width: 0;
  animation: blink-caret .75s step-end infinite;
}

.typewriter.active {
  animation:
    typing 2.5s steps(40, end) forwards,
    blink-caret .75s step-end infinite;
}

/* L'animation d'écriture */
@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

/* L'animation du curseur qui clignote */
@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-orange);
  }
}

/* =====================================================
   NOTIFICATION GALERIE (POPUP BAS-DROITE)
   ===================================================== */
.gallery-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #002F66;
  /* Bleu foncé charte */
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-left: 5px solid #E63946;
  /* Rouge charte */
  z-index: 10000;
  /* Très haut pour être au dessus de tout */
  animation: slideIn 0.5s ease-out;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 300px;
}

.gallery-content {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: bold;
  font-size: 1rem;
}

.gallery-progress {
  height: 3px;
  background: #E63946;
  width: 100%;
  margin-top: 10px;
  animation: timer 3s linear forwards;
}

/* Animations spécifiques Galerie */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes timer {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

.partner {
  width: 500px;
  height: 320px;
}