/* ============================================================
   VESTIAIRE.CSS — Styles spécifiques à vestiaire.html
 */



#Container {
    display: flex;
    flex-direction: column;
}


/* ------------------------------------------------------------
   MAIN — zone centrale de la page
   justify-content:center = centre le contenu verticalement.
   position:relative est REQUIS pour ancrer les boutons flèches.
   ------------------------------------------------------------ */
.Main {
    flex: 1;
    display: flex;
    flex-direction: column;  /* Titre AU-DESSUS du carrousel */
    justify-content: center; /* Centre tout verticalement */
    align-items: center;
    position: relative;      /* Ancre les boutons .btn-scroll */
    width: 100%;
    padding: 70px 0 20px 0;
}


/*
   TITRE DE LA PAGE
 */
.titre-vestiaire {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin: 0 0 40px 0;
    opacity: 0.8;
    width: 100%;
}


/* 
   LA FENÊTRE DU CARROUSEL
   overflow-x:auto = scroll horizontal, cache ce qui dépasse.
   scroll-snap-type = le scroll accroche sur chaque carte.
 */
.Carrousel-Cartes {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.Carrousel-Cartes::-webkit-scrollbar { display: none; }
.Carrousel-Cartes { -ms-overflow-style: none; scrollbar-width: none; }


/* 
   #LE RAIL DES CARTES
   #flex + nowrap = toutes les cartes sur une seule ligne.
 */
.Cartes {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    width: max-content;
    padding: 30px 60px;
}


/* ------------------------------------------------------------
   UNE CARTE VESTIAIRE
   width:80vw + max-width:600px = fluide et plafonné.
   scroll-snap-align:center = le scroll accroche au centre.
   ------------------------------------------------------------ */
.carte-vestiaire {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    width: 80vw;
    max-width: 600px;
    height: 450px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.carte-vestiaire:hover {
    transform: scale(1.01);
    z-index: 2;
}


/* 
   #ZONE IMAGE
   */
.images {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.images img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.carte-vestiaire:hover .images img {
    transform: scale(1.05);
}


/*
  INFO DES OUTFITS
   */
.Info {
    flex: 1;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.Info:hover {
    transform: scale(1.02);
}

.Info-détails {
    background-color: #f4f7f9;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.Info-détails p, .Info-détails ul, .Info-détails li {
    margin: 0;
    font-size: 13px;
    font-family: var(--font-text);
    color: #444;
}

.Info-détails ul {
    padding-left: 15px;
}

/* En-tête bleu */
.Info-header .Info-détails {
    background-color: #ebf5ff;
}

.Info-header .Info-détails p {
    font-weight: bold;
    color: #1E90FF;
    text-transform: uppercase;
    font-family: sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
}

.Info-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.items-titre {
    font-family: sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}

.grille-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mini-item { padding: 5px 6px; }
.mini-item p { font-size: 10px; margin: 0; }


/* ------------------------------------------------------------
   BOUTONS CARROUSEL
   position:absolute par rapport à .Main (position:relative).
   top:50% + translateY(-50%) = centrage vertical parfait.
   ------------------------------------------------------------ */
.btn-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-scroll.left  { left: 20px; }
.btn-scroll.right { right: 20px; }

.btn-scroll:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}
