/* ------------------------------------------------------------------
   BijouConcept — feuille de style

   Deux palettes. Celle par défaut est sombre, accordée au logo doré.
   Pour repasser en clair : mets "theme": "clair" dans contenu/site.json,
   puis relance python build.py. Rien d'autre à toucher.
   ------------------------------------------------------------------ */

:root {
  --fond:        #100f12;
  --fond-carte:  #17161a;
  --fond-doux:   #1b1a1f;
  --encre:       #f2eee7;
  --encre-douce: #a49c90;
  --trait:       #2c2a30;
  --trait-fort:  #423e46;
  --accent:      #d4af6a;
  --accent-vif:  #e8c98d;
  --ombre:       rgba(0, 0, 0, .45);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Format des photos, pilote par "format_photo" dans site.json */
  --ratio-photo: 2 / 3;

  --large: 1280px;
  --rythme: clamp(3rem, 7vw, 6rem);
}

.format-carre   { --ratio-photo: 1 / 1; }
.format-paysage { --ratio-photo: 4 / 3; }

.theme-clair {
  --fond:        #faf8f5;
  --fond-carte:  #ffffff;
  --fond-doux:   #f2ede7;
  --encre:       #211d1a;
  --encre-douce: #6c635b;
  --trait:       #e3dbd1;
  --trait-fort:  #cdc2b4;
  --accent:      #9a7448;
  --accent-vif:  #7a5a35;
  --ombre:       rgba(33, 29, 26, .12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.saut {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--fond);
  padding: .75rem 1.25rem; z-index: 100;
}
.saut:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.conteneur { max-width: var(--large); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: var(--rythme); }
.discret { color: var(--encre-douce); }

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fond) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.bande {
  max-width: var(--large); margin: 0 auto;
  padding: .85rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.5rem;
}

.marque { display: block; margin-right: auto; line-height: 0; }
.marque img { height: 54px; width: auto; }

.menu { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.menu a {
  text-decoration: none; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--encre-douce); padding-block: .35rem;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--encre); margin: 4px 0; }

@media (max-width: 1120px) {
  .bande { flex-wrap: wrap; }
  .burger { display: block; order: 3; }
  .marque img { height: 44px; }
  .menu {
    order: 4; flex-basis: 100%; flex-direction: column; gap: .25rem;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .menu-ouvert { max-height: 22rem; padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Bandeau d'accueil ---------- */

.hero { padding-block: clamp(3rem, 9vw, 6rem); text-align: center; }
.hero-logo { margin: 0 0 1rem; }
.hero-logo img { width: min(430px, 78vw); margin: 0 auto; }
.hero p { max-width: 46ch; margin: 0 auto; font-size: 1.1rem; color: var(--encre-douce); }
.filet { width: 48px; height: 1px; background: var(--accent); margin: 2rem auto; border: 0; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.5rem; }

/* ---------- Grille de bijoux ---------- */

.grille {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.bijou { display: flex; flex-direction: column; text-decoration: none; }
.bijou-photo {
  position: relative; aspect-ratio: var(--ratio-photo); overflow: hidden;
  background: var(--fond-doux); margin-bottom: 1rem;
}
.bijou-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.bijou:hover .bijou-photo img { transform: scale(1.04); }
.bijou-nom { font-family: var(--serif); font-size: 1.3rem; }
.bijou:hover .bijou-nom { color: var(--accent); }
.bijou-prix { color: var(--encre-douce); font-size: .9rem; margin-top: .15rem; }

.pastille {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--accent); color: var(--fond);
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .6rem;
}
.pastille-vendu { background: var(--encre-douce); }

.photo-absente {
  display: grid; place-items: center; height: 100%;
  color: var(--encre-douce); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Fiche bijou ---------- */

.fiche { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .fiche { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.fiche-photo { background: var(--fond-doux); aspect-ratio: var(--ratio-photo); overflow: hidden; }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; }
.fiche-prix { font-family: var(--serif); font-size: 2rem; color: var(--accent); margin: .5rem 0 1.5rem; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin: 2rem 0 0; font-size: .9rem; }
.fiche dt { color: var(--encre-douce); }
.fiche dd { margin: 0; }

.fil { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); margin-bottom: 1.5rem; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--accent); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block; border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  padding: .85rem 2rem; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  font-family: inherit; transition: background .2s, color .2s;
}
.bouton:hover { background: var(--accent); color: var(--fond); }
.bouton-clair { border-color: var(--trait-fort); color: var(--encre); }
.bouton-clair:hover { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

/* ---------- Texte long ---------- */

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.4em; }
.citation {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.4;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem; margin: 2.5rem 0;
}
.citation footer { font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--encre-douce); margin-top: .75rem; }
.signature { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); }

/* ---------- Pied de page ---------- */

.pied { border-top: 1px solid var(--trait); background: var(--fond-doux); margin-top: var(--rythme); }
.pied-grille {
  max-width: var(--large); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  font-size: .9rem;
}
.pied p { margin: 0 0 .4rem; }
.pied a { color: var(--encre-douce); text-decoration: none; }
.pied a:hover { color: var(--accent); }
.pied-logo { margin-bottom: 1rem; }
.pied-logo img { width: 150px; }
.pied-titre {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--encre); margin-bottom: .8rem !important;
}
.copyright {
  text-align: center; font-size: .78rem; color: var(--encre-douce);
  padding: 1.5rem; border-top: 1px solid var(--trait); margin: 0;
}

/* ---------- Paiement en préparation ---------- */

.mention-paiement {
  font-size: .85rem; color: var(--encre-douce);
  margin-top: 1rem !important; max-width: 40ch;
}
.mention-paiement a { color: var(--accent); text-underline-offset: 3px; }

.bandeau-attente {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .9rem 1.2rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  display: inline-block;
}

.prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .6em; }

/* ---------- Vide ---------- */

.vide {
  border: 1px dashed var(--trait-fort); padding: clamp(2rem, 6vw, 4rem);
  text-align: center; color: var(--encre-douce);
}
