/* ================================================================
   FLORIAN LUCE — PHOTOGRAPHE MARIAGE
   style.css — v2 (SEO + A11y + Wavy Timeline + Nav fix)
   ================================================================ */

/* --- Skip link (accessibilité) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* --- Focus visible (accessibilité) --- */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { transform: none !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* --- Variables --- */
:root {
  --cream:       #FAF8F0;
  --cream-dark:  #F0EDE3;
  --red:         #C8392B;
  --dark:        #1A2E2E;
  --dark-light:  #2C4444;
  --gold:        #B8953A;
  --gray:        #666660;
  --light-gray:  #D8D5CC;
  --white:       #FFFFFF;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans:   'Montserrat', sans-serif;

  --transition:  0.3s ease;
  --shadow:      0 4px 30px rgba(0,0,0,0.08);
  --shadow-heavy:0 8px 50px rgba(0,0,0,0.2);

  /* Bords arrondis */
  --radius-xs:   3px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
.script { font-family: var(--font-script); color: var(--red); font-size: 1.5em; }
.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(250, 248, 240, 0.97);
  padding: 1rem 3rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}
.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--dark) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 6px;
  cursor: pointer; background: none; border: none;
  padding: 8px; z-index: 101; position: relative;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}
/* Hamburger → X animation */
.nav-hamburger.is-open span { background: var(--dark) !important; }
.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* ====================================================
   NAV TRANSPARENTE (sur hero) — texte blanc lisible
   ==================================================== */
.nav:not(.scrolled) .nav-logo,
.nav:not(.scrolled) .nav-links a:not(.nav-cta) {
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.nav:not(.scrolled) .nav-links a:not(.nav-cta)::after {
  background: var(--white);
}
.nav:not(.scrolled) .nav-links a:not(.nav-cta):hover,
.nav:not(.scrolled) .nav-links a.active:not(.nav-cta) {
  color: rgba(255,255,255,0.85);
}
.nav:not(.scrolled) .nav-logo span { color: rgba(255,255,255,0.65); text-shadow: none; }
.nav:not(.scrolled) .nav-hamburger span { background: var(--white); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://cdn.myportfolio.com/215c8ea3-e4db-4877-850c-4b4975420159/e8f77992-fc1a-4fac-b0a0-d405fea87fd5_rw_1200.jpg?h=a81b499af1221e9b55d3bdb9e760996b');
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,46,46,0.25) 0%, rgba(26,46,46,0.55) 50%, rgba(26,46,46,0.75) 100%);
}
/* Gradient supérieur pour lisibilité du menu */
.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: ''; display: block;
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.4);
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; }
.hero-tagline {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  cursor: pointer;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--red); }
.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   SECTION GENERIC
   ================================================================ */
.section { padding: 6rem 3rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p {
  max-width: 580px; margin: 1.5rem auto 0;
  color: var(--gray); font-size: 1rem; line-height: 1.9;
}

/* ================================================================
   HOME — ABOUT
   ================================================================ */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-images { position: relative; }
.about-img-main { width: 75%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: var(--radius-md); }
.about-img-accent {
  position: absolute; bottom: -2rem; right: 0;
  width: 46%; aspect-ratio: 3/4; object-fit: cover;
  border: 5px solid var(--cream);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
}
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--gray); margin-bottom: 1.2rem; line-height: 1.9; }
.about-stats { display: flex; gap: 2.5rem; margin: 2rem 0 2.5rem; }
.stat-number { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; color: var(--dark); line-height: 1; }
.stat-label { font-size: 0.7rem; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; }

/* ================================================================
   HOME — MINI GALLERY
   ================================================================ */
.mini-gallery { background: var(--cream-dark); padding: 5rem 3rem; }
.gallery-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 6px;
}
.gallery-grid-home .gitem:first-child { grid-row: 1 / 3; }
.gitem { overflow: hidden; position: relative; cursor: pointer; border-radius: var(--radius-sm); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gitem:hover img { transform: scale(1.05); }
.gitem-overlay {
  position: absolute; inset: 0;
  background: rgba(26,46,46,0);
  transition: background var(--transition);
}
.gitem:hover .gitem-overlay { background: rgba(26,46,46,0.2); }
.gallery-cta { text-align: center; margin-top: 2.5rem; }

/* ================================================================
   HOME — TIMELINE PREVIEW
   ================================================================ */
.timeline-preview {
  background: var(--dark);
  color: var(--white);
  padding: 6rem 3rem;
  position: relative; overflow: hidden;
}
.timeline-preview::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://cdn.myportfolio.com/215c8ea3-e4db-4877-850c-4b4975420159/bc30ec56-a092-44fb-b5ea-2fd9805e66a4_rw_1200.jpg?h=00305a04dff59bbd9c6bbece7b3d7c94') center/cover;
  opacity: 0.1;
}
.timeline-preview .section-inner { position: relative; }
.timeline-preview .section-subtitle { color: rgba(255,255,255,0.5); }
.timeline-preview h2 { color: var(--white); margin-bottom: 1rem; }
.timeline-preview > .section-inner > p { color: rgba(255,255,255,0.65); text-align: center; max-width: 500px; margin: 0 auto; }

/* ---- Steps flow redesign ---- */
.steps-flow {
  display: flex;
  align-items: flex-start;
  margin-top: 4rem;
  position: relative;
  gap: 0;
}
/* Horizontal connecting line at circle midpoint */
.steps-flow::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,255,255,0.15) 5%,
    rgba(255,255,255,0.15) 95%,
    transparent 100%);
  pointer-events: none;
}
.step-flow-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.25rem;
}
.sfi-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(200, 57, 43, 0.85);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  margin-bottom: 0.9rem;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}
.step-flow-item:hover .sfi-circle { transform: scale(1.1); background: var(--red); }
.sfi-icon { font-size: 1.4rem; line-height: 1; }
.sfi-num {
  font-size: 0.6rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em; font-weight: 600;
  margin-bottom: 0.25rem; font-family: var(--font-sans);
}
.sfi-title {
  font-family: var(--font-serif); font-size: 0.9rem;
  color: var(--white); font-weight: 600; line-height: 1.25;
  margin-bottom: 0.2rem;
}
.sfi-time {
  font-size: 0.58rem; color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.steps-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.68rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em; margin-top: 1.25rem;
}

/* ================================================================
   HOME — PRICING PREVIEW
   ================================================================ */
.pricing-section { background: var(--cream); }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-heavy); transform: translateY(-6px); }
.pricing-card.featured { background: var(--dark); color: var(--white); border-color: var(--dark); }
.pricing-card.featured::before {
  content: 'Recommandé';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-xs);
}
.card-name { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.4rem; }
.card-duration { font-size: 0.75rem; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.pricing-card.featured .card-duration { color: rgba(255,255,255,0.55); }
.card-divider { width: 36px; height: 2px; background: var(--red); margin: 0 auto 1.5rem; }
.card-price { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700; line-height: 1; margin-bottom: 0.3rem; }
.card-price sup { font-size: 1.4rem; vertical-align: top; margin-top: 0.5rem; }
.card-price small { font-size: 1rem; font-weight: 400; display: block; font-family: var(--font-sans); }
.card-features { margin: 2rem 0; text-align: left; }
.card-features li {
  padding: 0.55rem 0;
  font-size: 0.88rem; color: var(--gray);
  border-bottom: 1px solid var(--light-gray);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.pricing-card.featured .card-features li { color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.1); }
.card-features li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.pricing-note { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: var(--gray); }

/* ================================================================
   PAGE HERO (intérieur)
   ================================================================ */
.page-hero {
  height: 55vh; min-height: 380px;
  position: relative; display: flex; align-items: flex-end;
  padding: 4rem 3rem; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,46,46,0.88) 0%, rgba(26,46,46,0.25) 60%);
}
.page-hero-content { position: relative; color: var(--white); max-width: 1200px; margin: 0 auto; width: 100%; }
.page-hero-content .section-subtitle { color: rgba(255,255,255,0.6); }
.page-hero-content h1 { color: var(--white); font-weight: 300; }

/* ================================================================
   TIMELINE PAGE (déroulement)
   ================================================================ */
.timeline-section { padding: 7rem 3rem; position: relative; }
.timeline-container { max-width: 1000px; margin: 0 auto; position: relative; }

/* ====================================================
   TIMELINE — Ligne ondulée SVG "dessinée à la main"
   ==================================================== */
.timeline-svg-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.timeline-svg-wrapper svg {
  position: absolute;
  top: 0; left: 0;
  overflow: visible;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 6rem;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  /* Must be above SVG (z-index: 1) so dot/label backgrounds mask the line */
  position: relative;
  z-index: 2;
}
.timeline-item.visible { opacity: 1; }

/* Impairs : contenu gauche, image droite */
.timeline-item:nth-child(odd) .timeline-content  { grid-column: 1; text-align: right; padding-right: 2.5rem; }
.timeline-item:nth-child(odd) .timeline-visual    { grid-column: 3; padding-left: 2.5rem; }
.timeline-item:nth-child(odd) .timeline-center    { grid-column: 2; }

/* Pairs : image gauche, contenu droite */
.timeline-item:nth-child(even) .timeline-content  { grid-column: 3; text-align: left; padding-left: 2.5rem; order: 3; }
.timeline-item:nth-child(even) .timeline-visual   { grid-column: 1; padding-right: 2.5rem; order: 1; }
.timeline-item:nth-child(even) .timeline-center   { grid-column: 2; order: 2; }

.timeline-center {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  position: relative; z-index: 2;
}
/* Dot hidden — no visual dot, kept in DOM only as a layout anchor for JS */
.timeline-dot { display: none; }

.timeline-time {
  font-size: 0.65rem; color: var(--red); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  /* Cream background masks the line exactly where the label sits */
  background: var(--cream);
  padding: 2px 5px;
  border-radius: 2px;
  /* Hidden until the SVG line passes */
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Revealed by JS when line passes */
.timeline-time.line-passed {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback: reveal with item if JS hasn't fired yet */
.timeline-item.visible .timeline-time {
  opacity: 1;
  transform: translateY(0);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 4.5rem; font-weight: 700;
  color: var(--light-gray); line-height: 1;
  margin-bottom: 0.25rem;
}
.timeline-content h3 { font-size: 1.7rem; color: var(--dark); margin-bottom: 0.5rem; }
.timeline-content p { color: var(--gray); font-size: 0.92rem; line-height: 1.85; }
.timeline-visual { overflow: hidden; border-radius: var(--radius-md); }
.timeline-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s ease; }
.timeline-visual:hover img { transform: scale(1.04); }

/* ================================================================
   DÉROULEMENT — livraison grid (3 colonnes responsive)
   ================================================================ */
.livraison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.livraison-grid > div {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ================================================================
   GALLERY PAGE
   ================================================================ */
.gallery-section { padding: 4rem 3rem 6rem; }
.gallery-masonry { columns: 3 300px; column-gap: 8px; max-width: 1400px; margin: 0 auto; }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
  cursor: pointer; overflow: hidden; position: relative;
  border-radius: var(--radius-sm);
}
.masonry-item img { width: 100%; display: block; transition: transform 0.5s ease; }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item-overlay {
  position: absolute; inset: 0;
  background: rgba(26,46,46,0);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.masonry-item:hover .masonry-item-overlay { background: rgba(26,46,46,0.25); }
.masonry-item-overlay svg { color: var(--white); opacity: 0; transition: opacity var(--transition); }
.masonry-item:hover .masonry-item-overlay svg { opacity: 1; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8,8,8,0.96);
  z-index: 1000;
  display: none; align-items: center; justify-content: center;
  border-radius: 0;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1.8rem; cursor: pointer; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--red); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8); font-size: 1.5rem;
  cursor: pointer; padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 0.1em;
}

/* ================================================================
   TARIFS PAGE
   ================================================================ */
.tarifs-section { padding: 6rem 3rem; }
.tarifs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tarif-card {
  background: var(--white); border: 1px solid var(--light-gray);
  padding: 3rem 2rem; text-align: center; position: relative;
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.tarif-card:hover { box-shadow: var(--shadow-heavy); transform: translateY(-6px); }
.tarif-card.featured { background: var(--dark); color: var(--white); border-color: var(--dark); }
.tarif-card.featured::before {
  content: 'Le plus choisi'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-xs);
}
.tarif-card .card-features li:last-child { border-bottom: none; }

/* Options section */
.options-section { background: var(--cream-dark); padding: 5rem 3rem; }
.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.option-card {
  background: var(--white); border: 1px solid var(--light-gray);
  padding: 2rem; display: flex; flex-direction: column; gap: 0.8rem;
  border-radius: var(--radius-md);
}
.option-cta {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
  margin-top: auto; padding-top: 0.5rem;
  transition: color var(--transition);
}
.option-cta:hover { color: var(--dark); }
.option-icon { font-size: 2rem; }
.option-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--dark); }
.option-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.7; flex: 1; }
.option-price { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--red); }

/* FAQ section */
.faq-section { padding: 5rem 3rem; }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--light-gray); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.5rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--dark);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--red); }
.faq-icon { font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.5rem; }
.faq-answer p { color: var(--gray); font-size: 0.95rem; line-height: 1.85; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-section { padding: 5rem 3rem 7rem; }
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 6rem; align-items: start; }
.contact-info h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 1rem; }
.contact-info p { color: var(--gray); line-height: 1.9; margin-bottom: 2rem; font-size: 0.95rem; }
.contact-detail { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.contact-detail-icon {
  width: 42px; height: 42px; background: var(--cream-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail span { font-size: 0.9rem; color: var(--dark); }
.contact-detail a { transition: color var(--transition); }
.contact-detail a:hover { color: var(--red); }
.contact-social { display: flex; gap: 0.75rem; margin-top: 2.5rem; }
.contact-social a {
  width: 42px; height: 42px; border: 1px solid var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.contact-social a:hover { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* Form */
.contact-form { display: grid; gap: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
/* Tight label→input gap (0.25rem) vs large group-to-group gap (2rem) = clear visual hierarchy */
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-group label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; min-width: 0; /* prevent overflow on mobile */
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--light-gray);
  background: var(--white);
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--dark);
  transition: border-color var(--transition);
  outline: none; border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231A2E2E' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-notice { font-size: 0.8rem; color: var(--gray); }
.form-message { padding: 1rem 1.5rem; font-size: 0.9rem; font-weight: 500; }
.form-success { background: #E8F5E9; color: #2E7D32; border-left: 3px solid #2E7D32; }
.form-error   { background: #FFEBEE; color: #C62828; border-left: 3px solid #C62828; }
.required { color: var(--red); }

/* ================================================================
   MENTIONS LÉGALES PAGE
   ================================================================ */
.mentions-inner {
  max-width: 780px;
  margin: 0 auto;
}
.mentions-update {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}
.mentions-block {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--light-gray);
}
.mentions-block:last-child { border-bottom: none; }
.mentions-block h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.mentions-block h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  margin: 1.5rem 0 0.6rem;
}
.mentions-block p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 0.8rem;
}
.mentions-block a { color: var(--red); transition: color var(--transition); }
.mentions-block a:hover { color: var(--dark); }
.mentions-list {
  list-style: none;
  margin: 0.5rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mentions-list li {
  font-size: 0.93rem;
  color: var(--gray);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}
.mentions-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 5rem 3rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem;
}
.footer-brand .footer-logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--white); display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; }
.footer-links h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-links ul li { margin-bottom: 0.7rem; }
.footer-links ul li a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--red); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 2rem; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition); color: rgba(255,255,255,0.6);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ================================================================
   DARK CTA BANNER
   ================================================================ */
.cta-banner {
  background: var(--dark); color: var(--white);
  text-align: center; padding: 6rem 3rem;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://cdn.myportfolio.com/215c8ea3-e4db-4877-850c-4b4975420159/deb9d16c-3d2c-4a9b-8dd4-aa3917dc8b2e_rw_1200.jpg?h=4eb8e5d2055db157f6ba66878f1a6345') center/cover;
  opacity: 0.08;
}
.cta-banner .section-inner { position: relative; }
.cta-banner h2 { color: var(--white); margin-bottom: 1.5rem; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.9; }
.cta-banner .section-subtitle { color: rgba(255,255,255,0.4); }

/* ================================================================
   ANIMATIONS / SCROLL
   ================================================================ */
.fade-up {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.red { color: var(--red); }
.separator { width: 50px; height: 2px; background: var(--red); margin: 1.5rem auto; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .nav { padding: 1.5rem 2rem; }
  .nav.scrolled { padding: 1rem 2rem; }
  .about-grid { gap: 3rem; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .tarifs-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .options-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .livraison-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* ================================================================
   MOBILE (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  /* Spacing */
  .section { padding: 3.5rem 1.25rem; }
  .mini-gallery { padding: 3.5rem 1.25rem; }
  .timeline-preview { padding: 3.5rem 1.25rem; }
  .timeline-section { padding: 4rem 1.25rem; }
  .gallery-section { padding: 2.5rem 1.25rem 4rem; }
  .tarifs-section { padding: 3.5rem 1.25rem; }
  .options-section { padding: 3.5rem 1.25rem; }
  .faq-section { padding: 3.5rem 1.25rem; }
  .contact-section { padding: 3.5rem 1.25rem 4rem; }
  .cta-banner { padding: 3.5rem 1.25rem; }
  .page-hero { padding: 3rem 1.25rem; min-height: 280px; height: 42vh; }

  /* ---- Mobile nav ---- */
  .nav { padding: 1rem 1.25rem; }
  .nav.scrolled { padding: 0.85rem 1.25rem; }
  .nav-hamburger { display: flex; }

  /* Full-screen menu overlay */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh;
    background: rgba(250, 248, 240, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a {
    font-size: 1.3rem !important;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--dark) !important;
    text-shadow: none !important;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--cream-dark);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .nav-links.open .nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    margin-top: 1.5rem;
    border-radius: 2px;
    border-bottom: none !important;
  }
  .nav-links.open a::after { display: none; }

  /* Logo smaller on mobile */
  .nav-logo { font-size: 1.1rem; }
  .nav-logo span { font-size: 0.55rem; }

  /* ---- About ---- */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-main { width: 100%; max-height: 380px; object-fit: cover; }
  .about-img-accent { display: none; }
  .about-stats { gap: 1.5rem; }

  /* ---- Mini gallery ---- */
  .gallery-grid-home {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
  }
  .gallery-grid-home .gitem:first-child { grid-row: auto; }

  /* ---- Timeline page ---- */
  .timeline-item {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    margin-bottom: 3.5rem;
  }
  .timeline-item:nth-child(odd)  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 2; text-align: left;
    padding: 0 0 1rem 1.25rem; order: 2;
  }
  .timeline-item:nth-child(odd)  .timeline-visual,
  .timeline-item:nth-child(even) .timeline-visual  {
    grid-column: 2; padding: 0 0 0 1.25rem; order: 3;
  }
  .timeline-item:nth-child(odd)  .timeline-center,
  .timeline-item:nth-child(even) .timeline-center  {
    grid-column: 1; order: 1; grid-row: 1 / 3;
    justify-content: flex-start; padding-top: 0.25rem;
  }
  .step-num { font-size: 2.5rem; }
  .timeline-content h3 { font-size: 1.35rem; }
  .timeline-section { overflow-x: hidden; }

  /* ---- Livraison grid (3 cards) ---- */
  .livraison-grid { grid-template-columns: 1fr !important; max-width: 100%; }

  /* ---- Steps flow (homepage) ---- */
  .steps-flow {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-top: 10px;      /* space for scale(1.1) top overflow */
    padding-bottom: 1rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .steps-flow::-webkit-scrollbar { display: none; }
  .step-flow-item { flex: 0 0 100px; scroll-snap-align: start; }
  /* Line from center of circle 01 to center of circle 07:
     each item = 100px, half = 50px, start padding = 1.25rem (20px)
     → left offset from steps-flow left edge = 20px + 50px = 70px
     → right offset  = same 70px from right edge */
  .steps-flow::before {
    top: calc(27px + 10px); /* 37px — circle center + padding-top */
    left: calc(1.25rem + 50px);
    right: calc(1.25rem + 50px);
  }
  .steps-scroll-hint { display: block; }

  /* ---- Timeline time label on mobile ---- */
  .timeline-time {
    white-space: normal;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
    max-width: 34px;
    background: var(--cream);
    padding: 2px 2px;
  }

  /* ---- Gallery ---- */
  .gallery-masonry { columns: 2 150px; }

  /* ---- Form ---- */
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .form-submit { flex-direction: column; align-items: stretch; }
  .form-submit .btn { text-align: center; justify-content: center; }

  /* ---- Footer ---- */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* ---- Options ---- */
  .options-grid { grid-template-columns: 1fr; }

  /* ---- Tarifs ---- */
  .tarifs-grid { grid-template-columns: 1fr; }
  .tarif-card { padding: 2rem 1.5rem; }

  /* ---- Pricing cards ---- */
  .pricing-cards { grid-template-columns: 1fr; max-width: 100%; }
  .pricing-card { padding: 2rem 1.5rem; }

  /* ---- CTA ---- */
  .hero-actions { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ================================================================
   SMALL PHONES (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .gallery-masonry { columns: 1; }
  .lightbox-prev { left: 0.5rem; padding: 0.75rem; }
  .lightbox-next { right: 0.5rem; padding: 0.75rem; }
  .lightbox-img { max-width: 100vw; max-height: 85vh; }
  .sfi-circle { width: 48px; height: 48px; }
  .sfi-icon { font-size: 1.2rem; }
  .step-flow-item { flex: 0 0 90px; }
  /* Circle center: 1.25rem(20px) + 48px/2(24px) = 44px */
  .steps-flow::before {
    top: calc(23px + 10px); /* = 33px */
    left: calc(1.25rem + 24px);
    right: calc(1.25rem + 24px);
  }
}
