/* E.T.D Projects - etd-projects.fr - contact@etd-projects.fr */

/* ============ TOPBAR / HEADER ============ */
/* Barre noire pleine, collante en haut. Gauche : liens d'ancre vers les
   sections de la page (defilement). Droite : langue + icones (compte,
   recherche, panier). z-index 400 : au-dessus du contenu hero (z 300),
   sous la modale (1000) et le menu mobile (950). */
.topbar {
  background: var(--ink);
  color: #f3efec;
  position: sticky;
  top: 0;
  z-index: 400;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
  max-width: none;
  padding-inline: clamp(18px, 3vw, 46px);
}

/* ---- Gauche : liens d'ancre vers les sections ---- */
.topbar__nav-left {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topbar__nav-left a { color: #e7e1dc; transition: color 0.2s; }
.topbar__nav-left a:hover { color: #fff; }

/* ---- Droite : langue + icones ---- */
.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e7e1dc;
}
.lang svg { width: 12px; height: 12px; }
.topbar__icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f3efec;
  position: relative;
  transition: opacity 0.2s;
}
.icon-btn:hover { opacity: 0.7; }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -7px; right: -9px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink-cta);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
}
.burger { display: none; color: #f3efec; }

/* ============ HERO + GALERIE (line-art unique traversant les deux) ============ */
.hero-wrap { position: relative; background: #fff; }

/* line-art vectorielle : ancree sur le wrapper, part du hero et deborde dans la galerie */
.lineart-wrap {
  position: absolute;
  /* premier plan dans le hero (au-dessus mannequin, barre rose, textes),
     mais sous le header (400) et la modale (1000). */
  z-index: 350;
  top: 96px;
  /* La ligne art est ancree au bord du CONTENU centre (--container 1240px), pas au bord de
     l'ecran. Sur grand ecran elle reste donc solidaire du hero (elle rentre avec le contenu au
     lieu de filer tout a droite) ; sur ecran <= container elle reste a ~14px du bord. */
  right: max(14px, calc((100% - var(--container)) / 2 - 60px));
  width: clamp(340px, 41vw, 588px);
  pointer-events: none;
}
.lineart {
  display: block;
  width: 100%;
  height: auto;
}
/* Etincelles sur les diamants de la line-art : petit scintillement discret. */
.spark {
  position: absolute;
  width: 20px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(circle, #ffffff 0%, #fff2c9 38%, rgba(255,242,201,0) 70%);
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(255,238,190,0.85));
  animation: etincelle 3.2s ease-in-out infinite;
}
@keyframes etincelle {
  /* eteinte la plupart du temps, bref eclat qui tourne sur lui-meme */
  0%, 38%   { opacity: 0; transform: translate(-50%, -50%) scale(0.15) rotate(0deg); }
  46%       { opacity: 0.55; transform: translate(-50%, -50%) scale(0.7) rotate(60deg); }
  52%       { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(110deg); }
  60%       { opacity: 0.5; transform: translate(-50%, -50%) scale(0.75) rotate(150deg); }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.15) rotate(200deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spark { animation: none; opacity: 0.85; transform: translate(-50%, -50%) scale(0.8); }
}

/* Barre rose : aplat CSS pleine largeur.
   z-index 1 : derriere le mannequin (2) et le contenu hero (300), donc le
   H2 / bouton / trait diamant passent par-dessus. Largeur libre, bord a bord. */
.hero-rose-bar {
  position: absolute;
  left: 0;
  bottom: 40px;
  width: 100%;
  height: 150px;
  background: #f0cdd1;
  z-index: 1;
}

/* ---- HERO ---- */
.hero { position: relative; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
/* Conteneur du CONTENU du hero (modele + textes) : mis a l'echelle SANS le fond.
   inset:0 = memes reperes que .hero, donc les enfants gardent leur position. Le fond (bg + barre
   rose) reste en dehors : il conserve sa pleine largeur bord a bord quand on retrecit le contenu. */
.hero__stage { position: absolute; top: 0; left: 0; right: 0; height: 605px; z-index: 2; transform-origin: top center; }
.hero__pale { position: absolute; inset: 0; background: #f8eae9; overflow: hidden; }
.hero__deep {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 122px;
  background: #f0cdd1;
}
.hero__deep::before {
  content: ""; position: absolute; left: 0; right: 0; top: -46px; height: 46px;
  background: linear-gradient(to bottom, rgba(240,205,209,0), #f0cdd1);
}

/* eau : caustiques liquides rendues en shader WebGL (scripts/hero-water.js).
   Le canvas couvre le fond pale ; les rides ondulent sur place, 60fps. */
.hero__water { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }

.hero__inner {
  position: relative; z-index: 300;
  min-height: 430px;
  display: flex; align-items: flex-start;
  padding: 48px 0 56px;
  /* z-index eleve : le contenu du hero (H2, trait, textes) peut passer
     devant le mannequin et les images posees au niveau body (z-index ~10,
     mannequin remplace a 201). Reste sous le
     header (400), le menu mobile (950) et la modale (1000). */
}
.hero__col { position: relative; z-index: 3; width: min(48%, 540px); }
.hero__brand { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.hero__brand .wm { width: min(440px, 100%); height: auto; }
.hero__intro { margin-top: 30px; max-width: 360px; }
.hero__intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
}
.hero__intro .sep-diamond { margin: 20px 0; }
.hero__intro p {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 300px;
  margin-bottom: 28px;
}
.hero__photo {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 30%;
  height: 92%;
  max-height: 500px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
}

/* ---- GALERIE (section du dessous, blanche) ---- */
.showcase { position: relative; z-index: 3; background: #fff; }
.showcase__inner {
  display: grid;
  grid-template-columns: 0.92fr 0.86fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 42px 0 56px;
}
.showcase__portrait { margin: 0; }
.showcase__portrait img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.showcase__rings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.showcase__rings img {
  width: 80%;
  max-width: 300px;
  filter: drop-shadow(0 14px 20px rgba(20, 18, 16, 0.12));
}
/* colonne de droite reservee a la main de la line-art (qui descend du hero) */
.showcase__space { min-height: 1px; }

/* ============ CREATIONS D'EXCEPTION ============ */
.creations {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: stretch;
}
.creations__img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 430px;
}
.creations__center {
  background: var(--rose-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;   /* texte en haut, encart guide en bas */
  text-align: center;
  padding: 46px 40px 32px;
  gap: 28px;
}
.creations__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.creations__center .diamant { width: 40px; height: 40px; color: var(--ink); }
.creations__center h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.creations__text p {
  color: var(--text-soft);
  max-width: 340px;
  font-size: 15px;
}
/* Encart guide des tailles (noir), en bas du bloc rose */
.creations__guide {
  position: relative;
  width: 100%;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 22px 24px;
}
.creations__guide-satin {
  position: absolute; inset: 0;
  background: radial-gradient(130% 130% at 25% 15%, #2a2521 0%, #100e0c 72%);
  z-index: 0;
}
.creations__guide-text { position: relative; z-index: 1; text-align: center; }
.creations__guide-text p {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 14px;
}

/* ============ REASSURANCE + GUIDE TAILLES ============ */
.assurance {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.assurance__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.assurance__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 10px;
  gap: 10px;
}
.feature {
  text-align: center;
  padding: 4px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line-soft);
}
.feature:last-child { border-right: 0; }
.feature svg { width: 30px; height: 30px; color: var(--ink); }
.feature h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.feature p { font-size: 12.5px; color: var(--muted); }

.guide {
  position: relative;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 26px;
  overflow: hidden;
}
.guide__satin {
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 20% 20%, #2a2521 0%, #100e0c 70%);
  z-index: 0;
}
.guide__text { position: relative; z-index: 1; flex: 1; }
.guide__text p {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.guide__mockup {
  position: relative;
  z-index: 1;
  width: 118px;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.5));
}

/* ============ PRODUITS ============ */
.products {
  /* padding-top augmente : la section descend pour ne plus mordre sur les
     bagues de la galerie au-dessus. */
  padding: 18px 0 76px;
  background: #fff;
  text-align: center;
}
.products > .container > .eyebrow { display: block; margin-bottom: 40px; color: var(--ink); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}

/* --- 7e tuile : guide des tailles, meme carre que les cartes produit --- */
.product-card--guide { text-align: left; }
.guide-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* contenu ancre en bas */
  padding: 0;
}
.guide-tile__satin {
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 25% 15%, #2a2521 0%, #100e0c 72%);
  z-index: 0;
}
.guide-tile__mockup {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 74%;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.guide-tile__text {
  position: relative;
  z-index: 2;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.guide-tile__text p {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.25;
}
.product-card--guide .product-card__name { color: var(--ink); }
/* Lien vers le catalogue complet (demo : ouvre la modale) */
.catalogue-cta {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.catalogue-cta__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.catalogue-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: gap 0.25s ease, opacity 0.2s ease;
}
.catalogue-link:hover { gap: 20px; opacity: 0.72; }
.catalogue-link svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---- Guide des tailles dans le footer (placement provisoire) ---- */
.footer-guide {
  display: flex;
  align-items: center;
  gap: 22px;
  background: radial-gradient(120% 120% at 20% 20%, #2a2521 0%, #100e0c 72%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 44px;
  max-width: 470px;
}
.footer-guide__mockup {
  width: 118px;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.55));
}
.footer-guide__text { flex: 1; }
.footer-guide__title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 14px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--footer-text);
  padding: 60px 0 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 18px;
}
.footer__wordmark img { width: 132px; height: auto; display: block; }
.footer__brand p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--footer-text);
  max-width: 230px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social a {
  color: var(--footer-text);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer__social a:hover { opacity: 1; }
.footer__social svg { width: 20px; height: 20px; }
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a {
  font-size: 13.5px;
  color: var(--footer-text);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer__col a:hover { opacity: 1; }
.footer__news p {
  font-size: 13px;
  color: var(--footer-muted);
  margin-bottom: 16px;
  max-width: 250px;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px 24px;
  flex-wrap: wrap;
}
/* copyright a gauche, liens + langue au milieu, pastille poussee tout a droite */
.footer__bottom .pastille-demo { margin-left: auto; }
.footer__bottom .copy { font-size: 12px; color: var(--footer-muted); }
.footer__legal { display: flex; gap: 26px; }
.footer__legal a { font-size: 12px; color: var(--footer-muted); transition: color 0.2s; }
.footer__legal a:hover { color: #fff; }
.footer__currency { font-size: 12px; color: var(--footer-muted); }

/* pastille E.T.D (recreee d'apres la pastille du site etd-projects.fr) */
.etd-credit {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}
.pastille-etd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 167px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #ece7d5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pastille-etd:hover,
.pastille-etd:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.pastille-etd__label {
  font-family: var(--font-sans);
  font-size: 9px;
  color: #6f6f63;
  letter-spacing: 0.01em;
}
.pastille-etd__mark { flex-shrink: 0; width: 19px; height: 19px; display: block; }
.pastille-etd__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  color: #17150f;
  letter-spacing: -0.01em;
}
.pastille-etd__dot { color: #d45e38; }
.etd-copy {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--footer-muted);
  letter-spacing: 0.06em;
}

/* signature E.T.D (repli texte) */
.signature-etd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.72;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--footer-text);
  transition: opacity 0.2s ease;
}
.signature-etd:hover, .signature-etd:focus-visible { opacity: 1; }
.signature-etd strong { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__demo-tag {
  font-size: 11px;
  color: var(--footer-muted);
  letter-spacing: 0.06em;
}
