@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #111;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === TRANSITION ÉCRAN NOIR === */

.transition-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 1s ease-in-out;
}

/* Quand on clique sur la carte (sortie) */
.transition-screen.slide-in {
  transform: translateX(0%);
}

/* Quand on entre dans une page (arrivée) */
.transition-screen.continue-slide {
  transform: translateX(0%);
  animation: slideOutToRight 1s forwards;
}

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

/* Apparition fluide */
body.fade-in {
  opacity: 0;
  animation: fadeInBody 1s ease forwards;
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}

/* === CARTE D'ACCUEIL === */

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.canvas {
  position: relative;
}

#card {
  width: 190px;
  height: 254px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background: linear-gradient(43deg, rgb(65, 88, 208), rgb(200, 80, 192), rgb(255, 204, 112));
  color: white;
  text-align: center;
  padding: 1em;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
  transition: all 1.2s ease-in-out;
}

#prompt {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  transition: opacity 0.6s ease-in-out;
}

.title {
  font-size: x-large;
  font-weight: bold;
  margin-bottom: 5px;
  transition: opacity 0.6s ease-in-out;
}

.subtitle {
  font-size: 14px;
  color: rgb(225, 200, 255);
  transition: opacity 0.6s ease-in-out;
}

/* Halo visible au survol uniquement */
#card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  filter: blur(2rem);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: -1;
}

#card:hover::before {
  opacity: 0.8;
}

.noselect {
  user-select: none;
}

/* === HEADER / MENU === */

header {
  background-color: #222;
  text-align: center;
  padding: 30px 10px;
}

header h1 a {
  text-decoration: none;
  color: #fff;
}

.textcenter {
  text-align: center;
}

nav .menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: #333;
  padding: 10px;
  flex-wrap: wrap;
}

nav .menu a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

nav .menu a:hover {
  color: #fff;
}

main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

/* === GALERIE PHOTOS === */

.photo-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.photo-row img {
  width: 300px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.photo-row img:hover {
  transform: scale(1.05);
}

/* === BOÎTE PINTEREST === */

.pinterest-box {
  background-color: rgba(195, 80, 193, 0.30);
  color: white;
  text-align: center;
  padding: 20px;
  margin: 40px auto;
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.pinterest-box a {
  color: white;
  font-weight: bold;
}

/* === BARRE DE RECHERCHE === */

.search-section {
  text-align: center;
  margin: 50px auto;
}

.search-container {
  margin-top: 10px;
}

#searchInput {
  padding: 10px;
  width: 250px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
}

button {
  padding: 10px 20px;
  margin-left: 10px;
  background: linear-gradient(43deg, rgb(65, 88, 208), rgb(200, 80, 192), rgb(255, 204, 112));
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.05);
}


#result {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #ccc;
}

/* === PIED DE PAGE === */

footer {
  /* position: absolute;
  bottom: 0;
  left: 0;
  width: 100000 */
  text-align: center;
  padding: 30px 20px;
  background-color: #1a1a1a;
  color: #bbb;
  font-size: 0.95rem;
  border-top: 1px solid #333;
}


.btn-23,
.btn-23 *,
.btn-23 :after,
.btn-23 :before,
.btn-23:after,
.btn-23:before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn-23 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  background: linear-gradient(43deg, rgb(65, 88, 208), rgb(200, 80, 192), rgb(255, 204, 112));
  color: #fff;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
  padding: 0;
  text-transform: uppercase;
  border-radius: 99rem;
  border-width: 2px;
  overflow: hidden;
  padding: 0.8rem 3rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-23:disabled {
  cursor: default;
}

.btn-23:-moz-focusring {
  outline: auto;
}

.btn-23 svg {
  display: block;
  vertical-align: middle;
}

.btn-23 [hidden] {
  display: none;
}

.btn-23 span {
  display: grid;
  inset: 0;
  place-items: center;
  position: absolute;
  transition: opacity 0.2s ease;
}

.btn-23 .marquee {
  --spacing: 5em;
  --start: 0em;
  --end: 5em;
  -webkit-animation: marquee 1s linear infinite;
  animation: marquee 1s linear infinite;
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
  opacity: 0;
  position: relative;
  text-shadow: #fff var(--spacing) 0, #fff calc(var(--spacing) * -1) 0,
    #fff calc(var(--spacing) * -2) 0;
}

.btn-23:hover .marquee {
  -webkit-animation-play-state: running;
  animation-play-state: running;
  opacity: 1;
}

.btn-23:hover .text {
  opacity: 0;
}

.btn-23:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 204, 112, 0.6);
}

@-webkit-keyframes marquee {
  0% {
    transform: translateX(var(--start));
  }

  to {
    transform: translateX(var(--end));
  }
}

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

  to {
    transform: translateX(var(--end));

}
}
/* .marquee-container {
  width: 100%;
  height: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-text {
  position: absolute;
  white-space: nowrap;
  font-size: 24px;
  padding-right: 100%;
  right: 50%;
  animation: scroll-right 1000s linear infinite;
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
} */
.marquee-container {
  width: 100%;
  height: 30px; /* hauteur fine */
  overflow: hidden;
  position: relative;
}

.marquee-text {
  position: relative;
  font-size: 1.5em; /* taille ajustée */
  line-height: 30px;
  right: 50%;
  animation: scroll-left 100s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
/*
.ribbon {
  position: absolute;
  overflow: hidden;
  width: 150px;
  height: 150px;
  top: -10px;
  left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
}

.ribbon::before {
  content: 'may 2025';
  position: absolute;
  width: 150%;
  height: 40px;
  background-image: linear-gradient(45deg, #ff6547 0%, #ffb144 51%, #ff7053 100%);
  transform: rotate(-45deg) translateY(-20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 5px 10px rgba(0,0,0,0.23);
}

.ribbon::after {
  content: '';
  position: absolute;
  width: 10px;
  bottom: 0;
  left: 0;
  height: 10px;
  z-index: -1;
  box-shadow: 140px -140px #cc3f47;
  background-image: linear-gradient(45deg, #FF512F 0%, #F09819  51%, #FF512F  100%);
}
.ribbon::before {
  /* déjà présent : */
  /* ... */
  /* transition: opacity 0.3s ease-in-out;
}

.ribbon:hover::before {
  opacity: 0.5;
} */




    .ribbon {
      position: absolute;
      overflow: hidden;
      width: 150px;
      height: 150px;
      top: -10px;
      left: -10px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 15;
      pointer-events: auto; /* indispensable */
    }

    .ribbon::before {
      content: 'may 2025';
      position: absolute;
      width: 150%;
      height: 40px;
      background-image: linear-gradient(45deg, #ff6547 0%, #ffb144 51%, #ff7053 100%);
      transform: rotate(-45deg) translateY(-20px);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      box-shadow: 0 5px 10px rgba(0,0,0,0.23);
      transition: opacity 0.3s ease-in-out;
      z-index: 1;
    }

    .ribbon:hover::before {
      opacity: 0.75;
    }

    .ribbon::after {
      content: '';
      position: absolute;
      width: 10px;
      bottom: 0;
      left: 0;
      height: 10px;
      z-index: 0;
      box-shadow: 140px -140px #cc3f47;
      background-image: linear-gradient(45deg, #FF512F 0%, #F09819  51%, #FF512F  100%);
    }

    .button-pub {
  padding: 0.6em 1em;
  border: 4px solid #FFFF;
  transition: ease-in-out 0.3s;
  background-color: transparent;
  color: #FFFF;
  font-weight: bolder;
  font-size: 16px;
}

.button-pub:hover {
  transform: scale(1.2) rotate(10deg);
  background-color: #fa725a;
  color: white;
}
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 100vh;  prend toute la hauteur de la fenêtre  */
}
.popup {
  position: absolute;
  width: 200px;
  height: 150px;
  background: white;
  border: 2px solid #fa725a;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 9999;
}

.popup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup .close-btn {
  position: absolute;
  top: 2px;
  right: 5px;
  background: red;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
}
