/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f5f0e8;
  --beige: #ede8df;
  --sand: #d9cfc0;
  --brown: #8b6f5e;
  --brown-dark: #5c4537;
  --brown-light: #c4a98a;
  --text: #3a2e28;
  --text-muted: #8a7a72;
  --white: #fffdfb;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav a:hover { color: var(--brown-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 32px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--beige);
  border: 1px solid var(--sand);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  font-style: normal;
  color: var(--brown-dark);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.sparkle {
  color: var(--brown-light);
  font-style: italic;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-outline {
  color: var(--brown-dark);
  border: 1.5px solid var(--sand);
  background: transparent;
}

.btn-outline:hover {
  background: var(--beige);
  border-color: var(--brown-light);
}

.btn-filled {
  color: var(--white);
  background: var(--brown-dark);
  border: 1.5px solid var(--brown-dark);
}

.btn-filled:hover {
  background: var(--brown);
  border-color: var(--brown);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92, 69, 55, 0.25);
}

/* ===== DECO CIRCLES ===== */
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.deco-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.deco-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #e8d5c0, transparent);
  top: -100px; right: -100px;
}

.deco-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #d4c4b0, transparent);
  bottom: -80px; left: -60px;
}

/* Vagues SVG décoratives */
.deco-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Animations des groupes de vagues */
@keyframes wave-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

.wg-slow  { animation: wave-float 14s ease-in-out infinite; }
.wg-slow2 { animation: wave-float 17s ease-in-out infinite; animation-delay: -5s; }
.wg-slow3 { animation: wave-float 15s ease-in-out infinite; animation-delay: -9s; }
.wg-med   { animation: wave-float 10s ease-in-out infinite; animation-delay: -2s; }
.wg-med2  { animation: wave-float 12s ease-in-out infinite; animation-delay: -7s; }
.wg-fast  { animation: wave-float  8s ease-in-out infinite; animation-delay: -4s; }

/* ===== TICKER ===== */
.ticker-wrap {
  overflow: hidden;
  background: var(--brown-dark);
  padding: 12px 0;
}

.ticker {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}

.ticker span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== GALLERY ===== */
.gallery-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Carte avec image */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--beige);
  cursor: pointer;
}

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

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 40, 0.45);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-overlay { opacity: 1; }

.card-overlay span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Placeholder */
.card.placeholder {
  border: 2px dashed var(--sand);
  background: var(--white);
  cursor: default;
}

.placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--sand);
}

.placeholder-inner span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.gallery-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== CUSTOM SECTION ===== */
.custom-section {
  background: var(--beige);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  padding: 90px 32px;
}

.custom-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.custom-text .hero-tag { margin-bottom: 20px; }

.custom-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.custom-text p {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.custom-deco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.deco-blob {
  width: 220px;
  height: 220px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: linear-gradient(135deg, var(--sand), var(--brown-light));
  opacity: 0.5;
  animation: blob-morph 6s ease-in-out infinite alternate;
}

@keyframes blob-morph {
  from { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  to   { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
}

.deco-items {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.deco-item {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite alternate;
  animation-delay: var(--delay);
  display: block;
}

@keyframes float {
  from { transform: translateY(0px); }
  to   { transform: translateY(-12px); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brown-dark);
  padding: 48px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--sand);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--brown-light);
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .header-inner { padding: 16px 20px; }
  .nav { gap: 20px; }
  .hero { padding: 60px 20px; }
  .gallery-section { padding: 60px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .custom-inner { grid-template-columns: 1fr; gap: 40px; }
  .custom-deco { min-height: 180px; }
  .custom-section { padding: 60px 20px; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .logo { font-size: 1.3rem; }
}
