/* ============================================================
   ELIO.SOLIS.GALLERY — Feuille de style principale
   Structure :
   1.  Reset & Variables CSS
   2.  Système de pages
   3.  Navigation
   4.  Boutons
   5.  Hero (page d'accueil)
   6.  Sections génériques
   7.  Galerie & cartes d'œuvres
   8.  Modal produit
   9.  Modal paiement (checkout)
   10. Modal authentification
   11. Panneau panier
   12. Visualiseur
   13. Dashboard
   14. Page À propos
   15. Page Contact
   16. Page Artistes
   17. Toast (notifications)
   18. Overlay arrière-plan
   19. Transitions de page
   20. Section "Comment ça marche"
   21. Témoignages
   22. Responsive (mobile)
============================================================ */


/* ============================================================
   1. RESET & VARIABLES CSS
============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette de couleurs */
  --black:    #0a0a0a;
  --white:    #f8f5f0;
  --cream:    #f0ebe3;
  --gold:     #c9a84c;
  --gold2:    #e8d5a0;
  --charcoal: #2a2a2a;
  --mid:      #6b6b6b;
  --light:    #b0a898;
  --accent:   #8b4a3c;
  --blue:     #3c5c8b;
  --success:  #2d6a4f;
  --error:    #8b1a1a;

  /* Typographie */
  --sans:  'DM Sans', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}


/* ============================================================
   2. SYSTÈME DE PAGES (navigation SPA)
   Seule la page avec la classe .active est visible.
============================================================ */

.page {
  display: none;
  min-height: 100vh;
  padding-top: 72px; /* hauteur de la nav fixe */
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   3. NAVIGATION (barre fixe en haut)
============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 72px;
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Logo */
.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: .18em;
  cursor: pointer;
  color: var(--black);
}
.logo span { color: var(--gold); }

/* Liens de navigation */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  cursor: pointer;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }

/* Partie droite de la nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Avatar utilisateur connecté */
.nav-user {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  padding: .4rem .8rem;
  border: 1px solid rgba(0, 0, 0, .1);
  transition: all .2s;
}
.nav-user:hover { border-color: var(--gold); }

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 500;
}

.nav-username {
  font-size: .78rem;
  color: var(--charcoal);
}

/* Bouton nav principal */
.btn-nav {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem 1.3rem;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all .25s;
}
.btn-nav:hover { background: var(--gold); color: var(--black); }

/* Variante outline */
.btn-nav-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, .2);
}
.btn-nav-outline:hover { background: var(--black); color: var(--white); }

/* Bouton panier */
.cart-btn {
  position: relative;
  cursor: pointer;
  padding: .5rem;
  font-size: 1.1rem;
  color: var(--charcoal);
  transition: color .2s;
}
.cart-btn:hover { color: var(--gold); }

.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--gold);
  color: var(--black);
  font-size: .55rem;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   4. BOUTONS GÉNÉRIQUES
============================================================ */

.btn {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  border: none;
  cursor: pointer;
  transition: all .25s;
  display: inline-block;
}

.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--gold); color: var(--black); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, .25);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--charcoal); color: var(--white); }

.btn-sm   { padding: .55rem 1.2rem; font-size: .72rem; }
.btn-full { width: 100%; }


/* ============================================================
   5. HERO — SHOWCASE SPECTACULAIRE
============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Côté gauche : texte */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3.5rem 4rem 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: .67rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.07;
  margin-bottom: 1.6rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: .92rem;
  color: var(--mid);
  line-height: 1.85;
  max-width: 400px;
  margin-bottom: 2.5rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.8rem; }

/* Stats inline */
.hero-stats-row { display: flex; align-items: center; }
.hsr-item { display: flex; flex-direction: column; }
.hsr-num  { font-family: var(--serif); font-size: 1.7rem; font-weight: 300; line-height: 1; }
.hsr-lbl  { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-top: .15rem; }
.hsr-sep  { width: 1px; height: 2rem; background: rgba(0,0,0,.12); margin: 0 1.8rem; }

/* ── COLONNE DROITE — fond sombre ── */
.hero-right {
  background: #0e0c0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 1.2rem;
  padding: 2rem 1.5rem;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  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='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── STAGE ARTWORK ── */
.hero-artwork-stage {
  position: relative;
  cursor: pointer;
  z-index: 1;
  width: min(360px, 88%);
  aspect-ratio: 3/4;
  flex-shrink: 0;
}

.hero-main-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94), opacity .22s ease, filter .6s ease;
  position: relative; z-index: 1;
}

/* Ombre portée */
.hero-artwork-stage::after {
  content: '';
  position: absolute;
  bottom: -1.8rem; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 2rem;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, transparent 70%);
  filter: blur(6px);
  transition: width .5s ease;
  z-index: 0;
}
.hero-artwork-stage:hover::after { width: 85%; }

/* Zoom image au survol */
.hero-artwork-stage:hover .hero-main-img {
  transform: scale(1.05);
  filter: brightness(1.06) saturate(1.1);
}

/* ── CADRE DORÉ ANIMÉ ── */
.hero-gold-frame {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}
.hero-gold-frame .gf-top,
.hero-gold-frame .gf-bottom,
.hero-gold-frame .gf-left,
.hero-gold-frame .gf-right {
  position: absolute; background: var(--gold);
  transition: all .55s cubic-bezier(.25,.46,.45,.94);
}
.hero-gold-frame .gf-top    { top: 0;    left: 50%; height: 2px; width: 0; transform: translateX(-50%); }
.hero-gold-frame .gf-bottom { bottom: 0; left: 50%; height: 2px; width: 0; transform: translateX(-50%); }
.hero-gold-frame .gf-left   { left: 0;   top: 50%;  width: 2px;  height: 0; transform: translateY(-50%); }
.hero-gold-frame .gf-right  { right: 0;  top: 50%;  width: 2px;  height: 0; transform: translateY(-50%); }

.hero-artwork-stage:hover .gf-top,
.hero-artwork-stage:hover .gf-bottom { width: 100%; }
.hero-artwork-stage:hover .gf-left,
.hero-artwork-stage:hover .gf-right  { height: 100%; }

/* Coins */
.hero-gold-frame .corner {
  position: absolute; width: 18px; height: 18px;
  border-style: solid; border-color: var(--gold); border-width: 0;
  transition: border-width .35s .15s ease;
}
.hero-gold-frame .corner.tl { top: 0;    left: 0;  border-top-width: 2px;    border-left-width: 2px;  }
.hero-gold-frame .corner.tr { top: 0;    right: 0; border-top-width: 2px;    border-right-width: 2px; }
.hero-gold-frame .corner.bl { bottom: 0; left: 0;  border-bottom-width: 2px; border-left-width: 2px;  }
.hero-gold-frame .corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ── OVERLAY INFOS ── */
.hero-art-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: flex-end;
  pointer-events: none; overflow: hidden;
}
.hero-art-overlay-inner {
  width: 100%;
  padding: 1.8rem 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.38) 60%, transparent 100%);
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  pointer-events: all;
}
.hero-artwork-stage:hover .hero-art-overlay-inner { transform: translateY(0); }

.hao-collection { font-size: .58rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.hao-title      { font-family: var(--serif); font-size: 1.3rem; font-weight: 300; color: #fff; line-height: 1.2; margin-bottom: .2rem; }
.hao-artist     { font-size: .7rem; color: rgba(255,255,255,.55); margin-bottom: .7rem; }
.hao-price      { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-weight: 300; margin-bottom: .9rem; }
.hao-cta {
  display: inline-block;
  background: var(--gold); color: var(--black);
  border: none; padding: .5rem 1.3rem;
  font-family: var(--sans); font-size: .68rem;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, transform .2s;
}
.hao-cta:hover { background: #fff; transform: translateX(3px); }

/* ── PARTICULES ── */
.hero-particles {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none; opacity: 0;
  transition: opacity .4s .1s;
}
.hero-artwork-stage:hover .hero-particles { opacity: 1; }
.hero-particles span {
  position: absolute;
  border-radius: 50%; background: var(--gold);
  animation: particleFloat 3s ease-in-out infinite; opacity: 0;
  width: 4px; height: 4px;
}
.hero-particles span:nth-child(1) { top:15%; left:8%;  animation-delay:0s;   animation-duration:2.8s; }
.hero-particles span:nth-child(2) { top:72%; left:92%; animation-delay:.4s;  animation-duration:3.2s; }
.hero-particles span:nth-child(3) { top:30%; left:88%; animation-delay:.8s;  animation-duration:2.5s; }
.hero-particles span:nth-child(4) { top:85%; left:15%; animation-delay:.2s;  animation-duration:3.5s; }
.hero-particles span:nth-child(5) { top:50%; left:5%;  animation-delay:1.2s; animation-duration:2.7s; }
.hero-particles span:nth-child(6) { top:8%;  left:60%; animation-delay:.6s;  animation-duration:3s;   }
.hero-particles span:nth-child(7) { top:90%; left:55%; animation-delay:1.5s; animation-duration:2.9s; width:3px; height:3px; }
.hero-particles span:nth-child(8) { top:40%; left:95%; animation-delay:1s;   animation-duration:3.3s; width:5px; height:5px; }

@keyframes particleFloat {
  0%   { opacity:0; transform:translateY(0) scale(0); }
  20%  { opacity:1; }
  80%  { opacity:.6; }
  100% { opacity:0; transform:translateY(-28px) scale(1.5); }
}

/* ── BADGE FLOTTANT ── */
.hero-floating-badge {
  position: absolute;
  top: 1.2rem; right: 0;
  background: rgba(14,12,10,.88);
  border: 1px solid rgba(201,168,76,.3);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.75);
  padding: .42rem .85rem;
  font-size: .6rem; letter-spacing: .1em;
  display: flex; align-items: center; gap: .4rem;
  z-index: 5; pointer-events: none;
}
.hfb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.6); }
}

/* ── TAG EDITION ── */
.hero-edition-tag {
  position: absolute; bottom: 1rem; left: 1rem;
  font-size: .56rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.25); writing-mode: vertical-rl;
  z-index: 5; pointer-events: none;
}

/* ── VIGNETTES ── */
.hero-thumbs { display: flex; gap: .55rem; z-index: 1; flex-shrink: 0; }
.hero-thumb {
  width: 52px; height: 66px; overflow: hidden; cursor: pointer;
  opacity: .4; border: 2px solid transparent;
  transition: opacity .25s, border-color .25s, transform .25s;
}
.hero-thumb:hover { opacity: .7; transform: translateY(-2px); }
.hero-thumb.active { opacity: 1; border-color: var(--gold); }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Dark mode */
body.dark .hero-right { background: #060504; }
body.dark .hsr-num { color: var(--white); }
body.dark .hsr-sep { background: rgba(255,255,255,.12); }

/* Mobile */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 5rem 1.5rem 2rem; }
  .hero-right { padding: 2rem 1rem; }
  .hero-artwork-stage { width: min(260px, 80%); }
  .hero-thumbs { gap: .4rem; }
  .hero-thumb { width: 40px; height: 50px; }
  .hero-stats-row { gap: 0; }
}


/* ============================================================
   6. SECTIONS GÉNÉRIQUES
============================================================ */

.section       { padding: 5rem 3rem; }
.section-sm    { padding: 3rem; }
.section-dark  { background: var(--black); color: var(--white); }
.section-cream { background: var(--cream); }

.section-tag {
  font-size: .67rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: .8rem;
}

.section-sub {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.85;
  max-width: 460px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Champs de formulaire génériques */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid rgba(0, 0, 0, .15);
  background: transparent;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--black);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group input.err    { border-color: var(--error); }

textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid rgba(0, 0, 0, .15);
  background: transparent;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--black);
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color .2s;
}
textarea:focus { border-color: var(--gold); }


/* ============================================================
   7. GALERIE & CARTES D'ŒUVRES
============================================================ */

/* Barre de filtres */
.filter-bar { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-btn {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  background: transparent;
  color: var(--mid);
  border: 1px solid rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Grille de galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

/* Carte d'une œuvre */
.art-card { cursor: pointer; position: relative; }

.art-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.art-img svg,
.art-img img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .5s ease;
}
.art-card:hover .art-img svg,
.art-card:hover .art-img img { transform: scale(1.03); }

/* Overlay au survol */
.art-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
}
.art-card:hover .art-overlay { background: rgba(10, 10, 10, .38); }

.ov-btn {
  opacity: 0;
  transform: translateY(8px);
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem 1.1rem;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: all .3s;
}
.art-card:hover .ov-btn { opacity: 1; transform: translateY(0); }

/* Infos sous l'image */
.art-info    { padding: .9rem 0 .4rem; }
.art-title   { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; margin-bottom: .15rem; }
.art-artist  { font-size: .72rem; color: var(--mid); }
.art-footer  { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.art-price   { font-size: .88rem; font-weight: 500; }
.art-formats { font-size: .68rem; color: var(--light); }

/* Bouton favori (♡ / ♥) */
.wish-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--light);
  transition: color .2s;
  line-height: 1;
}
.wish-btn:hover,
.wish-btn.on { color: var(--accent); }


/* ============================================================
   8. MODAL PRODUIT (fiche œuvre complète)
============================================================ */

.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(10, 10, 10, .75);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 2rem;
}
.modal-bg.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* Partie gauche : visuel de l'œuvre */
.modal-img {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}
.modal-img svg { max-width: 280px; width: 100%; }

.modal-frame-preview {
  border: 8px solid var(--black);
  box-shadow: 8px 10px 30px rgba(0, 0, 0, .2);
  transition: border-color .3s;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--mid);
  z-index: 2;
}

/* Partie droite : infos & options */
.modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  max-height: 90vh;
}
.modal-tag         { font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.modal-title       { font-family: var(--serif); font-size: 1.75rem; font-weight: 300; margin-bottom: .2rem; }
.modal-artist-line { font-size: .78rem; color: var(--mid); margin-bottom: 1.2rem; }
.modal-desc        { font-size: .86rem; color: var(--mid); line-height: 1.85; margin-bottom: 1.8rem; }

/* Label des options */
.opt-label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: .5rem;
  margin-top: 1.2rem;
}

/* Chips de sélection (format, cadre…) */
.opts { display: flex; gap: .4rem; flex-wrap: wrap; }
.opt-chip {
  font-size: .73rem;
  padding: .38rem .9rem;
  border: 1px solid rgba(0, 0, 0, .15);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  color: var(--black);
}
.opt-chip:hover,
.opt-chip.sel {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Swatches couleur des cadres */
.frame-swatches { display: flex; gap: .5rem; margin-bottom: .5rem; }
.fswatch {
  width: 26px; height: 26px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  flex-shrink: 0;
}
.fswatch.sel { border-color: var(--gold); }

/* Prix affiché */
.price-big {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  margin: 1.5rem 0 1.2rem;
}
.price-big small { font-family: var(--sans); font-size: .78rem; color: var(--mid); }

/* Infos techniques */
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.meta-item {
  font-size: .75rem;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.meta-item::before { content: '·'; color: var(--gold); }


/* ============================================================
   9. MODAL PAIEMENT (checkout en 3 étapes)
============================================================ */

.checkout-modal {
  background: var(--white);
  width: 100%;
  max-width: 680px;
  position: relative;
}

/* Indicateur d'étapes */
.checkout-steps {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.ck-step {
  flex: 1;
  padding: 1.2rem;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light);
  border-bottom: 2px solid transparent;
  cursor: default;
}
.ck-step.active { color: var(--black); border-bottom-color: var(--gold); }
.ck-step.done   { color: var(--success); }

.ck-content { padding: 2rem; }
.ck-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Icônes des moyens de paiement */
.card-icons   { display: flex; gap: .5rem; margin-bottom: .5rem; }
.card-icon    { padding: .2rem .5rem; border: 1px solid rgba(0, 0, 0, .12); font-size: .65rem; color: var(--mid); }

/* Badge sécurité SSL */
.secure-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  color: var(--mid);
  margin-bottom: 1.2rem;
}
.secure-badge::before { content: '🔒'; }

/* Récapitulatif de commande */
.order-summary {
  background: var(--cream);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}
.order-line {
  display: flex;
  justify-content: space-between;
  font-size: .83rem;
  margin-bottom: .5rem;
}
.order-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, .1);
  padding-top: .7rem;
  margin-top: .7rem;
}

/* Icône de succès (étape 3) */
.success-icon {
  width: 64px; height: 64px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.5rem;
}


/* ============================================================
   10. MODAL AUTHENTIFICATION (connexion / inscription)
============================================================ */

.auth-modal {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.auth-header { padding: 2.5rem 2.5rem 0; }

/* Onglets Connexion / Inscription */
.auth-tabs { display: flex; margin-bottom: 2rem; }
.auth-tab {
  flex: 1;
  padding: .9rem;
  text-align: center;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--light);
  transition: all .2s;
}
.auth-tab.active { color: var(--black); border-bottom-color: var(--gold); }

.auth-body { padding: 0 2.5rem 2.5rem; }

/* Sélecteur Client / Artiste */
.auth-type-toggle { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.type-btn {
  flex: 1;
  padding: .8rem;
  text-align: center;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .12);
  background: transparent;
  color: var(--mid);
  transition: all .2s;
}
.type-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Séparateur "ou" */
.auth-sep {
  text-align: center;
  font-size: .75rem;
  color: var(--light);
  margin: 1rem 0;
  position: relative;
}
.auth-sep::before,
.auth-sep::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(0, 0, 0, .1);
}
.auth-sep::before { left: 0; }
.auth-sep::after  { right: 0; }

/* Pied du formulaire */
.auth-footer { font-size: .78rem; color: var(--mid); text-align: center; margin-top: 1rem; }
.auth-footer span { color: var(--gold); cursor: pointer; text-decoration: underline; }


/* ============================================================
   11. PANNEAU PANIER (tiroir latéral droit)
============================================================ */

.cart-panel {
  position: fixed;
  right: -440px; top: 0; bottom: 0;
  width: 440px;
  background: var(--white);
  z-index: 550;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .12);
  transition: right .35s ease;
  display: flex;
  flex-direction: column;
}
.cart-panel.open { right: 0; }

.cart-head {
  padding: 1.4rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-head-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 300; }
.cart-close      { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--mid); }

.cart-items-list { flex: 1; overflow-y: auto; padding: 1.4rem 2rem; }

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.cart-thumb {
  width: 72px; height: 72px;
  background: var(--cream);
  flex-shrink: 0;
  overflow: hidden;
}
.cart-thumb svg { width: 100%; height: 100%; }

.cart-item-info    { flex: 1; }
.cart-item-name    { font-family: var(--serif); font-size: .98rem; margin-bottom: .15rem; }
.cart-item-meta    { font-size: .72rem; color: var(--mid); margin-bottom: .4rem; }
.cart-item-price   { font-size: .88rem; font-weight: 500; }

.cart-rm {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--light);
  font-size: .75rem;
  transition: color .2s;
}
.cart-rm:hover { color: var(--error); }

.cart-foot {
  padding: 1.4rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--mid);
  margin-bottom: .5rem;
}


/* ============================================================
   12. VISUALISEUR (outil de prévisualisation in-situ)
============================================================ */

/* ---- Onglets Classique / IA ---- */
.viz-tabs {
  display: flex;
  gap: .5rem;
  margin-top: 2rem;
  border-bottom: 2px solid rgba(0,0,0,.08);
  padding-bottom: 0;
}
.viz-tab {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  letter-spacing: .02em;
}
.viz-tab:hover    { color: var(--black); }
.viz-tab.active   { color: var(--black); border-bottom-color: var(--black); }
.ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .15rem .42rem;
  border-radius: 2px;
}

/* ---- Zone d'upload ---- */
.ai-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 3.5rem 2rem;
  border: 2px dashed rgba(0,0,0,.15);
  background: var(--cream);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-align: center;
}
.ai-upload-zone:hover { border-color: var(--gold); background: #ede8e0; }
.ai-upload-icon  { font-size: 2.8rem; }
.ai-upload-text  { font-size: .9rem; color: var(--charcoal); line-height: 1.7; }
.ai-upload-text strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.ai-upload-hint  { font-size: .72rem; color: var(--mid); }

/* ---- État loading ---- */
.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 4rem 2rem;
  text-align: center;
}
.ai-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,0,0,.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading-text {
  font-size: .9rem;
  color: var(--charcoal);
  line-height: 1.8;
}
.ai-loading-text small { color: var(--mid); font-size: .78rem; }

/* ---- Grille résultat ---- */
.ai-result-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

/* ---- Colonne canvas ---- */
.ai-canvas-col  { display: flex; flex-direction: column; gap: 1.2rem; }
.ai-canvas-wrap {
  position: relative;
  background: #111;
  line-height: 0;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.ai-canvas-wrap canvas { max-width: 100%; height: auto; display: block; }
.ai-canvas-hint {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .68rem;
  padding: .25rem .7rem;
  border-radius: 12px;
  pointer-events: none;
  white-space: nowrap;
}

/* Contrôles IA */
.ai-controls { background: var(--cream); padding: 1.2rem 1.4rem; }
.ai-slider {
  width: 100%;
  margin: .4rem 0 .2rem;
  accent-color: var(--black);
}
.ai-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--mid);
}

/* ---- Panneau recommandation ---- */
.ai-reco-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: 90px;
}
.ai-reco-tag {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.ai-reco-title  { font-family: var(--serif); font-size: 1.5rem; font-weight: 300; line-height: 1.2; }
.ai-reco-artist { font-size: .78rem; color: var(--mid); }
.ai-reco-body   { font-size: .87rem; color: var(--charcoal); line-height: 1.8; }
.ai-reco-price  { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--black); }

/* Infos pièce détectée */
.ai-reco-room-info { display: flex; flex-direction: column; gap: .3rem; }
.ai-room-tag {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: .65rem;
  padding: .2rem .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ai-room-colors { font-size: .78rem; color: var(--mid); }

/* Conseil de placement */
.ai-placement-box {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: #f5f1eb;
  padding: .9rem 1rem;
  font-size: .8rem;
  color: var(--charcoal);
  line-height: 1.65;
}
.ai-placement-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

/* Suggestions alternatives */
.ai-other-reco   { margin-top: .5rem; }
.ai-other-list   { display: flex; flex-direction: column; gap: .5rem; }
.ai-other-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(0,0,0,.1);
  cursor: pointer;
  transition: background .15s;
}
.ai-other-item:hover { background: var(--cream); }
.ai-other-item img  { width: 48px; height: 48px; object-fit: cover; flex-shrink: 0; }
.ai-other-title     { font-size: .78rem; font-weight: 500; }
.ai-other-price     { font-size: .73rem; color: var(--mid); }

/* Mode sombre — adaptations IA viz */
body.dark .ai-upload-zone       { background: #222; border-color: rgba(255,255,255,.15); }
body.dark .ai-upload-zone:hover { background: #2a2a2a; border-color: var(--gold); }
body.dark .ai-upload-text       { color: #ddd; }
body.dark .ai-controls          { background: #222; }
body.dark .ai-placement-box     { background: #1e1e1e; color: #ccc; }
body.dark .ai-other-item        { border-color: rgba(255,255,255,.1); }
body.dark .ai-other-item:hover  { background: #222; }
body.dark .ai-reco-body         { color: #ccc; }

.viz-wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

/* Scène "pièce simulée" */
.room-scene {
  position: relative;
  background: #e8e4df;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
}
.room-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 110px;
  background: #d4cfc9;
}
.room-wall-line {
  position: absolute;
  bottom: 110px; left: 0; right: 0;
  height: 1px;
  background: rgba(0, 0, 0, .06);
}
.room-art {
  position: relative;
  z-index: 2;
  box-shadow: 8px 12px 40px rgba(0, 0, 0, .22);
  transition: all .4s ease;
}

/* Contrôles du visualiseur */
.viz-ctrl h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; margin-bottom: 1.5rem; }
.ctrl-grp    { margin-bottom: 1.4rem; }
.ctrl-lbl    { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mid); margin-bottom: .5rem; }
.ctrl-btns   { display: flex; gap: .4rem; flex-wrap: wrap; }
.ctrl-btn {
  font-size: .72rem;
  padding: .38rem .85rem;
  border: 1px solid rgba(0, 0, 0, .12);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  color: var(--black);
}
.ctrl-btn:hover,
.ctrl-btn.sel {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}


/* ============================================================
   13. DASHBOARD (espace client / artiste)
============================================================ */

.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  background: var(--charcoal);
  color: var(--white);
  padding: 2rem 1.5rem;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}
.dash-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.dash-logo span { color: var(--gold); }

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .8rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  border-radius: 3px;
  transition: all .2s;
  margin-bottom: .2rem;
}
.dash-nav-item:hover,
.dash-nav-item.active { background: rgba(255, 255, 255, .08); color: var(--white); }
.dash-nav-item.active { color: var(--gold); }

.dash-icon { font-size: 1rem; width: 20px; text-align: center; }

/* Contenu principal */
.dash-main  { padding: 2.5rem; background: var(--cream); }
.dash-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; margin-bottom: .3rem; }
.dash-sub   { font-size: .83rem; color: var(--mid); margin-bottom: 2rem; }

/* Cartes de statistiques */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  padding: 1.3rem;
  border: 1px solid rgba(0, 0, 0, .07);
}
.sc-val    { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; color: var(--black); }
.sc-lbl    { font-size: .72rem; color: var(--mid); margin-top: .2rem; }
.sc-change { font-size: .7rem; color: var(--success); margin-top: .3rem; }

/* Section dans le dashboard */
.dash-section {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, .07);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.dash-section-title {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

/* Tableau de commandes */
.order-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.order-table th {
  text-align: left;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  padding: .5rem .8rem;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.order-table td {
  padding: .8rem;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  color: var(--charcoal);
}

/* Badges de statut */
.status-badge       { font-size: .65rem; padding: .25rem .6rem; letter-spacing: .08em; text-transform: uppercase; }
.status-shipped     { background: #d9ead3; color: #2d5016; }
.status-processing  { background: #fce5cd; color: #7b3f00; }
.status-delivered   { background: #cfe2f3; color: #0b3e6e; }

/* Zone d'upload d'œuvres (artiste) */
.upload-zone {
  border: 2px dashed rgba(0, 0, 0, .15);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}
.upload-zone:hover { border-color: var(--gold); }
.upload-icon  { font-size: 2rem; margin-bottom: 1rem; }
.upload-text  { font-size: .85rem; color: var(--mid); line-height: 1.7; }


/* ============================================================
   14. PAGE À PROPOS
============================================================ */

.about-hero {
  background: var(--black);
  color: var(--white);
  padding: 7rem 3rem;
  text-align: center;
}
.about-hero .section-title { color: var(--white); }
.about-hero .section-tag   { color: var(--gold); }
.about-hero p {
  color: rgba(255, 255, 255, .6);
  max-width: 560px;
  margin: 1rem auto 0;
  line-height: 1.85;
  font-size: .92rem;
}

/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.team-card { text-align: center; }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
}
.team-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; margin-bottom: .2rem; }
.team-role { font-size: .75rem; color: var(--mid); letter-spacing: .05em; }

/* Valeurs */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.value-card {
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, .08);
  transition: border-color .2s;
}
.value-card:hover { border-color: var(--gold); }
.value-icon  { font-size: 1.8rem; margin-bottom: 1rem; }
.value-title { font-family: var(--serif); font-size: 1.1rem; margin-bottom: .5rem; }
.value-text  { font-size: .83rem; color: var(--mid); line-height: 1.75; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, .1);
}
.tl-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1rem;
}
.tl-dot {
  position: absolute;
  left: -2.4rem; top: .2rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.tl-year { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.tl-text { font-size: .88rem; color: var(--mid); line-height: 1.7; }


/* ============================================================
   15. PAGE CONTACT
============================================================ */

.contact-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon  { font-size: 1.2rem; margin-top: .1rem; }
.contact-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: .2rem; }
.contact-val   { font-size: .9rem; color: var(--charcoal); line-height: 1.6; }
.map-placeholder {
  background: var(--cream);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  border: 1px solid rgba(0, 0, 0, .07);
  font-size: .85rem;
  color: var(--mid);
}


/* ============================================================
   16. PAGE ARTISTES
============================================================ */

.artists-hero { background: var(--cream); padding: 5rem 3rem 3rem; }

.artists-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }

.artist-card {
  border: 1px solid rgba(0, 0, 0, .08);
  padding: 2rem;
  transition: all .25s;
  cursor: pointer;
}
.artist-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.artist-av {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
}
.artist-name  { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .2rem; }
.artist-from  { font-size: .73rem; color: var(--mid); margin-bottom: .8rem; }
.artist-stats { display: flex; gap: 1.5rem; }
.ast          { font-size: .73rem; color: var(--mid); }
.ast strong   { display: block; font-size: .9rem; color: var(--black); font-weight: 500; }


/* ============================================================
   17. TOAST (notifications temporaires)
============================================================ */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .05em;
  padding: .9rem 2rem;
  z-index: 700;
  transition: all .3s;
  opacity: 0;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* ============================================================
   18. OVERLAY ARRIÈRE-PLAN (pour les panneaux latéraux)
============================================================ */

.overlay-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(0, 0, 0, .25);
}
.overlay-bg.open { display: block; }


/* ============================================================
   19. SECTION "COMMENT ÇA MARCHE"
============================================================ */

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, .07);
  transition: border-color .25s;
}
.how-step:hover { border-color: var(--gold); }
.step-num  { font-family: var(--serif); font-size: 3rem; font-weight: 300; color: var(--gold2); line-height: 1; margin-bottom: 1rem; }
.step-icon { font-size: 1.5rem; margin-bottom: .8rem; }
.step-title { font-size: .85rem; font-weight: 500; letter-spacing: .05em; margin-bottom: .5rem; }
.step-text  { font-size: .8rem; color: var(--mid); line-height: 1.75; }


/* ============================================================
   20. TÉMOIGNAGES
============================================================ */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testi {
  padding: 2rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
}
.testi-stars {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: .6rem;
}
.testi-quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.testi-author       { font-size: .75rem; color: var(--mid); }
.testi-author strong { display: block; color: var(--black); font-weight: 500; }


/* ============================================================
   21. RESPONSIVE (mobile ≤ 900px)
============================================================ */

@media (max-width: 900px) {
  /* Navigation → hamburger dès 900px */
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .nav-right .btn-nav,
  .nav-right .btn-nav-outline,
  .nav-right .lang-switcher,
  .nav-right .nav-user,
  .nav-right #navLogoutBtn { display: none !important; }

  /* Hero en colonne unique */
  .hero                { grid-template-columns: 1fr; }
  .hero-right          { min-height: 400px; }

  /* Modal produit sans image */
  .modal               { grid-template-columns: 1fr; }
  .modal-img           { display: none; }

  /* Dashboard en colonne unique */
  .dash-layout         { grid-template-columns: 1fr; }
  .dash-sidebar        { position: relative; top: 0; height: auto; }
  .stat-cards          { grid-template-columns: 1fr 1fr; }

  /* Grilles en 2 colonnes */
  .how-grid            { grid-template-columns: 1fr 1fr; }
  .artists-grid        { grid-template-columns: 1fr 1fr; }

  /* Contact et pages en colonne unique */
  .contact-grid        { grid-template-columns: 1fr; }
  .team-grid,
  .values-grid         { grid-template-columns: 1fr 1fr; }

  /* AI Visualisation — colonne unique sur mobile */
  .ai-result-grid      { grid-template-columns: 1fr; }
  .ai-reco-panel       { position: static; }
}


/* ============================================================
   SÉCURITÉ PAIEMENT — badges de confiance & détection carte
============================================================ */

.payment-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .9rem 1.4rem;
  padding: .7rem 1rem;
  background: #f0f7f0;
  border: 1px solid rgba(45, 106, 79, .18);
  margin-bottom: 1.3rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .69rem;
  color: var(--success);
  font-family: var(--sans);
  font-weight: 500;
}

.card-type-row {
  display: flex;
  gap: .45rem;
  margin-bottom: 1.1rem;
  align-items: center;
}
.card-icon-img {
  padding: .22rem .55rem;
  border: 2px solid rgba(0, 0, 0, .1);
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--sans);
  color: var(--mid);
  letter-spacing: .03em;
  transition: border-color .2s, color .2s, opacity .2s;
  opacity: .38;
  user-select: none;
}
.card-icon-img.active {
  border-color: var(--gold);
  color: var(--charcoal);
  opacity: 1;
}

.cvv-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--mid);
  color: #fff;
  font-size: .6rem;
  cursor: help;
  margin-left: .3rem;
  position: relative;
  vertical-align: middle;
}
.cvv-hint::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  white-space: nowrap;
  background: var(--charcoal);
  color: #fff;
  font-size: .68rem;
  padding: .3rem .65rem;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity .15s;
}
.cvv-hint:hover::after { opacity: 1; }

/* 3D Secure overlay */
.tds-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s ease;
}
.tds-box {
  background: #fff;
  width: 340px;
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .28);
}
.tds-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1aff;
  letter-spacing: .04em;
  margin-bottom: .2rem;
}
.tds-subtitle {
  font-size: .72rem;
  color: var(--mid);
  margin-bottom: 1.4rem;
}
.tds-code-input {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  letter-spacing: .5em;
  border: 2px solid rgba(0, 0, 0, .15);
  padding: .65rem 0;
  outline: none;
  margin-bottom: .9rem;
  font-family: var(--sans);
  box-sizing: border-box;
}
.tds-code-input:focus  { border-color: #1a1aff; }
.tds-code-input.err    { border-color: var(--error); animation: shake .3s ease; }
.tds-hint {
  font-size: .73rem;
  color: var(--mid);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}


/* ============================================================
   WIDGET CHATBOT IA — Aria
============================================================ */

.chat-bubble-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
  transition: transform .2s ease, background .2s;
}
.chat-bubble-btn:hover { transform: scale(1.08); background: var(--charcoal); }
.chat-bubble-icon { width: 26px; height: 26px; color: var(--white); }

.chat-notif {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  animation: pulse 1.6s infinite;
}
.chat-notif.hidden { display: none; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

.chat-panel {
  position: fixed;
  bottom: 6.8rem;
  right: 2rem;
  width: 360px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 10px 48px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  z-index: 899;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.2rem;
  background: var(--black);
  color: var(--white);
  flex-shrink: 0;
}
.chat-agent-info { display: flex; align-items: center; gap: .75rem; }
.chat-agent-avatar {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--black);
  font-weight: 600;
  flex-shrink: 0;
}
.chat-agent-name { font-size: .86rem; font-weight: 500; letter-spacing: .04em; }
.chat-agent-status {
  font-size: .67rem;
  color: rgba(255, 255, 255, .58);
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .1rem;
}
.chat-online-dot {
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
}

.chat-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  cursor: pointer;
  padding: .3rem .5rem;
  line-height: 1;
  transition: color .15s;
}
.chat-close-btn:hover { color: var(--white); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 180px;
  max-height: 310px;
}

.chat-msg { display: flex; flex-direction: column; max-width: 84%; }
.chat-msg.aria { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.chat-msg-bubble {
  padding: .6rem .88rem;
  font-size: .81rem;
  line-height: 1.55;
  font-family: var(--sans);
}
.chat-msg.aria .chat-msg-bubble {
  background: var(--cream);
  color: var(--charcoal);
  border-radius: 0 10px 10px 10px;
}
.chat-msg.user .chat-msg-bubble {
  background: var(--black);
  color: var(--white);
  border-radius: 10px 10px 0 10px;
}

.chat-msg-time { font-size: .6rem; color: var(--mid); margin-top: .2rem; }
.chat-msg.user .chat-msg-time { text-align: right; }

.chat-typing {
  display: flex;
  gap: 4px;
  padding: .58rem .88rem;
  background: var(--cream);
  border-radius: 0 10px 10px 10px;
  align-self: flex-start;
  width: fit-content;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--mid);
  border-radius: 50%;
  animation: chatBounce .9s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-5px); }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  padding: 0 0 .2rem 0;
}
.chat-chip {
  font-size: .71rem;
  padding: .28rem .62rem;
  border: 1px solid rgba(201, 168, 76, .5);
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .15s;
  white-space: nowrap;
}
.chat-chip:hover { background: rgba(201, 168, 76, .12); }

.chat-input-area {
  display: flex;
  align-items: center;
  padding: .75rem .9rem;
  border-top: 1px solid rgba(0, 0, 0, .08);
  gap: .45rem;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, .12);
  padding: .58rem .82rem;
  font-size: .81rem;
  font-family: var(--sans);
  outline: none;
  background: transparent;
  min-width: 0;
}
.chat-input:focus { border-color: var(--gold); }
.chat-send-btn {
  width: 36px;
  height: 36px;
  background: var(--black);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
  transition: background .2s;
}
.chat-send-btn:hover { background: var(--charcoal); }

.chat-powered-by {
  padding: .4rem 1rem;
  font-size: .61rem;
  color: var(--mid);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: var(--cream);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .chat-panel       { width: calc(100vw - 2rem); right: 1rem; }
  .chat-bubble-btn  { right: 1rem; bottom: 1rem; }
  .chat-panel       { bottom: 5.5rem; }
}


/* ============================================================
   BOUTON MODE SOMBRE / CLAIR
============================================================ */

.dark-toggle {
  background: none;
  border: 1px solid rgba(0, 0, 0, .18);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  flex-shrink: 0;
  transition: border-color .2s, color .2s, transform .25s;
}
.dark-toggle:hover { border-color: var(--gold); color: var(--gold); transform: rotate(22deg); }
.dark-toggle .icon-moon { display: none; }


/* ============================================================
   MODE SOMBRE — body.dark
============================================================ */

/* Transitions globales lors du basculement */
body, nav, .checkout-modal, .auth-modal, .cart-panel,
.how-step, .testi, .hero-right, .chat-panel, .modal,
.artist-card, .dash-sidebar, .stat-card, .art-img,
.order-summary, .ck-content, .modal-body {
  transition: background-color .35s ease, color .25s ease, border-color .25s ease;
}

body.dark {
  --white: #111111;
  --cream: #1a1a1a;
  --mid:   #8c8680;
  background: #111111;
  color: #ede9e2;
}

/* Nav (fond codé en dur) */
body.dark nav {
  background: rgba(10, 10, 10, .97);
  border-bottom-color: rgba(255, 255, 255, .05);
}

/* Toggle en mode sombre */
body.dark .dark-toggle { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .6); }
body.dark .dark-toggle:hover { border-color: var(--gold); color: var(--gold); }
body.dark .dark-toggle .icon-sun  { display: none; }
body.dark .dark-toggle .icon-moon { display: block; }

/* Logo & liens nav (utilisent --black comme couleur de texte) */
body.dark .logo            { color: #ede9e2; }
body.dark .nav-links a:hover,
body.dark .nav-links a.active { color: #ede9e2; }
body.dark .nav-username    { color: #ede9e2; }
body.dark .nav-user        { border-color: rgba(255, 255, 255, .1); }

/* Section dark: doit rester très sombre */
body.dark .section-dark    { background: #060606; }

/* Hero right (fond codé en dur via variable) */
body.dark .floating-tag {
  background: rgba(22, 22, 22, .95);
  border-color: rgba(255, 255, 255, .09);
  color: #ede9e2;
}
body.dark .hero-badge      { background: #ede9e2; color: #111; }

/* Boutons */
body.dark .btn-nav-outline { color: #ede9e2; border-color: rgba(255, 255, 255, .22); }
body.dark .btn-nav-outline:hover { background: #ede9e2; color: #111; border-color: #ede9e2; }
body.dark .btn-outline     { color: #ede9e2; border-color: rgba(255, 255, 255, .22); }
body.dark .btn-outline:hover { background: #ede9e2; color: #111; border-color: #ede9e2; }
body.dark .filter-btn      { color: #8c8680; border-color: rgba(255, 255, 255, .12); }
body.dark .filter-btn:hover,
body.dark .filter-btn.active { background: #ede9e2; color: #111; border-color: #ede9e2; }
body.dark .ov-btn          { background: #ede9e2; color: #111; }

/* Formulaires */
body.dark .form-group input,
body.dark .form-group select,
body.dark textarea {
  border-color: rgba(255, 255, 255, .12);
  color: #ede9e2;
}
body.dark .form-group label { color: #8c8680; }

/* How-steps */
body.dark .how-step        { border-color: rgba(255, 255, 255, .07); }
body.dark .how-step:hover  { border-color: var(--gold); }

/* Témoignages */
body.dark .testi-author strong { color: #ede9e2; }

/* Artist cards */
body.dark .artist-card     { border-color: rgba(255, 255, 255, .07); }

/* Panier */
body.dark .cart-head       { border-bottom-color: rgba(255, 255, 255, .06); }
body.dark .cart-item       { border-bottom-color: rgba(255, 255, 255, .05); }

/* Checkout */
body.dark .checkout-steps  { border-bottom-color: rgba(255, 255, 255, .06); }
body.dark .ck-step         { color: #444; }
body.dark .ck-step.active  { color: #ede9e2; }

/* Paiement sécurisé */
body.dark .payment-trust-bar {
  background: rgba(45, 106, 79, .1);
  border-color: rgba(45, 106, 79, .2);
}
body.dark .tds-box         { background: #1a1a1a; }
body.dark .tds-code-input  { background: #161616; color: #ede9e2; border-color: rgba(255, 255, 255, .18); }

/* Chat */
body.dark .chat-panel      { border-color: rgba(255, 255, 255, .07); }
body.dark .chat-msg.aria .chat-msg-bubble { background: #252525; color: #ede9e2; }
body.dark .chat-input-area { border-top-color: rgba(255, 255, 255, .06); }
body.dark .chat-chip       { border-color: rgba(201, 168, 76, .3); color: #ede9e2; }


/* ============================================================
   ÉCRAN D'INTRO — Animation d'ouverture
============================================================ */

#introScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#introScreen.intro-exit {
  animation: introSlideUp .75s cubic-bezier(.65, 0, .35, 1) forwards;
  pointer-events: none;
}
@keyframes introSlideUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

#introCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.intro-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro-logo-mask {
  overflow: hidden;
  padding: .2rem 0;
}
.intro-logo {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: .15em;
  color: #f8f5f0;
  animation: introLogoIn .75s cubic-bezier(.22, 1, .36, 1) .3s both;
}
.intro-logo span { color: var(--gold); }
@keyframes introLogoIn {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.intro-bar-wrap {
  width: min(300px, 60vw);
  height: 1px;
  overflow: hidden;
  margin: 1.6rem 0 1.4rem;
}
.intro-bar {
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  animation: introBarIn .7s cubic-bezier(.22, 1, .36, 1) .95s forwards;
}
@keyframes introBarIn {
  to { transform: scaleX(1); }
}

.intro-tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(248, 245, 240, .58);
  letter-spacing: .1em;
  animation: introFadeUp .6s ease 1.45s both;
}

.intro-meta {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, .26);
  animation: introFadeUp .5s ease 1.75s both;
}

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-skip {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .42);
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: introFadeUp .4s ease 2.1s both;
  transition: color .2s, border-color .2s;
}
.intro-skip:hover { color: var(--gold); border-color: var(--gold); }


/* ============================================================
   HERO — État initial masqué (déclenché par body.intro-active)
============================================================ */

.hero-left > * {
  transition: opacity .8s ease, transform .8s ease;
}
.hero-right {
  transition: opacity .95s ease, transform .95s ease;
}

body.intro-active .hero-left > * {
  opacity: 0;
  transform: translateY(26px);
}
body.intro-active .hero-right {
  opacity: 0;
  transform: translateX(20px) scale(.97);
}

.hero-left > *.hero-in,
.hero-right.hero-in {
  opacity: 1 !important;
  transform: none !important;
}


/* ============================================================
   SCROLL-REVEAL — Apparition au défilement
============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   ACCESSIBILITÉ — Pas de mouvement
============================================================ */

@media (prefers-reduced-motion: reduce) {
  #introScreen { display: none !important; }
  body.intro-active .hero-left > *,
  body.intro-active .hero-right { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* ============================================================
   IMAGES RÉELLES — Malek Fassatoui
============================================================ */

/* Image dans les cartes de galerie */
.art-real-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}
.art-card:hover .art-real-img { transform: scale(1.03); }

/* Image dans le hero */
.hero-real-img {
  width: 320px;
  height: 400px;
  display: block;
  object-fit: cover;
}

/* Image dans la modal produit */
.modal-artwork-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  min-height: 300px;
}

/* Image dans le modal (conteneur) */
.modal-img {
  background: var(--cream);
  overflow: hidden;
}

/* ============================================================
   SÉLECTEUR DE LANGUE
============================================================ */

.lang-switcher {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-right: .4rem;
}

.lang-btn {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .08em;
  padding: .3rem .5rem;
  background: transparent;
  border: 1px solid rgba(0,0,0,.15);
  color: var(--mid);
  cursor: pointer;
  transition: all .2s;
  line-height: 1;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

body.dark .lang-btn {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.5);
}

body.dark .lang-btn:hover,
body.dark .lang-btn.active {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* Masquage des éléments nav sur mobile */
@media (max-width: 640px) {
  .lang-switcher { display: none; }
}


/* ============================================================
   ONBOARDING — Quiz préférences (première inscription)
============================================================ */

#onboardingModal {
  z-index: 900;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(6px);
}

.onboarding-modal {
  background: var(--white);
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

/* En-tête */
.ob-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
}
.ob-header .ob-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--black);
}
.ob-header .ob-logo span { color: var(--gold); }
.ob-welcome-line {
  font-size: .82rem;
  color: var(--mid);
  font-style: italic;
}

/* Barre de progression */
.ob-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem .6rem;
  flex-shrink: 0;
}
.ob-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(0,0,0,.1);
  border-radius: 2px;
  overflow: hidden;
}
.ob-progress-fill {
  height: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: width .4s ease;
}
.ob-step-counter {
  font-size: .7rem;
  color: var(--mid);
  letter-spacing: .08em;
  white-space: nowrap;
}

/* Corps */
.ob-body {
  flex: 1;
  padding: 1.6rem 2rem;
  overflow-y: auto;
}
.ob-step-content { animation: fadeIn .25s ease; }
.ob-title    { font-family: var(--serif); font-size: 1.55rem; font-weight: 300; margin-bottom: .4rem; line-height: 1.2; }
.ob-subtitle { font-size: .8rem; color: var(--mid); margin-bottom: 1.6rem; }

/* Options */
.ob-options {
  display: grid;
  gap: .75rem;
}
.ob-options-single { grid-template-columns: 1fr 1fr; }
.ob-options-multi  { grid-template-columns: 1fr 1fr; }

.ob-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.1rem 1.1rem 1rem;
  border: 1.5px solid rgba(0,0,0,.12);
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .15s;
  user-select: none;
}
.ob-option:hover {
  border-color: rgba(0,0,0,.3);
  transform: translateY(-1px);
}
.ob-option.ob-selected {
  border-color: var(--black);
  background: var(--black);
}
.ob-option.ob-selected .ob-opt-label,
.ob-option.ob-selected .ob-opt-desc,
.ob-option.ob-selected .ob-opt-icon { color: var(--white); }

.ob-opt-icon  { font-size: 1.6rem; margin-bottom: .2rem; }
.ob-opt-label { font-size: .88rem; font-weight: 600; color: var(--black); }
.ob-opt-desc  { font-size: .72rem; color: var(--mid); line-height: 1.4; }

/* Coche */
.ob-check {
  position: absolute;
  top: .6rem; right: .7rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  transition: opacity .15s;
}
.ob-option.ob-selected .ob-check { opacity: 1; }

/* Pied de page */
.ob-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
}
.ob-skip-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--mid);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.ob-skip-btn:hover { color: var(--black); }
.ob-next-btn { min-width: 140px; text-align: center; }
.ob-arrow    { font-size: .9rem; }

/* Responsive */
@media (max-width: 600px) {
  .ob-header          { padding: 1rem 1.2rem; }
  .ob-body            { padding: 1.2rem; }
  .ob-footer          { padding: 1rem 1.2rem; }
  .ob-options-single,
  .ob-options-multi   { grid-template-columns: 1fr; }
  .ob-title           { font-size: 1.2rem; }
}

/* Mode sombre */
body.dark .onboarding-modal { background: #111; }
body.dark .ob-header        { border-color: rgba(255,255,255,.08); }
body.dark .ob-option        { border-color: rgba(255,255,255,.12); }
body.dark .ob-option:hover  { border-color: rgba(255,255,255,.35); }
body.dark .ob-option.ob-selected { background: var(--white); border-color: var(--white); }
body.dark .ob-option.ob-selected .ob-opt-label,
body.dark .ob-option.ob-selected .ob-opt-desc  { color: var(--black); }
body.dark .ob-opt-label     { color: var(--white); }
body.dark .ob-opt-desc      { color: #999; }
body.dark .ob-footer        { border-color: rgba(255,255,255,.08); }
body.dark .ob-skip-btn      { color: #666; }
body.dark .ob-skip-btn:hover { color: #ccc; }


/* ============================================================
   RESPONSIVE MOBILE
   Hamburger · Menu tiroir · Breakpoints 768px + 480px
============================================================ */

/* --- Hamburger button (défini ici, affiché uniquement en mobile) --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
  z-index: 510;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Menu mobile (tiroir plein écran) --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 490;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-nav-links {
  list-style: none;
  flex: 1;
  padding: .5rem 0;
}
.mobile-nav-links li a {
  display: block;
  padding: 1.1rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
  cursor: pointer;
  transition: color .15s, background .15s;
}
.mobile-nav-links li a:hover { color: var(--gold); background: rgba(0,0,0,.02); }

.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0,0,0,.07);
}

/* Mode sombre — menu mobile */
body.dark .mobile-menu { background: #111; }
body.dark .mobile-nav-links li a { color: #ede9e2; border-color: rgba(255,255,255,.07); }
body.dark .mobile-nav-links li a:hover { color: var(--gold); background: rgba(255,255,255,.03); }
body.dark .mobile-menu-footer { border-color: rgba(255,255,255,.08); }
body.dark .nav-hamburger span { background: #ede9e2; }


/* ============================================================
   BREAKPOINT 768px — tablettes & téléphones
============================================================ */
@media (max-width: 768px) {

  /* --- Navigation --- */
  nav { padding: 0 1rem; }
  .logo { font-size: 1.1rem; letter-spacing: .1em; }
  .nav-right { gap: .6rem; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-right .btn-nav,
  .nav-right .btn-nav-outline,
  .nav-right .lang-switcher,
  .nav-right .nav-user,
  .nav-right #navLogoutBtn { display: none !important; }
  /* Garder : dark-toggle, cart-btn, hamburger */

  /* --- Sections --- */
  .section { padding: 3rem 1.2rem; }
  .section-sm { padding: 2rem 1.2rem; }
  .about-hero { padding: 4rem 1.5rem; }
  .artists-hero { padding: 3rem 1.2rem 2rem; }

  /* --- Hero --- */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 4rem 1.2rem 1.5rem; }
  .hero-right { padding: 1.5rem 1.2rem 3rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-artwork-stage { width: min(290px, 88%); margin: 0 auto; }
  .hero-thumbs { gap: .5rem; justify-content: center; }
  .hero-thumb { width: 46px; height: 58px; }
  .hero-ctas { flex-direction: column; gap: .7rem; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .hero-stats-row { gap: 1rem; }

  /* --- Galerie --- */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* --- Comment ça marche --- */
  .how-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* --- Témoignages --- */
  .testimonials { flex-direction: column; gap: 1rem; }

  /* --- Formulaires --- */
  .form-row { grid-template-columns: 1fr; }

  /* --- Dashboard --- */
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: relative; top: 0; height: auto;
    display: flex; flex-wrap: wrap; gap: .4rem;
    padding: .8rem 1rem .5rem;
    overflow-x: auto;
  }
  .dash-logo { display: none; }
  .dash-nav-item {
    font-size: .7rem; padding: .45rem .65rem;
    flex: 0 0 auto; margin-bottom: 0;
    border-radius: 3px;
    white-space: nowrap;
  }
  .dash-icon { font-size: .85rem; width: auto; }
  .dash-main { padding: 1.5rem 1rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.2rem; }
  .dash-section { padding: 1rem; }
  .order-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* --- À propos --- */
  .team-grid { grid-template-columns: 1fr 1fr !important; gap: 1.2rem; margin-top: 2rem; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 1.5rem; }
  .tl-dot { left: -1.7rem; }

  /* --- Artistes --- */
  .artists-grid { grid-template-columns: 1fr 1fr; }
  .artist-featured-grid { grid-template-columns: 1fr !important; }
  .about-mission-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* --- Visualiseur --- */
  .viz-wrap { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
  .viz-tabs { flex-wrap: wrap; gap: .4rem; }

  /* --- Contact --- */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }

  /* --- Modals --- */
  .modal-bg { padding: .3rem; align-items: flex-end; }
  .modal { grid-template-columns: 1fr; border-radius: 0; max-height: 95vh; overflow-y: auto; }
  .modal-img { display: none; }
  .modal-body { padding: 1.5rem 1.2rem; }
  .auth-modal { width: 100%; max-width: 100%; border-radius: 0; }
  .checkout-modal { width: 100%; max-height: 95vh; overflow-y: auto; border-radius: 0; }
  .checkout-steps { gap: 0; }
  .ck-step { font-size: .65rem; padding: .7rem .5rem; flex: 1; text-align: center; }

  /* --- Panier --- */
  .cart-panel { width: 100%; right: -100%; }
  .cart-panel.open { right: 0; }
  .cart-head { padding: 1rem 1.2rem; }
  .cart-items-list { padding: 0 1.2rem; }
  .cart-foot { padding: 1rem 1.2rem; }
}


/* ============================================================
   BREAKPOINT 480px — petits téléphones
============================================================ */
@media (max-width: 480px) {
  .logo { font-size: .9rem; letter-spacing: .08em; }
  nav { padding: 0 .8rem; }
  .nav-right { gap: .4rem; }

  .section { padding: 2.5rem 1rem; }
  .about-hero { padding: 3rem 1rem; }
  .artists-hero { padding: 2.5rem 1rem 1.5rem; }

  /* Galerie : 1 colonne sur très petit écran */
  .gallery-grid { grid-template-columns: 1fr; gap: .8rem; }

  /* Comment ça marche : 1 colonne */
  .how-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  /* Stats dashboard : 1 colonne */
  .stat-cards { grid-template-columns: 1fr; }

  /* Équipe et valeurs : 1 colonne */
  .team-grid { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr; }
  .artists-grid { grid-template-columns: 1fr; }

  /* Dashboard sidebar : icônes seules */
  .dash-nav-item span:not(.dash-icon) { display: none; }
  .dash-nav-item { padding: .5rem .6rem; }
  .dash-main { padding: 1.2rem .8rem; }

  /* Hero : ajustements supplémentaires */
  .hero-left { padding: 3.5rem 1rem 1rem; }
  .hero-right { padding: 1rem 1rem 2.5rem; }
  .hero-artwork-stage { width: min(260px, 90%); }

  /* Viz : masquer la scène complexe sur très petit écran */
  .room-scene { min-height: 180px; }

  /* Modals : plein écran */
  .modal-bg { padding: 0; align-items: flex-start; }
  .checkout-modal, .auth-modal { min-height: 100vh; }

  /* Masquer certaines colonnes du tableau de commandes */
  .order-table th:nth-child(3),
  .order-table td:nth-child(3) { display: none; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #1a1a1a;
  color: #ede9e2;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-size: .82rem;
  color: #888;
  margin-bottom: .5rem;
  line-height: 1.5;
}

.footer-copy {
  font-size: .75rem;
  color: #555;
  margin-top: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col-title {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #666;
  margin-bottom: .3rem;
  font-weight: 600;
}

.footer-col a {
  font-size: .82rem;
  color: #aaa;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: .75rem;
  color: #555;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.footer-bottom-sep { color: #333; }

/* ── Mentions légales modal ── */
.legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.legal-modal.open { display: flex; }
.legal-box {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: #1a1a1a;
}
.legal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
}
.legal-box h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.legal-box h3 { font-size: .95rem; margin: 1.2rem 0 .4rem; }
.legal-box p, .legal-box li { font-size: .85rem; line-height: 1.7; color: #444; }

/* ── Footer responsive ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { padding: 2.5rem 1.2rem 1.5rem; }
  .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .3rem; }
  .footer-bottom-sep { display: none; }
}
