/* Les Pépites : une boutique de minéraux, chaleureuse et lisible, pensée d'abord pour le téléphone.
   Couleurs dans :root (mode sombre automatique plus bas). */
:root {
  --fond: #faf6f0;
  --surface: #f1ebe2;
  --carte: #ffffff;
  --texte: #241c29;
  --doux: #6a6170;
  --ligne: #e3dacd;
  --accent: #6b3fa0;        /* améthyste */
  --accent-clair: #ece3f7;
  --or: #a8741a;            /* pépite */
  --ouvert: #1f7a4d;
  --ferme: #b4372c;
  --m1: #6b3fa0; --m2: #c9a6ff; --m3: #4a2a73;
  --titres: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #16121b; --surface: #211b28; --carte: #261f2e; --texte: #f1ebe4; --doux: #b3a9b8; --ligne: #3a3142;
    --accent: #c9a6ff; --accent-clair: #33284a; --or: #e7b75a; --ouvert: #5fd59a; --ferme: #ff8a7d;
    --m1: #c9a6ff; --m2: #f1e6ff; --m3: #8e5fc4;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 17px/1.65 var(--police); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titres); line-height: 1.15; font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
::selection { background: var(--accent); color: var(--fond); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 3px; }
.largeur { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--texte); color: var(--fond); border-radius: 6px; }
.evitement:focus { left: 16px; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.centre { margin-top: 28px; text-align: center; }
.surtitre { margin: 0; color: var(--or); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.chapo { font-size: 1.12rem; color: var(--doux); }
.bouton {
  display: inline-block; padding: 12px 22px; border: 2px solid var(--accent); border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--fond); font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
}
.bouton:hover { filter: brightness(1.1); }
.bouton.secondaire { background: transparent; color: var(--accent); }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.titre-section { margin: 56px 0 18px; }

/* ---------------------------------------------------------------- en-tête et pied */
.haut { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--fond) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.haut-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none;
  font-family: var(--titres); font-size: 1.35rem; font-weight: 700; margin: 0; }
.marque { width: 30px; height: 30px; flex: none; }
.marque .m1 { fill: var(--m1); } .marque .m2 { fill: var(--m2); } .marque .m3 { fill: var(--m3); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--texte); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--accent-clair); color: var(--accent); }
.lien-recherche { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--texte); }
.lien-recherche:hover { background: var(--surface); }
.lien-recherche svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .haut-inner { gap: 6px 10px; padding-top: 8px; }
  .nav { order: 3; width: 100%; margin: 0 -6px; padding-bottom: 8px; }
  .lien-recherche { margin-left: auto; }
}
.bas { margin-top: 80px; padding: 40px 0; background: var(--surface); border-top: 1px solid var(--ligne); font-size: .95rem; }
.bas-inner { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.bas nav { display: flex; flex-direction: column; gap: 6px; }
.bas nav a { color: var(--texte); text-decoration: none; }
.bas nav a:hover { text-decoration: underline; }
.slogan, .copyright { color: var(--doux); }
.copyright { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) { .bas-inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- accueil */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 40px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero img { border-radius: 50% 50% var(--rayon) var(--rayon); aspect-ratio: 1; object-fit: cover; width: 100%;
  box-shadow: 0 30px 60px -30px #6b3fa055; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; padding-top: 20px; } .hero img { max-width: 320px; margin: 0 auto; } }

/* ---------------------------------------------------------------- la boutique */
.infos-magasin { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 32px; }
.infos-magasin > section { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px 24px; }
.infos-magasin h2 { margin-top: 0; }
@media (max-width: 720px) { .infos-magasin { grid-template-columns: 1fr; } }
.adresse { font-size: 1.1rem; font-weight: 600; }
.a-venir { color: var(--doux); font-weight: 400; font-style: italic; }
.horaires table { width: 100%; border-collapse: collapse; }
.horaires th, .horaires td { padding: 7px 0; border-bottom: 1px solid var(--ligne); text-align: left; font-weight: 400; }
.horaires td { text-align: right; font-variant-numeric: tabular-nums; }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { font-weight: 700; color: var(--accent); }
.statut { margin: 0 0 10px; font-weight: 700; }
.statut::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: currentColor; }
.statut:empty { display: none; }
.statut.ouvert { color: var(--ouvert); }
.statut.ferme { color: var(--ferme); }
.note { color: var(--doux); font-size: .9rem; margin-bottom: 0; }
.carte-maps { margin-top: 16px; border-radius: var(--rayon); background: var(--surface); padding: 20px; text-align: center; color: var(--doux); font-size: .92rem; }
.carte-maps.chargee { padding: 0; overflow: hidden; }
.carte-maps iframe { display: block; width: 100%; height: 320px; border: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 24px; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.marches ul { padding-left: 1.2em; }

/* ---------------------------------------------------------------- produits */
.produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.produit { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; background: var(--carte);
  border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px; }
.produit img { border-radius: 12px; width: 110px; aspect-ratio: 1; }
.produit h2, .produit h3 { margin: 2px 0 6px; font-size: 1.2rem; }
.produit p { margin: 0 0 8px; }
.produits.compacts { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.produits.compacts .produit { grid-template-columns: 1fr; }
.produits.compacts .produit img { width: 100%; max-width: 160px; }
.produits.compacts .exemples { display: none; }
.exemples { font-size: .9rem; color: var(--doux); }
@media (max-width: 420px) { .produit { grid-template-columns: 76px 1fr; } .produit img { width: 76px; } }

/* ---------------------------------------------------------------- pierres */
.grille-pierres { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.carte-pierre { position: relative; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon);
  overflow: hidden; transition: transform .15s, box-shadow .15s; }
.carte-pierre:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px #3b1f5e66; }
.carte-pierre img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.carte-pierre h2, .carte-pierre h3 { margin: 12px 14px 4px; font-size: 1.15rem; }
.carte-pierre a { color: var(--texte); text-decoration: none; }
.carte-pierre a::after { content: ""; position: absolute; inset: 0; }   /* toute la carte est cliquable */
.carte-pierre p { margin: 0 14px 14px; color: var(--doux); font-size: .9rem; line-height: 1.45; }
@media (max-width: 440px) { .grille-pierres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .carte-pierre p { display: none; } }

.carte-boutique .specialites { color: var(--accent); font-size: .85rem; font-weight: 600; }
@media (max-width: 440px) { .carte-boutique p { display: block; } .carte-boutique .specialites { display: none; } }

.entete-page { padding: 32px 0 8px; max-width: 760px; }
.entete-page.chakra h1 { color: var(--c); }
.filtres-pierres { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; margin: 20px 0 6px; padding: 16px;
  background: var(--surface); border-radius: var(--rayon); scroll-margin-top: 90px; }
.filtres-pierres p { margin: 0; min-width: 0; }
.filtres-pierres label { display: block; font-size: .8rem; font-weight: 700; color: var(--doux); margin-bottom: 4px; }
.filtres-pierres input, .filtres-pierres select { width: 100%; padding: 10px 12px; border: 1px solid var(--ligne);
  border-radius: 10px; background: var(--carte); color: var(--texte); font: inherit; font-size: 1rem; }
@media (max-width: 720px) { .filtres-pierres { grid-template-columns: 1fr 1fr; } .filtres-pierres p:first-child { grid-column: 1 / -1; } }
.compte { color: var(--doux); font-size: .9rem; }
.vide { text-align: center; color: var(--doux); padding: 40px 0; }

.puces { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.puces a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-clair); color: var(--accent);
  text-decoration: none; font-size: .9rem; font-weight: 600; }
.puces a:hover { background: var(--accent); color: var(--fond); }
.puces.grandes { justify-content: center; gap: 10px; }
.puces.grandes a { padding: 10px 18px; font-size: 1rem; }
.index-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; padding: 0; list-style: none; }
.index-themes a { display: block; padding: 18px 20px; border: 1px solid var(--ligne); border-radius: var(--rayon);
  background: var(--carte); color: var(--texte); text-decoration: none; }
.index-themes a:hover { border-color: var(--accent); }
.index-themes strong { display: block; font-family: var(--titres); font-size: 1.25rem; }
.index-themes span { color: var(--doux); font-size: .9rem; }
.index-themes.chakras a { border-left: 6px solid var(--c); }

/* ---------------------------------------------------------------- fiche d'une pierre */
.ariane { margin-top: 20px; font-size: .88rem; color: var(--doux); }
.ariane a { color: var(--doux); }
.fiche-haut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: start; margin-top: 16px; }
.fiche-haut figure { margin: 0; position: sticky; top: 84px; }
.fiche-haut figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rayon); }
figcaption { margin-top: 6px; font-size: .8rem; color: var(--doux); }
.fiche-haut h1 { margin-top: .1em; }
@media (max-width: 760px) { .fiche-haut { grid-template-columns: 1fr; gap: 16px; } .fiche-haut figure { position: static; max-width: 420px; } }
.identite { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .95rem; }
.identite th, .identite td { padding: 9px 0; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.identite th { width: 34%; padding-right: 12px; color: var(--doux); font-weight: 600; }
.pastille { display: inline-block; width: 22px; height: 22px; margin-right: 6px; vertical-align: middle; }
.pastille circle { stroke: #0003; stroke-width: 1; }
.durete { display: block; width: 100%; max-width: 220px; height: 6px; margin-top: 6px; }
.durete .j-fond { fill: var(--ligne); }
.durete .j-val { fill: var(--or); }

.corps { max-width: 760px; margin-top: 28px; }
.corps h2 { margin: 1.8em 0 .5em; }
.corps li { margin-bottom: .35em; }
.corps table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.corps th, .corps td { border: 1px solid var(--ligne); padding: 8px 10px; text-align: left; }
.corps th { background: var(--surface); }
.corps blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--or); background: var(--surface); border-radius: 0 10px 10px 0; }
.avertissement { max-width: 760px; margin-top: 32px; padding: 14px 18px; border-radius: 12px; background: var(--surface);
  color: var(--doux); font-size: .88rem; border-left: 4px solid var(--or); }
.avertissement p { margin: 0; }
.en-boutique { max-width: 760px; margin-top: 18px; padding: 20px 22px; border-radius: var(--rayon); background: var(--accent-clair);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.en-boutique p { margin: 0; flex: 1 1 280px; }

/* ---------------------------------------------------------------- guides */
.liste-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.guide { padding: 20px 22px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--carte); position: relative; }
.guide h2, .guide h3 { margin: 0 0 8px; font-size: 1.25rem; }
.guide a { color: var(--texte); text-decoration: none; }
.guide a::after { content: ""; position: absolute; inset: 0; }
.guide:hover { border-color: var(--accent); }
.guide p { margin: 0; color: var(--doux); font-size: .95rem; }
.article .corps { margin-top: 8px; }
.themes { text-align: center; }

/* Généré par build : couleurs des chakras */
.ck-racine { --c: #c62828; }
.ck-sacre { --c: #ef6c00; }
.ck-plexus-solaire { --c: #f9a825; }
.ck-coeur { --c: #2e7d32; }
.ck-gorge { --c: #1e88e5; }
.ck-troisieme-oeil { --c: #3949ab; }
.ck-couronne { --c: #8e24aa; }
