/* ================= RESET & GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}
body {
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ================= NAVBAR ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1e1e1e;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.header .logo {
  font-weight: bold;
  font-size: 1.6rem;
}
.header nav a {
  color: white;
  margin: 0 10px;
}
.header nav a:hover {
  color: #ff6f61;
}
.cart-btn {
  background: #ff6f61;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  color: white;
  position: relative;
}

/* ================= HERO SECTIONS ================= */
.hero-landing,
.hero-author {
  position: relative;
  color: white;
  text-align: center;
  padding: 100px 20px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero-landing {
  background: url('https://picsum.photos/1200/500') center/cover no-repeat;
}
.hero-author {
  background: linear-gradient(135deg, #ff6f61, #ff9f43);
}
.hero-author img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 5px solid white;
  margin-bottom: 15px;
}
.hero-landing h1,
.hero-author h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.hero-landing p,
.hero-author p {
  max-width: 700px;
  margin: 0 auto 15px;
}

/* ================= BUTTON ================= */
.add-cart {
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  background: #ff6f61;
  color: white;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  margin-top: 15px;
}

/* ================= CONTAINERS ================= */
.product-container,
.books-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

/* ================= BOOK GRID & CARD ================= */



.price-barre {
  text-decoration: line-through;
  color: #999;
  margin-left: 5px;
  font-size: 1rem;
}




.book-card h3 {
  font-size: 1.1rem;
  margin: 5px 0;
}

.price {
  color: #ff6f61;
  font-weight: bold;
  font-size: 1.2rem;
}



/* Conteneur centré et limité */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}



/* Cartes */
.book-card {
  background: #fff;
  border-radius: 15px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.book-card:hover { transform: translateY(-5px); }
.book-card img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }

/* Responsive */
@media(max-width:1024px){ .books-grid{ grid-template-columns: repeat(2, 1fr); } }
@media(max-width:768px){ .books-grid{ grid-template-columns: 1fr; } }









/* ================= PRODUCT DETAILS ================= */
.product-details .details-list p {
  margin: 3px 0;
  font-size: 0.95rem;
}
.description p {
  margin-bottom: 10px;
}

/* ================= FOOTER ================= */
footer {
  background: #111;
  color: white;
  padding: 25px 15px;
  font-size: 0.9rem;
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer a {
  color: white;
  margin-right: 10px;
}
footer a:hover {
  color: #ff6f61;
}

/* ================= MODALES ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-landing,
  .hero-author {
    padding: 70px 15px;
    text-align: center;
  }
  .hero-landing h1,
  .hero-author h1 {
    font-size: 2rem;
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
  .book-card {
    max-width: 100%;
  }
}


/* Article */
    .article-hero {
  background: #fff;
  padding: 60px 20px;
}

.article-wrapper {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 50px;
  align-items: center;
}

.article-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.article-main {
  flex: 1;
}

.article-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.article-icon {
  font-size: 1.6rem;
}

.article-author,
.article-edition {
  color: #666;
  margin-bottom: 8px;
}

.article-price {
  margin: 20px 0;
}

.price-current {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff6f61;
}

.price-old {
  margin-left: 10px;
  text-decoration: line-through;
  color: #aaa;
}

.article-stock {
  margin-bottom: 20px;
  font-weight: 600;
}

.in-stock { color: #27ae60; }
.out-stock { color: #c0392b; }

.btn-buy {
  display: inline-block;
  background: #ff6f61;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-buy:hover {
  background: #ff503e;
  transform: translateY(-2px);
}

.article-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.article-section h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.article-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 30px;
}

.detail-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* RESPONSIVE */
@media(max-width: 900px) {
  .article-wrapper {
    flex-direction: column;
    text-align: center;
  }
}







