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

  :root {
    --cream: #ffffff;
    --cream-soft: #f0f4fb;
    --royal: #1a3a8f;
    --royal-dark: #0f2460;
    --royal-deep: #091640;
    --royal-mid: #2a52b8;
    --gold: #c9a84c;
    --gold-light: #e8d080;
    --gold-pale: #f5eec0;
    --dark: #091640;
    --text: #1a2d60;
    --text-light: #5a6ea0;
    --white: #ffffff;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
  }

  /* ─── HERO ─── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--royal-deep) 0%, var(--royal) 50%, var(--royal-mid) 100%);
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(../img/imgAccueil.jpg);
    background-size: cover;
    background-position: center top;
    opacity: 0.28;
  }

  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(160deg, rgba(9,22,64,0.72) 0%, rgba(26,58,143,0.65) 50%, rgba(42,82,184,0.6) 100%);
  }

  .hero > * { position: relative; z-index: 1; }

  .hero-ornament {
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 1s 0.2s forwards;
  }

  .hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 12vw, 130px);
    font-weight: 300;
    line-height: 0.92;
    letter-spacing: -0.01em;
    color: var(--white);
    opacity: 0;
    animation: fadeUp 1.1s 0.4s forwards;
  }

  .hero-names em {
    display: block;
    font-style: italic;
    color: var(--gold);
  }

  .hero-ampersand {
    display: block;
    font-size: clamp(36px, 6vw, 60px);
    font-style: normal;
    color: var(--gold-light);
    margin: 8px 0;
  }

  .hero-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px auto;
    width: 280px;
    opacity: 0;
    animation: fadeUp 1s 0.6s forwards;
  }

  .hero-divider span { flex: 1; height: 1px; background: rgba(201,168,76,0.4); }
  .hero-divider-diamond {
    width: 8px; height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  .hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--white);
    opacity: 0;
    animation: fadeUp 1s 0.7s forwards;
  }

  .hero-location {
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 10px;
    opacity: 0;
    animation: fadeUp 1s 0.85s forwards;
  }

  .hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 1s 1.2s forwards;
  }

  .hero-scroll span {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
  }

  .scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
  }

  @keyframes scrollLine {
    0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50% { opacity: 0.4; }
  }

  /* Corner decorations */
  .corner {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0;
    animation: fadeIn 1.5s 1s forwards;
  }
  .corner svg { width: 100%; height: 100%; }
  .corner-tl { top: 28px; left: 28px; }
  .corner-tr { top: 28px; right: 28px; transform: scaleX(-1); }
  .corner-bl { bottom: 28px; left: 28px; transform: scaleY(-1); }
  .corner-br { bottom: 28px; right: 28px; transform: scale(-1); }

  /* ─── SECTION BASE ─── */
  section { padding: 100px 24px; }

  .section-label {
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
  }

  .section-title em { font-style: italic; color: var(--gold); }

  .section-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-light);
    max-width: 480px;
  }

  /* ─── COUNTDOWN ─── */
  .countdown-section {
    background: linear-gradient(135deg, var(--royal-deep) 0%, var(--royal-dark) 60%, var(--royal) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
  }

  .countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%);
  }

  .countdown-label {
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 48px;
    display: block;
    position: relative;
  }

  .countdown-grid {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 5vw, 60px);
    flex-wrap: wrap;
  }

  .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 9vw, 88px);
    font-weight: 300;
    line-height: 1;
    color: var(--white);
    min-width: 90px;
    text-align: center;
    position: relative;
  }

  .countdown-unit {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    align-self: flex-start;
    margin-top: 10px;
    opacity: 0.4;
  }

  /* ─── PROGRAMME ─── */
  .programme-section {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  @media (max-width: 700px) { .programme-section { grid-template-columns: 1fr; gap: 48px; } }

  .timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .timeline-item {
    display: flex;
    gap: 20px;
    padding-bottom: 32px;
    position: relative;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 14px;
    bottom: 0;
    width: 1px;
    background: var(--gold-light);
  }

  .timeline-item:last-child::before { display: none; }

  .timeline-dot {
    width: 15px;
    height: 15px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: 3px;
    background: var(--cream);
    position: relative;
    z-index: 1;
  }

  .timeline-content {}
  .timeline-time {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 4px;
  }

  .timeline-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
  }

  /* ─── LIEUX ─── */
  .lieux-section {
    background: linear-gradient(160deg, var(--royal-deep) 0%, var(--royal-dark) 60%, var(--royal) 100%);
    padding: 100px 24px;
  }

  .lieux-inner {
    max-width: 900px;
    margin: 0 auto;
  }

  .lieux-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 60px;
  }

  @media (max-width: 600px) { .lieux-grid { grid-template-columns: 1fr; } }

  .lieu-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(201,168,76,0.35);
    padding: 40px 36px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    backdrop-filter: blur(4px);
  }

  .lieu-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  }

  .lieu-card::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: -8px; bottom: -8px;
    border: 1px solid rgba(201,168,76,0.2);
    z-index: -1;
  }

  .lieu-icon {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .lieu-type {
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
  }

  .lieu-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
  }

  .lieu-adresse {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .lieu-link {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201,168,76,0.35);
    padding-bottom: 2px;
    transition: border-color 0.2s;
  }

  .lieu-link:hover { border-color: var(--gold); }

  /* ─── RSVP ─── */
  .rsvp-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 24px;
  }

  .rsvp-form {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

  .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  .form-field label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gold-light);
    padding: 10px 0;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--dark);
    outline: none;
    transition: border-color 0.25s;
    width: 100%;
  }

  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus { border-color: var(--gold); }

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

  .rsvp-btn {
    margin-top: 12px;
    padding: 16px 48px;
    background: var(--royal);
    color: var(--white);
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    align-self: center;
  }

  .rsvp-btn:hover { background: var(--gold); color: var(--royal-deep); }

  /* ─── FOOTER ─── */
  footer {
    background: linear-gradient(160deg, var(--royal-deep) 0%, var(--royal-dark) 60%, var(--royal) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 24px;
  }

  .footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 16px;
  }

  .footer-date {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
  }

  /* ─── NAV ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s, padding 0.4s;
  }

  nav.scrolled {
    background: rgba(9,22,64,0.96);
    backdrop-filter: blur(12px);
    padding: 14px 40px;
    border-bottom: 1px solid rgba(201,168,76,0.25);
  }

  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--white);
    font-weight: 300;
  }
  .nav-logo a{
    text-decoration: none;
    color: white;
  }

  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
  }

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

  @media (max-width: 600px) { .nav-links { display: none; } }

  /* ─── PROGRAMME SECTION WRAPPER ─── */
  .programme-wrapper {
    max-width: 960px;
    margin: 0 auto;
  }

  .programme-image-wrap {
    position: relative;
  }

  .programme-image-wrap img {
    position: relative;
    z-index: 1;
  }
/* degrade */


.programme-image-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;

 background: linear-gradient(
  to bottom,
  rgba(0,0,0,0) 0%,
  rgba(255,255,255,0.15) 50%,
  rgba(255,255,255,0.35) 75%,
  rgba(255,255,255,0.6) 100%
);

  pointer-events: none;
  z-index: 2;
}
/* fin degrade */


  /* ─── HISTOIRE ─── */
  .histoire-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  @media (max-width: 700px) { .histoire-inner { grid-template-columns: 1fr; gap: 40px; } }

  .histoire-visual {
    position: relative;
    background: linear-gradient(
    to right,
    rgba(220,228,241,1.0) 0%,
    rgba(227,233,244,1.0) 50%,
    rgba(234,238,247,1.0) 100%
    );
  }

  .histoire-frame {
    width: 100%;
    aspect-ratio: 3/4;
    background-image: url(../img/imgHistoireNoBg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
  }

  .histoire-frame-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border: 1px solid var(--gold-light);
    z-index: -1;
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

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

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ─── TOAST ─── */
  .toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: var(--cream);
    padding: 14px 32px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999;
  }

  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }