/* SLIDER */
.slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-width: 300px;
  /* height: 400px; */
  overflow: hidden;
  margin: 20px auto;
  margin-bottom: -15px;
  user-select: none;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* POPUP ITEM */

/* Conteneur principal du popup */
.item-popup {
    top: 10px;
    position: relative;
    background: rgb(0, 0, 0);
    padding: 5px;
    max-width: 350px;
    overflow: visible;
    display: flex;
    justify-content: center; /* Centre horizontalement */
}

/* Conteneur du slider */
.item-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: black; /* Fond noir pour masquer tout espace */

    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
}


/* Style des images */
.slider-image {
    object-fit: cover; /* Remplit tout l'espace sans laisser de vide */
    display: block; /* Élimine les espaces en bas */
    margin: 0;
    padding: 0;
}

/* Style des flèches */
.slider-arrow {
    position: absolute;
    top: 50%;
    border: none;
    transform: translateY(-50%);
    color: rgb(0, 0, 0);
    background-color: #f0f0f082;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow.prev {
    left: max(12px, calc(50vw - 260px));
}

.slider-arrow.next {
    right: max(12px, calc(50vw - 260px));
}







.popup {
    display: none;
    position: fixed;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgb(255, 255, 255);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup.active {
    display: flex;
    background-color: rgb(0, 0, 0, 0.7)
}

.popup-content {
    background: rgb(0, 0, 0);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-btn {
  position: absolute;
  color: #fff;
  background: transparent;
  border: none;
  line-height: 1;
  z-index: 10000;
  top: -10px;
  right: 3px;
  font-size: 40px;
  cursor: pointer;
}


.popup-content h3 {
  text-align: center;
  font-family: var(--roboto);
  margin: 5px 0 10px;
  color: #ffffff;
}

.popup-content p, .popup-content a {
  text-decoration: none;
  text-align: left;
  font-family: var(--roboto);
  margin: 5px 0 10px;
  color: #ffffff;
  cursor: pointer;
}
.popup-content p, .popup-content a:hover {
  color:red
}

.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  box-sizing: border-box;
  font-size: 16px;
  transition: box-shadow 0.2s;
}

.popup-content input {
  height: 45px;
}

.popup-content textarea {
  resize: none;
  height: 120px;
}

.popup-content input:focus,
.popup-content textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #b60000;
}

.popup-content button[type="submit"] {
  padding: 10px;
  background: #000;
  color: white;
  border: none;
  cursor: pointer;
}

/* =====================================================================
   PAGE CONTACT
   ===================================================================== */

.contact-page {
  max-width: 620px;
  margin: 40px auto 80px;
  padding: 0 24px;
  font-family: var(--roboto);
  color: #fff;
  text-align: center;
}

.contact-page h1 {
  font-family: var(--open-sans);
  font-size: clamp(26px, 4vw, 42px);
  margin: 0 0 16px;
}

.contact-page p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.contact-links a {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.contact-links a:hover {
  background: #fff;
  color: #000;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  background: #0a0a0a;
  color: #fff;
  box-sizing: border-box;
  font-size: 16px;
  font-family: var(--roboto);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
}

.contact-form button {
  padding: 13px;
  background: #fff;
  color: #000;
  border: none;
  font-family: var(--roboto);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: crosshair;
  transition: background 0.2s, color 0.2s;
}

.contact-form button:hover {
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px #fff;
}

/* =====================================================================
   TITRE DE PAGE (grilles produits et lookbooks)
   ===================================================================== */

h1.text,
h2.text {
  font-family: var(--roboto);
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.08em;
  margin: 30px 0 18px;
}


/* =====================================================================
   FENÊTRE D'AGRANDISSEMENT DES ARTICLES
   ---------------------------------------------------------------------
   Rien d'autre que la photo et les deux flèches. Pas de cadre noir,
   pas de bandeau d'information : les flèches sont collées aux bords
   de l'image, quelle que soit sa largeur.
   ===================================================================== */

#item-popup .item-popup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  max-width: none;
  padding: 0;
  top: 0;
}

/* Le cadre prend exactement la taille de la photo (calculée par
   js/site.js), les flèches restent donc collées à ses bords. */
#item-popup .item-frame {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  max-width: min(76vw, 760px);
  max-height: 84vh;
}

/* Le rail glisse à l'intérieur du cadre : c'est lui qui donne
   l'animation de défilement d'une photo à l'autre. */
#item-popup .item-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.55, 0, 0.25, 1);
}

#item-popup .item-photo {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* Les flèches sont des voisines directes de la photo : elles se collent
   donc naturellement à ses bords gauche et droit. */
#item-popup .slider-arrow {
  position: static;
  transform: none;
  flex: 0 0 auto;
  width: 42px;
  height: 76px;
  padding: 0;
  border: 1px solid #2b2b2b;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  font-size: 20px;
  line-height: 1;
  cursor: crosshair;
  transition: background 0.2s;
}

#item-popup .slider-arrow:hover {
  background: #fff;
}

#item-popup .close-btn {
  top: 8px;
  right: 18px;
  font-size: 44px;
  color: #fff;
}

@media screen and (max-width: 852px) {
  #item-popup .item-photo {
    max-width: calc(100vw - 84px);
    max-height: 78vh;
  }

  #item-popup .slider-arrow {
    width: 34px;
    height: 62px;
    font-size: 16px;
  }
}

/* Bouton d'envoi des formulaires : bord visible sur fond noir */
.popup-content button[type="submit"] {
  border: 1px solid #fff;
  font-family: var(--roboto);
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.popup-content button[type="submit"]:hover {
  background: #fff;
  color: #000;
}
