/* ======  RESET  ====== */
*{box-sizing:border-box;margin:0;padding:0;
  font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight:300;
  letter-spacing:.5px;
}
a{color:inherit;text-decoration:none;}

/* ======  VARIABLES  ====== */
:root{
  --white:#ffffff;
  --black:#000000;
  --dark-gray:#333333;
  --medium-gray:#cccccc;
  --light-gray:#f5f5f5;
  --text-gray:#777777;
  --sunset-gradient: linear-gradient(180deg, #1a2a4a 0%, #3d5a7a 20%, #d0d5dd 40%, #e5e5e8 50%, #e0d5cc 60%, #d89a78 80%, #c88060 100%);
}

/* ======  BODY  ====== */
body{
  padding-top:80px;
  background:#fff;
  line-height:1;
}

/* ======  NAVBAR BLANC FIXE  ====== */
header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background:var(--white);
  border-bottom:1px solid var(--medium-gray);
}

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 40px;
  max-width:1600px;
  margin:0 auto;
  height:80px;
}

.navbar-left{
  flex:0 0 auto;
}

.navbar-left .logo{
  height:300px;
  width:auto;
  display:block;
  object-fit:contain;
}

/* ======  BARRE DE RECHERCHE - VERSION CORRIGÉE AVEC CADRE NOIR  ====== */
.navbar-center {
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--medium-gray);
  background: var(--white);
  transition: all .3s ease;
  width: 100%;
}

.search-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-size: .95rem;
  outline: none;
  color: var(--black);
}

.search-form input::placeholder {
  color: var(--text-gray);
}

.search-form button {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--medium-gray);
  cursor: pointer;
  color: var(--black);
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: 0;
}

.search-form button:hover {
  background: var(--light-gray);
}

.search-form:focus-within {
  border-color: var(--black);
}

/* Label caché mais accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ======  NAVBAR RIGHT  ====== */
.navbar-right{
  display:flex;
  gap:30px;
  align-items:center;
}

.icon-link{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--black);
  font-size:.9rem;
  transition:color .3s ease;
}

.icon-link:hover{
  color:var(--dark-gray);
}

.icon-link i{
  font-size:1.3rem;
}

.icon-label{
  font-size:.85rem;
  letter-spacing:.5px;
}

.mobile-menu-toggle{
  display:none;
}

/* ======  PAGE HEADER  ====== */
.page-header{
  background:var(--light-gray);
  padding:3rem 2rem;
  border-bottom:1px solid var(--medium-gray);
  position:relative;
}

.page-header .container{
  position:relative;
}

.page-header h1{
  font-size:2.5rem;
  font-weight:200;
  letter-spacing:3px;
  color:#111;
  margin-bottom:.5rem;
  text-transform:capitalize;
  text-align:center;
}

.page-header h2{
  font-size:2.5rem;
  font-weight:200;
  letter-spacing:3px;
  color:#111;
  margin-bottom:.5rem;
  text-transform:capitalize;
  text-align:center;
}

.page-header p{
  font-size:1rem;
  color:var(--text-gray);
  letter-spacing:.5px;
  text-align:center;
}

/* ======  BACK BUTTON (Flèche à gauche, titre centré)  ====== */
.back-link-container {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 0;
}

.back-link:hover {
  color: var(--dark-gray);
  transform: translateX(-5px);
}

.back-link:active {
  transform: translateX(-8px);
}

/* ======  SIZE FILTERS  ====== */
.size-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.size-filter {
  padding: 8px 20px;
  border: 1px solid var(--medium-gray);
  background: var(--white);
  color: var(--black);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.size-filter:hover {
  border-color: var(--dark-gray);
  background: var(--light-gray);
}

.size-filter.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
/* ======  PRODUCTS SECTION  ====== */
.products-section{
  padding:4rem 2rem;
}

.container{
  max-width:1400px;
  margin:0 auto;
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:2rem;
}

/* ======  PRODUCT CARD AVEC FOND BLANC PUR (CORRIGÉ)  ====== */
.product-card{
  background:var(--white);
  border:1px solid var(--medium-gray);
  position:relative;
  display:flex;
  flex-direction:column;
  transition:all .3s ease;
}

.product-card:hover{
  border-color:var(--dark-gray);
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.product-image-container{
  position:relative;
  width:100%;
  height:350px;
  overflow:hidden;
  background:#ffffff !important;
}

.product-image-container img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .3s ease;
  padding:8px;
  box-sizing:border-box;
}

.product-card:hover .product-image-container img{
  transform:scale(1.05);
}

/* ======  SIZE BADGE (NOIR)  ====== */
.size-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

/* ======  FAVORITE BUTTON (sans cadre, juste icône)  ====== */
.favorite-btn{
  position:absolute;
  top:12px;
  right:12px;
  width:35px;
  height:35px;
  background:transparent;
  border:none;
  cursor:pointer;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .3s ease;
  color:var(--black);
}

.favorite-btn i{
  font-size:1.3rem;
  transition:all .3s ease;
}

.favorite-btn:hover{
  color:var(--dark-gray);
}

.favorite-btn:hover i{
  transform:scale(1.1);
}

.favorite-btn.is-liked i{
  color:#e60023;
}

.favorite-btn.is-liked i:before{
  content:"\f004";
  font-weight:900;
}

/* ======  PRODUCT INFO  ====== */
.product-info{
  padding:1.2rem;
  display:flex;
  flex-direction:column;
  gap:.8rem;
  flex:1;
}

.product-name{
  font-size:1rem;
  font-weight:400;
  letter-spacing:.5px;
  text-transform:capitalize;
  color:var(--black);
  line-height:1.4;
}

.product-name a{
  transition:color .3s ease;
}

.product-name a:hover{
  color:var(--dark-gray);
}

.product-sizes{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.sizes-label{
  font-size:0.85rem;
  color:var(--text-gray);
  letter-spacing:0.3px;
}

.size-tag{
  display:inline-block;
  padding:3px 8px;
  background:var(--light-gray);
  border:1px solid var(--medium-gray);
  font-size:0.8rem;
  color:var(--dark-gray);
  letter-spacing:0.3px;
}

.product-price{
  font-size:1.1rem;
  font-weight:400;
  letter-spacing:.5px;
  color:var(--black);
}
/* ======  PRODUCT BOTTOM  ====== */
.product-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.add-to-cart-btn{
  background:transparent;
  border:none;
  padding:0;
  color:var(--black);
  cursor:pointer;
  font-size:1.2rem;
  transition:all .3s ease;
}

.add-to-cart-btn:hover{
  color:var(--dark-gray);
  transform:scale(1.1);
}

/* ======  MESSAGE AUCUN PRODUIT  ====== */
.no-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 400px;
  grid-column: 1 / -1;
}

.no-products i {
  font-size: 4rem;
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.no-products p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.no-products .btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.no-products .btn-primary:hover {
  background: var(--white);
  color: var(--black);
}
/* ======  LOADING MESSAGE  ====== */
.loading-message{
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  font-size: 1.1rem;
  color: var(--text-gray);
  letter-spacing: 0.5px;
}

/* ======  ERROR MESSAGE  ====== */
.error-message{
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #dc3545;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ======  FOOTER  ====== */
footer{
  background-color:var(--white);
  border-top:1px solid var(--medium-gray);
  padding:40px 20px;
  margin-top:auto;
}

.footer-nav{
  display:flex;
  justify-content:space-evenly;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  max-width:1400px;
  margin:0 auto;
  text-transform:lowercase;
}

.footer-nav a{
  color:var(--black);
  font-size:0.85rem;
  font-weight:400;
  letter-spacing:1px;
  transition:all 0.3s ease;
  white-space:nowrap;
}

.footer-nav a:hover{
  color:var(--dark-gray);
  text-decoration:underline;
}

.footer-bottom{
  text-align:right;
  padding:20px 40px;
  background-color:transparent;
}

.footer-bottom p{
  margin:0;
  font-size:0.65rem;
  color:#000000;
  letter-spacing:0.5px;
}

/* ===== FLÈCHE DE RETOUR AVEC TITRE À GAUCHE ===== */
.page-title-section {
    width: 100%;
}

.title-with-back {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
}

.back-button {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    padding: 0;
}

.back-button:hover {
    color: #555;
    transform: translateX(-5px);
}

.back-button:active {
    transform: translateX(-8px);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0;
    text-align: left;
    color: #000;
}

.page-subtitle {
    font-size: 1rem;
    color: #777;
    margin: 0;
    text-align: left;
    letter-spacing: 0.5px;
    padding-left: 3.3rem;
}

/* ======  RESPONSIVE  ====== */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px){
  body{
    padding-top:70px;
  }
  
  .navbar{
    padding:15px 30px;
    height:70px;
  }
  
  .navbar-left .logo{
    height:250px;
  }
  
  .navbar-center{
    width:350px;
    margin: 0 20px;
  }
  
  .navbar-right{
    gap:20px;
  }
  
  .icon-label{
    display:none;
  }
  
  .page-header{
    padding:2.5rem 1.5rem;
  }
  
  .page-header h1{
    font-size:2.2rem;
    letter-spacing:2.5px;
  }
  
  .page-header h2{
    font-size:2.2rem;
    letter-spacing:2.5px;
  }
  
  .products-section{
    padding:3.5rem 1.8rem;
  }
  
  .products-grid{
    grid-template-columns: repeat(3, 1fr);
    gap:1.8rem;
  }
  
  .product-image-container{
    height:320px;
  }
}
/* Tablettes petites et grandes mobiles (481px - 768px) */
@media (max-width: 768px){
  body{
    padding-top:60px;
  }
  
  .navbar{
    padding:12px 20px;
    height:60px;
  }
  
  .navbar-left .logo{
    height:200px;
  }
  
  .navbar-center{
    max-width:auto;
    width:auto;
    margin:0 10px;
  }
  
  .search-form{
    border:none;
    background:transparent;
    min-width:auto;
    height:auto;
  }
  
  .search-form input{
    position: fixed;
    right: 20px;
    top: 80px;
    width: 0;
    opacity: 0;
    padding: 0;
    border: 1px solid var(--medium-gray);
    background: var(--white);
    color: var(--black);
    transition: all 0.3s ease;
    pointer-events: none;
    border-radius: 4px;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 0;
  }
  
  .search-form.mobile-open input{
    width: calc(100vw - 40px);
    max-width: 400px;
    opacity: 1;
    pointer-events: all;
    padding: 12px 20px;
    height: auto;
  }
  
  .search-form input::placeholder{
    color: var(--text-gray);
  }
  
  .search-form button{
    border: none;
    padding: 8px 12px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .65rem;
    letter-spacing: .3px;
    position: relative;
    z-index: 1000;
    border-left: 1px solid var(--medium-gray);
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--black);
  }
  
  .search-form button::after{
    content: "recherche";
    font-size: .65rem;
    text-transform: lowercase;
  }
  
  .search-form.mobile-open button::after{
    content: "";
  }
  
  .navbar-right{
    gap:15px;
  }
  
  .icon-link i{
    font-size:1.2rem;
  }
  
  .page-header{
    padding:2rem 1.2rem;
  }
  
  .page-header h1{
    font-size:1.8rem;
    letter-spacing:2px;
  }
  
  .page-header h2{
    font-size:1.8rem;
    letter-spacing:2px;
  }
  
  .back-link-container {
    left: 1.2rem;
  }
  
  .back-link {
    font-size: 1.3rem;
  }
  
  .back-button {
    font-size: 1.3rem;
    left: 1.2rem;
  }
  
  .page-title {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
  
  .page-subtitle {
    font-size: 0.9rem;
  }
  
  .size-filters {
    gap: 8px;
    margin-top: 1.2rem;
  }
  
  .size-filter {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
  
  .size-badge {
    padding: 4px 9px;
    font-size: 0.75rem;
    border-radius: 15px;
    top: 8px;
    left: 8px;
  }
  
  .footer-nav{
    flex-direction:column;
    gap:15px;
  }
  
  .footer-bottom{
    text-align:center;
    padding:15px 20px;
  }
  
  .products-section{
    padding:3rem 1.5rem;
  }
  
  .products-grid{
    grid-template-columns: repeat(2, 1fr);
    gap:1.2rem;
  }
  
  .product-image-container{
    height:250px;
  }
  
  .product-image-container img{
    padding:6px;
  }
  
  .product-info{
    padding:1rem;
    gap:.6rem;
  }
  
  .product-name{
    font-size:.9rem;
  }
  
  .product-price{
    font-size:1rem;
  }
  
  .no-products {
    padding: 3rem 1.5rem;
    min-height: 300px;
  }
  
  .no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .no-products p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .no-products .btn-primary {
    padding: 12px 28px;
    font-size: 0.85rem;
  }
}
/* Petits mobiles (320px - 480px) */
@media (max-width: 480px){
  body{
    padding-top:55px;
  }
  
  .navbar{
    padding:10px 15px;
    height:55px;
  }
  
  .navbar-left .logo{
    height:150px;
  }
  
  .search-form input{
    top: 70px;
    right: 15px;
  }
  
  .search-form.mobile-open input{
    width: calc(100vw - 30px);
    max-width: 350px;
    padding: 12px 20px;
  }
  
  .search-form button{
    padding: 6px 10px;
    gap: 5px;
    font-size: .6rem;
  }
  
  .search-form button::after{
    font-size: .6rem;
  }
  
  .search-form button i{
    font-size: 1rem;
  }
  
  .navbar-right{
    gap:10px;
  }
  
  .icon-link i{
    font-size:1.1rem;
  }
  
  .container{
    padding:0 .5rem;
  }
  
  .page-header{
    padding:1.5rem 1rem;
  }
  
  .page-header h1{
    font-size:1.5rem;
    letter-spacing:1.5px;
  }
  
  .page-header h2{
    font-size:1.5rem;
    letter-spacing:1.5px;
  }
  
  .page-header p{
    font-size:0.9rem;
  }
  
  .back-link-container {
    left: 1rem;
  }
  
  .back-link {
    font-size: 1.1rem;
    gap: 6px;
  }
  
  .back-button {
    font-size: 1.1rem;
    left: 1rem;
  }
  
  .page-title {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
  }
  
  .page-subtitle {
    font-size: 0.9rem;
  }
  
  .size-filters {
    gap: 6px;
    margin-top: 1rem;
  }
  
  .size-filter {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  
  .size-badge {
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 12px;
    top: 6px;
    left: 6px;
    font-weight: 500;
  }
  
  .footer-nav a{
    font-size:.8rem;
  }
  
  .footer-bottom p{
    font-size:.6rem;
  }
  
  .products-section{
    padding:2rem 1rem;
  }
  
  .products-grid{
    grid-template-columns: repeat(2, 1fr);
    gap:1rem;
  }
  
  .product-image-container{
    height:200px;
  }
  
  .product-image-container img{
    padding:5px;
  }
  
  .product-info{
    padding:.8rem;
    gap:.5rem;
  }
  
  .product-name{
    font-size:.85rem;
    line-height:1.3;
  }
  
  .product-price{
    font-size:.95rem;
  }
  
  .favorite-btn{
    width:30px;
    height:30px;
    top:8px;
    right:8px;
  }
  
  .favorite-btn i{
    font-size:1.1rem;
  }
  
  .add-to-cart-btn{
    font-size:1.1rem;
  }
  
  .no-products {
    padding: 2rem 1rem;
    min-height: 250px;
  }
  
  .no-products i {
    font-size: 2.5rem;
  }
  
  .no-products p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .no-products .btn-primary {
    padding: 10px 24px;
    font-size: 0.82rem;
    width: 100%;
    max-width: 280px;
  }
}

/* Très petits écrans (< 360px) */
@media (max-width: 360px){
  body{
    padding-top:50px;
  }
  
  .navbar{
    height:50px;
  }
  
  .navbar-left .logo{
    height:120px;
  }
  
  .search-form input{
    top: 65px;
  }
  
  .search-form.mobile-open input{
    width: calc(100vw - 30px);
    max-width: 300px;
  }
  
  .search-form button::after{
    font-size:.55rem;
  }
  
  .page-header h1{
    font-size:1.3rem;
    letter-spacing:1.2px;
  }
  
  .page-header h2{
    font-size:1.3rem;
    letter-spacing:1.2px;
  }
  
  .page-header p{
    font-size:0.85rem;
  }
  
  .back-link {
    font-size: 1rem;
  }
  
  .back-link-container {
    left: 0.8rem;
  }
  
  .back-button {
    font-size: 1rem;
    left: 0.8rem;
  }
  
  .page-title {
    font-size: 1.3rem;
    letter-spacing: 1.2px;
  }
  
  .page-subtitle {
    font-size: 0.85rem;
  }
  
  .size-filters {
    gap: 5px;
    margin-top: 0.8rem;
  }
  
  .size-filter {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  .size-badge {
    padding: 2px 6px;
    font-size: 0.65rem;
    border-radius: 10px;
    top: 5px;
    left: 5px;
    font-weight: 500;
  }
  
  .products-section{
    padding:1.5rem .8rem;
  }
  
  .products-grid{
    grid-template-columns: repeat(2, 1fr);
    gap:.8rem;
  }
  
  .product-image-container{
    height:180px;
  }
  
  .product-image-container img{
    padding:4px;
  }
  
  .product-info{
    padding:.7rem;
    gap:.4rem;
  }
}