/*
Theme Name: theme-bandeau-bleu
Author: @Shantylly - shantijeux@gmail.com
Version: 1.0
*/

/* ===============================================
   🌐 VARIABLES GLOBALES (utilisées partout)
   =============================================== */
  :root {
  --bleu-nuit: #1d53c4;
  --bleu-hover: #3d72e4;
  --bleu-plus-clair: #65acf3;
  --jaune-clair: #fcf771;
  --bleu-lien: #87cefa;
  --gris-fond: #f7f7f7;
  --gris-clair: #fafafa;
  --gris-tres-clair: #f2f2f2;
  --font-main: 'Libre Baskerville', serif;
  --font-title: 'Playfair Display', serif;  /* Une police plus élégante pour les titres */
}

/* ===============================================
    🧱 STRUCTURE DE BASE (affecte toutes les pages)
    =============================================== */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  background-color: white;
}

main, .section-bloc {
  box-sizing: border-box; /* super important */
  max-width: 100%;
  width: 100%;
  margin: auto;
  background-color: white;
}

main {
  color: #222;
  text-align: center;
}

.section-bloc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 0rem 4rem 2rem 4rem;
}

.section-bloc.gris {
  background-color: var(--gris-tres-clair);
}

/* ===============================================
    🔝 HEADER & NAVIGATION (présent sur toutes pages)
    =============================================== */
header, footer, header nav {
  background-color: var(--bleu-nuit);
  font-family: var(--font-main);
}

header {
  background-color: var(--bleu-nuit);
  padding: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

header nav {
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  width: 100%;
}

.nav-left {
  left: 2rem;
  display: flex;
  align-items: center;
  z-index: 1;
}

.site-logo img {
  height: 40px;
}

.nav-center {
  flex: 1;
}

.nav-center ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--jaune-clair);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  display: block;
  transition: background 0.3s ease;
}

nav ul li:hover > a {
  background-color: var(--bleu-hover);
  border-radius: 5px;
}

/* SOUS-MENUS (navigation multi-niveaux) */
nav ul li ul {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background-color: var(--bleu-hover);
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 0;
  list-style: none;
}

nav ul li:hover > ul {
  display: block !important;
}

nav ul li ul li a {
  padding: 10px;
  color: white;
  font-weight: normal;
  white-space: nowrap;
}

nav ul li ul li a:hover {
  background-color: var(--bleu-plus-clair);
  border-radius: 5px;
}

nav ul li ul li {
  position: relative;
}

nav ul li ul li ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--bleu-hover);
  border-radius: 5px;
  min-width: 150px;
  z-index: 200;
}

nav ul li ul li:hover > ul {
  display: block;
}

/* Sélecteur de langue */
.language-selector select {
  background-color: var(--bleu-nuit);
  color: white;
  border: 1px solid white;
  font-family: var(--font-main);
  padding: 5px;
  border-radius: 4px;
}

/* ===============================================
    📰 CONTENU GLOBAL (articles, blocs, titres)
    =============================================== */
h2 {
  font-size: 1.4rem;
  color: #2a2a2a;
  font-weight: bold;
}

article {
  padding: 1rem;
  background-color: #fff;
}

article:hover {
  background-color: #f1f1f1;
}

/* ===============================================
    🖼️ GRILLE DE TABLEAUX (ex: page d’accueil ou liste)
    =============================================== */
.tableau-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.tableau-item {
  padding: 1.5rem;
  background-color: var(--gris-clair);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  overflow: hidden;
}

.tableau-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tableau-title {
  font-size: 1.5rem;  /* Augmenter légèrement la taille du titre */
  font-family: var(--font-title), serif;  /* Police élégante pour les titres */
  color: #222;
  font-weight: bold;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;  /* Espacement des lettres pour plus d’élégance */
}

.tableau-title:hover {
  color: var(--bleu-nuit); /* Changement de couleur au survol */
}

.tableau-image img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.tableau-image img:hover {
  transform: scale(1.05); /* Légère augmentation de la taille pour l’effet zoom */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tableau-gallery {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  justify-content: center; /* Centrer les images de la galerie */
}

.gallery-image {
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.tableau-item .tableau-gallery {
  display: flex;  /* Afficher la galerie d'images sous l'image principale */
}

.tableau-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tableau-infos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.95rem;
}

.tableau-infos .dimension,
.tableau-infos .prix {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

.tableau-all-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #000; color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.add-to-cart-btn {
  padding: 0.7rem 1.5rem;
  background: green;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.add-to-cart-btn:hover {
  background-color: darkgreen;
}

.related-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1rem;
}

.related-item {
  flex: 1 1 calc(25% - 1rem);
  max-width: 220px;
}

@media screen and (max-width: 768px) {
  .related-item {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media screen and (max-width: 480px) {
  .related-item {
    flex: 1 1 100%;
  }
}


.image-accueil-wrapper {
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
}

.image-accueil {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.pagination {
  text-align: center;
  margin-top: 2rem;
}
.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
  border-radius: 5px;
}
.pagination .current {
  background-color: #333;
  color: white;
  border: none;
}

/* ===============================================
    🦶 FOOTER (présent partout)
    =============================================== */
footer {
  color: white;
  padding: 1rem 0 0;
  text-align: center;
  margin-top: auto;
}

footer h2 {
  margin-bottom: 0.5rem;
  color: white;
}

footer a {
  color: var(--bleu-lien);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p.copyright {
  padding: 1rem 0 0.5rem;
  font-size: 0.9rem;
}

/* ===============================================
    📱 RESPONSIVE DESIGN (mobiles < 768px)
    =============================================== */
@media (max-width: 768px) {
  .tableau-title {
    font-size: 1.1rem;
  }

  .tableau-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .nav-center ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    right: 0;
    background-color: var(--bleu-hover);
    width: 60%;
    text-align: center;
    z-index: 100;
    font-size: 0.9rem;
    gap: 10px;
    padding: 0.5rem 0;
  }

  .nav-center ul.active {
    display: flex !important;
  }

  .burger-menu {
    display: block !important;
    z-index: 100;
  }

  .nav-center ul li {
    width: 100%;
  }

  .nav-center ul li a {
    color: var(--jaune-clair);
    text-decoration: none;
    font-weight: bold;
    display: block;
    transition: background 0.3s ease;
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .nav-center ul li:hover > a {
    background-color: var(--bleu-plus-clair);
    border-radius: 5px;
  }

  .nav-left {
    left: 1rem;
  }

  .nav-center {
    flex: none;
  }

  .nav-center ul li ul {
    position: absolute;
    left: -50%;
    top: 0;
    background-color: var(--bleu-hover);
    display: none;
    padding: 0.5rem 0;
    border-radius: 5px;
    width: 50%;
    z-index: 200;
  }

  .nav-center ul li ul li ul {
    position: absolute;
    left: 80%;
    z-index: 200;
  }

  .nav-center ul li:hover > ul {
    display: block;
  }
}

/* ===============================================
    🍔 BOUTON BURGER (mobile uniquement)
    =============================================== */
.burger-menu {
  display: none;
  font-size: 2rem;
  color: black;
  cursor: pointer;
  position: absolute;
  right: 2rem;
}

/*

*/

.product-container {
  margin: auto;
  padding: 2rem;
  background: white;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

.product-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.product-images {
  flex: 1 1 300px;
}

.main-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.image-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.thumb-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.product-info {
  flex: 1 1 300px;
  text-align: center;
  align-self: center;
}

.product-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-dimensions {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #444;
  margin-bottom: 1rem;
}

.add-to-cart-button {
  padding: 0.8rem 1.5rem;
  background: #0071a1;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.add-to-cart-button:hover {
  background-color: #005f86;
}

.product-description {
  margin-top: 3rem;
}

.related-products {
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .product-main {
    flex-direction: column;
    align-items: center;
  }

  .product-info {
    text-align: center;
  }

  .image-thumbs {
    justify-content: center;
  }
}

.product-gallery {
  flex: 1 1 300px;
}

.product-gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.thumbnail-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.thumbnail-gallery img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.product-summary {
  flex: 2 1 400px;
  text-align: center;
}

.product-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.product-dimensions {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #444;
}

.product-cart {
  margin: 1.5rem 0;
}

.product-cart .button {
  padding: 0.7rem 1.5rem;
  background: #0071a1;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product-cart .already-in-cart {
  background: #444;
}

.product-categories {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.product-description {
  margin-top: 3rem;
  color: #444;
}

.related-products {
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .product-main {
    flex-direction: column;
  }

  .product-summary {
    text-align: center;
  }

  .thumbnail-gallery img {
    width: 60px;
    height: 60px;
  }
}

.new-products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.product-item {
  flex: 1 1 200px;
  max-width: 250px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.2s ease;
  border: 1px solid #e1e1e1;
}

.product-item:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.product-item h3 {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.product-item p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.product-item form.cart {
  margin-top: auto;
}

.product-item button.single_add_to_cart_button {
  background: #0071a1;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.product-item button.single_add_to_cart_button:hover {
  background: #005f86;
}

@media screen and (max-width: 600px) {
  .product-item {
    max-width: 100%;
  }
}

.wc-block-components-product-metadata__description {
  display: none !important;
}

.wc-block-components-product-name {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: block;
}
