:root { --gold:#FFD700; --gold2:#D4AF37; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: 'Cormorant Garamond', serif;
  background-color: #000;
  color: var(--gold2);
  width: 100vw;
  min-height: 100vh;
}


/* Titre */
.container h1 {
  text-align: left;
  font-size: 2em;
  margin: 10px 10px 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 1px 1px 8px #000;
}

/* Containers */
.container { width: 100%; padding: 10px; box-sizing: border-box; max-width: 100vw; }

.main-layout {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: flex-start;
}

/* Colonnes */
.left-panel, .right-panel { width: 180px; max-width: 100%; }
.center-panel { flex: 1; min-width: 0; margin-bottom: 30px; max-width: 100%; }
.right-panel h2, .left-panel h2 { text-align: center; font-size: 1.3em; color: var(--gold); margin-bottom: 10px; }

/* Filtres */
.filters {
  display: flex; flex-direction: column; gap: 10px;
  background: #111; padding: 20px; border-radius: 10px; border: 1px solid #333;
}
.filters button {
  margin: 5px 0; padding: 8px 16px; font-size: 1em; border: none; border-radius: 4px;
  background-color: var(--gold); color: #000; cursor: pointer; transition: background-color 0.3s;
}
.filters button:hover { background-color: #e0be00; }

/* Navigation */
.navigation {
  text-align: center; margin: 50px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.navigation button {
  font-size: 1.2em; padding: 10px 20px; cursor: pointer; background: transparent;
  border: 2px solid var(--gold2); color: var(--gold2); border-radius: 8px; transition: .3s;
  max-width: 200px; width: 100%;
}
.navigation button:hover { background: var(--gold2); color: #000; }

/* Zone principale */
#montres-container { position: relative; min-height: 500px; margin-bottom: 0; max-width: 100vw; }

/* Fiches */
/* Chaque fiche reste dans le flux, la page prend la bonne hauteur */
.montre {
  position: relative;   /* plus d’absolu */
  display: none;        /* on affiche seulement l’active */
  width: 100%;
}
.montre.active {
  display: block;
}

/* (Optionnel) si tu veux garder un fondu, ajoute: */
.montre.active { animation: fadeIn .35s ease-in; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }



/* Visuel principal */
.main-display {
  position: relative; height: 420px; border-radius: 10px; overflow: hidden;
  background-size: cover; background-position: center; cursor: pointer;
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}
.main-display::after { content:""; position:absolute; inset:0; background: rgba(0,0,0,0.35); }

/* Rubans */
.ribbon {
  position: absolute; top: 30px; right: -40px;
  width: 200px; text-align: center; transform: rotate(45deg); z-index: 1001;
}
.ribbon span {
  display: block; background: #E53935; color: #fff; font-weight: 1000; padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.4); letter-spacing: .5px;
}
.ribbon-left {
  position: absolute; top: 30px; left: -40px; width: 200px; text-align: center;
  transform: rotate(-45deg); z-index: 1000;
}
.ribbon-left span { display: block;  color: #fff; font-weight: 1000; padding: 10px 0; box-shadow: 0 2px 6px rgba(0,0,0,.4); letter-spacing: .5px; }

/* Infos haut gauche (décalées) */
.info{
  position:absolute; z-index:2; color:var(--gold2);
  top:10%; left:70px; /* ← décalé vers la droite */
  background:rgba(0,0,0,.6);
  padding:14px 16px; border:1px solid var(--gold2);
  border-radius:10px; max-width:78%; backdrop-filter: blur(2px);
}
.info h1{
  margin:4px 0 0; font-size:1.8em; font-weight:600; color: var(--gold);
  text-shadow:1px 1px 4px #000;
}


.info .ref {
  font-family: 'Roboto', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin:0; font-size:1.06em; 
  color:#f8e7b8;
}

.ref-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ref, .etat {
  margin: 0;
}



.btn-more{
  margin-top:8px; padding:6px 10px; font-size:.95em; background:transparent;
  color:var(--gold); border:1px solid var(--gold); border-radius:6px; cursor:pointer;
}
.btn-more:hover{ background:var(--gold); color:#000; }

/* Coin bas GAUCHE : MARQUE */
.corner-bottom-left{
  position:absolute; left:14px; bottom:14px; z-index:3;
  display:flex; align-items:flex-end; justify-content:flex-start;
}

/* Coin bas DROITE : PRIX */
.corner-bottom-right{
  position:absolute; right:14px; bottom:14px; z-index:3;
  display:flex; align-items: center; justify-content: space-between;
  /* border:#D4AF37 1px solid; border-radius:10px; padding:8px 12px;
  background:rgba(0,0,0,.65); box-shadow:0 2px 8px rgba(212,175,55,.35); */
}

/* Badge marque : logo OU texte */
.brand-badge{
  background:rgba(0,0,0,.55); border:1px solid var(--gold2); border-radius:10px; padding:6px;
  display:inline-flex; align-items:center; justify-content:center;
  min-width:54px; min-height:54px; box-shadow:0 2px 8px rgba(212,175,55,.35);
}
.brand-badge img{ width:48px; height:48px; object-fit:contain; display:block; transition:transform .15s ease; }
.brand-badge:hover img{ transform:scale(1.08); }
.brand-badge.brand-text{ padding:6px 10px; min-width:auto; min-height:auto; font-weight:700; font-size:1.05em; color:var(--gold); }

/* Prix */
.price-tag{
  background:rgba(0,0,0,.65); border:1px solid var(--gold);
  border-radius:10px; padding:8px 12px; font-size:1.4em; font-weight:700; color:var(--gold);
  box-shadow:0 2px 10px rgba(212,175,55,.35);
}
.price-tag .price-old{ text-decoration:line-through; opacity:.7; margin-right:.35em; }
.price-tag .price-new{ font-weight:800; }

.cfa{
 color: #fff  !important; 
}

/* Galerie */
.gallery { display:flex; margin-top:15px; margin-bottom:30px; gap:10px; }
.gallery img{
  flex:1; height:120px; object-fit:cover; border-radius:8px; cursor:pointer;
  box-shadow:0 2px 5px rgba(212,175,55,.3); border:2px solid transparent; transition:.3s;
}
.gallery img:hover { border-color: var(--gold2); }

/* Autres produits (droite) */
.thumbnail-strip{
  display:flex; flex-direction:column; gap:10px; overflow-y:auto; padding:15px 0; margin-top:30px;
  border-top:1px solid #333; background:#111; align-items:center; max-height:600px;
}
.thumbnail{
  flex:0 0 auto; width:120px; height:80px; border-radius:8px; overflow:hidden;
  box-shadow:0 2px 8px rgba(212,175,55,.4); cursor:pointer; transition: transform .3s, border .3s;
  border:2px solid transparent;
}
.thumbnail:hover{ transform:scale(1.05); border-color: var(--gold2); }
.thumbnail img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Modale */
.modal{
  display:none; position:fixed; inset:0; z-index:999;
  background:rgba(0,0,0,.95); justify-content:center; align-items:center;
}
.modal-content{ position:relative; max-width:90%; max-height:90%; }
.modal-content img{
  width:100%; max-height:80vh; object-fit:contain; border-radius:10px; box-shadow:0 0 20px rgba(212,175,55,.4);
}
.close,.prev,.next{
  position:absolute; color:var(--gold2); font-size:2em; cursor:pointer; background:rgba(0,0,0,.6);
  padding:10px; border-radius:50%; border:none; z-index:1000;
}
.close{ top:10px; right:20px; }
.prev{ top:50%; left:-50px; transform:translateY(-50%); }
.next{ top:50%; right:-50px; transform:translateY(-50%); }

/* Footer */
.footer { text-align:center; color:var(--gold2); font-size:1.5em; }
.footer a { color:var(--gold2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Réductions espaces bas */
.container{ padding-bottom:0 !important; }
.main-layout{ margin-bottom:0 !important; }
.center-panel{ margin-bottom:0 !important; }
#montres-container{ margin-bottom:0 !important; }
.navigation{ margin-top:50px; margin-bottom:-10px !important; }
.footer{ margin-top:0 !important; padding-top:0 !important; }

/* En savoir plus */
.more-panel{
  margin-top:10px; background:#111; border:1px solid #333; border-radius:10px; padding:12px; color:#f8e7b8;
}
.more-panel p{ margin:.3em 0; }

/* Responsive */
@media (max-width: 1024px){
  .main-layout{ flex-direction:column; align-items:center; padding:0; }
  .left-panel, .right-panel, .center-panel{ width:100%; max-width:100vw; padding:0 10px; box-sizing:border-box; }
  .thumbnail-strip{ flex-direction:row; flex-wrap:wrap; justify-content:center; }
  .filters{ flex-direction:row; flex-wrap:wrap; justify-content:center; }
  .navigation{ flex-wrap:wrap; justify-content:center; gap:10px; margin:20px 0 0 !important; }
  .navigation button{ width:100%; max-width:200px; }
  #montres-container{ margin-bottom:50px; }
}

/* Ajuste le décalage de .info sur mobile */
@media (max-width: 640px){
  .info{ left:16px; max-width:90%; }
}


/* Le container visuel principal */
.main-display {
  position: relative;
  min-height: 520px;           /* ajuste à ta hauteur centrale */
  background-size: cover;
  background-position: center;
  /* largeur fixe ou responsive selon ton layout */
  /* Optional: border-radius, overlay, etc. */
  --info-w: 60%;               /* largeur du bloc info à gauche */
  padding: 16px;               /* pour respirer un peu l’info */
}

/* Bloc info (gauche) */
.main-display .info {
  position: absolute;
  top: 10%;
  left: 5%;
  width: var(--info-w);
  max-width: 560px;            /* garde-fou si très large */
  z-index: 3;
  color: #fff;                 /* si texte sur image sombre/clair */
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* Panneau description (droite) */
.main-display .more-panel {
  position: absolute;
  top: 40%;
  left : 20px;                /* 20px pour aligner avec info */
  
  height: 100%;                                /* même hauteur que main-display */
  width: 90%;                               /* largeur du panneau */;
  background: rgba(255,255,255,0.96);
  color: #111;
  border-left: 1px solid rgba(0,0,0,.1);
  z-index: 2;                                  /* sous l’info si chevauchement */
  display: block;
  margin-left: 20px;
}

/* Contenu scrollable à l’intérieur du panneau */
.main-display .more-panel__inner {
  height: 80%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
}

.main-display .more-panel .desc-html {
  flex: 1 1 auto;
  overflow: auto;             /* ← scroll ici */
  min-height: 0;              /* nécessaire avec flex pour que overflow marche */
}

.main-display .more-panel .meta {
  flex: 0 0 auto;
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,.1);
  padding-top: 8px;
}

/* Coins bas gauche/droite gardent leur position */
.corner-bottom-left,
.corner-bottom-right {
  position: absolute;
  bottom: 12px;
}

.corner-bottom-left { left: 16px;  z-index: 3; }
.corner-bottom-right { right: 16px; z-index: 3; }

/* Responsive: si l'écran est étroit, passe la desc en plein large sous l’info */
@media (max-width: 900px) {
  .main-display { --info-w: 100%; }
  .main-display .more-panel {
    width: 100%;
    left: 0;
    top: auto;
    bottom: 0;
    height: 45vh;            /* panneau docké en bas avec scroll */
  }
}


.main-display .more-panel[hidden] { display:none; }
.main-display .more-panel {
  animation: slideIn .18s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(8px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
