/* =========================================================
   MON GALERIE — Site vitrine luxe / chic
   Glassmorphism + animations fluides + hover 3D
   ========================================================= */

:root {
  --bg: #0e0d0f;
  --bg-soft: #17151a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4f1ea;
  --text-muted: #b8b2a8;
  --accent: #c9a86a;
  --accent-soft: #e3c78f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animated aurora background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 168, 106, 0.16), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(140, 110, 180, 0.14), transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(70, 110, 150, 0.12), transparent 45%),
    var(--bg);
  animation: auroraShift 18s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { filter: hue-rotate(0deg); transform: scale(1); }
  100% { filter: hue-rotate(-22deg); transform: scale(1.06); }
}

/* ---------------- Typography ---------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-title .divider {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1.1rem auto 0;
}

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(14, 13, 15, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.8rem 5%;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo .monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: 0.3s ease;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1580136579312-94651dfd596d?w=1800");
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: brightness(0.5) saturate(0.9);
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,13,15,0.55) 0%, rgba(14,13,15,0.25) 45%, rgba(14,13,15,0.9) 100%);
}

.hero-content {
  max-width: 850px;
}

.hero .eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--accent-soft);
  margin-bottom: 1.4rem;
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #1a1408;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(201, 168, 106, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: var(--surface-strong);
}

/* ---------------- Sections générales ---------------- */
.section {
  padding: 6.5rem 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.6rem 2rem;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, background 0.5s ease;
  transform-style: preserve-3d;
  perspective: 900px;
}

.service-card:hover {
  transform: translateY(-12px) rotateX(6deg) rotateY(-4deg);
  box-shadow: var(--shadow);
  background: var(--surface-strong);
}

.service-card .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,106,0.2), rgba(201,168,106,0.05));
  border: 1px solid rgba(201, 168, 106, 0.35);
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------------- Galerie (aperçu accueil) ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,13,15,0.9) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.gallery-item .overlay span {
  color: var(--accent-soft);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------------- Témoignages ---------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.testimonial-card .stars {
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.6rem;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card .author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #1a1408;
}

.testimonial-card .author strong {
  display: block;
  font-weight: 600;
}

.testimonial-card .author span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------- CTA ---------------- */
.cta-section {
  text-align: center;
  padding: 5rem 5%;
  background: linear-gradient(135deg, rgba(201,168,106,0.12), rgba(201,168,106,0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ---------------- Footer ---------------- */
.footer {
  background: rgba(8, 7, 9, 0.8);
  border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--accent-soft);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.7rem;
}

.footer ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s ease;
}

.footer ul a:hover {
  color: var(--accent);
}

.footer .contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer .contact-line svg {
  flex-shrink: 0;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------- Page header interne ---------------- */
.page-header {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  overflow: hidden;
}

.page-header .bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1544967082-d9d25d867d66?w=1800");
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: brightness(0.45);
}

.page-header .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,13,15,0.6), rgba(14,13,15,0.85));
}

.page-header .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--accent-soft);
}

/* ---------------- Formulaire contact ---------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.6rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-msg {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
  display: none;
}

.form-msg.success {
  display: block;
  background: rgba(60, 140, 80, 0.2);
  border: 1px solid rgba(60, 140, 80, 0.5);
  color: #9be0ad;
}

.form-msg.error {
  display: block;
  background: rgba(190, 70, 70, 0.2);
  border: 1px solid rgba(190, 70, 70, 0.5);
  color: #f3a3a3;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.6rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-info-card .info-line {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card .info-line:last-of-type {
  border-bottom: none;
}

.contact-info-card .info-line svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

.contact-info-card .info-line h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-info-card .info-line p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.map-wrap {
  margin-top: 1.6rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: none;
}

/* ---------------- Reveal animations ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: revealFallback 0.9s ease 0.4s forwards;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(14, 13, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: right 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-left: 1px solid var(--border);
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: flex;
    z-index: 110;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .services-grid,
  .testimonials-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .section {
    padding: 4rem 5%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    padding: 7rem 5% 5rem;
  }
  .contact-form,
  .contact-info-card {
    padding: 1.8rem;
  }
}
