/* Sarimbatim — pages rendues côté serveur (catalogue, villes, fiches, contact).
   Copie de l'habillage de DzairNa : app/globals.css (thème « nuit algérienne », card-premium, btn-primary,
   btn-secondary, badge, input-field), components/layout/Navbar.tsx, components/home/ParallaxBackground.tsx,
   app/produits/page.tsx (grille et cartes), components/products/ProductDetailClient.tsx (fiche),
   components/home/Sections.tsx (pied de page). Défilement : Lenis, même réglage que DzairNa. */
:root {
  --bg: #14100f;
  --bg-doux: #211915;
  --creme: #f8efe2;
  --sable: #c9ac88;
  --or: #dba94f;
  --or-clair: #f0cf86;
  --braise: #c0563a;
  --encre: #0e0b0a;
  --bord: rgba(247, 239, 228, 0.12);
  --carte: rgba(20, 15, 13, 0.72);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --pilule: 999px;
  /* boutons : la moitié de l'arrondi « pilule » (≈ un quart de leur hauteur), le même sur tout le site */
  --r-bouton: 12px;
  --r-bouton-petit: 9px;
  --ombre: 0 12px 40px rgba(0, 0, 0, 0.35);
  --ombre-survol: 0 24px 64px rgba(0, 0, 0, 0.5);
  --sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --largeur: 1280px;
  --marge: clamp(24px, 5vw, 80px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; background: var(--encre); }
body { min-height: 100vh; background: transparent; color: var(--creme); font-family: "DM Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
::selection { background: var(--or); color: #fff; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--or); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--creme); }
.ico { flex-shrink: 0; }
.lecteurs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Lenis (lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.conteneur.etroit { max-width: calc(820px + 2 * var(--marge)); }

/* ─── fond fixe : les décors flous de la galerie (le fond derrière les pièces), en fondu enchaîné comme
   le ParallaxBackground de DzairNa ; une lente dérive horizontale rappelle la parallaxe de la galerie ── */
.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--encre); }
.fondPhoto {
  position: absolute; top: 0; bottom: 0; left: -12%; right: -12%;
  background-size: cover; background-position: 50% 58%;
  filter: brightness(1.35) saturate(1.1);
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity, transform;
}
.fondPhoto.actif { opacity: 1; animation: derive 26s ease-in-out infinite alternate; }
@keyframes derive { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(4%, 0, 0); } }
.fondVoile {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 90% at 70% 25%, rgba(212, 168, 87, 0.12) 0%, rgba(14, 11, 10, 0) 55%),
    linear-gradient(180deg, rgba(14, 11, 10, 0.3) 0%, rgba(14, 11, 10, 0) 35%, rgba(14, 11, 10, 0) 65%, rgba(14, 11, 10, 0.6) 100%),
    linear-gradient(100deg, rgba(14, 11, 10, 0.92) 0%, rgba(14, 11, 10, 0.78) 35%, rgba(14, 11, 10, 0.35) 60%, rgba(14, 11, 10, 0.15) 100%);
}
/* pages denses (formulaires) : voile de lisibilité, comme .page-dense */
.dense::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(14, 11, 10, 0.55); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fondPhoto.actif { animation: none; } }

/* ─── barre de navigation (Navbar de DzairNa) ─────────────────────────────── */
.barre {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  animation: barreEntre 0.6s var(--sortie) both;
}
.barre.defilee {
  background: rgba(20, 16, 15, 0.85);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom-color: rgba(247, 239, 228, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
@keyframes barreEntre { from { transform: translateY(-80px); opacity: 0; } to { transform: none; opacity: 1; } }
.barreInterieur { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.marque { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--creme); }
.marque img { transition: transform 0.3s; }
.marque:hover img { transform: scale(1.05); }
.liens { display: flex; align-items: center; gap: 4px; }
.liens > a, .lienDeroulant {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--r-bouton-petit);
  font-size: 14px; font-weight: 500; color: var(--sable); white-space: nowrap; transition: color 0.2s, background-color 0.2s;
}
.liens > a:hover, .lienDeroulant:hover, .deroulant:focus-within .lienDeroulant { color: var(--creme); background: rgba(247, 239, 228, 0.05); }
.liens > a[aria-current] { color: var(--creme); }
.deroulant { position: relative; }
.lienDeroulant .ico { transition: transform 0.2s; }
.deroulant:hover .lienDeroulant .ico, .deroulant:focus-within .lienDeroulant .ico { transform: rotate(180deg); }
.menuDeroulant {
  position: absolute; top: 100%; left: 0; margin-top: 8px; width: 224px; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(247, 239, 228, 0.1); background: rgba(28, 21, 18, 0.97); box-shadow: var(--ombre);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.deroulant::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* pont de survol */
.deroulant:hover .menuDeroulant, .deroulant:focus-within .menuDeroulant { opacity: 1; visibility: visible; transform: none; }
.menuDeroulant a { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 13px; color: var(--sable); transition: color 0.2s, background-color 0.2s; }
.menuDeroulant a:hover { color: var(--creme); background: rgba(247, 239, 228, 0.04); }
.menuDeroulant a span { color: rgba(201, 172, 136, 0.6); font-variant-numeric: tabular-nums; }
.actionsBarre { display: flex; align-items: center; gap: 8px; }
.boutonRond { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--sable); transition: background-color 0.2s, color 0.2s; }
.boutonRond:hover { background: rgba(247, 239, 228, 0.06); color: var(--creme); }
.compteurEcrin { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--or); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.pilule { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-bouton-petit); font-size: 13px; white-space: nowrap; transition: all 0.2s ease; }
.pilContour { color: var(--creme); font-weight: 500; } /* relief : « boutons neutres en relief » plus bas */
.pilOr { color: var(--bg); font-weight: 600; letter-spacing: -0.01em; }
.burger { display: none; color: var(--creme); }
.menuMobile { position: fixed; inset: 0; z-index: 40; padding-top: 72px; background: var(--bg); overflow-y: auto; }
.menuMobile nav { display: flex; flex-direction: column; gap: 8px; padding-top: 32px; padding-bottom: 32px; }
.menuMobile nav > a { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(247, 239, 228, 0.1); font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 600; }
.villesMobile { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 8px 16px; }
.villesMobile a { padding: 8px 0; font-size: 15px; color: var(--sable); }
.boutonsMobile { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

/* ─── éléments communs (globals.css de DzairNa) ───────────────────────────── */
.principal { padding-top: 72px; min-height: 70vh; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--pilule); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.badgeOr { background: var(--or-clair); color: #7a5c1e; }
a.badgeOr:hover { opacity: 0.8; }
.badgeNeutre { background: rgba(8, 6, 5, 0.6); color: var(--creme); border: 1px solid rgba(247, 239, 228, 0.18); }
.carteVerre { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r-lg); box-shadow: var(--ombre); }
.btnOr, .btnLigne {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-bouton); cursor: pointer; white-space: nowrap; font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s, color 0.2s;
}
.btnOr { border: 0; color: var(--bg); font-weight: 600; letter-spacing: -0.01em; }
.btnOr:disabled { opacity: 0.45; cursor: default; }
/* boutons dorés en relief (3D léger), comme dans la galerie, tout AUTOUR du bouton (pas d'épaisseur dessous) : un
   liseré de métal poli, une arête claire dedans, les bords légèrement creusés, un filet sombre et un halo doré ;
   au survol un reflet le traverse. Couleurs : --or, --or-clair, --or-fonce (à changer ensemble). */
:root { --or-fonce: #997637; }
.pilOr, .btnOr {
  position: relative; overflow: hidden;
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, var(--or-clair) 0%, var(--or) 50%, var(--or-fonce) 100%) padding-box,
    linear-gradient(180deg, #fff4d6 0%, var(--or-fonce) 50%, #fbe6b4 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 0 7px rgba(110, 84, 40, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 12px 1px rgba(219, 169, 79, 0.3);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pilOr::after, .btnOr::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.pilOr:hover, .btnOr:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 0 7px rgba(110, 84, 40, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 20px 3px rgba(219, 169, 79, 0.45);
}
.pilOr:hover::after, .btnOr:hover:not(:disabled)::after { left: 120%; }
.pilOr:active, .btnOr:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 0 10px rgba(110, 84, 40, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 8px rgba(219, 169, 79, 0.25);
}
.btnLigne { padding: 13px 27px; color: var(--creme); font-weight: 500; }
/* boutons neutres en relief (« Connexion »…) : le même relief tout autour, en clair ; au survol, le liseré devient doré */
.pilContour, .btnLigne {
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, rgba(40, 32, 26, 0.9), rgba(14, 11, 10, 0.95)) padding-box,
    linear-gradient(180deg, rgba(247, 239, 228, 0.38), rgba(247, 239, 228, 0.08) 50%, rgba(247, 239, 228, 0.26)) border-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 10px rgba(247, 239, 228, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.pilContour:hover, .btnLigne:hover {
  color: var(--or-clair); transform: scale(1.02);
  background: linear-gradient(180deg, rgba(48, 38, 28, 0.95), rgba(14, 11, 10, 0.97)) padding-box,
    linear-gradient(180deg, #fff4d6 0%, var(--or-fonce) 50%, #fbe6b4 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 16px 2px rgba(219, 169, 79, 0.35);
}
.ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 32px; font-size: 13px; color: var(--sable); }
.ariane a { transition: color 0.2s; }
.ariane a:hover { color: var(--creme); }
.ariane [aria-current] { color: var(--creme); font-weight: 500; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bandeau { margin: 0 0 24px; padding: 14px 18px; border: 1px solid rgba(219, 169, 79, 0.25); border-radius: 1rem; background: rgba(219, 169, 79, 0.08); color: var(--sable); font-size: 14px; }
.bandeau a { color: var(--or-clair); }

/* apparition au défilement (whileInView de DzairNa, une seule fois) */
.js .revele { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--sortie), transform 0.6s var(--sortie); transition-delay: calc(var(--i, 0) * 60ms); }
.js .revele.vu { opacity: 1; transform: none; }
.js .revele.fait { transition-delay: 0s !important; }

/* ─── catalogue et villes (app/produits/page.tsx) ─────────────────────────── */
.bandeauTitre { background: rgba(28, 20, 17, 0.55); border-bottom: 1px solid rgba(247, 239, 228, 0.1); }
.bandeauTitre .conteneur { padding-top: 32px; padding-bottom: 32px; }
.bandeauTitre .ariane { margin-bottom: 16px; }
.bandeauTitre h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 8px; }
.sousTitre { font-size: 15px; color: var(--sable); }
.catalogue { padding-top: 32px; padding-bottom: 64px; }
.outils { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.recherche { position: relative; flex: 1 1 260px; min-width: 200px; }
.recherche .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sable); pointer-events: none; }
.recherche input, .tri select, .saisie {
  width: 100%; padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--bord);
  background: rgba(20, 15, 13, 0.6); color: var(--creme); font-size: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.recherche input { padding-left: 36px; }
.recherche input:focus, .tri select:focus, .saisie:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15); }
.recherche input::placeholder, .saisie::placeholder { color: var(--sable); }
.pastilles { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pastilles::-webkit-scrollbar { display: none; }
.pastille { flex-shrink: 0; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(247, 239, 228, 0.14); background: rgba(32, 24, 20, 0.62); color: var(--sable); font-size: 13px; font-weight: 500; transition: all 0.2s; }
.pastille:hover { border-color: rgba(248, 239, 226, 0.3); }
.pastille[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.tri { position: relative; display: inline-flex; align-items: center; }
.tri select { width: auto; padding: 10px 34px 10px 16px; font-size: 13px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.tri select option { background: var(--bg-doux); }
.tri .ico { position: absolute; right: 12px; color: var(--sable); pointer-events: none; }
.vues { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 6px; border: 1px solid var(--bord); background: rgba(32, 24, 20, 0.62); }
.vues button { display: grid; place-items: center; padding: 6px; border-radius: 4px; color: var(--sable); transition: all 0.2s; }
.vues button:hover { color: var(--creme); }
.vues button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.vide { text-align: center; padding: 96px 0; }
.videTitre { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.vide p { color: var(--sable); font-size: 15px; margin-bottom: 24px; }
.retour { margin-top: 48px; text-align: center; }

/* grille : grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5 */
.grilleProduits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 1024px) { .grilleProduits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grilleProduits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ─── petite fiche : la ProductCard de DzairNa (card-premium) ──────────────── */
.carteProduit {
  position: relative; overflow: hidden;
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r-lg); box-shadow: var(--ombre);
}
.js .carteProduit.revele { transition: opacity 0.5s var(--sortie), transform 0.5s var(--sortie), box-shadow 0.3s ease; transition-delay: calc(var(--i, 0) * 50ms); }
.carteProduit:hover { box-shadow: var(--ombre-survol); }
.js .carteProduit.revele.vu:hover, html:not(.js) .carteProduit:hover { transform: translateY(-4px); }
.carteLien { display: block; height: 100%; }
.carteImage { position: relative; display: block; height: 240px; overflow: hidden; background: var(--bg); }
.carteImage img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.carteImage.scene { background: radial-gradient(80% 70% at 50% 40%, #1d1714, #0a0807); }
.carteImage.scene img { object-fit: contain; padding: 10% 12%; }
.carteProduit:hover .carteImage img { transform: scale(1.05); }
.carteAtelier { position: absolute; left: 12px; bottom: 12px; font-size: 11px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carteExemple { position: absolute; left: 12px; top: 12px; font-size: 11px; }
.carteCorps { display: block; padding: 16px; }
.carteMeta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.carteCategorie { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase; color: var(--or); }
.carteVille { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 11px; color: var(--sable); }
.carteNom {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px; font-family: "Playfair Display", Georgia, serif; font-size: 16px; font-weight: 600; line-height: 1.25; transition: color 0.2s;
}
.carteProduit:hover .carteNom { color: var(--or); }
.carteMatiere { display: block; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--sable); }
.carteBas { display: flex; align-items: center; min-height: 32px; padding-right: 40px; }
.cartePrix { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.carteEtat { font-size: 13px; color: var(--sable); }
.boutonSac { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--encre); color: #fff; transition: transform 0.2s, background-color 0.2s; }
.boutonSac:hover:not(:disabled) { transform: scale(1.1); }
.boutonSac.dansEcrin { background: var(--or); color: #fff; }
/* sac des cartes : le même relief tout autour — sombre, doré quand la pièce est déjà dans le panier */
.boutonSac {
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, #2a211b, var(--encre)) padding-box,
    linear-gradient(180deg, rgba(247, 239, 228, 0.4), rgba(247, 239, 228, 0.08) 50%, rgba(247, 239, 228, 0.28)) border-box;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.35);
}
.boutonSac.dansEcrin {
  background: linear-gradient(180deg, var(--or-clair) 0%, var(--or) 50%, var(--or-fonce) 100%) padding-box,
    linear-gradient(180deg, #fff4d6 0%, var(--or-fonce) 50%, #fbe6b4 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 0 6px rgba(110, 84, 40, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 12px 1px rgba(219, 169, 79, 0.3);
}
.boutonSac:disabled { opacity: 0.4; cursor: not-allowed; }
/* vue en liste (même carte, en ligne) */
.grilleProduits.liste { grid-template-columns: 1fr; }
.liste .carteLien { display: flex; }
.liste .carteImage { width: 160px; height: auto; min-height: 150px; flex-shrink: 0; }
.liste .carteCorps { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.liste .carteNom { font-size: 17px; }
.liste .cartePrix { font-size: 20px; }
.liste .carteAtelier { display: none; }
.liste .boutonSac { width: 36px; height: 36px; right: 20px; bottom: 20px; }

/* ─── fiche d'une pièce (ProductDetailClient de DzairNa) ───────────────────── */
.fiche { padding-top: 32px; padding-bottom: 72px; }
.grilleFiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-bottom: 64px; align-items: start; }
.planche { display: flex; flex-direction: column; gap: 16px; }
.principale { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2rem; border: 1px solid rgba(247, 239, 228, 0.1); background: rgba(28, 20, 17, 0.55); }
.principale img { width: 100%; height: 100%; object-fit: cover; animation: photoEntre 0.45s ease-out; }
.principale img.scene { object-fit: contain; padding: 8%; }
@keyframes photoEntre { from { opacity: 0.7; } to { opacity: 1; } }
.principale figcaption { position: absolute; left: 16px; bottom: 16px; padding: 4px 12px; border-radius: var(--pilule); background: rgba(8, 6, 5, 0.6); font-size: 11px; letter-spacing: 0.02em; color: var(--creme); }
.vignettes { display: flex; flex-wrap: wrap; gap: 12px; }
.vignettes button { width: 80px; height: 80px; padding: 0; overflow: hidden; border-radius: 8px; border: 2px solid transparent; transition: border-color 0.2s; }
.vignettes button:hover { border-color: rgba(247, 239, 228, 0.22); }
.vignettes button[aria-current] { border-color: var(--or); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.infos { display: flex; flex-direction: column; }
.infosHaut { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.infosHaut .badge { font-size: 11px; }
.lieu { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sable); }
.infos h1 { font-size: clamp(24px, 3.5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.reponse { margin-bottom: 16px; padding: 16px; border-radius: 1rem; border: 1px solid rgba(200, 169, 110, 0.2); background: rgba(200, 169, 110, 0.08); color: var(--sable); font-size: 15px; line-height: 1.65; }
.reponse strong { color: var(--creme); font-weight: 500; }
.prix { margin: 4px 0 20px; font-family: "Playfair Display", Georgia, serif; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.attribut { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: 13px; color: var(--sable); }
.attribut .ico { color: var(--or); }
.attribut strong { color: var(--creme); font-weight: 500; }
.probatoire { margin: 8px 0 20px; font-size: 12px; font-style: italic; color: rgba(201, 172, 136, 0.85); }
.achat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.quantite { display: flex; align-items: center; gap: 12px; }
.selecteur { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 8px; border: 1px solid rgba(247, 239, 228, 0.14); background: rgba(32, 24, 20, 0.62); }
.selecteur button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--sable); transition: all 0.2s; }
.selecteur button:hover { color: var(--creme); background: rgba(247, 239, 228, 0.06); }
.selecteur span { width: 32px; text-align: center; font-size: 15px; font-weight: 500; }
.dispo { font-size: 12px; color: var(--sable); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.boutons .grand { flex: 1 1 220px; padding: 14px 28px; }
.boutons .commander { color: #fff; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.encart { margin-bottom: 16px; padding: 16px; border-radius: 1rem; border: 1px solid rgba(192, 86, 58, 0.3); background: rgba(192, 86, 58, 0.08); font-size: 14px; font-weight: 500; color: #f0b4a2; }
.lienGalerie { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 24px; font-size: 13px; color: var(--sable); transition: color 0.2s; }
.lienGalerie:hover { color: var(--or); }
.garanties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.garanties li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: 1rem; border: 1px solid rgba(247, 239, 228, 0.1); background: rgba(20, 16, 15, 0.75); text-align: center; font-size: 11px; line-height: 1.3; color: var(--sable); }
.garanties .ico { color: var(--or); }
.encartAtelier { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 1rem; border: 1px solid var(--bord); background: rgba(32, 24, 20, 0.62); transition: border-color 0.2s; }
.encartAtelier:hover { border-color: rgba(219, 169, 79, 0.3); }
.initiale { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm); background: rgba(247, 239, 228, 0.06); font-family: "Playfair Display", Georgia, serif; font-weight: 700; }
.atelierTexte { flex: 1; min-width: 0; }
.atelierTexte strong { display: block; font-size: 13px; font-weight: 600; transition: color 0.2s; }
.encartAtelier:hover strong { color: var(--or); }
.atelierTexte span { display: block; font-size: 11px; color: var(--sable); }
.encartAtelier > .ico { color: var(--sable); }
.onglets { display: flex; gap: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--bord); }
.onglets button { padding: 0 0 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--sable); transition: all 0.2s; }
.onglets button:hover { color: var(--creme); }
.onglets button[aria-selected="true"] { border-bottom-color: var(--creme); color: var(--creme); }
html:not(.js) .onglets { display: none; }
html:not(.js) .panneau + .panneau { margin-top: 32px; }
.panneau { max-width: 720px; }
.panneau p { margin-bottom: 14px; font-size: 16px; line-height: 1.7; }
.tableCarac { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--bord); background: var(--carte); box-shadow: var(--ombre); }
.tableCarac th, .tableCarac td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(247, 239, 228, 0.08); }
.tableCarac tr:last-child th, .tableCarac tr:last-child td { border-bottom: 0; }
.tableCarac th { width: 40%; font-size: 13px; font-weight: 500; color: var(--sable); }
.tableCarac td { font-size: 14px; font-weight: 500; }
.maj { margin-top: 24px; font-size: 13px; color: rgba(201, 172, 136, 0.75); }
.voisines { margin-top: 64px; }
.voisines h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 24px; }
.voisinesGrille { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .voisinesGrille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .voisinesGrille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.voisinesGrille .carteImage { height: 180px; }

/* ─── contact (page /contact de DzairNa) ───────────────────────────────────── */
.contact { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.etiquetteContact { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--or); }
.contactTete h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.intro { max-width: 620px; font-size: 17px; color: var(--sable); line-height: 1.65; }
.intro a { color: var(--or-clair); }
.contact h2 { font-size: 24px; margin-bottom: 20px; }
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.formulaire .large { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ > span { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--creme); }
.saisie { padding: 12px 16px; font-size: 15px; }
textarea.saisie { resize: none; min-height: 132px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message { padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid rgba(192, 86, 58, 0.4); background: rgba(192, 86, 58, 0.1); font-size: 14px; color: #f0b4a2; }
.formulaire .btnOr { width: 100%; padding: 15px 28px; }
.envoye { padding: 32px; text-align: center; }
.envoye .ico { color: var(--or); margin: 0 auto 12px; }
.envoye h3 { font-size: 20px; margin-bottom: 8px; }
.envoye p { font-size: 14px; color: var(--sable); }
.infosContact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.carteInfo { display: block; padding: 24px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
a.carteInfo:hover { transform: scale(1.02); box-shadow: var(--ombre-survol); }
.carteInfo .ico { color: var(--or); margin-bottom: 12px; }
.carteInfo h2 { font-family: "DM Sans", system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.carteInfo p { font-size: 14px; color: var(--sable); overflow-wrap: anywhere; }
.carteInfo .petit { margin-top: 4px; font-size: 12px; }
.reseaux { display: flex; flex-wrap: wrap; gap: 16px; }
.reseau { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.reseau:hover { transform: scale(1.03); box-shadow: var(--ombre-survol); }
.reseau .ico { color: var(--or); }
.reseau strong { display: block; font-size: 14px; font-weight: 600; }
.reseau span span { display: block; font-size: 12px; color: var(--sable); }

/* ─── notre histoire (page « Notre histoire » de DzairNa) ──────────────────────── */
.heroHistoire { padding: 96px 0 64px; background: rgba(14, 11, 10, 0.72); border-bottom: 1px solid rgba(247, 239, 228, 0.08); }
.heroHistoire h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; margin-bottom: 24px; }
.heroHistoire h1 em { font-style: italic; font-weight: 400; color: var(--or); }
.heroHistoire .intro { font-size: 18px; max-width: 680px; }
.histoire { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 48px; }
.histoire h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 16px; }
.histoire p { margin-bottom: 14px; font-size: 17px; line-height: 1.75; color: rgba(248, 239, 226, 0.86); }
.histoire em { color: var(--creme); }
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.etape { padding: 20px; }
.etape .ico { color: var(--or); margin-bottom: 10px; }
.etape h3 { font-size: 17px; margin-bottom: 6px; }
.etape p { font-size: 14px; line-height: 1.6; color: var(--sable); margin: 0; }
.lieux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 16px; }
.lieuAvenir { padding: 22px; overflow: hidden; }
.lieuAvenir h3 { font-size: 20px; margin: 12px 0 8px; }
.lieuAvenir p { font-size: 14px; line-height: 1.65; color: var(--sable); margin: 0; }
.lieuAvenir .photoLieu { margin: -22px -22px 18px; }
.lieuAvenir .photoLieu img { border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: 16 / 10; }
.photoLieu { margin: 0; border-radius: inherit; }
.photoLieu img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: rgba(247, 239, 228, 0.05); }
.photoLieu figcaption { display: flex; flex-direction: column; gap: 2px; padding: 8px 4px 0; font-size: 12px; line-height: 1.45; }
.lieuAvenir .photoLieu figcaption { padding: 8px 22px 0; }
.photoLieu figcaption span { color: var(--creme); font-weight: 600; }
.photoLieu figcaption a { color: var(--sable); opacity: 0.75; text-decoration: none; }
.photoLieu figcaption a:hover { color: var(--or); opacity: 1; }
.galerieLieux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 4px 0 16px; }
.patrimoineMondial { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.patrimoineMondial li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; }
.patrimoineMondial .annee { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 700; color: var(--or); line-height: 1; }
.patrimoineMondial strong { font-size: 15px; font-weight: 600; }
.patrimoineMondial .type { font-size: 12px; color: var(--sable); }
.engagements { display: flex; flex-direction: column; gap: 10px; }
.engagements li { font-size: 15px; color: var(--sable); }
.ctaHistoire { display: flex; flex-wrap: wrap; gap: 12px; }
.sourcesHistoire { padding-top: 24px; border-top: 1px solid var(--bord); }
.sourcesHistoire h2 { font-size: 18px; margin-bottom: 12px; }
.sourcesHistoire li { margin-bottom: 6px; font-size: 13px; }
.sourcesHistoire a { color: var(--sable); text-decoration: underline; text-underline-offset: 3px; }
.sourcesHistoire a:hover { color: var(--or); }
.vide .ico { color: var(--or); margin: 0 auto 16px; }
@media (max-width: 767px) {
  .heroHistoire { padding: 64px 0 40px; }
  .etapes, .lieux { grid-template-columns: 1fr; }
  .galerieLieux { grid-template-columns: 1fr 1fr; }
  .galerieLieux .photoLieu:first-child { grid-column: 1 / -1; }
}

/* ─── pied de page (Footer de DzairNa) ─────────────────────────────────────── */
.pied { margin-top: 40px; padding: 80px 0 32px; background: rgba(14, 11, 10, 0.82); color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.piedGrille { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
@media (min-width: 768px) { .piedGrille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .piedGrille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.piedMarque .marque { margin-bottom: 16px; font-size: 20px; color: #fff; }
.piedMarque p { line-height: 1.7; margin-bottom: 16px; }
.piedReseaux { display: flex; gap: 12px; }
.piedReseaux a { font-size: 12px; color: rgba(255, 255, 255, 0.4); transition: color 0.2s; }
.pied h4 { margin-bottom: 16px; font-family: "DM Sans", system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; }
.pied li { margin-bottom: 10px; }
.pied li a { color: rgba(255, 255, 255, 0.5); transition: color 0.2s; overflow-wrap: anywhere; }
.pied li a:hover { color: #fff; }
.piedReseaux a:hover { color: var(--or); }
.piedBas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: rgba(255, 255, 255, 0.4); }

/* ─── tablettes et téléphones (lg:hidden, md:flex de DzairNa) ──────────────── */
/* sept liens dans la barre (avec « Carte ») : plus serrés sur les écrans moyens, le menu ☰ en dessous de 1200 px */
@media (max-width: 1365px) { .liens { gap: 0; } .liens > a, .lienDeroulant { padding: 8px 11px; } }
@media (max-width: 1199px) { .liens { display: none; } .burger { display: grid; } }
@media (max-width: 1023px) {
  .grilleFiche { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .cacheMobile { display: none; }
  body { font-size: 16px; }
  .grilleProduits { gap: 12px; }
  .carteProduit { border-radius: 24px; }
  .carteImage { height: 190px; }
  .carteCorps { padding: 12px; }
  .carteNom { font-size: 15px; }
  .cartePrix { font-size: 16px; }
  .carteMeta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .carteAtelier { display: none; }
  .boutonSac { right: 12px; bottom: 12px; }
  .liste .carteImage { width: 120px; }
  .contact { padding-top: 40px; gap: 32px; }
  .formulaire { grid-template-columns: 1fr; padding: 18px; }
  .infosContact { grid-template-columns: 1fr; }
  .vignettes { gap: 10px; }
  .vignettes button { width: 70px; height: 70px; }
  .garanties { gap: 8px; }
  .garanties li { padding: 10px 6px; }
  .prix { font-size: 32px; }
  .boutons .commander { flex: 1 1 100%; }
}
@media (max-width: 380px) { .carteImage { height: 160px; } }

/* grille des magnets : le lien vers la colonne, sous le titre */
.retourColonne { margin: 18px 0 0; }
/* magnets : leur forme compte (rond, arche, rectangle…) — l'image entière, jamais recadrée */
.carteImage.magnetEntier { background: radial-gradient(80% 70% at 50% 45%, #1d1714, #0a0807); }
.carteImage.magnetEntier img { object-fit: contain; padding: 7% 9%; }
.planche.magnetEntier .principale img, .planche.magnetEntier .vignettes img { object-fit: contain; object-position: 50% 50% !important; background: #0a0807; }

/* ─── avis clients (fiche : onglet Avis ; lien reçu après la livraison : /avis/<lien>) ─────────── */
.etoiles { display: inline-flex; gap: 2px; color: rgba(247, 239, 228, 0.22); vertical-align: middle; }
.etoiles .pleine { color: var(--or); }
.etoiles .pleine .ico { fill: currentColor; }
.noteFiche { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 13px; color: var(--sable); }
.noteFiche:hover { color: var(--creme); }
.avisFiche { max-width: 820px; }
.resumeAvis { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.noteGrande { margin: 0 !important; font-family: "Playfair Display", Georgia, serif; font-size: 44px !important; line-height: 1 !important; }
.noteGrande span { font-size: 18px; color: var(--sable); }
.resumeAvis .petit { margin: 0 !important; font-size: 13px !important; color: var(--sable); }
.listeAvis { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.unAvis { padding: 18px 22px; border-radius: 1.2rem; }
.unAvis p { margin: 8px 0 0 !important; font-size: 15px !important; white-space: pre-line; color: rgba(247, 239, 228, 0.88); }
.avisTete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; font-size: 14px; }
.avisTete time { font-size: 12px; color: var(--sable); }
.badgeVerifie { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(219, 169, 79, 0.16); color: var(--or-clair); font-size: 11px; font-weight: 500; }
.aucunAvis { color: var(--sable); }
.donnerAvis summary { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; cursor: pointer; font-weight: 500; color: var(--or-clair); list-style: none; }
.donnerAvis summary::-webkit-details-marker { display: none; }
.donnerAvis summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: 14px; }
.donnerAvis[open] summary::before { content: "−"; }
.formAvis .petit { margin: 0 !important; font-size: 12px !important; color: var(--sable); }
.notation { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; }
.notation legend { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--creme); }
.notationEtoiles { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.notationEtoiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.notationEtoiles label { cursor: pointer; color: rgba(247, 239, 228, 0.25); transition: color 0.15s, transform 0.15s; }
.notationEtoiles label:hover, .notationEtoiles label:hover ~ label,
.notationEtoiles input:checked ~ label { color: var(--or); }
.notationEtoiles label:hover .ico, .notationEtoiles label:hover ~ label .ico, .notationEtoiles input:checked ~ label .ico { fill: currentColor; }
.notationEtoiles input:focus-visible + label { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }
.notationEtoiles label:active { transform: scale(0.92); }
.pageAvis { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.avisCommande { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.avisCommande > li { padding: 22px; }
.avisPiece { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.avisPiece img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; border: 1px solid var(--bord); }
.avisPiece h2 { font-size: 20px; margin-bottom: 4px; }
.avisPiece a { font-size: 13px; color: var(--or-clair); display: inline-flex; align-items: center; gap: 4px; }
.avisCommande .formulaire { padding: 12px 0 0; }
.dejaNote { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: #a6dcb0; font-size: 15px; }

/* ─── pages légales ─────────────────────────────────────────────────────────── */
.legal { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.legal .petit { font-size: 13px; color: var(--sable); }
.texteLegal { padding: clamp(22px, 4vw, 40px); }
.texteLegal h2 { font-size: 22px; margin: 28px 0 10px; }
.texteLegal h2:first-child { margin-top: 0; }
.texteLegal p, .texteLegal li { font-size: 15px; line-height: 1.7; color: rgba(247, 239, 228, 0.85); }
.texteLegal ul { margin: 0 0 12px; padding-left: 1.2rem; }
.texteLegal a { color: var(--or-clair); }

/* téléphone : logo et nom « Sarimbatim » un peu plus petits dans la barre du haut */
@media (max-width: 640px) {
  .barre .marque, header .marque { gap: 8px; font-size: 18px; }
  .barre .marque img, header .marque img { width: 28px; height: 28px; }
}

/* ─── la carte des pièces (/carte) : les 69 wilayas dans la nuit du site, un point doré par ville qui a des
   pièces ; en zoomant, la photo d'une pièce (cadre doré en relief, comme les boutons) ouvre la fenêtre de la ville ── */
.pageCarte .bandeauTitre .conteneur { padding-bottom: 24px; }
.carteAlgerie {
  position: relative; margin-top: 28px; height: clamp(440px, calc(100vh - 290px), 820px); overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); border: 1px solid var(--bord); box-shadow: var(--ombre);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(219, 169, 79, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(17, 24, 30, 0.92) 0%, rgba(20, 17, 16, 0.9) 38%, rgba(14, 11, 10, 0.94) 100%);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
#carteSvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; opacity: 0; transition: opacity 0.6s; }
.carteAlgerie.prete #carteSvg { opacity: 1; }
.carteAlgerie.tire #carteSvg, .carteAlgerie.tire .repere { cursor: grabbing; }
.carteAlgerie .w { fill: rgba(44, 34, 28, 0.94); stroke: rgba(247, 239, 228, 0.15); stroke-width: 0.8; vector-effect: non-scaling-stroke; transition: fill 0.2s; }
.carteAlgerie .w:hover { fill: rgba(62, 48, 38, 0.96); }
.carteAlgerie .w.avec { fill: rgba(219, 169, 79, 0.2); stroke: rgba(240, 207, 134, 0.6); cursor: pointer; }
.carteAlgerie .w.avec:hover { fill: rgba(219, 169, 79, 0.34); }
.carteCalque { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.carteCalque > * { position: absolute; left: 0; top: 0; }
.nomWilaya { font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: rgba(201, 172, 136, 0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.mer { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 15px; letter-spacing: 0.32em; white-space: nowrap; color: rgba(150, 178, 196, 0.42); }

/* un repère = le point de la ville ; la vignette se pose au-dessus du point quand on a zoomé */
.repere { width: 0; height: 0; pointer-events: auto; cursor: pointer; color: var(--creme); z-index: 1; }
.repere:hover, .repere:focus-visible { z-index: 3; }
.repere:focus-visible { outline: none; }
.reperePoint { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d6, var(--or) 55%, var(--or-fonce)); box-shadow: 0 0 0 2px rgba(14, 11, 10, 0.85), 0 0 14px 3px rgba(219, 169, 79, 0.55); }
.reperePoint::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(240, 207, 134, 0.7); animation: pouls 2.4s ease-out infinite; }
@keyframes pouls { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.repereNom { position: absolute; left: 14px; top: -11px; white-space: nowrap; font-family: "Playfair Display", Georgia, serif; font-size: 15px; font-weight: 600;
  color: var(--creme); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8); transition: color 0.2s; }
.repereNom em { font-style: normal; font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; font-weight: 600; color: var(--or-clair); }
.repere:hover .repereNom, .repere:focus-visible .repereNom { color: var(--or-clair); }
.repereVignette { position: absolute; left: -37px; bottom: 14px; width: 74px; height: 74px; border-radius: 16px;
  opacity: 0; transform: translateY(10px) scale(0.6); transform-origin: 50% 100%; pointer-events: none;
  transition: opacity 0.3s var(--sortie), transform 0.35s var(--sortie); }
.repereVignette img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
  border: 2px solid transparent;
  background: linear-gradient(#0a0807, #0a0807) padding-box, linear-gradient(180deg, #fff4d6 0%, var(--or) 45%, var(--or-fonce) 100%) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 10px 26px rgba(0, 0, 0, 0.6), 0 0 16px 1px rgba(219, 169, 79, 0.3); }
.repereVignette::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg);
  background: var(--or-fonce); border-radius: 2px; z-index: -1; }
.repereNombre { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--or-clair), var(--or)); color: var(--bg); font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px rgba(14, 11, 10, 0.9); }
.repere.enPhoto .repereVignette { opacity: 1; transform: none; pointer-events: auto; }
.repere.enPhoto .reperePoint { width: 10px; height: 10px; left: -5px; top: -5px; }
.repere.enPhoto .reperePoint::after { display: none; }
.repere.enPhoto .repereNom { left: 0; top: 9px; transform: translateX(-50%); font-size: 14px; }
.repere.enPhoto .repereNom em { display: none; }
.repere.sansNom .repereNom { opacity: 0; }
.repere.enPhoto:hover .repereVignette, .repere.enPhoto:focus-visible .repereVignette { transform: scale(1.08); }
.repere.enPhoto:focus-visible .repereVignette img { box-shadow: 0 0 0 2px var(--creme), 0 10px 26px rgba(0, 0, 0, 0.6); }
.carteBulle { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 6px 12px; border-radius: 10px; white-space: nowrap; font-size: 13px;
  background: rgba(20, 15, 13, 0.94); border: 1px solid var(--bord); box-shadow: var(--ombre); display: flex; gap: 8px; align-items: baseline; }
.carteBulle span { color: var(--sable); }
.carteBulle em { font-style: normal; color: var(--or-clair); font-size: 12px; }
.carteCommandes { position: absolute; right: 16px; top: 16px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.carteCommandes button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-bouton); color: var(--creme); }
.carteCommandes button.carteTexte { width: auto; padding: 0 14px; font-size: 13px; font-weight: 500; }
.carteAide { position: absolute; left: 16px; bottom: 16px; z-index: 5; pointer-events: none; padding: 6px 12px; border-radius: var(--pilule); font-size: 12px;
  color: var(--sable); background: rgba(14, 11, 10, 0.72); border: 1px solid rgba(247, 239, 228, 0.08); transition: opacity 0.4s; }
.carteAlgerie.zoomee .carteAide { opacity: 0; }
.carteSansJs { position: absolute; inset: auto 16px 16px; z-index: 6; padding: 12px 16px; border-radius: var(--r-sm); background: var(--carte); font-size: 14px; }
.carteSansJs a { color: var(--or-clair); text-decoration: underline; }
.carteVilles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.carteVillesTitre { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sable); margin-right: 4px; }
.carteVilles em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--or-clair); }
.carteSource { margin: 18px 0 64px; font-size: 12px; color: rgba(201, 172, 136, 0.7); }
.carteSource a { text-decoration: underline; text-underline-offset: 2px; }
.carteSource a:hover { color: var(--creme); }

/* la fenêtre d'une ville */
.fenetreVille { width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  color: var(--creme); background: rgba(24, 18, 15, 0.98); border: 1px solid var(--bord); border-radius: var(--r-lg); box-shadow: var(--ombre-survol); }
.fenetreVille[open] { animation: fenetreEntre 0.35s var(--sortie); }
@keyframes fenetreEntre { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.fenetreVille::backdrop { background: rgba(8, 6, 5, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html.fenetreOuverte { overflow: hidden; }
.fvTete { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 18px;
  background: rgb(24, 18, 15); }
.fvTete::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; background: linear-gradient(rgb(24, 18, 15), rgba(24, 18, 15, 0)); }
.fvSurtitre { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or); }
.fvSurtitre span { letter-spacing: 0; text-transform: none; font-size: 14px; }
.fvTete h2 { font-size: clamp(28px, 4vw, 40px); margin: 4px 0 2px; }
.fvCompte { font-size: 14px; color: var(--sable); }
.fvFermer { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-bouton); color: var(--creme);
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, rgba(40, 32, 26, 0.9), rgba(14, 11, 10, 0.95)) padding-box,
    linear-gradient(180deg, rgba(247, 239, 228, 0.38), rgba(247, 239, 228, 0.08) 50%, rgba(247, 239, 228, 0.26)) border-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.6); transition: transform 0.2s, color 0.2s; }
.fvFermer:hover { color: var(--or-clair); transform: scale(1.05);
  background: linear-gradient(180deg, rgba(48, 38, 28, 0.95), rgba(14, 11, 10, 0.97)) padding-box, linear-gradient(180deg, #fff4d6 0%, var(--or-fonce) 50%, #fbe6b4 100%) border-box; }
.fvListe { display: flex; flex-direction: column; gap: 20px; padding: 4px 28px 28px; }
.fvPiece { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px;
  border-radius: var(--r-md); background: rgba(14, 11, 10, 0.55); border: 1px solid rgba(247, 239, 228, 0.08); }
.fvGrande { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: radial-gradient(80% 70% at 50% 45%, #1d1714, #0a0807); }
.fvGrande img { width: 100%; height: 100%; object-fit: cover; animation: photoEntre 0.45s ease-out; }
.fvMagnet .fvGrande img { object-fit: contain; object-position: 50% 50% !important; padding: 6% 8%; }
.fvGrande figcaption { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: var(--pilule); background: rgba(8, 6, 5, 0.65); font-size: 11px; }
.fvInfos { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.fvInfos h3 { font-size: clamp(22px, 2.6vw, 28px); }
.fvRepere { font-size: 14px; color: var(--sable); }
.fvPetites { display: flex; flex-wrap: wrap; gap: 8px; }
.fvPetites button { width: 62px; height: 62px; padding: 0; overflow: hidden; border-radius: 12px; border: 1.5px solid rgba(247, 239, 228, 0.14); opacity: 0.7;
  background: #0a0807; transition: opacity 0.2s, border-color 0.2s, transform 0.2s; }
.fvPetites button:hover { opacity: 1; transform: translateY(-2px); }
.fvPetites button[aria-pressed="true"] { opacity: 1; border-color: var(--or); box-shadow: 0 0 10px rgba(219, 169, 79, 0.35); }
.fvPetites img { width: 100%; height: 100%; object-fit: cover; }
.fvMagnet .fvPetites img { object-fit: contain; object-position: 50% 50% !important; }
.fvPrix { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 600; color: var(--or-clair); }
.fvPrix span { font-family: "DM Sans", system-ui, sans-serif; font-size: 14px; font-weight: 500; color: var(--sable); }
.fvInfos .btnOr { margin-top: 4px; }
@media (max-width: 720px) {
  .carteAlgerie { margin-top: 20px; height: clamp(420px, calc(100dvh - 240px), 680px); border-radius: var(--r-md); }
  .repereVignette { left: -30px; width: 60px; height: 60px; border-radius: 13px; }
  .repereVignette img { border-radius: 13px; }
  .repereNom { font-size: 14px; }
  .carteCommandes { right: 12px; top: 12px; }
  .carteCommandes button { width: 40px; height: 40px; }
  .carteAide { left: 12px; bottom: 12px; right: 12px; text-align: center; }
  .fenetreVille { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: var(--r-md); }
  .fvTete { padding: 18px 18px 12px; }
  .fvListe { padding: 4px 14px 18px; gap: 14px; }
  .fvPiece { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .fvPetites button { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .reperePoint::after { animation: none; display: none; }
  .repereVignette, .fenetreVille[open] { transition: none; animation: none; }
}
