/* --- REGLES DE BASE --- */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: #656466;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 20px 40px 20px;
  text-align: center;
}

/* Style identique à .bio-text h2 de la galerie */
.titre-galerie-style {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
  font-weight: 300 !important;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-align: center;
  margin-bottom: 25px;
}

/* ==========================================
   HERO BANNER & NAVIGATION EN HAUT À DROITE
   ========================================== */

.hero-banner {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  background-image: url('banniere-fond.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /* Empêche le dégradé de dépasser */
}

/* DEGRADÉ EN FONDU VERS LE BAS (TRANSITION FOND NOIR) */
.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px; /* Hauteur de la zone de transition en fondu */
  background: linear-gradient(to bottom, transparent 0%, #656466 100%);
  pointer-events: none; /* Laisse passer les clics au travers */
  z-index: 1;
}

/* S'assurer que le contenu reste au-dessus du dégradé */
.header-container-right,
.hero-banner-content {
  position: relative;
  z-index: 2;
}

/* Réduction légère des espaces intérieurs pour s'ajuster parfaitement aux 400px */
.header-container-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.8rem 0 0 0; /* Alignement tout à droite */
}

/* Styles des liens du menu (taille réduite) */
.header-container-right .main-nav ul {
  display: flex;
  gap: 12px; /* Espacement plus réduit entre Impressions et Boutique */
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-container-right .main-nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem; /* Taille plus petite pour éviter les chevauchements */
  letter-spacing: 0.5px;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.header-container-right .main-nav a:hover,
.header-container-right .main-nav a.active {
  color: #c0392b;
  border-bottom: 2px solid #c0392b;
}

/* SURÉLÉVATION DU BLOC TEXTE (Dégage le dégradé) */
.hero-banner-content {
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 5.5rem; /* Ajustez cette valeur (ex: 6.5rem) pour remonter encore si besoin */
  max-width: 620px;
  text-align: left;
}

/* NOUVEAU STYLE NOM D'ARTISTE (À LA PLACE D'AMPPROD) */
.hero-brand-logo {
  margin-bottom: 0.6rem;
}

.brand-artist {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #c0392b; /* Rouge identique à ART & DESIGN */
  letter-spacing: 0.5px;
}

.brand-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #555555;
  font-weight: 600;
}

.hero-banner-title {
  font-family: 'Cinzel', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  margin: 0 0 0.8rem 0;
}

.hero-accent { color: #c0392b; font-size: 2.1rem; }

.hero-products-list {
  font-size: 1.05rem;
  color: #333333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-badge-rb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.2rem;
}

.rb-icon {
  background-color: #e61938;
  color: #ffffff;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 1rem;
}

.rb-text { font-weight: 800; color: #222222; letter-spacing: 1px; font-size: 1rem; }

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: #444444;
  letter-spacing: 0.8px;
  margin: 0;
}

/* BANNIÈRE COMPACTE POUR PRODUIT.HTML */
.hero-banner-compact {
  height: 200px;
  min-height: 200px;
  max-height: 200px;
}

.hero-banner-compact .hero-banner-content {
  padding-bottom: 1.5rem;
}

.hero-banner-compact .hero-banner-title {
  font-size: 1.8rem;
  margin-bottom: 0;
}



/* ==========================================
   BOUTON "RETOUR EN HAUT" (SCROLL TO TOP)
   ========================================== */
#btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

#btn-scroll-top:hover {
  background-color: #e50914;
  border-color: #e50914;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}


/* --- EN-TÊTE BOUTIQUE --- */
.boutique-header {
  text-align: center;
  padding: 40px 20px 20px 20px;
}

.titre-principal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 200 !important;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* --- STYLE SOUS-TITRE (IDENTIQUE À LA GALERIE) --- */
.sous-titre-galerie {
  font-family: 'Cormorant Garamond', 'Cinzel', Georgia, serif;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 400;
  color: #e0e0e0;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-align: center;
}

/* --- THÉMATIQUES PRODUIT (BADGES) --- */
.thematiques-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.thematique-item {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #e50914; /* Rouge signature de la boutique */
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.thematique-item:hover {
  border-color: #e50914;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  background-color: #181818;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
}

.site-subtitle {
  font-size: 1rem;
  color: #bbbbbb;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: #bbbbbb;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #e50914; /* Rouge signature */
}

/* --- HERO SECTION (ACCROCHE) --- */
.hero-section {
  text-align: center;
  padding: 10px 20px 30px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Style titre principal d'accroche identique à la galerie */
.hero-section h1,
.style-galerie-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 200 !important; /* Force la finesse ultra-light */
  letter-spacing: 3px;         /* Espacement aéré entre les lettres */
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

/* Sous-titres de catégories généraux */
.titre-categorie-galerie {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 300 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.hero-section.text-bottom {
  padding-top: 30px;
  padding-bottom: 20px;
}

.hero-content {
  text-align: justify;
  text-justify: inter-word;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #e0e0e0;
  line-height: 1.7;
  text-align-last: center;
}

.hero-content p {
  font-size: 1.08rem;
  color: #cccccc;
  line-height: 1.75;
  margin: 0;
  letter-spacing: 0.2px;
}

.hero-content strong {
  color: #ffffff;
  font-weight: 600;
}


/* ==========================================
   BOUTON RAFRAÎCHIR DYNAMIQUE (PRODUIT.HTML)
   ========================================== */
.zone-rafraichir {
  display: flex;
  justify-content: center;
  margin: 25px 0 35px 0;
}

.btn-refresh {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-refresh .icon-refresh {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.6s ease;
}

.btn-refresh:hover {
  background-color: #262626;
  border-color: #e50914;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.25);
  transform: translateY(-2px);
}

/* Animation lors du clic */
.btn-refresh.anim-tourne .icon-refresh {
  transform: rotate(360deg);
}


/* --- BARRE DE RECHERCHE COMPACTE A GAUCHE --- */
.search-container {
  max-width: 320px;       /* Largeur nettement plus petite */
  margin: 15px 0 25px 30px; /* Alignée à gauche, avec marge de 30px identique aux grilles */
  padding: 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #dedfda;
  border: 1px solid #333333;
  border-radius: 20px;   /* Bords légèrement arrondis */
  padding: 6px 12px;     /* Hauteur plus basse */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
  border-color: #e50914;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.25);
}

.search-icon {
  font-size: 0.9rem;
  margin-right: 8px;
  opacity: 0.6;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #121316;
  font-size: 0.85rem;    /* Texte plus discret */
}

.search-box input::placeholder {
  color: #777777;
}

.clear-btn {
  background: none;
  border: none;
  color: #888888;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 4px;
}

.clear-btn:hover {
  color: #ffffff;
}

.search-count {
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  margin: 15px 0 20px 0;
  letter-spacing: 0.5px;
}

/* Adaptation mobile : recentrage discret sous 767px */
@media (max-width: 767px) {
  .search-container {
    max-width: 280px;
    margin: 15px auto 20px auto; /* Centré sur mobile pour garder l'équilibre */
  }
}

/* --- CONTENEUR DE LA GRILLE --- */
#grille-index {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 30px 60px 30px;
}

/* --- GRILLE RESPONSIVE --- */
.grid-produits {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-designs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

/* --- CARTES PRODUITS & VIGNETTES --- */
.carte-produit {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column-reverse; /* Titre au-dessus de l'image */
}

.vignette-design {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.carte-produit:hover,
.vignette-design:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  border-color: #444444;
}

/* --- IMAGES & ZOOM --- */
.carte-produit img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  background-color: #252525;
  transition: transform 0.4s ease;
}

.vignette-design img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  background-color: #252525;
  transition: transform 0.4s ease;
}

.carte-produit:hover img,
.vignette-design:hover img {
  transform: scale(1.05);
}

/* --- TEXTE PRODUITS (HARMONISÉ AVEC LA GALERIE) --- */
.carte-produit .nom-produit {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  padding: 12px 8px;
  font-size: 1.05rem;
  font-weight: 200 !important; /* Finesse ultra-light identique à la galerie */
  letter-spacing: 2px !important;  /* Espacement aéré */
  text-align: center;
  color: #e0e0e0;
  background-color: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  text-transform: uppercase;
  display: block;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Survol : passage au rouge et léger agrandissement */
.carte-produit:hover .nom-produit {
  color: #ffffff;
  transform: scale(1.04);
}

/* --- TITRES THÉMATIQUES (MODE & ACCESSOIRES, ETC.) --- */
.titre-thematique {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.0rem;
  font-weight: 200 !important; /* Finesse ultra-light */
  letter-spacing: 3px;         /* Espacement étiré */
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin: 40px 0 20px 0;
}

.titre-thematique:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}

/* --- MESSAGE INTERACTIF REFRESH --- */
.btn-refresh-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px dashed #e50914;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin: 10px 0 25px 0;
  transition: all 0.3s ease;
}

.btn-refresh-message span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-refresh-message:hover {
  background-color: #261214;
  color: #ffffff;
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.25);
}

/* --- FOOTER --- */
.site-footer {
  background-color: #515354;
  border-top: 1px solid #2a2a2a;
  margin-top: 40px;
  padding-top: 10px;
  padding-bottom: 30px;
}

/* Section Réseaux / Boutons en bas de page */
.social-links {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.site-footer h3 {
    text-align: center;
    border-left: none;
    padding-left: 0;
    font-size: 1em;
    margin-bottom: 25px;
}

.btns-social-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* --- Boutons d'achat --- */
.buy-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buy-btn {
    display: block;
    padding: 14px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.buy-btn:hover {
    border-color: #e50914;
    color: #e50914;
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- BOUTON FLECHE RETOUR BOUTIQUE --- */
.nav-back-container {
  padding: 20px 0 10px 20px;
}

.btn-retour-fleche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background-color: #1e1e1e;
  border: 1px solid #333333;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.btn-retour-fleche img {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-retour-fleche:hover {
  background-color: #2a2a2a;
  border-color: #e50914;
  transform: translateX(-5px);
}

.btn-retour {
  display: inline-block;
  color: #bbbbbb;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.btn-retour:hover {
  color: #e50914;
  transform: translateX(-4px);
}

#page-produit {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 30px 60px 30px;
}

html {
  scroll-behavior: smooth;
}

/* --- EN-TÊTE PRODUIT DÉTAILLÉ (HARMONISÉ) --- */
.produit-details-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
}

.produit-details-header h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 400 !important; /* Typographie fine galerie */
  color: #fbfefd;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.produit-description-texte {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* --- ENCADRÉ & CONTENEUR BAS --- */
.caracteristiques-box {
  position: relative;
  background-color: #515354;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #e50914;
  border-radius: 8px;
  padding: 20px 25px 60px 25px;
  text-align: left;
  margin-top: 20px;
}

.retour-bas-container {
  display: flex;
  justify-content: flex-end;
  max-width: 1400px;
  margin: 30px auto 0 auto;
  padding: 0 10px;
}

/* --- BOUTON FLECHE & TOOLTIP --- */
.btn-retour-fleche {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #252525;
  border: 1px solid #3d3d3d;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  z-index: 10;
  text-decoration: none;
}

.caracteristiques-box .btn-retour-fleche {
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.btn-retour-fleche img {
  width: 18px;
  height: 18px;
  display: block;
}

.btn-retour-fleche:hover {
  background-color: #333333;
  border-color: #e50914;
  transform: translateX(-4px);
}

.btn-retour-fleche::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #444444;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.btn-retour-fleche:hover::after {
  opacity: 1;
  visibility: visible;
}

.caracteristiques-box h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.caracteristiques-box ul {
  margin: 0;
  padding-left: 20px;
  color: #bbb;
}

.caracteristiques-box li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.caracteristiques-box li:last-child {
  margin-bottom: 0;
}

/* --- ANIMATION DES VIGNETTES DESIGNS --- */
.vignette-design .nom-design {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 10px 6px;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  color: #dddddd;
  background-color: #1e1e1e;
  border-top: 1px solid #2a2a2a;
  transition: color 0.3s ease, transform 0.3s ease;
  display: block;
}

.vignette-design:hover .nom-design {
  color: #e50914;
  transform: scale(1.04);
}

/* ==========================================
   IMAGES ET ZOOM (PC SURVOL + MOBILE TACTILE)
   ========================================== */

/* 1. Inactivation des débordements sur les cartes */
.carte-produit,
.vignette-design {
  overflow: hidden; /* Garantit que l'image zoomée ne dépasse pas des coins arrondis */
  -webkit-tap-highlight-color: transparent; /* Supprime le carré bleu de sélection sur mobile */
  touch-action: manipulation;
}

.carte-produit img,
.vignette-design img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  background-color: #252525;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* 2. Zoom au survol PC (Souris) */
.carte-produit:hover img,
.vignette-design:hover img {
  transform: scale(1.12); /* Augmentation à 12% pour un effet plus visible */
}

/* 3. Zoom au toucher / appui long Mobile (Tactile) */
.carte-produit:active img,
.vignette-design:active img {
  transform: scale(1.15); /* Zoom légèrement supérieur au maintien */
}

/* ==========================================
   PRÉVISUALISATION DU DESIGN PLEIN ÉCRAN
   ========================================== */

#design-preview-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Fondu d'apparition doux et progressif */
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#design-preview-fullscreen.active {
  opacity: 1;
  visibility: visible;
}

#design-preview-fullscreen img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  /* Départ à une taille réduite pour un zoom progressif */
  transform: scale(0.85);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#design-preview-fullscreen.active img {
  transform: scale(1);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1023px) {
  .header-container {
    padding: 15px 20px;
  }



  #grille-index {
    padding: 20px 20px 40px 20px;
  }
  .grid-produits {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}

@media (max-width: 960px) {
/* 1. La bannière s'agrandit pour laisser respirer le contenu */
  .hero-banner {
    height: auto;
    min-height: 280px;
    max-height: none;
    background-position: center center;
  }

/* 2. Voile sombre resserré sur la gauche */
  .hero-banner-content {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(3px);
    padding: 1.2rem 1rem 1rem 1rem;
    margin: 10px auto 10px 10px; /* Colle le bloc à gauche avec 10px de marge */
    max-width: 60%;            /* Réduit la largeur pour ajuster au texte */
    border-radius: 8px;
  }

  /* 3. Réduction des typographies */
  .brand-artist {
    font-size: 1.5rem;
  }

  .hero-banner-title {
    font-size: 1.8rem;
  }

  .hero-accent {
    font-size: 1.5rem;
  }

  .hero-products-list {
    font-size: 0.9rem;
  }

  .hero-tagline {
    font-size: 0.75rem;
  }
}

@media (max-width: 880px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .grid-produits {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .grid-designs {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .carte-produit .nom-produit {
    font-size: 0.9rem;
  }

  .hero-section {
    padding: 15px 15px 20px 15px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 18px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-lead {
    font-size: 1.05rem;
    text-align-last: left;
  }

  .hero-content p {
    font-size: 0.99rem;
  }

  .titre-thematique {
    font-size: 1.3rem;
    margin: 40px 0 15px 0;
    padding-top: 15px;
  }
}

@media (max-width: 560px) {

  .hero-banner-content {
   
    max-width: 60%;            /* Réduit la largeur pour ajuster au texte */
    border-radius: 8px;
  }

  /* 3. Réduction des typographies */
  .brand-artist {
    font-size: 1.2rem;
  }

  .hero-banner-title {
    font-size: 1.5rem;
  }

  .hero-accent {
    font-size: 1.2rem;
  }

  .hero-products-list {
    font-size: 0.7rem;
  }

  .hero-tagline {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  #grille-index {
    padding: 15px 14px 30px 14px;
  }

  .grid-produits {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-section h1 {
    font-size: 1.6rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }

  .carte-produit .nom-produit {
    padding: 8px 4px;
    font-size: 0.8rem;
  }

  .titre-thematique {
    font-size: 1.2rem;
    margin: 35px 0 12px 0;
    padding-top: 12px;
  }
}