/*
Theme Name: Atelier du Grand Chêne
Theme URI: https://atelierdugrandchene.fr
Author: L'Atelier du Grand Chêne
Description: Thème sur-mesure pour L'Atelier du Grand Chêne — linogravures, aquarelles, livres jeunesse et photographie argentique. Version 2.5.1 avec layout mobile dédié pour les vignettes 3 univers.
Version: 2.5.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atelier-grand-chene
Tags: blog, e-commerce, portfolio, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
*/

:root {
  --night: #0e1a2e;
  --night-2: #152540;
  --deep-blue: #1e3a5f;
  --ocean: #2a5582;
  --sky: #6da4cf;
  --ice: #b8d4e8;
  --paper: #f4ede0;
  --paper-warm: #ede2cd;
  --gold: #d4a347;
  --gold-bright: #f0c668;
  --amber: #e89339;
  --neon-cyan: #4dd9ff;
  --neon-magenta: #ff5ab8;
  --aurora-green: #4fc28a;
  --ink: #1a1410;
  --ink-soft: #3d3528;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--gold); color: var(--night); }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper);
  background: var(--night);
  overflow-x: hidden;
  font-weight: 300;
  margin: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.4s ease; }
a:hover { color: var(--gold-bright); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--paper); color: var(--night);
  padding: 0.75rem 1.25rem; z-index: 2000;
  transition: top 0.3s; font-weight: 500;
}
.skip-link:focus { top: 1rem; color: var(--night); }

/* HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease;
}
.site-header.scrolled {
  background: rgba(14, 26, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid rgba(244, 237, 224, 0.08);
}

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand:hover { color: var(--paper); }
.brand:hover .brand-mark svg { animation: glowPulse 1.5s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 8px var(--gold-bright)); }
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ice);
  font-weight: 400;
  position: relative;
  padding: 0.4rem 0;
}
.main-nav a::before {
  content: ''; position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}
.main-nav a:hover { color: var(--paper); }
.main-nav a:hover::before { width: 100%; }
.main-nav .nav-cta a {
  border: 1px solid var(--ice);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: all 0.4s ease;
}
.main-nav .nav-cta a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.main-nav .nav-cta a::before { display: none; }

.menu-toggle {
  display: none; background: none; border: none;
  color: var(--paper); cursor: pointer; padding: 0.5rem;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .site-header { padding: 1.25rem 1.25rem; }
  .site-header.scrolled { padding: 1rem 1.25rem; }
  .main-nav ul {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--night-2);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(244, 237, 224, 0.08);
  }
  .main-nav ul.open { display: flex; }
  .main-nav ul li { padding: 0.85rem 0; border-bottom: 1px solid rgba(244, 237, 224, 0.05); width: 100%; }
  .main-nav ul li:last-child { border-bottom: none; }
  .menu-toggle { display: block; }
  .brand { font-size: 1rem; }
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, var(--night) 0%, var(--deep-blue) 50%, var(--ocean) 100%);
}

.aurora {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.aurora-band {
  position: absolute;
  height: 40vh;
  width: 200%;
  left: -50%;
  filter: blur(60px);
  border-radius: 50%;
  animation: auroraDrift 20s ease-in-out infinite;
}
.aurora-1 {
  top: 10%;
  background: linear-gradient(90deg, transparent 0%, var(--aurora-green) 30%, var(--neon-magenta) 60%, transparent 100%);
}
.aurora-2 {
  top: 35%;
  background: linear-gradient(90deg, transparent 0%, var(--neon-cyan) 40%, var(--aurora-green) 70%, transparent 100%);
  animation-delay: 5s;
  animation-duration: 25s;
}
@keyframes auroraDrift {
  0%, 100% { transform: translateX(-5%) translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateX(5%) translateY(-3%) scale(1.1); opacity: 0.7; }
}

.stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--paper);
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { animation: fadeUp 1.4s ease-out 0.2s both; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  margin-bottom: 2rem;
  font-weight: 500;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
  color: var(--paper);
}
.hero h1 .glow {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-bright) 10%, var(--amber) 50%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero p {
  font-size: 1.2rem;
  max-width: 32rem;
  color: var(--ice);
  line-height: 1.65;
  margin-bottom: 2.75rem;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.4s ease;
  cursor: pointer;
  font-family: var(--body);
  border: 1px solid;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--night);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(212, 163, 71, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 237, 224, 0.3);
}
.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--night);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s; }
.btn:hover svg { transform: translateX(4px); }

.hero-visual {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 480px;
  margin-left: auto;
  animation: fadeScale 1.6s ease-out 0.4s both;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(77, 217, 255, 0.3) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: glowShift 8s ease-in-out infinite;
}
@keyframes glowShift {
  0%, 100% { background: radial-gradient(circle, rgba(77, 217, 255, 0.3) 0%, transparent 60%); }
  50% { background: radial-gradient(circle, rgba(255, 90, 184, 0.3) 0%, transparent 60%); }
}
.hero-visual-frame {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 4px;
}
.hero-visual-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}
.hero-visual:hover .hero-visual-frame img { transform: scale(1.04); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ice);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeUp 1.6s ease-out 1.8s both;
}
.scroll-indicator::after {
  content: '';
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--ice), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.5); transform-origin: top; }
}

@media (max-width: 880px) {
  .hero { min-height: auto; padding: 7rem 1.25rem 5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: left; }
  .hero-visual { max-width: 350px; margin: 0 auto; }
  .hero h1 { font-size: 2.6rem; }
  .scroll-indicator { display: none; }
}

/* SECTIONS COMMUNES */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
@media (max-width: 720px) { .container { padding: 0 1.25rem; } }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.section-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); }

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 1.5rem;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--ice);
  max-width: 38rem;
  line-height: 1.7;
}

/* INTRO */
.intro {
  padding: 10rem 0 8rem;
  background: linear-gradient(180deg, var(--ocean) 0%, var(--deep-blue) 100%);
  position: relative;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.intro-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
}
.intro-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14, 26, 46, 0.4));
  z-index: 1;
  pointer-events: none;
}
.intro-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
}
.intro-text { max-width: 32rem; }
.intro-text p {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--ice);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.intro-text p strong {
  font-weight: 400;
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
}
@media (max-width: 880px) {
  .intro { padding: 5rem 0 4rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro-img { max-width: 380px; margin: 0 auto; }
}

/* UNIVERSES */
.universes {
  padding: 8rem 0;
  background: var(--night-2);
  position: relative;
  overflow: hidden;
}
.universes::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(77, 217, 255, 0.08) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.universes-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 5rem;
  position: relative;
  z-index: 2;
}
.universes-head .section-eyebrow { justify-content: center; }
.universes-head .section-eyebrow::before { width: 25px; }
.universes-head .section-eyebrow::after {
  content: ''; width: 25px; height: 1px; background: var(--gold);
}
.uni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}
.uni-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.uni-card-img { position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.uni-card-img img { width: 100%; height: 100%; object-fit: cover; }
.uni-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.uni-card:hover .uni-card-img { transform: scale(1.06); }

/* === VOILE DÉGRADÉ derrière le texte (v2.5) ===
   Le voile commence transparent en haut, se renforce dans la moitié basse,
   et devient pleinement opaque au bas. Garantit la lisibilité sur toute image. */
.uni-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.uni-card.is-light::after {
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(14, 26, 46, 0.55) 55%,
    rgba(14, 26, 46, 0.92) 100%
  );
}
.uni-card.is-dark::after {
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(244, 237, 224, 0.55) 55%,
    rgba(244, 237, 224, 0.92) 100%
  );
}
.uni-card:hover::after { opacity: 0.95; }

.uni-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 2rem 2rem;
  z-index: 2;
  /* === VERRE DÉPOLI (v2.5) ===
     Léger flou de la zone située derrière le texte, pour adoucir
     les détails de l'image et accentuer encore la lisibilité. */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  /* Le voile dégradé est déjà géré par .uni-card::after ci-dessus.
     On ajoute juste une touche subtile de couleur pour appuyer le verre dépoli */
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  /* Délimite la zone du verre dépoli proprement */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 100%);
}

/* === VARIANTE CLAIRE (par défaut) === */
.uni-card.is-light .uni-num {
  color: var(--gold-bright);
}
.uni-card.is-light h3 {
  color: var(--paper);
  text-shadow: 0 2px 12px rgba(14, 26, 46, 0.5);
}
.uni-card.is-light p {
  color: var(--ice);
  text-shadow: 0 1px 8px rgba(14, 26, 46, 0.4);
}
.uni-card.is-light .uni-arrow {
  color: var(--gold-bright);
}

/* === VARIANTE SOMBRE (pour images très claires) === */
.uni-card.is-dark .uni-num {
  color: #8a6815; /* or sombre, comme un encadrement */
}
.uni-card.is-dark h3 {
  color: var(--night);
  text-shadow: 0 2px 12px rgba(244, 237, 224, 0.5);
}
.uni-card.is-dark p {
  color: #2a3a52; /* nuit éclaircie, pour les paragraphes */
  text-shadow: 0 1px 8px rgba(244, 237, 224, 0.5);
}
.uni-card.is-dark .uni-arrow {
  color: #8a6815;
}

.uni-num {
  font-family: var(--display);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.85rem;
  display: block;
  letter-spacing: 0.15em;
}
.uni-card h3 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}
.uni-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}
.uni-card:hover p, .uni-card:focus-within p {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1.25rem;
}
.uni-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-top: 1rem;
}
.uni-arrow svg { width: 18px; height: 18px; transition: transform 0.4s; }
.uni-card:hover .uni-arrow svg { transform: translateX(5px); }
@media (max-width: 880px) {
  .uni-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Sur mobile, on change complètement la structure :
     l'image n'est plus le fond, c'est un bloc en haut,
     et le texte vient en dessous sur fond bleu nuit. */
  .uni-card {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: rgba(244, 237, 224, 0.03);
    border: 1px solid rgba(244, 237, 224, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  .uni-card:hover {
    transform: translateY(-4px);
  }

  /* L'image devient un bloc en haut avec un ratio paysage */
  .uni-card-img {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  /* On retire complètement le voile et le verre dépoli sur mobile */
  .uni-card::after {
    display: none;
  }

  /* Le texte n'est plus en position absolute, il prend sa place naturellement */
  .uni-content {
    position: relative;
    bottom: auto; left: auto; right: auto;
    padding: 1.75rem 1.5rem 1.5rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Le paragraphe est toujours visible sur mobile (pas besoin de hover) */
  .uni-card p {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 1rem;
  }

  /* Sur mobile, on force toujours les couleurs « claires » (texte clair)
     car le fond est désormais bleu nuit, peu importe le toggle Clair/Sombre */
  .uni-card.is-light .uni-num,
  .uni-card.is-dark .uni-num {
    color: var(--gold-bright);
  }
  .uni-card.is-light h3,
  .uni-card.is-dark h3 {
    color: var(--paper);
    text-shadow: none;
  }
  .uni-card.is-light p,
  .uni-card.is-dark p {
    color: var(--ice);
    text-shadow: none;
  }
  .uni-card.is-light .uni-arrow,
  .uni-card.is-dark .uni-arrow {
    color: var(--gold-bright);
  }
}

/* BOOKS */
.books {
  padding: 10rem 0;
  background: linear-gradient(180deg, var(--night-2) 0%, var(--deep-blue) 100%);
  position: relative;
  overflow: hidden;
}
.books-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 5rem;
  gap: 3rem;
  flex-wrap: wrap;
}
.books-head-text { max-width: 38rem; }
.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--paper);
  transition: all 0.4s ease;
  white-space: nowrap;
}
.shop-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  gap: 1.25rem;
}
.books-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
.book-card {
  position: relative;
  cursor: pointer;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.book-card:hover { transform: translateY(-8px); }
.book-cover {
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  background: var(--night);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: box-shadow 0.5s ease;
}
.book-card:hover .book-cover {
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 40px rgba(212, 163, 71, 0.2);
}
.book-cover-art {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}
.book-cover-text {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  z-index: 2;
}
.book-cover-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.book-card-featured .book-cover-title { font-size: 1.7rem; }
.book-cover-tome {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.book-info { text-align: center; }
.book-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: block;
}
.book-info h4 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 0.5rem;
}
.book-info .price {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ice);
  font-style: italic;
}
@media (max-width: 880px) {
  .books-showcase { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* LINOS */
.linos {
  padding: 10rem 0;
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.linos .section-title { color: var(--ink); }
.linos .section-title em { color: var(--ink-soft); font-style: italic; }
.linos .section-eyebrow { color: var(--ink-soft); }
.linos .section-eyebrow::before { background: var(--ink-soft); }
.linos .section-lead { color: var(--ink-soft); }
.linos-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 5rem;
  gap: 3rem;
  flex-wrap: wrap;
}
.linos .shop-link { color: var(--ink); border-color: var(--ink); }
.linos .shop-link:hover { color: var(--ink-soft); border-color: var(--ink-soft); }
.linos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.lino-card { cursor: pointer; transition: all 0.5s ease; }
.lino-frame {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--paper-warm);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 20, 16, 0.1);
  transition: all 0.5s ease;
  position: relative;
}
.lino-frame::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 30px rgba(26, 20, 16, 0.05);
  pointer-events: none;
}
.lino-frame img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.lino-card:hover .lino-frame {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 20, 16, 0.15);
}
.lino-card:hover .lino-frame img { transform: scale(1.04); }
.lino-info { text-align: center; }
.lino-info h4 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.lino-info .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}
@media (max-width: 880px) {
  .linos-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* AQUARELLES */
.watercolors {
  padding: 10rem 0;
  background: linear-gradient(180deg, var(--ocean) 0%, var(--deep-blue) 50%, var(--night-2) 100%);
  position: relative;
  overflow: hidden;
}
.watercolors-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 5rem;
}
.watercolors-head .section-eyebrow { justify-content: center; }
.watercolors-head .section-eyebrow::before { width: 25px; }
.watercolors-head .section-eyebrow::after {
  content: ''; width: 25px; height: 1px; background: var(--gold);
}
.aqua-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
  gap: 1.25rem;
}
.aqua-tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.aqua-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.aqua-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.aqua-tile:hover img { transform: scale(1.06); }
.aqua-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 26, 46, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.aqua-tile:hover::after { opacity: 1; }
.aqua-tile-caption {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s;
}
.aqua-tile:hover .aqua-tile-caption {
  opacity: 1;
  transform: translateY(0);
}
.aqua-tile-caption h5 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--paper);
  margin-bottom: 0.2rem;
}
.aqua-tile-caption span {
  font-size: 0.75rem;
  color: var(--gold-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.aqua-tile-large { grid-column: span 2; grid-row: span 2; }
.aqua-tile-tall { grid-row: span 2; }
@media (max-width: 1024px) {
  .aqua-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 240px); }
  .aqua-tile-large { grid-column: span 2; grid-row: span 1; }
  .aqua-tile-tall { grid-row: span 1; }
}
@media (max-width: 600px) {
  .aqua-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(5, 220px); }
  .aqua-tile-large, .aqua-tile-tall { grid-column: span 1; }
}

/* PHOTO ARGENTIQUE */
.photo {
  padding: 10rem 0;
  background: var(--night);
  color: var(--paper);
  position: relative;
}
.photo-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 5rem;
  gap: 3rem;
  flex-wrap: wrap;
}
.photo-head-text { max-width: 36rem; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 360px 360px;
  gap: 1.25rem;
}
.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.photo-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
  filter: contrast(1.08);
}
.photo-tile:hover { transform: translateY(-4px); }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile-large { grid-column: span 2; grid-row: span 2; }
.photo-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}
.photo-tile:hover::after { opacity: 1; }
.photo-caption {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s;
}
.photo-tile:hover .photo-caption { opacity: 1; transform: translateY(0); }
.photo-caption .haiku {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--paper);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.photo-caption .place {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
@media (max-width: 880px) {
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 280px); }
  .photo-tile-large { grid-column: span 1; grid-row: span 1; }
}

/* MANIFESTO */
.manifesto {
  padding: 10rem 0;
  background: var(--night);
  position: relative;
  overflow: hidden;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.manifesto-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
}
.manifesto-img::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(77, 217, 255, 0.4) 0%, rgba(255, 90, 184, 0.2) 30%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: lightDance 6s ease-in-out infinite;
}
@keyframes lightDance {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  33% { transform: scale(1.08) rotate(2deg); opacity: 0.9; }
  66% { transform: scale(1.04) rotate(-2deg); opacity: 0.7; }
}
.manifesto-img img { width: 100%; height: 100%; object-fit: cover; }
.manifesto-text { max-width: 38rem; }
.manifesto-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.4;
  font-weight: 300;
  font-style: italic;
  color: var(--paper);
  margin: 1.5rem 0 2.5rem;
}
.manifesto-quote .glow-cyan {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.manifesto-sign {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ice);
}
@media (max-width: 880px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto-img { max-width: 380px; margin: 0 auto; }
}

/* JOURNAL */
.journal {
  padding: 8rem 0 10rem;
  background: var(--night-2);
}
.journal-head {
  text-align: center;
  margin-bottom: 5rem;
}
.journal-head .section-eyebrow { justify-content: center; }
.journal-head .section-eyebrow::before { width: 25px; }
.journal-head .section-eyebrow::after {
  content: ''; width: 25px; height: 1px; background: var(--gold);
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.entry { display: block; cursor: pointer; }
.entry-frame {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 4px;
}
.entry-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.entry:hover .entry-frame img { transform: scale(1.06); }
.entry-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ice);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.entry-meta .dot {
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
}
.entry-meta .cat { color: var(--gold-bright); }
.entry h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 0.65rem;
  line-height: 1.25;
  transition: color 0.4s;
}
.entry:hover h3 { color: var(--gold-bright); }
.entry p { color: var(--ice); font-size: 0.95rem; }
@media (max-width: 880px) {
  .journal-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* NEWSLETTER */
.newsletter {
  padding: 8rem 0;
  background: var(--night);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(212, 163, 71, 0.1) 0%, rgba(77, 217, 255, 0.05) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.newsletter-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
}
.newsletter-inner .section-eyebrow { justify-content: center; }
.newsletter-form {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.6rem;
  background: var(--night-2);
  padding: 0.4rem;
  border: 1px solid rgba(244, 237, 224, 0.15);
  border-radius: 999px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.95rem 1.5rem;
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.95rem;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form input::placeholder { color: var(--ice); opacity: 0.6; }
.newsletter-form button {
  background: var(--gold);
  color: var(--night);
  border: none;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--body);
  transition: all 0.4s ease;
}
.newsletter-form button:hover { background: var(--gold-bright); }
.newsletter-fineprint {
  font-size: 0.78rem;
  color: var(--ice);
  margin-top: 1.5rem;
  opacity: 0.7;
}
@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; padding: 0.8rem; border-radius: 18px; }
  .newsletter-form button { width: 100%; padding: 1rem; }
}

/* FOOTER */
.site-footer {
  background: var(--night);
  padding: 6rem 0 2rem;
  border-top: 1px solid rgba(244, 237, 224, 0.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  max-width: 1320px;
  margin-left: auto; margin-right: auto;
  padding: 0 2.5rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-tagline {
  color: var(--ice);
  font-size: 0.95rem;
  max-width: 28rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.socials { display: flex; gap: 0.75rem; }
.socials a {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid rgba(244, 237, 224, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
  color: var(--ice);
}
.socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.socials svg { width: 16px; height: 16px; }
.site-footer h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.7rem; }
.site-footer ul a { color: var(--ice); font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--gold-bright); }
.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 2.5rem 0;
  border-top: 1px solid rgba(244, 237, 224, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ice);
  opacity: 0.7;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; padding: 0 1.25rem; }
  .footer-bottom { padding: 2rem 1.25rem 0; }
}

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--night);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--gold-bright); transform: translateY(-3px); }
.scroll-top svg { width: 18px; height: 18px; }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .star, .aurora-band { animation: none !important; }
}

/* WORDPRESS-SPECIFIC */
.alignwide { max-width: 1320px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--ice);
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Pages standards */
.page-default {
  padding: 10rem 2rem 6rem;
}
.page-default .container {
  max-width: 800px;
}
.page-default h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--paper);
}
.page-default p, .page-default li {
  color: var(--ice);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.page-default a { color: var(--gold-bright); text-decoration: underline; }

/* Articles single */
.single-post { padding: 10rem 2rem 6rem; }
.single-post .container { max-width: 760px; }
.single-post .entry-meta {
  margin-bottom: 1.5rem;
}
.single-post h1.entry-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--paper);
}
.single-post .entry-content p,
.single-post .entry-content li {
  color: var(--ice);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.single-post .entry-content h2,
.single-post .entry-content h3 {
  font-family: var(--display);
  color: var(--paper);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* WooCommerce overrides */
.woocommerce { padding: 10rem 2rem 6rem; max-width: 1320px; margin: 0 auto; }
.woocommerce h1, .woocommerce h2 { color: var(--paper); font-family: var(--display); }
.woocommerce ul.products li.product .price { color: var(--gold-bright); font-family: var(--display); }
.woocommerce ul.products li.product h2 { color: var(--paper); }
.woocommerce a.button, .woocommerce button.button {
  background: var(--gold) !important;
  color: var(--night) !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem !important;
  padding: 0.85rem 1.75rem !important;
  font-weight: 500;
}
.woocommerce a.button:hover { background: var(--gold-bright) !important; }

/* 404 page */
.error-404 {
  padding: 12rem 2rem 6rem;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-404 h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

/* ============================================
   ICÔNE PANIER (introduite v2.2)
   ============================================ */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 1.5rem;
  color: var(--ice);
  border-radius: 50%;
  transition: all 0.4s ease;
  flex-shrink: 0;
}
.cart-link:hover {
  color: var(--gold-bright);
  background: rgba(212, 163, 71, 0.08);
  transform: translateY(-1px);
}
.cart-link:hover .cart-icon {
  filter: drop-shadow(0 0 6px rgba(240, 198, 104, 0.4));
}
.cart-icon {
  width: 22px;
  height: 22px;
  transition: filter 0.4s ease;
}

/* Le compteur — visible seulement s'il y a des articles */
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  letter-spacing: 0;
  opacity: 0;
  transform: scale(0);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--night);
}
.cart-link.has-items .cart-count {
  opacity: 1;
  transform: scale(1);
}

/* Petite animation quand on ajoute un article */
.cart-link.cart-bumped .cart-icon {
  animation: cartBump 0.5s ease;
}
.cart-link.cart-bumped .cart-count {
  animation: cartCountPop 0.5s ease;
}
@keyframes cartBump {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
}
@keyframes cartCountPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); background: var(--gold-bright); }
  100% { transform: scale(1); background: var(--gold); }
}

/* Adaptation mobile : on garde l'icône bien visible à côté du burger */
@media (max-width: 880px) {
  .cart-link {
    margin-left: 0.5rem;
    width: 38px;
    height: 38px;
  }
  .cart-icon {
    width: 20px;
    height: 20px;
  }
  .cart-count {
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
    line-height: 16px;
  }
}


/* ============================================
   BOUTONS-VIGNETTES (v2.3)
   ============================================
   Les vignettes Aquarelles et Photos sont
   maintenant des boutons qui ouvrent la lightbox.
   On réinitialise les styles de bouton et on
   ajoute une icône "loupe" qui apparaît au hover.
*/
.aqua-tile,
.photo-tile {
  /* Reset des styles bouton */
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  width: 100%;
}
.aqua-tile:focus-visible,
.photo-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Icône loupe qui apparaît au hover */
.tile-zoom {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 26, 46, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
  pointer-events: none;
}
.tile-zoom svg {
  width: 18px;
  height: 18px;
}
.aqua-tile:hover .tile-zoom,
.aqua-tile:focus-visible .tile-zoom,
.photo-tile:hover .tile-zoom,
.photo-tile:focus-visible .tile-zoom {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   LIGHTBOX — Galerie d'art (v2.3)
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 46, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox::before {
  /* Petite touche d'aurore en arrière-plan, comme le hero */
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(77, 217, 255, 0.06), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.lightbox::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 90, 184, 0.05), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Bouton fermer */
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(244, 237, 224, 0.08);
  border: 1px solid rgba(244, 237, 224, 0.15);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.lightbox-close:hover {
  background: rgba(212, 163, 71, 0.2);
  color: var(--gold-bright);
  border-color: var(--gold);
}
.lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* Flèches navigation */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(244, 237, 224, 0.06);
  border: 1px solid rgba(244, 237, 224, 0.12);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.lightbox-prev {
  left: 1.5rem;
}
.lightbox-next {
  right: 1.5rem;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 163, 71, 0.15);
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.05);
}
.lightbox-prev svg,
.lightbox-next svg {
  width: 26px;
  height: 26px;
}

/* Contenu central */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  position: relative;
  z-index: 1;
}
.lightbox-image-wrap {
  max-width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-image {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(212, 163, 71, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(212, 163, 71, 0.08);
  transition: opacity 0.3s ease;
}
.lightbox.is-changing .lightbox-image {
  opacity: 0.3;
}

/* Détails sous l'image */
.lightbox-details {
  text-align: center;
  max-width: 600px;
  width: 100%;
  color: var(--paper);
}
.lightbox-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--gold-bright);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}
.lightbox-caption {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--ice);
  margin: 0 0 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.lightbox-caption:empty {
  display: none;
}
.lightbox-haiku {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--paper);
  margin: 0.5rem 0;
  white-space: pre-line;
}
.lightbox-haiku:empty {
  display: none;
}
.lightbox-counter {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.7;
  text-transform: uppercase;
}

/* Sur mobile : flèches plus petites mais TOUJOURS sur les côtés (pas en bas, sinon
   elles chevauchent le bouton de gestion des cookies qui reste en permanence) */
@media (max-width: 720px) {
  .lightbox {
    padding: 1rem;
  }
  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 42px;
    height: 42px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    /* On reste sur les côtés verticalement centrés, comme sur desktop */
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-prev svg,
  .lightbox-next svg {
    width: 20px;
    height: 20px;
  }
  .lightbox-image-wrap,
  .lightbox-image {
    max-height: 55vh;
  }
  .lightbox-content {
    gap: 1rem;
  }
  .lightbox-details {
    padding: 0 3rem;
  }
}

/* ============================================
   MASQUAGE DES BOUTONS COOKIES PENDANT LA LIGHTBOX
   ============================================
   On cache les pastilles/widgets de gestion des cookies
   quand la lightbox est ouverte — sinon ils chevauchent
   les flèches de navigation sur mobile.
   La classe .lightbox-open est ajoutée au <body> par
   le JavaScript de la lightbox.
   Compatible avec CookieAdmin, Cookie Notice, Borlabs,
   Complianz, GDPR Cookie Compliance, etc.
*/
body.lightbox-open #cookie-notice,
body.lightbox-open #cookie-law-info-bar,
body.lightbox-open .cookie-notice-banner,
body.lightbox-open .cmplz-cookiebanner,
body.lightbox-open .cn-position-bottom,
body.lightbox-open .BorlabsCookie,
body.lightbox-open [class*="cookie-consent"],
body.lightbox-open [id*="cookie-revoke"],
body.lightbox-open [class*="cookie-revoke"],
body.lightbox-open [class*="cookieadmin"],
body.lightbox-open [id*="cookieadmin"],
body.lightbox-open [class*="cmplz-manage-consent"],
body.lightbox-open .cli-modal-backdrop,
body.lightbox-open .ws-cli-cookie-settings,
body.lightbox-open #ws-cli-cookie-settings {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}


