@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #0b1220;
  --bg-dark-2: #0f172a;
  --bg-light: #ffffff;
  --bg-soft: #f6f7f9;
  --accent: #6fa8dc;
  --accent-2: #4a86c8;
  --text-light: #f5f6f8;
  --text-muted-light: #b8c1d1;
  --text-dark: #14181f;
  --text-muted-dark: #5c6270;
  --border-soft: rgba(255, 255, 255, 0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.kicker {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-2); color: #fff; box-shadow: 0 8px 24px rgba(74, 134, 200, 0.35); }
.btn-primary:hover { background: var(--accent); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { border-color: rgba(0,0,0,0.2); color: var(--text-dark); }
.btn-outline-dark:hover { background: rgba(0,0,0,0.05); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled, .site-header.header-solid {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 20px; color: #fff; letter-spacing: 1px; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.35) 40%, rgba(11,18,32,0.92) 100%), var(--bg-dark) center/cover no-repeat;
  color: #fff;
  padding-bottom: 90px;
}
.hero.has-image { background-image: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.35) 40%, rgba(11,18,32,0.92) 100%), var(--hero-img); background-size: cover; background-position: center; }
.hero-top-bar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 8px 28px;
  font-size: 13px;
  letter-spacing: 0.2px;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #dfe6f0;
}
.hero-top-bar a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero-top-bar a:hover { background: rgba(255,255,255,0.14); color: var(--accent); }
.hero-content { max-width: 720px; }
.hero-content .kicker { color: var(--accent); margin-bottom: 18px; display: inline-block; }
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--text-muted-light);
  margin-bottom: 36px;
  white-space: pre-line;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* About */
.section { padding: 110px 0; }
.section-soft { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-photo { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.15); aspect-ratio: 4/5; object-fit: cover; }
.about-photo-placeholder {
  aspect-ratio: 4/5; border-radius: 14px;
  background: linear-gradient(135deg, #dce6f2, #b9cbe0);
  display: flex; align-items: center; justify-content: center;
  color: #6b7c93; font-family: var(--serif); font-size: 15px;
}
.about-title { font-size: 38px; margin-bottom: 22px; }
.about-title em { color: var(--accent-2); font-style: italic; }
.about-body { color: var(--text-muted-dark); font-size: 16px; white-space: pre-line; margin-bottom: 28px; }

/* Section heading */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-title { font-size: 38px; margin: 14px 0; }
.section-sub { color: var(--text-muted-dark); font-style: italic; font-family: var(--serif); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.service-card { text-align: left; }
.service-num { font-family: var(--serif); font-style: italic; color: var(--accent-2); font-size: 22px; margin-bottom: 14px; }
.service-title { font-size: 22px; margin-bottom: 12px; }
.service-desc { color: var(--text-muted-dark); font-size: 15px; }

/* Gallery */
.gallery-section { background: var(--bg-dark-2); color: #fff; }
.gallery-section .section-sub { color: var(--text-muted-light); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 8px;
  gap: 20px;
  padding: 0 32px;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  grid-row-end: span 40;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; will-change: transform; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-empty { text-align: center; padding: 60px 20px; color: var(--text-muted-light); }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); padding: 0 20px; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; } .gallery-item { border-radius: 12px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(5,8,15,0.94); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 86vw; max-height: 88vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 32px; cursor: pointer; background: none; border: none; z-index: 2; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Reviews */
.reviews-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start;
  min-width: 340px; flex: 1;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 28px;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px; flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 15px; }
.review-time { font-size: 12px; color: var(--text-muted-dark); }
.review-stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 10px; font-size: 14px; }
.review-body { font-size: 14px; color: var(--text-muted-dark); }
.reviews-nav { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.reviews-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d8dde5;
  background: #fff; cursor: pointer; font-size: 16px; color: var(--text-dark);
}

/* Pricing */
.pricing-section { text-align: center; }
.pricing-cta { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.pricing-group { max-width: 720px; margin-left: auto; margin-right: auto; margin-top: 56px; }
.pricing-group-title { font-size: 26px; margin-bottom: 6px; }
.pricing-box { text-align: left; border-radius: 12px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(20,24,31,0.08); }
.pricing-box-title { background: var(--bg-dark); color: #fff; padding: 14px 22px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.pricing-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 22px; background: #fff; border-top: 1px solid #eef0f3; }
.pricing-row:first-of-type { border-top: none; }
.pricing-row-title { font-family: var(--serif); font-size: 17px; }
.pricing-row-desc { font-size: 13px; color: var(--text-muted-dark); margin-top: 3px; }
.pricing-row-price { font-size: 18px; font-weight: 600; color: var(--accent-2); white-space: nowrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info-item { margin-bottom: 24px; }
.contact-info-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.contact-info-value { font-size: 18px; font-family: var(--serif); }
form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #dde2ea; border-radius: 8px;
  font-family: var(--sans); font-size: 15px; background: var(--bg-soft);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { font-size: 14px; padding: 10px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e4f5e9; color: #206a3c; }
.form-msg.err { display: block; background: #fbe6e6; color: #a13333; }

/* Order flow (/commande) */
.order-main { padding: 170px 0 80px; }
.steps-nav { display: flex; justify-content: center; max-width: 560px; margin: 0 auto 48px; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-item::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--border-soft); z-index: 0; }
.step-item:last-child::after { display: none; }
.step-item.active::after, .step-item.done::after { background: var(--accent-2); }
.step-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border-soft); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: #fff; position: relative; z-index: 1; font-weight: 600; font-size: 14px; }
.step-item.active .step-num { border-color: var(--accent-2); background: var(--accent-2); color: #fff; }
.step-item.done .step-num { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.step-label { font-size: 12px; color: var(--text-muted-dark); }
.step-item.active .step-label { color: var(--accent-2); font-weight: 600; }

.form-section { display: none; }
.form-section.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.order-card { background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; padding: 32px; margin-bottom: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.order-card h2 { font-size: 24px; margin-bottom: 20px; }

.upload-zone { border: 2px dashed #d4d1ca; border-radius: 14px; padding: 40px 24px; text-align: center; cursor: pointer; background: var(--bg-soft); position: relative; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent-2); background: var(--accent-highlight, #eef4fa); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone h3 { font-size: 16px; margin-bottom: 6px; }
.upload-zone p { font-size: 13px; color: var(--text-muted-dark); }

.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin-top: 24px; }
.preview-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border-soft); background: var(--bg-soft); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.7); color: #fff; border: none; cursor: pointer; z-index: 10; font-size: 14px; }
.preview-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px 6px; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; text-align: center; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.upload-status-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; z-index: 5; }

.of-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.of-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.of-label { font-size: 13px; font-weight: 600; }
.order-card select, .order-card input[type=text], .order-card input[type=email], .order-card input[type=tel], .order-card input[type=number], .order-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 8px; font-family: var(--sans); font-size: 14px; background: var(--bg-soft);
}
.order-card textarea { min-height: 90px; resize: vertical; }

.photo-config { display: grid; grid-template-columns: 80px 1fr; gap: 16px; background: var(--bg-soft); padding: 16px; border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 14px; }
.photo-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.photo-fields { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 12px; align-items: start; }
.photo-fields .of-label { font-size: 11px; margin-bottom: 2px; }

.checkbox-line { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--border-soft); border-radius: 8px; cursor: pointer; }
.checkbox-line input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent-2); }

.shipping-box { background: var(--bg-soft); border: 1px solid var(--border-soft); padding: 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.shipping-box .cost { font-weight: 700; color: var(--accent-2); }

.promo-box { display: flex; gap: 10px; margin-bottom: 14px; }
.promo-box input { flex: 1; }
.promo-message { margin-top: 8px; font-size: 13px; font-weight: 600; }

.order-total-row { background: #eef4fa; padding: 20px 24px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.order-total-amount { font-size: 26px; font-weight: 700; color: var(--accent-2); }

.order-actions { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-soft); gap: 12px; }

.order-success { display: none; text-align: center; padding: 60px 20px; }
.order-success.show { display: block; }

@media (max-width: 640px) {
  .of-row { grid-template-columns: 1fr; }
  .photo-fields { grid-template-columns: 1fr 1fr; }
  .photo-config { grid-template-columns: 1fr; }
  .photo-thumb { width: 100%; height: 120px; }
  .step-label { display: none; }
  .order-actions { flex-direction: column-reverse; }
  .order-actions .btn { width: 100%; text-align: center; }
}

/* Legal / CGV */
.legal-content { color: var(--text-muted-dark); font-size: 15px; line-height: 1.8; }
.legal-heading { font-size: 20px; color: var(--text-dark); margin: 40px 0 12px; }
.legal-heading:first-child { margin-top: 0; }
.legal-p { margin: 0 0 16px; }
.legal-list { margin: 0 0 16px; padding-left: 20px; }
.legal-list li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--bg-dark); color: var(--text-muted-light); padding: 48px 0; text-align: center; font-size: 13px; }
.site-footer a { color: var(--accent); }
.site-footer > .container > div { margin-top: 8px; }
.footer-social { display: flex; gap: 20px; justify-content: center; margin-bottom: 10px; }
.footer-social a { font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 500; }
.footer-legal { opacity: 0.6; font-size: 12px; }

/* Admin bar link (subtle) */
.admin-hint { position: fixed; bottom: 14px; left: 14px; font-size: 11px; color: rgba(0,0,0,0.25); z-index: 5; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-top-bar { display: none; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
