/*
Theme Name: Jamtaan Bijoux
Theme URI: https://jamtaan.com
Author: AmeriFilms
Author URI: https://amerifilms.io
Description: Thème sur mesure pour Jamtaan Bijoux — bijoux touaregs en argent massif et ébène, faits main par les forgerons d'Agadez, au Niger. Page d'accueil éditoriale, type de contenu « Pièce » avec prix et statut, et réglages de personnalisation pour les textes clés.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jamtaan
Tags: e-commerce, artisanat, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =====================================================================
   Jamtaan Bijoux — Bijoux touaregs d'Agadez
   Système de design — « La nuit du désert, l'éclat de l'argent »
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Palette */
  --sable:        #F2EBE0;   /* fond principal clair */
  --sable-fonce:  #E6DCCC;   /* variation, filets */
  --nuit:         #12171C;   /* fond sombre — Nuit d'Aïr */
  --nuit-clair:   #1B222A;   /* cartes sur fond sombre */
  --indigo:       #2B3F63;   /* accent signature — chèche touareg */
  --indigo-clair: #46608F;
  --cuivre:       #B4703A;   /* accent chaud — CTA */
  --cuivre-clair: #D08C52;
  --argent:       #D6DAE0;   /* texte sur fond sombre */
  --ebene:        #1A1815;   /* texte sur fond clair */
  --pierre:       #8A8377;   /* texte secondaire */

  /* Typographie */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --corps:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --label:   "Jost", "Futura", "Avenir Next", sans-serif;

  /* Échelle — grande amplitude = perception de luxe */
  --t-hero:  clamp(2.6rem, 7vw, 4.5rem);
  --t-h1:    clamp(2.1rem, 5vw, 3rem);
  --t-h2:    clamp(1.7rem, 3.6vw, 2.15rem);
  --t-h3:    clamp(1.2rem, 2vw, 1.5rem);
  --t-corps: 1.0625rem;
  --t-label: 0.72rem;

  /* Rythme */
  --gouttiere: clamp(1.25rem, 5vw, 4.5rem);
  --section:   clamp(4.5rem, 11vw, 9rem);
  --max:       1320px;

  --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sable);
  color: var(--ebene);
  font-family: var(--corps);
  font-size: var(--t-corps);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0 0 1.15em; max-width: 62ch; }

::selection { background: var(--indigo); color: var(--sable); }

/* Grain — texture sable, appliquée globalement, très discrète */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. UTILITAIRES ---------- */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: var(--section); }

.label {
  font-family: var(--label);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pierre);
}

.lede { font-size: 1.15rem; line-height: 1.68; color: color-mix(in srgb, var(--ebene) 78%, transparent); }

.sombre { background: var(--nuit); color: var(--argent); }
.sombre h1, .sombre h2, .sombre h3 { color: var(--sable); }
.sombre .label { color: color-mix(in srgb, var(--argent) 60%, transparent); }
.sombre .lede  { color: color-mix(in srgb, var(--argent) 82%, transparent); }

/* Placeholder de contenu à remplacer par le client */
.ph {
  color: var(--indigo);
  border-bottom: 1px dotted currentColor;
  font-style: italic;
}
.sombre .ph { color: var(--cuivre-clair); }

/* ---------- 4. BOUTONS & LIENS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--label);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.1em 2.3em;
  background: var(--cuivre);
  color: #fff;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { background: var(--cuivre-clair); transform: translateY(-2px); }

.btn--ligne {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent);
}
.btn--ligne:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* Lien fléché — souligné qui se déploie */
.lien {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--label);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 4px;
  position: relative;
  color: var(--indigo);
}
.sombre .lien, .hero .lien, .pied .lien { color: var(--cuivre-clair); }
.lien::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition);
}
.lien:hover::after { transform: scaleX(1); transform-origin: left; }
.lien span:last-child { transition: transform var(--transition); }
.lien:hover span:last-child { transform: translateX(4px); }

/* ---------- 5. PLACEHOLDERS PHOTO ---------- */
/* Blocs élégants qui documentent le plan de prise de vue à produire. */
.photo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(90% 80% at 80% 100%, rgba(180,112,58,0.22), transparent 65%),
    linear-gradient(160deg, #232B33, #12171C 70%);
  display: grid; place-items: center;
  isolation: isolate;
}
.photo--clair {
  background:
    radial-gradient(110% 90% at 25% 15%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(90% 80% at 85% 100%, rgba(180,112,58,0.16), transparent 60%),
    linear-gradient(160deg, #EFE6D9, #DED2BE 75%);
}
.photo__note {
  position: absolute; left: 1.2rem; bottom: 1.1rem;
  font-family: var(--label);
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}
.photo--clair .photo__note { color: rgba(26,24,21,0.45); }
.photo svg { width: 42%; max-width: 150px; opacity: 0.5; }
.photo--clair svg { opacity: 0.35; }

/* ---------- 6. EN-TÊTE ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--gouttiere);
  color: var(--sable);
  transition: background var(--transition), padding var(--transition), color var(--transition);
}
.entete.est-colle {
  background: color-mix(in srgb, var(--sable) 94%, transparent);
  backdrop-filter: blur(14px);
  color: var(--ebene);
  padding-block: 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--pierre) 22%, transparent);
}

.marque {
  font-family: var(--display);
  font-size: 1.4rem; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.6rem;
}
.marque svg { width: 20px; height: auto; }

.nav { display: flex; gap: 2.1rem; }
.nav a {
  font-family: var(--label);
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase;
  opacity: 0.85;
  position: relative; padding-bottom: 3px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.outils { display: flex; align-items: center; gap: 1.4rem; font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.1em; }
.outils .sep { opacity: 0.35; }
.burger { display: none; }

/* ---------- 7. HÉRO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid; align-items: center;
  background: var(--nuit);
  color: var(--sable);
  overflow: hidden;
}
.hero__fond {
  position: absolute; inset: 0;
  background:
    radial-gradient(75% 60% at 62% 38%, rgba(180,112,58,0.30), transparent 62%),
    radial-gradient(60% 70% at 15% 85%, rgba(43,63,99,0.55), transparent 65%),
    linear-gradient(175deg, #1D242C 0%, #12171C 55%, #0C1014 100%);
}
.hero__fond::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,13,16,0.88) 0%, rgba(10,13,16,0.55) 45%, transparent 78%);
}
.hero__croix {
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  width: min(34vw, 400px);
  color: var(--argent);
  opacity: 0.5;
  animation: flotte 9s ease-in-out infinite;
}
@keyframes flotte {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50%      { transform: translateY(-54%) rotate(-1.5deg); }
}
.hero__contenu { position: relative; z-index: 2; padding-block: 8rem 5rem; }
.hero h1 { font-size: var(--t-hero); max-width: 13ch; margin-bottom: 1.6rem; }
.hero h1 em { font-style: normal; color: var(--cuivre-clair); }
.hero p { font-size: 1.15rem; max-width: 46ch; color: color-mix(in srgb, var(--argent) 85%, transparent); margin-bottom: 2.6rem; }
.hero__actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hero .label { margin-bottom: 1.5rem; display: block; }

/* ---------- 8. BANDEAU RÉASSURANCE ---------- */
.reassurance {
  background: var(--sable-fonce);
  border-block: 1px solid color-mix(in srgb, var(--pierre) 25%, transparent);
}
.reassurance ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.9rem 2.6rem;
  margin: 0; padding: 1.15rem 0; list-style: none;
}
.reassurance li {
  font-family: var(--label);
  font-size: 0.68rem; letter-spacing: 0.19em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ebene) 68%, transparent);
  display: flex; align-items: center; gap: 0.6rem;
}
.reassurance li::before { content: "◆"; font-size: 0.45em; color: var(--cuivre); }

/* ---------- 9. GRILLES ---------- */
.duo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.duo--inverse { grid-template-columns: 0.9fr 1.1fr; }

.titre-section { margin-bottom: 3.2rem; }
.titre-section .label { display: block; margin-bottom: 0.9rem; }
.titre-section h2 { font-size: var(--t-h2); max-width: 18ch; }
.titre-section--centre { text-align: center; }
.titre-section--centre h2 { margin-inline: auto; }

/* Ornement géométrique (motif touareg abstrait — losanges & chevrons) */
.ornement {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--cuivre);
  margin-bottom: 1.2rem;
}
.ornement i { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); display: block; }
.ornement i:nth-child(2) { width: 10px; height: 10px; opacity: 0.75; }
.ornement span { width: clamp(30px, 8vw, 70px); height: 1px; background: currentColor; opacity: 0.35; }

/* ---------- 10. COLLECTIONS ---------- */
.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.collection { display: block; }
.collection .photo {
  aspect-ratio: 3 / 4;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.collection__cadre { overflow: hidden; margin-bottom: 1.1rem; }
.collection:hover .photo { transform: scale(1.05); }
.collection h3 { font-size: var(--t-h3); margin-bottom: 0.25rem; }
.collection p { font-size: 0.85rem; color: var(--pierre); margin: 0; }

/* ---------- 11. CARROUSEL PIÈCES UNIQUES ---------- */
.carrousel-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.fleches { display: flex; gap: 0.6rem; }
.fleche {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pierre) 40%, transparent);
  transition: background var(--transition), color var(--transition);
}
.fleche:hover { background: var(--indigo); color: var(--sable); box-shadow: none; }

.piste {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(238px, 25vw, 318px);
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.piste::-webkit-scrollbar { display: none; }
.piste > * { scroll-snap-align: start; }

.carte { display: block; }
.carte__cadre { position: relative; overflow: hidden; margin-bottom: 1rem; }
.carte .photo { aspect-ratio: 4 / 5; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.carte:hover .photo { transform: scale(1.05); }
.badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3;
  font-family: var(--label);
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--sable); color: var(--ebene);
  padding: 0.45em 0.85em; border-radius: 2px;
  display: flex; align-items: center; gap: 0.45em;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cuivre); }
.badge--vendu { background: color-mix(in srgb, var(--nuit) 82%, transparent); color: var(--argent); }
.badge--vendu::before { background: var(--pierre); }
.carte h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.carte__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.carte__prix { font-family: var(--label); font-size: 0.9rem; letter-spacing: 0.04em; }
.carte__ref { font-family: var(--label); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--pierre); text-transform: uppercase; }

/* ---------- 12. ATELIER (bloc sombre) ---------- */
.atelier .photo { aspect-ratio: 4 / 3; }
.atelier__lecture { position: relative; }
.atelier__play {
  position: absolute; inset: 0; margin: auto;
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--sable) 92%, transparent);
  color: var(--nuit);
  z-index: 3;
  transition: transform var(--transition);
}
.atelier__play:hover { transform: scale(1.08); }

/* ---------- 13. ARTISAN ---------- */
.artisan .photo { aspect-ratio: 4 / 5; filter: grayscale(1) contrast(1.05); }
.citation {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.1vw, 2.15rem);
  line-height: 1.28;
  margin: 0 0 2rem;
  max-width: 20ch;
}
.citation::before { content: "«\00a0"; color: var(--cuivre); }
.citation::after  { content: "\00a0»"; color: var(--cuivre); }
.signature { font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--pierre); margin-bottom: 2rem; }

/* ---------- 14. ENGAGEMENT ---------- */
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.pilier { text-align: center; }
.pilier svg { width: 40px; height: 40px; margin-inline: auto; margin-bottom: 1.4rem; color: var(--cuivre); }
.pilier h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.pilier p { font-size: 0.95rem; color: var(--pierre); margin-inline: auto; max-width: 32ch; }

/* ---------- 15. AVIS ---------- */
.note-globale { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-bottom: 3rem; }
.etoiles { color: var(--cuivre); letter-spacing: 0.14em; font-size: 1.05rem; }
.note-globale span { font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--pierre); }

.avis-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.avis {
  background: #fff;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border: 1px solid color-mix(in srgb, var(--pierre) 20%, transparent);
  display: flex; flex-direction: column; gap: 1rem;
}
.avis .etoiles { font-size: 0.85rem; }
.avis blockquote { margin: 0; font-size: 0.98rem; line-height: 1.68; }
.avis footer { margin-top: auto; display: flex; align-items: center; gap: 0.8rem; }
.avis .photo { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.avis cite { font-style: normal; font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.avis cite small { display: block; color: var(--pierre); letter-spacing: 0.06em; text-transform: none; font-size: 0.72rem; }

/* ---------- 16. NEWSLETTER ---------- */
.newsletter { background: var(--indigo); color: var(--sable); text-align: center; }
.newsletter h2 { font-size: var(--t-h2); max-width: 16ch; margin-inline: auto; margin-bottom: 1rem; color: var(--sable); }
.newsletter p { margin-inline: auto; color: color-mix(in srgb, var(--sable) 80%, transparent); }
.newsletter .ornement { color: var(--cuivre-clair); }
.form-inline {
  display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center;
  max-width: 520px; margin: 2.2rem auto 1rem;
}
.form-inline input {
  flex: 1 1 260px;
  padding: 1.05em 1.3em;
  font: inherit; font-size: 0.95rem;
  background: color-mix(in srgb, #fff 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sable) 35%, transparent);
  border-radius: 2px;
  color: var(--sable);
}
.form-inline input::placeholder { color: color-mix(in srgb, var(--sable) 55%, transparent); }
.form-inline input:focus { outline: none; border-color: var(--cuivre-clair); background: color-mix(in srgb, #fff 18%, transparent); }
.mention { font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--sable) 60%, transparent); }

/* ---------- 17. PIED DE PAGE ---------- */
.pied { background: var(--ebene); color: color-mix(in srgb, var(--argent) 72%, transparent); }
.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: var(--section) 3rem;
}
.pied h4 { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--sable); margin: 0 0 1.3rem; font-weight: 500; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.pied a { font-size: 0.92rem; transition: color var(--transition); }
.pied a:hover { color: var(--cuivre-clair); }
.pied .marque { color: var(--sable); margin-bottom: 1rem; }
.pied__bas {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--argent) 15%, transparent);
  font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.pied__bas nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }

/* ---------- 18. RÉVÉLATION AU DÉFILEMENT ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.est-visible { opacity: 1; transform: none; }
.reveal[data-delai="1"] { transition-delay: 0.12s; }
.reveal[data-delai="2"] { transition-delay: 0.24s; }
.reveal[data-delai="3"] { transition-delay: 0.36s; }

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: grid; place-items: center; width: 34px; height: 34px; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .duo, .duo--inverse { grid-template-columns: 1fr; }
  .hero__croix { width: 52vw; right: -12%; opacity: 0.22; }
  .avis-grille { grid-template-columns: 1fr; }
  .avis:nth-child(n+3) { display: none; }
}

@media (max-width: 720px) {
  .collections { grid-template-columns: 1fr; }
  .collection .photo { aspect-ratio: 4 / 3; }
  .piliers { grid-template-columns: 1fr; }
  .outils .masquer-mobile { display: none; }
  .hero { min-height: 100svh; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .pied__grille { grid-template-columns: 1fr; }
  .carrousel-tete { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   20. SPÉCIFIQUE WORDPRESS
   Ajouté au système de design lors de la construction du thème.
   ===================================================================== */

/* --- Menus générés par wp_nav_menu (des <ul>, pas des <a> nus) --- */
.nav, .nav ul, .pied ul, .pied__bas ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav { display: flex; gap: 2.1rem; }
.nav li { margin: 0; }
.pied__bas ul { display: flex; gap: 1.6rem; flex-wrap: wrap; }

/* --- Barre d'administration : elle recouvrirait l'en-tête fixe --- */
body.admin-bar .entete { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .entete { top: 46px; }
}

/* --- Logo personnalisé téléversé depuis l'administration --- */
.marque img, .custom-logo { max-height: 44px; width: auto; display: block; }

/* --- Accessibilité --- */
.lien-evitement {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 1em 1.6em;
  background: var(--cuivre);
  color: #fff;
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lien-evitement:focus { left: 1rem; top: 1rem; }

.ecran-lecteur, .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--cuivre);
  outline-offset: 3px;
}

/* --- Titres de section repris de l'ancien style en ligne --- */
.titre-large { font-size: var(--t-h1); margin: 0.9rem 0 1.5rem; }

/* --- Images réelles dans les blocs .photo --- */
.photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo--vendu { opacity: 0.55; }

/*
 * .photo__img est en position absolue : le conteneur doit donc porter un ratio,
 * sinon il s'effondre à zéro dès qu'une vraie image remplace le placeholder SVG.
 * Les autres emplacements tiennent leur ratio de .collection/.atelier/.artisan.
 */
.photo--carre { aspect-ratio: 1 / 1; }

/* --- Photo de fond du héro --- */
.hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}
/* Sans photo, le fond dégradé reste opaque ; avec photo, il devient un voile. */
.hero--photo .hero__fond {
  background:
    radial-gradient(70% 55% at 62% 38%, rgba(180,112,58,0.28), transparent 62%),
    linear-gradient(90deg, rgba(9,12,15,0.94) 0%, rgba(9,12,15,0.80) 42%, rgba(9,12,15,0.52) 78%, rgba(9,12,15,0.62) 100%);
}
.hero--photo .hero__fond::after {
  background: linear-gradient(180deg, rgba(9,12,15,0.55) 0%, transparent 30%, rgba(9,12,15,0.45) 100%);
}
.hero--photo .hero__croix { opacity: 0.28; }

/* --- Crédit photo : obligatoire pour les licences CC BY et CC BY-SA --- */
.credit-photo {
  margin: 0.7rem 0 0;
  max-width: none;
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  line-height: 1.5;
  color: color-mix(in srgb, var(--pierre) 90%, transparent);
}
.sombre .credit-photo { color: color-mix(in srgb, var(--argent) 45%, transparent); }

/* Récapitulatif des crédits en pied de page */
.credits-photos {
  max-width: none;
  margin: 0 0 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--argent) 12%, transparent);
  font-size: 0.72rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--argent) 48%, transparent);
}

/* --- Note visible des seuls administrateurs --- */
.note-admin {
  margin-top: 1.6rem;
  padding: 0.9rem 1.2rem;
  max-width: none;
  border-left: 2px solid var(--cuivre);
  background: color-mix(in srgb, var(--cuivre) 8%, transparent);
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ebene) 75%, transparent);
}

/* --- Classes d'alignement du cœur de WordPress --- */
.alignleft  { float: left;  margin: 0.4rem 1.6rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.6rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--pierre);
  margin-top: 0.6rem;
}

/* --- Pages et articles intérieurs --- */
.page-contenu { padding-top: calc(var(--section) + 4rem); }
.page-contenu .entry-title { font-size: var(--t-h1); margin-bottom: 1.6rem; }
.page-contenu img { height: auto; }

.piece-entete { display: grid; gap: 0.4rem; margin-bottom: 2rem; }
.piece-prix { font-family: var(--label); font-size: 1.25rem; letter-spacing: 0.04em; }

.pagination {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  font-family: var(--label);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.pagination .page-numbers {
  padding: 0.6em 1em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pierre) 35%, transparent);
}
.pagination .current { background: var(--indigo); color: var(--sable); box-shadow: none; }
