:root {
  --bg: #0b0f14;
  --bg-soft: #101722;
  --card: #121a26;
  --gold: #c6a85c;
  --gold-soft: rgba(198, 168, 92, 0.22);
  --text: #f5f5f5;
  --muted: #cfd5de;
  --border: rgba(245, 245, 245, 0.12);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(198, 168, 92, 0.08), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(124, 145, 179, 0.1), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  margin: 0 0 2.4rem;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.06em;
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.8rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-gold {
  background: linear-gradient(145deg, #d6bd78, var(--gold));
  color: #0c1117;
  box-shadow: 0 8px 22px rgba(198, 168, 92, 0.24);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(198, 168, 92, 0.3);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--gold);
  color: #0c1117;
  box-shadow: 0 8px 20px rgba(198, 168, 92, 0.24);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 4%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 0.8rem + 1vw, 1.5rem);
  letter-spacing: 0.12em;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(11, 15, 20, 0.98);
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem 4% 1rem;
  transform: translateY(-18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text);
  position: relative;
}

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

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

.nav-toggle {
  display: inline-grid;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-cta {
  display: none;
}

/* --- SECTION HERO (MODIFIÉE) --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  /* Utilisation de background-position: center pour éviter le décalage à droite */
  background-image:
    linear-gradient(90deg, rgba(7, 10, 15, 0.88) 15%, rgba(7, 10, 15, 0.56) 50%, rgba(7, 10, 15, 0.35) 100%),
    url("https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&w=1900&q=80");
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(198, 168, 92, 0.08), transparent 55%);
  z-index: -1;
}

.hero-content {
  padding-top: 5rem;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  letter-spacing: 0.13em;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.15;
  font-size: clamp(2.1rem, 1.5rem + 2.7vw, 4.3rem);
  text-wrap: balance;
}

/* Grilles et Cartes */
.services-grid,
.gallery-grid,
.why-grid {
  display: grid;
  gap: 1rem;
}

.service-card,
.why-card,
.contact-form,
.gallery-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}

.service-card,
.why-card {
  padding: 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 168, 92, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(198, 168, 92, 0.2) inset;
}

.icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(198, 168, 92, 0.52);
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.service-card h3,
.why-card h3 {
  margin: 0 0 0.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.service-card p,
.why-card p {
  margin: 0;
  color: var(--muted);
}

.section-action {
  margin-top: 2rem;
  text-align: center;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: clamp(240px, 34vw, 320px);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

/* Contact */
.contact-wrap {
  max-width: 760px;
}

.contact-form {
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(6, 8, 12, 0.78);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(198, 168, 92, 0.45);
  border-color: rgba(198, 168, 92, 0.6);
}

.contact-form .btn {
  justify-self: start;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #080b10;
}

.footer-content {
  padding: 1.4rem 0;
  text-align: center;
}

.footer p {
  margin: 0.15rem 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 600px) {
  .hero {
    background-position: center center; /* On force le plein centre sur petit écran */
  }
  .hero-content {
    text-align: center;
    margin-inline: auto;
  }
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .navbar {
    padding: 1rem 5%;
  }
  .nav-toggle {
    display: none;
  }
  .nav-links {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    display: flex;
    gap: 1.4rem;
    padding: 0;
  }
  .nav-links a {
    padding: 0.3rem 0;
    font-size: 0.96rem;
  }
  .nav-cta {
    display: inline-flex;
  }
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-content {
    padding-top: 2.5rem;
  }
  .section {
    padding: 5.6rem 0;
  }
}

/* Accessibilité et Formulaire Status */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

.contact-submit {
  position: relative;
  min-width: 176px;
  gap: 0.55rem;
}

.btn-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(12, 17, 23, 0.25);
  border-top-color: #0c1117;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.contact-submit.is-loading .btn-spinner {
  opacity: 1;
  transform: scale(1);
  animation: spin 0.7s linear infinite;
}

.form-status {
  margin: 0.2rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
}

.form-status.is-success {
  color: #d8f5e2;
  border-color: rgba(95, 207, 140, 0.45);
  background: rgba(58, 112, 77, 0.22);
}

.form-status.is-error {
  color: #ffd6d6;
  border-color: rgba(255, 120, 120, 0.45);
  background: rgba(125, 38, 38, 0.22);
}

@keyframes spin {
  to { transform: rotate(360deg); }
} 