/* D&B Jewelry - dandbjewelry.fr */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #edf4fa;
  --fond-doux: #e2eef8;
  --ciel: #cde4f6;
  --ciel-vif: #aed3ef;
  --nacre: #fdfeff;
  --encre: #14181a;
  --encre-douce: #4f5d66;
  --topaze: #14181a;
  --topaze-fonce: #2c3439;
  --or: #c29e69;
  --or-pale: #e1c69c;
  --or-texte: #7d5c2e;
  --ligne: #cbdbe9;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --largeur: 1120px;
  --rayon: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--nacre);
  color: var(--encre);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}

.evitement:focus {
  left: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--or-texte);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--topaze);
  outline-offset: 3px;
  border-radius: 2px;
}

.conteneur {
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- En-tete ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 244, 251, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 24, 26, 0.08);
}

.entete-int {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.marque {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--encre);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.marque .esperluette {
  font-style: italic;
}

.marque .etincelle {
  fill: var(--or);
  flex: none;
  align-self: center;
}

.marque small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.nav-liens {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-liens a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--encre-douce);
  transition: color 0.2s ease;
}

.nav-liens a:hover {
  color: var(--encre);
}

.nav-liens a.bouton-plein,
.nav-liens a.bouton-plein:hover {
  color: #fff;
}

.nav-liens a[aria-current="page"] {
  color: var(--or-texte);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--or);
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bouton-plein {
  background: var(--topaze);
  color: #fff;
}

.bouton-plein:hover {
  background: var(--topaze-fonce);
}

.bouton-contour {
  border-color: var(--or);
  color: var(--encre);
  background: rgba(253, 254, 255, 0.65);
}

.bouton-contour:hover {
  border-color: var(--or-texte);
  background: #fff;
}

.bouton:active {
  transform: scale(0.98);
}

.bouton .fleche {
  transition: transform 0.2s ease;
}

.bouton:hover .fleche {
  transform: translateX(3px);
}

.entete .bouton {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 120px;
  background:
    linear-gradient(180deg, rgba(237, 244, 250, 0) calc(100% - 120px), var(--fond) 100%),
    radial-gradient(1100px 520px at 78% 8%, rgba(201, 226, 244, 0.85), transparent 65%),
    radial-gradient(700px 420px at 8% 92%, rgba(226, 237, 246, 0.9), transparent 60%),
    linear-gradient(180deg, #f3f8fc 0%, var(--fond) 100%);
  overflow: hidden;
}

.hero-int {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.chaine {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: clamp(300px, 100vw - 800px, 860px);
  pointer-events: none;
}

.chaine svg {
  width: 100%;
  height: 100%;
}

.chaine .fil {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: tracer 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}

.chaine .pendentif {
  opacity: 0;
  animation: paraitre 0.9s ease 1.55s forwards;
}

@keyframes tracer {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes paraitre {
  to {
    opacity: 1;
  }
}

.sur-titre {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-texte);
  margin-bottom: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-logo {
  margin: 8px 0 24px;
}

.hero-logo img {
  display: block;
  width: min(310px, 66vw);
  height: auto;
}

.hero-texte {
  font-size: 1.08rem;
  color: var(--encre-douce);
  max-width: 33em;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--encre-douce);
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-note svg {
  flex: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-douce {
  background: var(--fond-doux);
}

.section-tete {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-tete h2,
.section-tete h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 14px 0 16px;
}

.section-tete p {
  color: var(--encre-douce);
}

.separateur {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 24px;
}

.separateur::before,
.separateur::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-pale));
}

.separateur::after {
  background: linear-gradient(90deg, var(--or-pale), transparent);
}

.separateur .losange {
  width: 7px;
  height: 7px;
  background: var(--or);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Vitrine ---------- */

.grille-bijoux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 28px;
}

.carte {
  background: var(--nacre);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(34, 56, 78, 0.05), 0 12px 28px -22px rgba(34, 56, 78, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carte:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(34, 56, 78, 0.25);
}

.carte-visuel {
  position: relative;
  aspect-ratio: 4 / 3.4;
  background: #f6f9fc;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 26, 0.06);
  display: grid;
  place-items: center;
}

.carte-visuel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: 44%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(31, 58, 82, 0.13), transparent 68%);
}

.carte-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--encre);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.carte-corps h3 a {
  color: inherit;
}

.carte-corps h3 a:hover {
  color: var(--or-texte);
}

.carte-visuel svg {
  position: relative;
  z-index: 1;
  height: 56%;
  width: auto;
  max-width: 78%;
  filter: drop-shadow(0 8px 10px rgba(31, 58, 82, 0.10));
  transition: transform 0.35s ease;
}

.carte:hover .carte-visuel svg {
  transform: scale(1.04);
}

.carte-corps {
  padding: 20px 22px 22px;
}

.carte-corps h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.2;
}

.carte-detail {
  font-size: 0.88rem;
  color: var(--encre-douce);
  margin-top: 4px;
}

.carte-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.carte-prix {
  font-weight: 500;
  font-size: 1.02rem;
}

.carte-lien {
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  margin: -10px 0;
}

.carte-lien:hover {
  color: #5c421f;
}

.carte-lien span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.carte-lien:hover span {
  transform: translateX(3px);
}

.vitrine-pied {
  margin-top: 48px;
  text-align: center;
}

.vitrine-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--encre-douce);
}

/* ---------- Etapes ---------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
}

.etape {
  position: relative;
  padding-top: 8px;
}

.etape-nombre {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--or-texte);
  margin-bottom: 14px;
}

.etape h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.etape p {
  color: var(--encre-douce);
  font-size: 0.98rem;
}

.etapes-note {
  margin-top: 52px;
  padding: 22px 28px;
  background: var(--nacre);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.etapes-note svg {
  flex: none;
}

/* ---------- A propos ---------- */

.apropos {
  display: block;
}

.apropos-texte {
  max-width: 640px;
}

.apropos-texte .apropos-titre {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 14px 0 16px;
}

.apropos-texte p + p {
  margin-top: 16px;
}

.apropos-texte p {
  color: var(--encre-douce);
}

.apropos-texte .sur-titre {
  margin-bottom: 0;
}

/* ---------- Pied de page ---------- */

.pied {
  background: var(--encre);
  color: #c8d6e2;
  padding: 72px 0 36px;
}

.pied a {
  color: #dce8f2;
}

.pied a:hover {
  color: #fff;
}

.pied-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.pied .marque {
  color: #f2f7fb;
  margin-bottom: 16px;
}

.pied .marque .esperluette {
  color: var(--or-pale);
}

.pied .marque small {
  color: #9db2c4;
}

.pied-blurb {
  font-size: 0.94rem;
  max-width: 30em;
}

.pied .pied-titre {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9db2c4;
  margin-bottom: 18px;
}

.pied ul {
  list-style: none;
}

.pied li + li {
  margin-top: 10px;
}

.pied-bas {
  border-top: 1px solid rgba(157, 178, 196, 0.25);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #9db2c4;
}

.pied-simple {
  padding: 44px 0;
}

.pied-bas-seul {
  border-top: none;
  padding-top: 0;
}

/* ---------- Page produit ---------- */

.fil-ariane {
  margin-bottom: 32px;
  font-size: 0.92rem;
}

.fil-ariane a {
  color: var(--encre-douce);
}

.fil-ariane a:hover {
  color: var(--encre);
}

.produit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.produit-visuel {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  background: #f6f9fc;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  display: grid;
  place-items: center;
}

.produit-visuel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 40%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(31, 58, 82, 0.13), transparent 68%);
}

.produit-visuel svg {
  position: relative;
  z-index: 1;
  height: 58%;
  width: auto;
  max-width: 76%;
  filter: drop-shadow(0 10px 12px rgba(31, 58, 82, 0.10));
}

.visuel-note {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--or-texte);
  text-align: center;
}

.produit-infos h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin: 10px 0 8px;
}

.produit-prix {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
  margin: 4px 0 24px;
}

.produit-description {
  color: var(--encre-douce);
  max-width: 34em;
  margin-bottom: 28px;
}

.produit-details {
  border-top: 1px solid var(--ligne);
  margin-bottom: 30px;
}

.produit-details > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--ligne);
}

.produit-details dt {
  color: var(--encre-douce);
  font-size: 0.92rem;
}

.produit-details dd {
  font-weight: 500;
  text-align: right;
}

.produit-achat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.produit-reassurance {
  margin: 26px 0 14px;
}

.produit-note {
  font-size: 0.85rem;
  color: var(--encre-douce);
  max-width: 34em;
}

.badge-vendu {
  display: inline-block;
  background: var(--encre);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
}

/* ---------- Page mentions legales ---------- */

.page-simple {
  padding-block: 72px 96px;
  max-width: 720px;
  margin-inline: auto;
}

.page-simple h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 36px;
}

.page-simple h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 36px 0 12px;
}

.page-simple p {
  color: var(--encre-douce);
}

.a-completer {
  color: var(--encre-douce);
  font-style: italic;
}

/* ---------- Apparitions au defilement ---------- */

.js .revele {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .revele.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    padding-bottom: 210px;
  }

  .chaine {
    left: 0;
    width: 100%;
    top: auto;
    bottom: -12px;
    height: 180px;
  }

  .etapes {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .produit {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pied-grille {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .nav-liens .nav-ancre {
    display: none;
  }

  .hero {
    padding: 40px 0 180px;
  }

  .chaine {
    height: 160px;
  }

  .grille-bijoux {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .carte-visuel {
    aspect-ratio: 1 / 1;
  }

  .carte-visuel svg {
    height: 52%;
  }

  .carte-corps {
    padding: 12px 14px 16px;
  }

  .carte-corps h3 {
    font-size: 1.02rem;
  }

  .carte-detail {
    font-size: 0.78rem;
  }

  .carte-pied {
    margin-top: 10px;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .carte-lien {
    font-size: 0.8rem;
  }

  .produit-visuel {
    aspect-ratio: 16 / 10;
  }

  .produit-visuel svg {
    height: 62%;
  }

  .fil-ariane {
    margin-bottom: 20px;
  }

  .produit {
    gap: 28px;
  }

  .produit-details > div {
    padding: 10px 2px;
  }

  .produit-description {
    margin-bottom: 22px;
  }

  .pied {
    padding: 56px 0 28px;
  }

  .pied-grille {
    gap: 28px;
    margin-bottom: 40px;
  }

  .hero-int {
    text-align: center;
  }

  .hero-logo img {
    margin-inline: auto;
  }

  .hero-texte {
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .bouton {
    justify-content: center;
  }

  .hero-note {
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }

  main.section {
    padding-top: 44px;
  }

  .produit-achat {
    flex-direction: column;
    align-items: stretch;
  }

  .produit-achat .bouton {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .chaine .fil {
    animation: none;
    stroke-dashoffset: 0;
  }

  .chaine .pendentif {
    animation: none;
    opacity: 1;
  }

  .revele {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .carte,
  .bouton,
  .bouton .fleche {
    transition: none;
  }
}
