/* ===== BASE ===== */
html { scroll-behavior: smooth; }
:root { --header-h: 110px; }
@media (max-width: 768px) { :root { --header-h: 180px; } }
html { scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #FAF8F5;
  color: #444;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 30px 20px 10px;
  background: #FAF8F5;
  border-bottom: 1px solid #E5E5E5;
  position: sticky; top: 0; z-index: 1000;
}
header img { max-width: 900px; height: auto; }
nav {
  margin-top: 10px; display: flex; justify-content: center;
  gap: 15px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
nav a {
  text-decoration: none; color: #444;
  font-size: 16px; flex: 0 0 auto; padding: 6px 4px;
}
nav a:hover { color: #A67881; }

/* ===== SECTIONS ===== */
section { padding: 80px 40px; max-width: 1100px; margin: auto; }

.hero { text-align: center; margin-top: 30px; }
.hero h2 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 10px; color: #A67881; }
.hero p { font-size: 18px; margin-bottom: 30px; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 25px;
  background: #A67881; text-decoration: none; color: #fff;
  font-size: 16px; transition: background 0.3s ease;
}
.btn:hover { background: #8f5e69; }
.title { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 20px; color: #A67881; text-align: center; }

/* ===== IMAGES ===== */
.image-center { display: flex; justify-content: center; margin: 40px 0; }
.image-center img { transition: transform 0.3s ease; }
.image-center img:hover { transform: scale(1.05); }

/* Bague principale */
.image-center img.bague {
  max-width: 500px; height: auto;
}
@media (min-width: 769px) {
  .image-center img.bague { transform: translateX(-1cm); }
}
@media (max-width: 768px) {
  .image-center img.bague { max-width: 320px; transform: none; }
}

/* ===== STONES GRID ===== */
.stones {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 40px; align-items: start;
}
.stone-block { text-align: center; display: flex; flex-direction: column; align-items: center; }
.stone-block img.pierre {
  width: 180px; height: 180px; object-fit: contain; display: block;
}
.stone {
  background: #fff; padding: 20px; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.stone h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 10px; color: #A67881; }

/* ===== MODE D'EMPLOI ===== */
.mode-emploi {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px; margin-top: 40px;
}
.step { text-align: center; }
.step img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 10px;
}
.step p { font-size: 16px; color: #444; }

/* ===== SLIDESHOW ===== */
.slideshow {
  --crop-scale: 1.18;
  position: relative; width: 100%; max-width: 420px;
  aspect-ratio: 1/1; margin: 20px auto;
  overflow: hidden; border-radius: 16px;
}
.slideshow .slides { position: relative; height: 100%; }
.slideshow .slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; pointer-events: none;
  opacity: 0; transform: scale(var(--crop-scale));
  animation: fade 12s infinite;
}
.slideshow .slides img:nth-child(1) { animation-delay: 0s; }
.slideshow .slides img:nth-child(2) { animation-delay: 4s; }
.slideshow .slides img:nth-child(3) { animation-delay: 8s; }
@keyframes fade {
  0% { opacity: 0; } 5% { opacity: 1; }
  30% { opacity: 1; } 35% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slideshow .slides img {
    animation: none; opacity: 1; transform: none;
    position: static; display: block;
  }
.offre {
  background: #fff;
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 60px auto;
  max-width: 900px;
}

}

/* ===== CONTACT & FOOTER ===== */
.contact { text-align: center; }
.contact a {
  display: inline-block; margin: 10px; padding: 14px 28px;
  border-radius: 25px; background: #A67881;
  text-decoration: none; color: #fff;
  transition: all 0.3s;
}
.contact a:hover { background: #8f5e69; }
footer {
  text-align: center; padding: 20px;
  border-top: 1px solid #E5E5E5;
  font-size: 12px; color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header img { max-width: 100%; }
  nav { flex-wrap: wrap; justify-content: center; gap: 8px 12px; overflow-x: visible; }
  nav a { font-size: 14px; padding: 6px 8px; flex: 0 1 auto; }
  .image-center { flex-direction: column; align-items: center; gap: 30px; }
  .btn { padding: 12px 20px; font-size: 15px; }
  section { padding: 40px 20px; }
  .stones { grid-template-columns: 1fr; gap: 30px; }
  .stone-block img.pierre { width: 120px; height: 120px; }
  .mode-emploi { grid-template-columns: 1fr; gap: 20px; }
  .hero h2, .title { font-size: 22px; }
  .logo-desktop { display: none; }
  .logo-mobile { display: block; max-width: 280px; height: auto; margin: 0 auto 10px; }
}
@media screen and (min-width: 769px) {
  .logo-mobile { display: none; }
}
/* Pierres — mêmes dimensions forcées */
.stone-block img.pierre {
  width: 180px;
  height: 180px;
  object-fit: cover;   /* remplit le carré, même si ça coupe un peu */
  display: block;
}

@media (max-width: 768px) {
  .stone-block img.pierre {
    width: 120px;
    height: 120px;
    object-fit: cover;
  }
}
/* Réduire l’espace entre HERO et OFFRE */
.hero{
  padding-top: 30px !important;
  padding-bottom: 10px !important; /* au lieu des 80px hérités */
}

.offre{
  margin-top: 0 !important;        /* colle l’offre à la hero */
  padding: 32px 20px;               /* intérieur un peu plus compact */
}

/* (optionnel) si le slideshow au-dessus pousse trop */
.slideshow{ margin-bottom: 10px !important; }
section.hero{ padding: 30px 20px 10px !important; }
section.offre{ margin-top: 0 !important; }
/* Supprimer quasiment tout l’espace entre la hero et l’offre */
.hero {
  padding-bottom: 0 !important;   /* enlève l’espace sous le bloc hero */
  margin-bottom: 0 !important;    /* enlève toute marge basse */
}

.offre {
  margin-top: 0 !important;       /* colle directement contre la hero */
  padding-top: 20px !important;   /* garde juste un petit souffle interne */
}
.slideshow {
  --crop-scale: 1.18;
  position: relative;
  width: 100%;
  max-width: 420px;     /* largeur identique */
  aspect-ratio: 4/3;    /* hauteur réduite */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 16px;
}
.hero h2 {
  margin-bottom: 5px;   /* au lieu de 10px */
}

.title {
  margin-top: 20px;     /* si besoin, pour éviter trop d’air au-dessus */
  margin-bottom: 10px;  /* au lieu de 20px */
}
@media (max-width: 768px) {
  /* Bague sous le titre (section #bague) */
  #bague .image-center {
    justify-content: center;  /* centre le conteneur */
  }

  #bague .image-center img.bague {
    max-width: 320px;         /* taille mobile */
    transform: translateX(-20px); /* léger décalage à gauche */
  }
}
@media (max-width: 768px) {
  .hero h2,
  .title {
    font-size: 26px;   /* un peu plus grand sur mobile */
    line-height: 1.3;  /* garde une bonne lisibilité */
  }
}

.order-block .size-inline {
  color: #111;
  font-weight: 500;
}
/* --- Réduction de l'espace logo / menu sur mobile --- */
@media (max-width: 768px) {
  header {
    padding-top: 0.4rem;       /* réduit la marge haute */
    padding-bottom: 0.4rem;    /* réduit la marge basse */
  }

  header .logo-mobile {
    margin-bottom: 0.2rem;     /* rapproche le logo du menu */
  }
}
/* --- Menu rapproché du logo sur mobile --- */
@media (max-width: 768px) {
  header {
    padding-top: 0.3rem;     /* réduit la marge haute globale */
    padding-bottom: 0.3rem;  /* réduit la marge basse */
  }

  header .logo-mobile {
    margin-bottom: 0;        /* plus aucun espace sous le logo */
  }

  header nav {
    margin-top: -0.2rem;     /* remonte légèrement le menu sur le logo */
  }
}

