/* =========================================================
   Yggdragones - Feuille de style partagée
   Charte fantasy nocturne, accents dorés et cuivrés
   ========================================================= */

/* ---------- Compatibilité <picture> ----------
   Rend la balise picture transparente pour le layout
   afin que le <img> à l'intérieur hérite des dimensions
   du parent (card-image, gallery-item, hero, etc.) */
picture {
  display: contents;
}

/* ---------- Variables globales ---------- */
:root {
  /* Fonds */
  --bg-main: #0f0a1e;
  --bg-secondary: #1a1230;
  --bg-card: #251a3d;

  /* Textes */
  --text-main: #f4ecd8;
  --text-secondary: #b8a890;

  /* Or et accents */
  --gold: #d4a04a;
  --gold-bright: #f0c878;
  --copper: #c67847;
  --red-dragon: #8b2c4a;
  --gold-border: rgba(212, 160, 74, 0.25);
  --gold-border-strong: rgba(212, 160, 74, 0.55);

  /* Typographies */
  --font-title: 'Cinzel', 'Times New Roman', serif;
  --font-italic: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Espacements */
  --gutter: 1.5rem;
  --section-pad: 5rem;

  /* Largeurs */
  --container: 1200px;

  /* Ombres */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.45);

  /* Transitions */
  --t: 220ms ease;
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image:
    radial-gradient(ellipse at top, rgba(139, 44, 74, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(212, 160, 74, 0.08), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Bruit/grain subtil via SVG en arrière-plan */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t);
}

a:hover,
a:focus {
  color: var(--gold-bright);
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text-main);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  margin: 0 0 1em;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Skip link accessibilité ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg-main);
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 10, 30, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--text-main);
}

.brand:hover {
  color: var(--gold-bright);
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(212, 160, 74, 0.4);
}

/* Menu desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}

.nav-menu a:hover {
  color: var(--gold-bright);
}

.nav-menu a.is-active {
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
}

/* Burger mobile */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-burger:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  position: relative;
  transition: transform var(--t), opacity var(--t);
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-burger span::before { top: -7px; }
.nav-burger span::after  { top:  7px; }

.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Panneau mobile */
.nav-mobile {
  position: fixed;
  inset: 72px 0 0 0;
  background-color: var(--bg-main);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 300ms ease;
  overflow-y: auto;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile a {
  display: block;
  padding: 1rem 0.5rem;
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--text-main);
  border-bottom: 1px solid var(--gold-border);
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  color: var(--gold-bright);
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
}

.hero-lead {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--text-secondary);
  margin: 1rem 0 1.8rem;
  max-width: 560px;
}

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg-main);
  box-shadow: 0 4px 16px rgba(212, 160, 74, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 160, 74, 0.4);
  color: var(--bg-main);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-border-strong);
}

.btn-ghost:hover {
  background: rgba(212, 160, 74, 0.08);
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-alt {
  background-color: rgba(26, 18, 48, 0.5);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- Cartes (grille des pôles) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  box-shadow: var(--shadow-card);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-border-strong);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card h3 {
  margin: 0;
  color: var(--gold-bright);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.05rem;
}

.card-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.card:hover .card-link {
  color: var(--gold-bright);
}

/* ---------- Placeholders d'images ---------- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(160deg, #251a3d, #1a1230);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 160, 74, 0.1), transparent 60%);
  pointer-events: none;
}

.img-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgba(212, 160, 74, 0.4));
}

.img-placeholder span {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.img-placeholder--hero {
  min-height: 360px;
  width: 100%;
}

.img-placeholder--card {
  min-height: 180px;
  width: 100%;
}

/* Image réelle à l'intérieur d'une carte (remplace le placeholder) */
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.img-placeholder--inline {
  min-height: 240px;
  width: 100%;
}

/* ---------- Listes stylées ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.feature-list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.6rem;
  background-color: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: border-color var(--t), transform var(--t);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}

.feature-list li:hover {
  border-color: var(--gold-border-strong);
}

/* Grille 2 colonnes pour listes plus longues */
.feature-list--cols {
  grid-template-columns: 1fr;
}

/* ---------- Bloc infos pratiques ---------- */
.info-box {
  background-color: var(--bg-card);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.info-box h3 {
  color: var(--gold-bright);
  margin-top: 0;
}

.info-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.info-box dt {
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.info-box dd {
  margin: 0 0 0.6rem;
  color: var(--text-main);
}

/* ---------- Section "pour qui" / quote ---------- */
.quote-box {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.4rem;
  background-color: rgba(212, 160, 74, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-main);
}

/* ---------- Texte deux colonnes (présentation) ---------- */
.prose {
  max-width: 760px;
  font-size: 1.05rem;
  color: var(--text-main);
}

.prose p + p {
  margin-top: 1rem;
}

/* ---------- Formulaire ---------- */
.form-wrapper {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.form {
  background-color: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), box-shadow var(--t);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 74, 0.18);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.form-field-checkbox input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form-hidden {
  display: none;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-coords {
  background-color: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.form-coords h3 {
  margin-top: 0;
  color: var(--gold-bright);
}

.form-coords ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background-color: rgba(15, 10, 30, 0.95);
  border-top: 1px solid var(--gold-border);
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-block h3,
.footer-block h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--gold-bright);
  margin: 0 0 0.8rem;
  letter-spacing: 0.1em;
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-block a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-block a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gold-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- Responsive : 480px ---------- */
@media (min-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Responsive : 768px (tablette) ---------- */
@media (min-width: 768px) {
  :root {
    --section-pad: 6rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list--cols {
    grid-template-columns: 1fr 1fr;
  }

  .info-box dl {
    grid-template-columns: max-content 1fr;
    column-gap: 1.5rem;
  }

  .info-box dd {
    margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .form-wrapper {
    grid-template-columns: 2fr 1fr;
  }
}

/* ---------- Responsive : 1024px (desktop) ---------- */
@media (min-width: 1024px) {
  .cards-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Mobile : burger visible, menu desktop caché ---------- */
@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none;
  }
}

/* ---------- Focus visible global ---------- */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Visuel hero "vraie image" ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 4;
}

@media (min-width: 768px) {
  .hero-visual img {
    aspect-ratio: 4 / 5;
  }
}

/* Petit liseré doré décoratif */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 160, 74, 0.15);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

/* ---------- Image hero (cadre cohérent avec la charte) ---------- */
/* Cadre, bordure dorée, ombre et liseré décoratif intérieur,
   appliqués à un wrapper .hero-frame autour du <picture>. */
.hero-frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.hero-frame .hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Liseré doré intérieur (même esprit que .hero-visual et .gallery-item) */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 160, 74, 0.15);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
  z-index: 2;
}

/* Fallback : si le <picture> n'est pas dans un .hero-frame,
   on applique quand même un minimum de style sur l'img elle-même. */
.hero-img:not(.hero-frame .hero-img) {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
}

/* ---------- Galerie photos ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-border-strong);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Format portrait pour certaines images */
.gallery-item--portrait {
  aspect-ratio: 3 / 4;
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Galerie : items cliquables ---------- */
.gallery-item {
  cursor: zoom-in;
}

/* ---------- Lightbox (popup photos) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(15, 10, 30, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  transition: opacity 200ms ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: block;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.4rem;
  text-align: center;
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.lightbox-btn {
  position: absolute;
  background: rgba(37, 26, 61, 0.85);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t), color var(--t), transform var(--t);
  z-index: 2;
}

.lightbox-btn:hover {
  background: var(--bg-card);
  color: var(--gold-bright);
  transform: scale(1.08);
}

.lightbox-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 600px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
  .lightbox-btn { width: 42px; height: 42px; }
}

/* Empêche le scroll du body quand la lightbox est ouverte */
body.lightbox-open {
  overflow: hidden;
}

/* ---------- Bouton social ---------- */
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--t);
}

.btn-social:hover {
  background: rgba(212, 160, 74, 0.08);
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Liste infos légales ---------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.info-list li {
  padding: 0.6rem 0.9rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
}

.info-list strong {
  color: var(--gold);
  margin-right: 0.4rem;
}

/* ---------- Footer enrichi : liens légaux ---------- */
.footer-bottom p {
  margin: 0;
}

.footer-bottom p + p {
  margin-top: 0.4rem;
}

.footer-links {
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-links span {
  color: var(--gold-border-strong);
  margin: 0 0.5rem;
}

/* ---------- Liste actualités : VRAIE TIMELINE (chargée) ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0 2rem 2.5rem;
}

/* Ligne verticale dorée qui traverse toute la timeline */
.news-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0,
    var(--gold) 4%,
    var(--gold) 96%,
    transparent 100%);
  box-shadow: 0 0 10px rgba(212, 160, 74, 0.35);
}

/* Petits ornements en haut et en bas de la ligne (losanges aux extrémités) */
.news-list::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 11px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--copper));
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(240, 200, 120, 0.6);
}

.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 1.8rem 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  margin-left: 2.5rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.news-item:hover {
  border-color: var(--gold-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Gros losange doré sur la ligne, à hauteur de chaque carte */
.news-item::before {
  content: "";
  position: absolute;
  top: 32px;
  left: -3.4rem;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--gold-bright), var(--copper));
  transform: rotate(45deg);
  border-radius: 3px;
  box-shadow:
    0 0 0 4px var(--bg-main),
    0 0 0 5px var(--gold-border-strong),
    0 0 18px rgba(240, 200, 120, 0.5);
  z-index: 2;
}

/* Flèche/connecteur qui pointe vers la ligne depuis la carte */
.news-item::after {
  content: "";
  position: absolute;
  top: 38px;
  left: -10px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-border-strong), transparent);
}

/* Carte "à venir" : effet plus prononcé */
.news-item--upcoming {
  background-color: rgba(212, 160, 74, 0.06);
  border-color: var(--gold-border-strong);
}

.news-item--upcoming::before {
  animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 0 4px var(--bg-main),
      0 0 0 5px var(--gold-border-strong),
      0 0 18px rgba(240, 200, 120, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 4px var(--bg-main),
      0 0 0 6px var(--gold),
      0 0 28px rgba(240, 200, 120, 0.85);
  }
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 0.5rem 1rem;
  background-color: rgba(212, 160, 74, 0.1);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-sm);
  width: fit-content;
  align-self: start;
}

.news-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.news-item h3 {
  margin: 0 0 0.3rem;
  color: var(--gold-bright);
  font-size: 1.45rem;
  line-height: 1.3;
}

.news-item p {
  margin: 0;
  color: var(--text-main);
  font-size: 1.02rem;
  line-height: 1.65;
}

.news-actions {
  margin-top: 1rem;
}

/* Bouton désactivé (fermé) */
.btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background-color: rgba(184, 168, 144, 0.08);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-sm);
  cursor: not-allowed;
  opacity: 0.7;
  user-select: none;
}

.btn-disabled::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--text-secondary);
  border-radius: 50%;
}

/* Desktop : layout date + contenu côte à côte dans la carte */
@media (min-width: 700px) {
  .news-list {
    padding-left: 3rem;
  }
  .news-list::before {
    left: 22px;
  }
  .news-list::after {
    left: 17px;
  }
  .news-item {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
    margin-left: 3rem;
  }
  .news-item::before {
    left: -4rem;
    width: 26px;
    height: 26px;
    top: 28px;
  }
  .news-item::after {
    left: -12px;
    width: 22px;
    top: 40px;
  }
}

/* ---------- Petit utilitaire ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
