@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #05050a;
  --bg-dark: #0a0b12;
  --bg-surface: rgba(22, 23, 33, 0.65);
  --bg-surface-hover: rgba(30, 32, 45, 0.85);
  
  --gold-primary: #D4AF37;
  --gold-light: #FDE047;
  --gold-dark: #997A15;
  --copper: #B87333;
  --mystic-purple: #4A148C;
  --mystic-blue: #1A237E;
  --leaf-green: #4A5D23;
  --leaf-brown: #8B4513;
  
  --text-main: #EDEDED;
  --text-muted: #A0AAB2;
  
  --border-glow: rgba(212, 175, 55, 0.3);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --max-width: 1200px;
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-fast: 0.2s ease-out;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Barres de défilement — thème (or / fond sombre) */
  --scrollbar-track: rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: rgba(212, 175, 55, 0.45);
  --scrollbar-thumb-hover: rgba(212, 175, 55, 0.68);
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Anti-spam : champ leurre masqué (humains ne le voient pas) */
.odam-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Barres de défilement — thème global (Firefox + WebKit / Chromium) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.58), rgba(212, 175, 55, 0.22));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover), rgba(212, 175, 55, 0.38));
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: var(--bg-deep);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(74, 50, 20, 0.2), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(26, 60, 30, 0.2), transparent 50%),
    url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.07"/%3E%3C/svg%3E');
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-attachment: fixed;
}

/* iOS / mobile : fixed background peut provoquer des saccades ou du rognage */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  body.tarot-standard-page::before,
  body.cuisine-page::before {
    background-attachment: scroll;
  }
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 48;
  pointer-events: auto;
}

body.tarot-standard-page {
  background: var(--bg-deep);
  position: relative;
}

body.tarot-standard-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('assets/tarot/tarot-mat-navy-bg.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  filter: blur(4px); /* Effet de flou sur le tapis */
  z-index: -1;
  transform: scale(1.05); /* Évite les bords blancs */
}

/* Page Cuisine alternative : même principe que Tarot (fond flouté + carte vitrée) */
body.cuisine-page {
  background: var(--bg-deep);
  position: relative;
}

body.cuisine-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(38, 30, 20, 0.82), rgba(12, 10, 8, 0.9)),
    var(--cuisine-bg-image, none);
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
  filter: blur(5px);
  transform: scale(1.06);
}

.cuisine-page-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.cuisine-page-wrapper .page-content {
  position: relative;
  z-index: 1;
}

/* Bannière illustration (paysage + texte dans l’image) : pas de rognage type cover */
.cuisine-page-wrapper .cuisine-page-banner img {
  max-height: min(52vh, 480px);
  object-fit: contain;
  object-position: center;
  background: rgba(14, 12, 10, 0.45);
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(253, 224, 71, 0.5);
}

/* HEADER & NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0b12;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 15px var(--border-glow), 0 0 20px rgba(212, 175, 55, 0.4);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 2rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.header-logo-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 1.2rem;
  text-decoration: none;
}

a .header-logo-block:hover {
  text-shadow: none;
  color: inherit;
}

.header-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background-color: #fff;
  box-shadow: 0 0 15px var(--border-glow);
  transition: var(--transition-smooth);
}

.header-logo:hover {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.2rem;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--gold-primary);
}

.main-nav a:hover {
  color: var(--gold-light);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Nav — sous-menu Tarot */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-dropdown-trigger {
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--gold-primary);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown[open] .nav-dropdown-trigger {
  color: var(--gold-light);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown[open] .nav-dropdown-trigger::after {
  width: 100%;
}

.nav-dropdown-caret {
  font-size: 0.65em;
  opacity: 0.75;
  margin-top: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 14rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: rgba(12, 10, 18, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown[open] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(212, 175, 55, 0.08);
}

/* Menu mobile — bouton (masqué sur grand écran) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-fast);
  z-index: 5;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  outline: none;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* AUDIO FAB — absolute dans .nav-container pour suivre le header sticky (pas fixed sur la fenêtre) */
.audio-fab {
  background: rgba(10, 8, 16, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.6);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  font-size: 1.1rem;
  transition: all 0.4s ease;
  position: absolute;
  right: 2rem;
  top: 0.6rem;
  z-index: 5;
}

.audio-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-light);
}

.audio-fab.is-paused {
  opacity: 0.6;
  box-shadow: none;
  background: rgba(20, 20, 25, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #777;
}

.audio-icon-note { margin-right: 3px; }
.audio-icon-state { font-size: 0.85rem; }

.header-social {
  position: absolute;
  left: 2rem;
  top: 0.6rem;
  z-index: 5;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .header-social {
    position: static;
    margin-bottom: 0.5rem;
  }
}

/* Navigation mobile : grille + panneau déroulant */
@media (max-width: 991px) {
  .nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem 0.65rem;
    padding: 0.65rem 1rem 0.5rem;
    position: relative;
  }

  .header-social {
    position: static;
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .header-logo-block {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .brand-title {
    font-size: clamp(0.95rem, 4.2vw, 1.45rem);
    letter-spacing: 0.06em;
  }

  .brand-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .header-logo {
    width: 52px;
    height: 52px;
  }

  .audio-fab {
    grid-column: 3;
    grid-row: 2;
    position: static !important;
    margin: 0 !important;
    top: auto;
    right: auto;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    justify-self: end;
    z-index: 5;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0.5rem 1rem 1.25rem;
    background: rgba(10, 11, 18, 0.98);
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    z-index: 102;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.is-nav-open .main-nav {
    display: flex;
  }

  .main-nav > * {
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  }

  .main-nav > *:last-child {
    border-bottom: none;
  }

  .main-nav a {
    padding: 0.85rem 0.75rem;
    text-align: center;
    font-size: 0.82rem;
  }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-trigger {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 0.75rem;
    font-size: 0.82rem;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-dropdown[open] .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    margin: 0.35rem 0 0.5rem;
    padding: 0.35rem 0;
    box-shadow: none;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
  }

  .nav-dropdown-menu a {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
}

.site-footer .admin-gear-link {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
}

.admin-gear-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  color: var(--gold-primary);
  transition: all 0.3s ease;
  margin-top: 1rem;
  margin-left: auto;
  opacity: 0.4;
  text-decoration: none;
}

.admin-gear-link:hover {
  opacity: 1;
  transform: rotate(90deg) scale(1.1);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 15px var(--border-glow);
  color: var(--gold-light);
}

.admin-gear-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Social Icons */
.social-icon-svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-primary);
  transition: transform 0.3s ease, fill 0.3s ease;
}

.social-link:hover .social-icon-svg {
  transform: scale(1.1);
  fill: var(--gold-light);
  filter: drop-shadow(0 0 8px var(--gold-primary));
}

.footer-social {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-social-block {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-social-block span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--gold-primary);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn.primary {
  background: linear-gradient(45deg, var(--gold-dark), var(--gold-primary));
  color: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  color: #000;
}

.btn.ghost {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
}

.btn.ghost:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) inset, 0 0 15px rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
}

.btn.full-width {
  width: 100%;
}

/* HERO SECTION */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin: 0 1rem;
  position: relative;
  z-index: 2;
  background: rgba(245, 235, 210, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.15);
  animation: float 6s ease-in-out infinite;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  background-color: #fff;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(to bottom right, #FDE047, #D4AF37, #B87333);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: #f5e6c8;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-text {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* LAYOUT & CARDS */
.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* FULL-WIDTH PAGE LAYOUT (single container) */
.page-content {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 3rem;
  background: rgba(245, 235, 210, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* TAROT FAN CARDS */
.tarot-fan-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.tarot-fan-wrapper .page-content {
  position: relative;
  z-index: 1;
}

.fan-card {
  position: absolute;
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.1);
  z-index: 0;
  opacity: 0.88;
  pointer-events: none;
}

@keyframes fanFloat1 {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50% { transform: rotate(calc(var(--rot) + 3deg)) translateY(-8px); }
}
@keyframes fanFloat2 {
  0%, 100% { transform: rotate(var(--rot)) translateX(0); }
  50% { transform: rotate(calc(var(--rot) - 2deg)) translateX(6px); }
}
@keyframes fanFloat3 {
  0%, 100% { transform: rotate(var(--rot)) translateY(0) translateX(0); }
  35% { transform: rotate(calc(var(--rot) + 2deg)) translateY(-6px) translateX(4px); }
  70% { transform: rotate(calc(var(--rot) - 1deg)) translateY(3px) translateX(-3px); }
}
@keyframes fanFloat4 {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  40% { transform: rotate(calc(var(--rot) - 3deg)) translateY(7px); }
  75% { transform: rotate(calc(var(--rot) + 1deg)) translateY(-4px); }
}
@keyframes fanFloat5 {
  0%, 100% { transform: rotate(var(--rot)) translateX(0) translateY(0); }
  30% { transform: rotate(calc(var(--rot) + 2deg)) translateX(-5px) translateY(-5px); }
  60% { transform: rotate(calc(var(--rot) - 2deg)) translateX(4px) translateY(3px); }
}

.fan-left-1 {
  --rot: -25deg;
  top: 0%;
  left: 0.5%;
  animation: fanFloat1 7s ease-in-out infinite;
}
.fan-left-2 {
  --rot: -8deg;
  top: 22%;
  left: 3.5%;
  animation: fanFloat3 9s ease-in-out infinite;
}
.fan-left-3 {
  --rot: -20deg;
  top: 44%;
  left: 0.3%;
  animation: fanFloat2 11s ease-in-out infinite;
}
.fan-left-4 {
  --rot: -12deg;
  top: 66%;
  left: 4%;
  animation: fanFloat5 8s ease-in-out infinite;
}
.fan-left-5 {
  --rot: -28deg;
  top: 87%;
  left: 1.5%;
  animation: fanFloat4 10s ease-in-out infinite;
}

.fan-right-1 {
  --rot: 20deg;
  top: 3%;
  right: 3.5%;
  animation: fanFloat2 8s ease-in-out infinite;
}
.fan-right-2 {
  --rot: 28deg;
  top: 24%;
  right: 0.5%;
  animation: fanFloat4 10s ease-in-out infinite;
}
.fan-right-3 {
  --rot: 10deg;
  top: 46%;
  right: 3%;
  animation: fanFloat1 12s ease-in-out infinite;
}
.fan-right-4 {
  --rot: 22deg;
  top: 68%;
  right: 0.8%;
  animation: fanFloat3 7.5s ease-in-out infinite;
}
.fan-right-5 {
  --rot: 16deg;
  top: 89%;
  right: 3.8%;
  animation: fanFloat5 9.5s ease-in-out infinite;
}

@media (max-width: 1200px) {
  .fan-card {
    width: 65px;
    opacity: 0.35;
  }
}

@media (max-width: 900px) {
  .fan-card {
    display: none;
  }
}

.page-hero {
  text-align: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  margin-bottom: 0;
}

.page-hero .tagline {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--gold-primary);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.page-hero h1 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 0;
  line-height: 1.3;
}

.page-hero .page-intro {
  font-size: 1.05rem;
  color: #e8e4dc;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.85;
  text-align: left;
}

.page-banner {
  margin: 0.8rem 0;
}

.page-banner img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.page-section {
  margin-top: 1rem;
  padding-top: 0.8rem;
}

.page-section h2 {
  font-size: 1.35rem;
  color: var(--gold-light);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  letter-spacing: 0.02em;
}

.page-section p {
  color: #e8e4dc;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-size: 1rem;
  line-height: 1.85;
  text-align: left;
}

.page-cta {
  margin-top: 1rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.page-cta h3 {
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.page-cta p {
  color: #e8e4dc;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  max-width: 650px;
  margin-inline: auto;
  line-height: 1.8;
}

.page-cta .btn {
  margin-top: 0.5rem;
}

/* Page Pratiques : bannière paysage (évite le rognage type « cover ») */
.pratiques-banner img {
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: rgba(8, 10, 14, 0.35);
}

/* Cuisine alternative : mise en page avec photos sur les côtés */
.cuisine-alternative-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  gap: 2rem;
  align-items: start;
}

.cuisine-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cuisine-side img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  object-fit: cover;
}

.cuisine-center {
  min-width: 0;
}

.cuisine-inline-image {
  margin: 1.4rem 0;
}

.cuisine-inline-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  object-fit: cover;
}

@media (max-width: 980px) {
  .cuisine-alternative-layout {
    grid-template-columns: 1fr;
  }
  .cuisine-side {
    display: none;
  }

  .cuisine-page-wrapper .cuisine-page-banner img {
    max-height: min(44vh, 360px);
  }
}

/* Tarot en ligne – rubrique dédiée */
.tarot-pane {
  display: none;
}

.tarot-pane.active {
  display: block;
}

/* Quand "Tarot en ligne" est actif, masquer "Nos Ateliers" (Tarot de Marseille) */
#tarot-en-ligne.active ~ #ateliers {
  display: none;
}

.tarot-top-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto 1.1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
  padding: 0 1rem;
}

.tarot-top-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
  text-decoration: none;
  text-align: center;
}

.tab-subtitle {
  display: block;
  font-size: 0.65em;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-top: 2px;
  text-transform: none;
}

.tarot-top-tab:hover {
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.tarot-top-tab.active {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.tarot-top-tab.active .tab-subtitle {
  opacity: 1;
  color: var(--gold-light);
}

.tarot-en-ligne-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.tarot-en-ligne-hero {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  padding-bottom: 1rem;
}

.tarot-en-ligne-hero .tarot-en-ligne-title {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  margin: 0;
  line-height: 1.25;
}

/* Visuel — cadre décoratif type livre / carte */
.tarot-en-ligne-hero-visual {
  position: relative;
  margin: 0 0 1.35rem;
  width: 100%;
  padding: clamp(12px, 2.2vw, 18px);
  border-radius: 2px;
  background: linear-gradient(
    155deg,
    rgba(35, 30, 24, 0.92) 0%,
    rgba(14, 12, 18, 0.97) 45%,
    rgba(22, 18, 28, 0.95) 100%
  );
  border: 2px solid var(--gold-primary);
  box-shadow:
    inset 0 0 0 1px rgba(253, 224, 71, 0.22),
    inset 0 0 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(184, 115, 51, 0.45),
    0 10px 36px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(212, 175, 55, 0.06);
}

.tarot-en-ligne-hero-visual::before,
.tarot-en-ligne-hero-visual::after {
  content: '';
  position: absolute;
  width: clamp(18px, 4vw, 28px);
  height: clamp(18px, 4vw, 28px);
  pointer-events: none;
  z-index: 2;
}

/* coins ornement (équerres) */
.tarot-en-ligne-hero-visual::before {
  top: clamp(10px, 1.8vw, 14px);
  left: clamp(10px, 1.8vw, 14px);
  border-top: 2px solid var(--gold-light);
  border-left: 2px solid var(--gold-light);
  box-shadow: -1px -1px 12px rgba(253, 224, 71, 0.15);
}

.tarot-en-ligne-hero-visual::after {
  bottom: clamp(10px, 1.8vw, 14px);
  right: clamp(10px, 1.8vw, 14px);
  border-bottom: 2px solid var(--gold-light);
  border-right: 2px solid var(--gold-light);
  box-shadow: 1px 1px 12px rgba(253, 224, 71, 0.15);
}

.tarot-en-ligne-hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: min(38vh, 320px);
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 1px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.tarot-en-ligne-hero-lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #e8e4dc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.tarot-en-ligne-surface {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  background: rgba(245, 235, 210, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tarot-parchemin-frame {
  background: linear-gradient(165deg, #fefdfb 0%, #f3ebe0 100%);
  padding: 0.65rem;
  border-radius: var(--radius-md);
}

.tarot-parchemin-img {
  object-fit: contain;
}

.tarot-en-ligne-subtitle {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  color: var(--gold-light);
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  text-align: center;
}

.tarot-en-ligne-prose + .tarot-en-ligne-subtitle {
  margin-top: 1.75rem;
}

.tarot-en-ligne-prose p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #e8e4dc;
  line-height: 1.75;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.tarot-en-ligne-prose p:last-child {
  margin-bottom: 0;
}

.tarot-en-ligne-prose--tight-top {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #e8e4dc;
  line-height: 1.75;
  text-align: left;
}

.tarot-en-ligne-audience {
  margin: 0 0 0.25rem;
  padding: 0 0 0 1.15rem;
  list-style: none;
}

.tarot-en-ligne-audience li {
  position: relative;
  margin: 0 0 0.95rem;
  padding-left: 0.35rem;
  font-size: 0.98rem;
  color: #e8e4dc;
  line-height: 1.68;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.tarot-en-ligne-audience li::before {
  content: '';
  position: absolute;
  left: -1.05rem;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-primary));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.tarot-en-ligne-audience li strong {
  color: var(--gold-light);
  font-weight: 600;
}

.tarot-en-ligne-reservations {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.tarot-en-ligne-booking-title {
  font-size: 1.35rem;
  color: var(--gold-light);
  text-align: center;
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tarot-en-ligne-empty {
  text-align: center;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Tarot en ligne : Titre et Accroches ── */
.tarot-en-ligne-hero {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 5;
}

.tarot-en-ligne-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fff 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.8rem 0;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: none; /* Shadow breaks gradient clip on some browsers */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.9;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.4rem 1.5rem;
  margin-bottom: 0.5rem;
}

.tarot-en-ligne-hero-tagline-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  font-style: italic;
  text-transform: none;
  color: var(--gold-light);
  margin: 0.5rem 0 0;
  opacity: 0.75;
}

.tarot-en-ligne-visual-parchemin {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  background: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--gold-primary);
  outline: 3px solid rgba(212, 175, 55, 0.15);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.tarot-parchemin-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
  transition: transform 0.6s ease;
}

.tarot-en-ligne-visual-parchemin:hover .tarot-parchemin-img {
  transform: translateY(-5px);
}

/* ── Tarotheme : Visuel hero centralisé ── */
.tarotheme-hero-visual {
  position: relative;
  max-width: 650px;
  margin: 1rem auto 2.5rem;
  padding: 1rem;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, transparent 80%);
  border-radius: var(--radius-lg);
  animation: tarotHeroIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tarotHeroIn {
  from { opacity: 0; transform: translateY(20px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tarotheme-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--gold-primary);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(212, 175, 55, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tarotheme-hero-visual:hover .tarotheme-hero-img {
  transform: scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6);
}

.celestial-zone-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #15121b 0%, #08070b 100%);
  overflow: hidden;
}

#constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.tarot-en-ligne-section {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 6rem 0;
}

.tarot-en-ligne-inner {
  position: relative;
  z-index: 10; /* Au-dessus du canvas */
  max-width: 1200px;
  margin: 0 auto;
}

.tarot-en-ligne-surface {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 4rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.tarot-en-ligne-hero-lead {
  margin: 0 0 2.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 45rem;
  margin-inline: auto;
  font-family: var(--font-heading);
}

.tarot-en-ligne-subtitle {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin: 3rem 0 1.5rem;
  letter-spacing: 0.1em;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
  text-transform: uppercase;
}

.tarot-en-ligne-prose p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: #f0ede8;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: justify;
}

.tarot-en-ligne-audience li {
  color: #f0ede8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tarot-en-ligne-audience li strong {
  color: var(--gold-light);
}

@media (max-width: 960px) {
  .tarot-en-ligne-surface {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .tarot-en-ligne-surface {
    padding: 2rem 1.25rem;
  }
}


/* ATELIERS CARDS SECTION (outside container) */
.ateliers-section {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 2rem 2rem 2rem;
}

.ateliers-section-title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.8rem;
  letter-spacing: 0.03em;
}

.ateliers-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.ateliers-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.atelier-card {
  box-sizing: border-box;
  flex: 1 1 calc(50% - 1rem);
  max-width: min(560px, calc(50% - 1rem));
  min-width: min(100%, 280px);
  background: rgba(245, 235, 210, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.atelier-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(212, 175, 55, 0.1);
}

.atelier-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.atelier-card:hover .atelier-card-img {
  filter: brightness(1.1);
}

.atelier-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.atelier-card-body h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  line-height: 1.3;
}

.atelier-card-location {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.atelier-card-desc {
  font-size: 0.9rem;
  color: #e8e4dc;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
  flex: 1;
}

.atelier-card-voir-creneaux {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-light);
  text-align: center;
  margin: 0.75rem 0 1.1rem;
  padding: 0.6rem 0.9rem;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.atelier-card-voir-creneaux strong {
  color: var(--gold-light);
}

.atelier-card-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.atelier-card-dates-label {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  margin-bottom: 0.2rem;
}

.atelier-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--gold-light);
  min-width: 0;
  text-align: center;
}

.atelier-card-date .date-heure-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem 0.4rem;
}

.atelier-card-date .date-day {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.atelier-card-date .date-time {
  color: var(--gold-primary);
  font-size: 0.75rem;
  white-space: nowrap;
}

.atelier-card-date .date-places {
  font-size: 0.75rem;
  font-weight: 600;
  color: #28a745;
}

.atelier-card-date .date-places.is-full {
  color: #dc3545;
}

@media (max-width: 520px) {
  .atelier-card-dates {
    grid-template-columns: 1fr;
  }
}

.atelier-card-availability {
  text-align: center;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.atelier-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  margin-top: auto;
  width: 100%;
}

.atelier-card-footer > .atelier-card-info {
  width: 100%;
  order: -1;
}

.atelier-card-footer .btn {
  align-self: center;
}

.atelier-card-info {
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
}

.atelier-card-places {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.atelier-card-places.is-full {
  color: #dc3545;
  font-weight: 600;
}

.atelier-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-heading);
}
.atelier-card-hebergement {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}
.resa-hebergement {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.3rem;
}

/* Fixed bottom CTA button */
.fixed-bottom-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  background: var(--gold-primary);
  color: var(--bg-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), 0 2px 8px rgba(0,0,0,0.4);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.fixed-bottom-cta:hover {
  background: var(--gold-light);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5), 0 4px 12px rgba(0,0,0,0.5);
}

.fixed-bottom-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.fixed-bottom-cta.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

@media (max-width: 768px) {
  .fixed-bottom-cta {
    font-size: 0.78rem;
    padding: 0.7rem 1.5rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 2rem);
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

@media (max-width: 768px) {
  .page-content {
    margin: 1rem;
    padding: 1.5rem 1.2rem;
  }
  .page-hero {
    padding-bottom: 1.5rem;
  }
  .page-hero h1 {
    font-size: 1.4rem;
  }
  .page-hero .page-intro {
    font-size: 0.95rem;
  }
  .page-section {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
  }
  .page-section h2 {
    font-size: 1.15rem;
  }
  .page-section p {
    font-size: 0.92rem;
  }
  .page-cta h3 {
    font-size: 1.1rem;
  }
  .page-cta p {
    font-size: 0.9rem;
  }
  .ateliers-section-title {
    font-size: 1.3rem;
  }
  .ateliers-cards .atelier-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
  .ateliers-section {
    padding: 1rem 1rem 3rem;
  }
  .atelier-card-body {
    padding: 1.3rem;
  }
}

.page-shell {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.page-main, .page-aside {
  background: rgba(245, 235, 210, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.page-main:hover, .page-aside:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.15);
}

.page-main::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"%3E%3Cpath d="M100 0 C 80 20 70 50 100 100" fill="none" stroke="%234A5D23" stroke-width="1"/%3E%3Cpath d="M100 0 C 70 10 40 0 0 0" fill="none" stroke="%234A5D23" stroke-width="1"/%3E%3C/svg%3E');
  pointer-events: none;
}

.tagline {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--gold-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.owners-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.owners-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.owners-title-block {
  flex-grow: 1;
}

@media (max-width: 600px) {
  .owners-intro {
    flex-direction: column;
    text-align: center;
  }
}

.page-main h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.page-main h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.page-main p, .page-aside p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #f0ece4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.info-pill {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* LISTS */
.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.list-check li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 1.2rem;
  line-height: 1;
  text-shadow: 0 0 8px var(--gold-primary);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background: rgba(245, 235, 210, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 15px rgba(212, 175, 55, 0.1) inset;
  background: rgba(245, 235, 210, 0.18);
}

.info-card:hover::before {
  opacity: 1;
}

.card-illustration, .section-illustration {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  filter: brightness(0.95) contrast(1.05);
  transition: var(--transition-smooth);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.info-card:hover .card-illustration {
  filter: brightness(1) contrast(1.05);
}

.card-tag {
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

/* GALLERIES */
.tarot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tarot-photo {
  margin: 0;
  background: rgba(245, 235, 210, 0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.tarot-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.tarot-photo:hover {
  transform: scale(1.03) rotate(1deg);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.tarot-photo:hover img {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.6);
}

.tarot-photo figcaption {
  font-size: 0.9rem;
  color: #f0ece4;
  text-align: center;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* FORMS */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}
input[type="date"],
input[type="time"],
input[type="number"] {
  background: var(--bg-deep);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  background: rgba(10, 11, 18, 0.8);
}

/* --- Admin : sections & options --- */
/* --- Admin : galerie de vignettes (barre horizontale un peu plus basse) --- */
.admin-thumb-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.admin-thumb-gallery::-webkit-scrollbar {
  height: 8px;
}
.admin-thumb-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.55), rgba(212, 175, 55, 0.22));
  border: 1px solid rgba(212, 175, 55, 0.12);
}
.admin-thumb-gallery::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--scrollbar-thumb-hover), rgba(212, 175, 55, 0.35));
}

.admin-section-block {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212,175,55,0.1);
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-section-title {
  font-size: 1rem;
  color: var(--gold-primary);
  margin: 0 0 0.8rem;
  font-weight: 600;
}
.admin-options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.2rem;
}
.admin-check-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 0;
}
.admin-check-option input[type="checkbox"] { width: auto; }
.admin-check-option.small { font-size: 0.78rem; }
.admin-select {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- Admin : carte créneau existant --- */
.admin-creneaux-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.admin-creneau-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 0.3s;
  width: 100%;
  box-sizing: border-box;
}
.admin-creneau-card.marked-delete {
  opacity: 0.35;
}

.admin-creneaux-add-block .admin-creneaux-add-grid {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .admin-creneaux-add-block .admin-creneaux-add-grid {
    grid-template-columns: 1fr;
  }
}
.admin-creneaux-add-block .admin-creneaux-plages-wrap {
  grid-column: 1 / -1;
}
.admin-creneaux-add-block .admin-plages-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.admin-creneaux-add-block .admin-plage-block {
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.admin-creneaux-add-block .btn-add-creneau {
  margin-top: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}

.admin-date-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.admin-date-group {
  padding: 1rem 1rem 0.75rem;
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 12px;
  background: rgba(0,0,0,0.12);
}
.admin-date-group__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
  min-height: 1.5rem;
}
.admin-date-groups__footer {
  margin: 0.5rem 0 0;
}

/* Créneaux passés : mise en évidence dans le planning admin */
.admin-creneau-past {
  border-color: rgba(148, 163, 184, 0.4) !important;
  background: rgba(30, 41, 59, 0.5) !important;
}
.admin-creneau-past summary {
  background: rgba(51, 65, 85, 0.4) !important;
  border-left: 3px solid #94a3b8;
}
.admin-creneau-past-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.acc-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.8rem;
  padding: 0.6rem 0.9rem;
}
.acc-field {
  flex-shrink: 0;
}
.acc-field label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.acc-field input[type="date"] {
  background: var(--bg-deep);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 7px;
  padding: 0.3rem 0.4rem;
  color: var(--text-main);
  font-size: 0.8rem;
  font-family: var(--font-body);
  width: 130px;
  box-sizing: border-box;
}
.acc-field input[type="number"] {
  background: var(--bg-deep);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 7px;
  padding: 0.3rem 0.4rem;
  color: var(--text-main);
  font-size: 0.8rem;
  font-family: var(--font-body);
  width: 60px;
  box-sizing: border-box;
}
.acc-time-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.acc-time-row span {
  color: var(--text-muted);
  font-size: 0.72rem;
  flex-shrink: 0;
}
.acc-time-row input[type="time"] {
  background: var(--bg-deep);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 7px;
  padding: 0.3rem 0.35rem;
  color: var(--text-main);
  font-size: 0.8rem;
  font-family: var(--font-body);
  width: 85px;
}
.acc-inscrit-count {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-primary);
  padding-top: 0.2rem;
}
.acc-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

/* --- Admin : bloc plage horaire (nouveaux créneaux) --- */
.admin-plage-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 8px;
  position: relative;
}
.plage-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  width: 22px;
  flex-shrink: 0;
}
.admin-plage-remove {
  position: absolute;
  top: 0.2rem;
  right: 0.3rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}
.admin-plage-remove:hover { color: #dc3545; }

/* --- Admin : liste ateliers existants --- */
.admin-ateliers-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.admin-atelier-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.admin-atelier-item:hover {
  border-color: rgba(212,175,55,0.3);
}
.aai-left { flex-shrink: 0; }
.aai-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.aai-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,0.08);
  font-size: 1.5rem;
}
.aai-center { flex: 1; min-width: 0; }
.aai-title {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.aai-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.aai-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.aai-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
  align-items: flex-end;
}
.btn-danger {
  background: rgba(220,53,69,0.15);
  color: #dc3545;
  border: 1px solid rgba(220,53,69,0.3);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-danger:hover {
  background: rgba(220,53,69,0.3);
}

/* --- Modale de confirmation --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-box {
  background: var(--bg-deep, #1a1a2e);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.08);
  animation: modalSlideUp 0.3s ease;
}
.modal-atelier-box {
  max-width: 1040px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
  position: relative;
}
.modal-atelier-box .modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(255,255,255,0.06);
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.modal-atelier-box .modal-close-btn:hover {
  background: rgba(212,175,55,0.2);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}
.modal-title {
  font-size: 1.15rem;
  color: var(--gold-light, #f5e6a3);
  font-family: var(--font-heading, serif);
  margin: 0 0 0.8rem;
}
.modal-text {
  font-size: 0.9rem;
  color: var(--text-main, #e0e0e0);
  line-height: 1.5;
  margin: 0 0 0.6rem;
}
.modal-text strong {
  color: #fff;
}
.modal-warning {
  font-size: 0.78rem;
  color: #dc3545;
  font-style: italic;
  margin: 0 0 1.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(220,53,69,0.08);
  border: 1px solid rgba(220,53,69,0.15);
  border-radius: 8px;
}
.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}
.modal-actions .btn {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  border-radius: 10px;
}
.modal-actions .btn-danger {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
}

/* Modale état du site (accueil) */
.site-status-modal {
  z-index: 10050;
}
.site-status-modal-box {
  max-width: 420px;
}
.site-status-modal--construction .modal-title {
  color: var(--gold-light, #f5e6a3);
}
.site-status-modal--maintenance .modal-title {
  color: #e8c96a;
}
.site-status-modal--maintenance .modal-box {
  border-color: rgba(232, 185, 74, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 48px rgba(232, 185, 74, 0.12);
}

/* Page pleine maintenance (503) — même univers visuel */
.maintenance-screen-body {
  margin: 0;
  min-height: 100vh;
  background: #0a0b12;
  color: var(--text-main);
}

.maintenance-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(90, 120, 180, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0b12 0%, #0d0e16 50%, #0a0b12 100%);
}

.maintenance-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='none' stroke='rgba(212,175,55,0.06)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.5;
  pointer-events: none;
}

.maintenance-screen-inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.maintenance-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: #fff;
  box-shadow: 0 0 24px var(--border-glow);
  display: block;
  margin: 0 auto 1.25rem;
}

.maintenance-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin: 0 0 0.75rem;
}

.maintenance-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 1rem;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.maintenance-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.maintenance-screen .maintenance-admin-gear {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  margin: 0;
  z-index: 20;
  opacity: 0.26;
  width: 34px;
  height: 34px;
}

.maintenance-screen .maintenance-admin-gear:hover,
.maintenance-screen .maintenance-admin-gear:focus-visible {
  opacity: 1;
  outline: none;
}

option {
  background: var(--bg-deep);
  color: var(--text-main);
  padding: 1rem;
}

/* FOOTER */
.site-footer {
  margin-top: 0;
  padding: 2.5rem 2rem;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  background: #0d0e16;
  border-top: 2px solid rgba(212, 175, 55, 0.35);
  text-align: center;
  position: relative;
  z-index: 10;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  color: #c8c0b0;
  font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); }
  100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO BACKGROUND GIF */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: block;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 10, 0.45);
  z-index: 0;
  pointer-events: none;
}

/* PARTICLES – FALLING LEAVES */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.leaf {
  position: absolute;
  left: -40px;
  opacity: 0;
  animation: leafDrift var(--duration, 18s) var(--delay, 0s) linear infinite;
  transform: scale(var(--scale, 1));
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 C12 18 4 40 30 55 C56 40 48 18 30 5Z' fill='rgba(212,175,55,0.35)' stroke='rgba(212,175,55,0.5)' stroke-width='0.8'/%3E%3Cpath d='M30 8 C30 25 30 45 30 52' stroke='rgba(253,224,71,0.3)' stroke-width='0.6' fill='none'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 4px rgba(212, 175, 55, 0.25));
}

.leaf:nth-child(even) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M10 30 C20 10 45 5 55 25 C45 45 20 50 10 30Z' fill='rgba(74,93,35,0.4)' stroke='rgba(74,93,35,0.55)' stroke-width='0.8'/%3E%3Cpath d='M14 30 C28 22 42 20 52 26' stroke='rgba(120,150,60,0.3)' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 4px rgba(74, 93, 35, 0.3));
}

.leaf:nth-child(3n) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30 2 C15 15 8 35 30 58 C52 35 45 15 30 2Z' fill='rgba(184,115,51,0.3)' stroke='rgba(184,115,51,0.45)' stroke-width='0.8'/%3E%3Cpath d='M30 6 Q25 25 30 55' stroke='rgba(212,175,55,0.25)' stroke-width='0.5' fill='none'/%3E%3Cpath d='M30 20 Q22 22 16 28' stroke='rgba(184,115,51,0.25)' stroke-width='0.4' fill='none'/%3E%3Cpath d='M30 30 Q38 28 44 22' stroke='rgba(184,115,51,0.25)' stroke-width='0.4' fill='none'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 4px rgba(184, 115, 51, 0.25));
}

@keyframes leafDrift {
  0% {
    left: -5%;
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(var(--scale, 1));
  }
  5% {
    opacity: 0.85;
  }
  25% {
    left: 25%;
    transform: translateY(8vh) rotate(90deg) scale(var(--scale, 1));
  }
  50% {
    left: 55%;
    opacity: 0.6;
    transform: translateY(-4vh) rotate(200deg) scale(var(--scale, 1));
  }
  75% {
    left: 78%;
    transform: translateY(12vh) rotate(310deg) scale(var(--scale, 1));
    opacity: 0.75;
  }
  95% {
    opacity: 0.5;
  }
  100% {
    left: 105%;
    opacity: 0;
    transform: translateY(5vh) rotate(420deg) scale(var(--scale, 1));
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding-bottom: 0.75rem;
  }

  .hero {
    min-height: min(88vh, 720px);
    padding: 2.5rem 1rem 3rem;
  }

  .hero-inner {
    padding: 2rem 1.25rem;
  }

  .layout {
    padding: 2.5rem 1rem;
  }

  .page-main, .page-aside {
    padding: 2rem 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --- Page install.php (thème site, sans dépendre de config.php) --- */
body.install-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(74, 50, 20, 0.2), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(26, 60, 30, 0.2), transparent 50%),
    url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.07"/%3E%3C/svg%3E');
  color: var(--text-main);
  line-height: 1.55;
  padding: clamp(1.25rem, 4vw, 2.5rem) 1rem 2rem;
}

.install-wrap {
  max-width: 26rem;
  margin: 0 auto;
}

.install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.install-header {
  text-align: center;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.install-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
  margin-bottom: 0.85rem;
}

.install-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

.install-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.install-page label {
  display: block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(237, 237, 237, 0.92);
  letter-spacing: 0.02em;
}

.install-page label:first-of-type {
  margin-top: 0;
}

.install-input,
.install-page input[type="text"],
.install-page input[type="password"],
.install-page input[type="url"],
.install-page input[type="email"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-main);
  background: rgba(10, 11, 18, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.install-input:focus,
.install-page input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.install-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.install-password-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.35rem;
}

.install-password-row .install-input {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}

.install-toggle-pass {
  flex-shrink: 0;
  align-self: stretch;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.install-divider {
  border: none;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  margin: 1.35rem 0;
}

.install-optional-title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.install-chk {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.install-chk input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--gold-primary);
}

.install-chk label {
  margin-top: 0;
  font-weight: 400;
  cursor: pointer;
}

.install-submit {
  margin-top: 1.5rem;
  width: 100%;
}

.install-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.install-alert--error {
  background: rgba(180, 40, 50, 0.18);
  border: 1px solid rgba(224, 112, 112, 0.45);
  color: #f5c2c7;
}

.install-alert--success {
  background: rgba(40, 120, 70, 0.2);
  border: 1px solid rgba(94, 207, 138, 0.35);
  color: #c8f0d8;
}

.install-alert p {
  margin: 0.35rem 0 0;
}

.install-alert p:first-child {
  margin-top: 0;
}

.install-alert code {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  font-size: 0.88em;
}

.install-alert a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.install-alert a:hover {
  color: #fff;
}

.install-page--locked .install-card {
  text-align: center;
}

.install-page--locked .install-lead {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
