
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #717F73;
  --green-dark: #4a5a4c;
  --green-deep: #2e3a2f;
  --green-light: #8a9a8c;
  --ivory: #faf8f2;
  --ivory-warm: #f5f0e8;
  --gold: #b8922e;
  --gold-light: #f5a623;
  --text-dark: #2a2a1e;
  --text-mid: #3a3a2e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--ivory);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(42, 58, 44, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
}
.nav-monogram {
  text-decoration: none;
  display: flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav-monogram:hover { opacity: 1; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Cormorant SC', serif;
  font-size: 14px;
  letter-spacing: 2.5px;
  color: rgba(245,240,232,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-rsvp {
  font-family: 'Cormorant SC', serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(184,146,46,0.5);
  padding: 8px 18px;
  text-decoration: none;
  border-radius: 1px;
  transition: all 0.2s;
}
.nav-rsvp:hover {
  background: var(--gold);
  color: var(--green-deep);
}

/* ── SECTION BASE ── */
section { position: relative; }

/* Skip rendering off-screen sections until near viewport */
#lieu, #acces, #programme, #hebergement, #details {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
#photo1, #photo2 {
  content-visibility: auto;
  contain-intrinsic-size: auto 100vh;
}

/* ── 1. ACCUEIL (hero) ── */
#accueil {
  height: 100vh;
  min-height: 700px;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 50%, rgba(113,127,115,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(113,127,115,0.18) 0%, transparent 70%);
  z-index: 0;
}
/* Canvas flowers — fills entire section, positioned absolute */
#flowerCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 3;
  animation: fadeUp 1.4s ease both;
  pointer-events: none;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-pretitle {
  font-family: 'Cormorant SC', serif;
  font-size: 15px;
  letter-spacing: 6px;
  color: rgba(245,240,232,1);
  margin-bottom: 20px;
  display: block;
  -webkit-text-stroke: 0.4px rgba(0,0,0,0.45);
  paint-order: stroke fill;
  text-shadow:
    0 1px 4px rgba(0,0,0,1),
    0 3px 14px rgba(0,0,0,0.85),
    0 6px 28px rgba(0,0,0,0.6),
    0 0 60px rgba(0,0,0,0.5);
}
.hero-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(72px, 10vw, 120px);
  color: #ffffff;
  line-height: 0.95;
  display: block;
  /* Contour net + halo profond */
  -webkit-text-stroke: 1.2px rgba(30,20,5,0.55);
  paint-order: stroke fill;
  text-shadow:
    0 0 8px  rgba(255,255,255,0.18),
    0 2px 6px  rgba(0,0,0,0.75),
    0 4px 18px rgba(0,0,0,0.60),
    0 8px 40px rgba(0,0,0,0.45),
    0 16px 60px rgba(0,0,0,0.25);
}
.hero-amp {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(36px, 5vw, 56px);
  color: #f5c84a;
  display: block;
  margin: 6px 0;
  -webkit-text-stroke: 0.8px rgba(80,40,0,0.5);
  paint-order: stroke fill;
  text-shadow:
    0 2px 6px  rgba(0,0,0,0.7),
    0 4px 20px rgba(0,0,0,0.45),
    0 0 30px   rgba(200,140,20,0.3);
}
.hero-date {
  font-family: 'Cormorant SC', serif;
  font-size: 24px;
  letter-spacing: 8px;
  color: #f5c84a;
  margin-top: 28px;
  display: block;
  -webkit-text-stroke: 0.4px rgba(60,30,0,0.5);
  paint-order: stroke fill;
  text-shadow:
    0 1px 3px rgba(0,0,0,1),
    0 3px 12px rgba(0,0,0,0.85),
    0 6px 24px rgba(0,0,0,0.6),
    0 0 40px rgba(220,165,20,0.55),
    0 0 80px rgba(200,140,10,0.25);
}
.hero-venue {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: rgba(255,255,255,0.96);
  margin-top: 14px;
  display: block;
  letter-spacing: 2px;
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.4);
  paint-order: stroke fill;
  text-shadow:
    0 1px 3px rgba(0,0,0,1),
    0 3px 12px rgba(0,0,0,0.85),
    0 6px 24px rgba(0,0,0,0.6),
    0 0 50px rgba(245,240,232,0.18);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: bounce 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes slowspin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-scroll span {
  font-family: 'Cormorant SC', serif;
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(245,240,232,0.55);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.3), transparent);
}

/* ── Cercle décoratif hero ── */
.hero-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: clamp(300px, 52vmin, 500px);
  height: clamp(300px, 52vmin, 500px);
  border-radius: 50%;
  background: rgba(245,240,232,0.07);
  border: 1px solid rgba(184,146,46,0.80);
  box-shadow:
    0 0 0 7px rgba(245,240,232,0.035),
    0 0 0 8px rgba(184,146,46,0.18),
    inset 0 0 60px rgba(184,146,46,0.06);
  z-index: 2;
  pointer-events: none;
}

#lieu {
  background:
    linear-gradient(rgba(250,248,242,0.80), rgba(250,248,242,0.80)),
    url('gravelle-1.jpg') center center / cover no-repeat;
  padding: 120px 48px;
}
.lieu-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lieu-badge {
  font-family: 'Cormorant SC', serif;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 5px;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.18), 0 0 18px rgba(184,146,46,0.3);
}
.lieu-title {
  font-family: 'Great Vibes', cursive;
  font-size: 64px;
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 24px;
  text-align: center;
}
.lieu-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin: 0 auto 24px;
}
.lieu-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-mid);
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 20px;
}
.lieu-details {
  font-family: 'Cormorant SC', serif;
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--green);
  line-height: 2.4;
  display: block;
}
.lieu-map-frame {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--green-dark);
  border: 1px solid rgba(184,146,46,0.25);
  box-shadow: 0 8px 40px rgba(74,90,76,0.18);
}
.lieu-map-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184,146,46,0.12);
  pointer-events: none;
  z-index: 1;
}
.lieu-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.lieu-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  color: rgba(245,240,232,0.5);
  gap: 12px;
}
.lieu-map-placeholder svg {
  opacity: 0.4;
}
.lieu-map-placeholder span {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 2px;
}

/* ── 3. GRANDE PHOTO (section 1) ── */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,58,44,0.55);
  z-index: 1;
}
.photo-bg {
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-placeholder-text {
  font-family: 'Great Vibes', cursive;
  font-size: 80px;
  color: rgba(245,240,232,0.07);
  text-align: center;
  line-height: 1;
  padding: 20px;
}
.photo-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ivory);
}
.photo-caption blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 16px;
  opacity: 0.9;
}
.photo-caption cite {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.45;
  display: block;
}

/* ── 4. COMMENT Y ACCÉDER ── */
#acces {
  background: var(--green-dark);
  padding: 120px 48px;
}
.acces-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-badge {
  font-family: 'Cormorant SC', serif;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 5px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3), 0 0 20px rgba(184,146,46,0.35);
  text-align: center;
}
.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  color: var(--ivory);
  text-align: center;
  line-height: 1;
  margin-bottom: 16px;
}
.section-title-dark {
  color: var(--green-dark);
}
.section-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 0 auto 64px;
}
.acces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.acces-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 40px 32px;
  text-align: center;
  transition: background 0.3s;
}
.acces-card:hover {
  background: rgba(255,255,255,0.07);
}
.acces-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  color: var(--gold);
  opacity: 0.8;
}
.acces-card-title {
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.acces-card-text {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(245,240,232,0.62);
  font-style: italic;
}

/* ── 5. PROGRAMME ── */
#programme {
  background: var(--ivory);
  padding: 100px 48px;
}
.programme-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Piste horizontale */
.prog-track {
  position: relative;
  height: 380px;
  margin-top: 56px;
  overflow: visible;
}
.prog-wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.prog-items {
  position: absolute;
  inset: 0;
  display: flex;
}
.prog-item {
  flex: 1;
  position: relative;
  height: 380px;
}

/* Noeud circulaire */
.prog-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1.5px solid rgba(184,146,46,0.55);
  box-shadow: 0 0 0 7px rgba(184,146,46,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 2;
}

/* Tige */
.prog-stem {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
}

/* Carte texte */
.prog-card {
  position: absolute;
  left: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

/* UP : carte en haut, noeud dessous */
.prog-up .prog-card {
  top: 0;
  height: 90px;
  justify-content: flex-end;
  padding-bottom: 6px;
}
.prog-up .prog-stem {
  top: 90px;
  height: 12px;
  background: linear-gradient(to bottom, rgba(184,146,46,0.45), rgba(184,146,46,0.1));
}
.prog-up .prog-node { top: 102px; } /* centre a 130px */

/* DOWN : noeud en haut, carte dessous */
.prog-down .prog-node { top: 222px; } /* centre a 250px */
.prog-down .prog-stem {
  top: 278px;
  height: 12px;
  background: linear-gradient(to bottom, rgba(184,146,46,0.1), rgba(184,146,46,0.45));
}
.prog-down .prog-card {
  top: 290px;
  height: 90px;
  justify-content: flex-start;
  padding-top: 6px;
}

/* Typographie */
.prog-time {
  font-family: 'Cormorant SC', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(184,146,46,0.09);
  border: 1px solid rgba(184,146,46,0.28);
  border-radius: 20px;
  padding: 5px 11px;
  display: inline-block;
  white-space: nowrap;
}
.prog-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.25;
}
.prog-sub {
  font-family: 'Cormorant SC', serif;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--green);
  opacity: 0.55;
}

/* ── 6. GRANDE PHOTO 2 ── */
.photo2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,58,44,0.7) 0%, rgba(42,58,44,0.3) 100%);
  z-index: 1;
}
.photo2-dahlia {
  position: absolute;
  right: 10%;
  bottom: 10%;
  opacity: 0.15;
  z-index: 1;
  animation: slowspin 90s linear infinite;
}
.photo2-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 0 40px;
}
.photo2-label {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(245,240,232,0.45);
  display: block;
  margin-bottom: 20px;
}
.photo2-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(60px, 8vw, 100px);
  color: var(--ivory);
  line-height: 1;
  display: block;
  opacity: 0.9;
}
.photo2-date {
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold);
  display: block;
  margin-top: 20px;
}

/* ── 7. OÙ DORMIR ── */
#hebergement {
  background:
    linear-gradient(rgba(245,240,232,0.80), rgba(245,240,232,0.80)),
    url('gravelle-2.jpg') center center / cover no-repeat;
  padding: 120px 48px;
}
.heberg-inner {
  max-width: 960px;
  margin: 0 auto;
}
.heberg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 0;
}
.heberg-card {
  background: var(--ivory);
  border: 1px solid rgba(113,127,115,0.15);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.heberg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74,90,76,0.12);
}
.heberg-stars {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.heberg-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
  font-style: italic;
}
.heberg-cat {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  opacity: 0.7;
  display: block;
  margin-bottom: 16px;
}
.heberg-rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  margin-bottom: 16px;
}
.heberg-info {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mid);
  opacity: 0.72;
  font-style: italic;
}
.heberg-dist {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
  display: block;
  margin-top: 16px;
  opacity: 0.8;
}

/* ── 8. DÉTAILS / RSVP ── */
#details {
  background: var(--green-deep);
  padding: 120px 48px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.details-dahlia-left {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  animation: slowspin 110s linear infinite;
}
.details-dahlia-right {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  animation: slowspin 110s linear infinite reverse;
}
.details-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.details-pretitle {
  font-family: 'Cormorant SC', serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 4px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 20px;
  display: block;
}
.details-big {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(56px, 7vw, 90px);
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 12px;
}
.details-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-style: italic;
  color: rgba(245,240,232,0.5);
  margin-bottom: 56px;
  line-height: 1.8;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 56px;
  text-align: left;
}
.detail-item {
  background: var(--green-deep);
  padding: 32px 36px;
}
.detail-label {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}
.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: rgba(245,240,232,0.8);
  line-height: 1.7;
}
.detail-tr {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(245,240,232,0.3);
  display: block;
  margin-top: 4px;
}
.rsvp-btn {
  display: inline-block;
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 3.5px;
  color: var(--green-deep);
  background: var(--gold);
  padding: 18px 48px;
  text-decoration: none;
  border-radius: 1px;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 32px;
}
.rsvp-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.details-footer {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(245,240,232,0.7);
  margin-top: 20px;
  line-height: 2;
}
.details-heart {
  color: var(--gold);
  opacity: 0.5;
  font-size: 14px;
  display: block;
  margin-top: 16px;
}

/* ── FOOTER ── */
footer {
  background: #1e2a20;
  text-align: center;
  padding: 28px;
  font-family: 'Cormorant SC', serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(245,240,232,0.7)}

/* ── DAHLIA SVG HELPER ── */
.dahlia-svg {
  display: block;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 20px; }
  .nav-links { display: none; }

  /* Section padding */
  #lieu, #acces, #programme, #hebergement, #details { padding: 80px 24px; }
  .section-rule { margin: 0 auto 40px; }

  /* Grids → single column */
  .lieu-inner { grid-template-columns: 1fr; gap: 40px; }
  .acces-grid { grid-template-columns: 1fr; }
  .heberg-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }

  /* ── Photos — affichage complet ── */
  #photo1, #photo2 {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
    background: #111 !important;
  }
  #photo1 .photo-bg-div, #photo2 .photo-bg-div { display: none !important; }
  #photo1 .photo-overlay-div, #photo2 .photo-overlay-div { display: none !important; }
  #photo1 .photo-img, #photo2 .photo-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
    object-position: unset !important;
  }

  /* ── Programme — liste verticale ── */
  .prog-wave-svg { display: none; }

  .prog-track {
    height: auto;
    overflow-x: visible;
    margin-top: 24px;
  }

  .prog-items {
    position: relative;
    inset: auto;
    display: block;
    min-width: 0;
  }

  .prog-item {
    height: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(184,146,46,0.15);
  }
  .prog-item:last-child { border-bottom: none; }

  /* Node — toujours en premier */
  .prog-node {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
    order: 1;
    width: 48px;
    height: 48px;
    box-shadow: none;
  }
  .prog-up .prog-node,
  .prog-down .prog-node { top: auto; }

  /* Tige — masquée */
  .prog-stem,
  .prog-up .prog-stem,
  .prog-down .prog-stem { display: none; }

  /* Carte — toujours en second, alignée à gauche */
  .prog-card,
  .prog-up .prog-card,
  .prog-down .prog-card {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
  }
}
