:root {
  --cream: #F5F0E4;
  --cream-light: #F8F4ED;
  --cream-dark: #EDE5D0;
  --dark: #252525;
  --dark-hover: #151412;
  --gold: #B8964A;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select, button { outline: none; font-family: var(--sans); }
input:focus, textarea:focus, select:focus { border-bottom-color: var(--gold) !important; }
::placeholder { color: #b5ac9e; }

select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23B8964A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 10px 6px;
  padding-right: 20px;
  cursor: pointer;
}

.fade-up, .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in { transform: none; }
.hero.in .fade-up { opacity: 1; transform: translateY(0); }
.hero.in .fade-in { opacity: 0.5; }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
#nav.scrolled {
  padding: 16px 72px;
  background: var(--cream);
  border-bottom: 1px solid rgba(26,25,18,0.12);
  box-shadow: 0 1px 24px rgba(0,0,0,0.05);
}
.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo-icon { height: 30px; width: auto; }
.nav-logo-text {
  font-family: var(--serif); font-size: 13px; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--dark); white-space: nowrap;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark);
  transition: color 0.2s;
}
.nav-links a:not(.nav-cta):hover { color: var(--gold); }
.nav-cta {
  color: var(--cream) !important; background: var(--dark);
  padding: 11px 26px; transition: background 0.3s;
}
.nav-cta:hover { background: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; z-index: 101;
}
.nav-toggle span { width: 100%; height: 1.5px; background: var(--dark); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* HERO */
.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse 90% 70% at 50% 42%, var(--cream-light) 0%, var(--cream-dark) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 120px 72px 100px; position: relative; overflow: hidden;
}
.hero-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 36px; }
.hero-logo-img { height: 72px; width: auto; margin-bottom: 24px; }
.hero-title {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark);
}
.hero-subtitle {
  font-family: var(--serif); font-size: clamp(13px, 1.6vw, 18px); font-weight: 700;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--dark); margin-top: 10px;
}
.hero-rule { width: 44px; height: 1px; background: rgba(26,25,18,0.2); margin-bottom: 28px; flex-shrink: 0; }
.hero-tagline {
  font-family: var(--sans); font-size: 13px; font-weight: 300; letter-spacing: 0.07em;
  color: #8a8070; line-height: 2.1; margin: 0;
}
.hero-scroll {
  position: absolute; bottom: 118px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
}
.hero-scroll span {
  font-family: var(--sans); font-size: 9px; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: #8a8070;
}
.hero-scroll-line { width: 1px; height: 32px; background: var(--gold); opacity: 0.6; }
.piano-keys { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.piano-keys svg { width: 100%; height: 160px; display: block; }

/* A PROPOS */
.apropos { background: var(--cream); padding: 96px 72px; }
.apropos-inner {
  display: grid; grid-template-columns: 340px 1fr; gap: 64px;
  max-width: 1200px; margin: 0 auto 72px; align-items: center;
}
.apropos-photo .photo-placeholder { aspect-ratio: 4 / 5; }
.apropos-text .eyebrow { margin-bottom: 20px; }
.apropos-text h2 {
  font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--dark);
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; margin: 0 0 22px;
}
.apropos-text p {
  font-family: var(--sans); font-size: 14px; font-weight: 300; color: #6b6355;
  line-height: 1.9; margin: 0 0 16px; max-width: 480px; text-wrap: balance;
}
.diplomes {
  list-style: none; margin: 24px 0 0; padding: 0;
  border-top: 1px solid rgba(26,25,18,0.1);
}
.diplomes li {
  font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0.06em;
  color: #8a8070; padding: 10px 0; border-bottom: 1px solid rgba(26,25,18,0.08);
  display: flex; align-items: center; gap: 10px;
}
.diplomes li::before {
  content: ''; width: 18px; height: 1px; background: var(--gold); flex-shrink: 0;
}

.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.gallery .photo-placeholder { aspect-ratio: 4 / 3; }

.photo-placeholder {
  background: var(--cream-dark);
  border: 1px dashed rgba(26,25,18,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: #a89a7c; text-align: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.05em;
}
.photo-placeholder small { color: #b8ab8c; font-size: 9px; display: block; margin-top: 4px; }

/* Quand un placeholder est remplacé par une vraie balise <img class="photo-placeholder">,
   ces règles assurent un recadrage propre sans changer le HTML environnant. */
img.photo-placeholder { object-fit: cover; width: 100%; height: 100%; border: none; }

/* SERVICES */
.services { background: var(--dark); padding: 96px 72px 112px; }
.section-heading {
  display: flex; align-items: center; gap: 32px; margin-bottom: 64px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.section-heading h2 {
  font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 300;
  font-style: italic; color: var(--cream); margin: 0; white-space: nowrap; flex-shrink: 0;
}
.rule-flex { flex: 1; height: 1px; background: rgba(245,240,228,0.1); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  max-width: 1200px; margin: 0 auto; background: rgba(245,240,228,0.07);
}
.service-card {
  padding: 52px 44px; background: var(--dark);
  transition: background 0.3s, box-shadow 0.3s;
}
.service-card:hover { background: var(--dark-hover); box-shadow: inset 3px 0 0 var(--gold); }
.service-num {
  font-family: var(--serif); font-size: 58px; font-weight: 300; color: var(--gold);
  opacity: 0.4; line-height: 1; margin-bottom: 28px; letter-spacing: -0.02em;
}
.service-card h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--cream);
  line-height: 1.25; margin: 0 0 6px;
}
.service-sub {
  font-family: var(--serif); font-size: 18px; font-weight: 300; font-style: italic;
  color: var(--gold); margin: 0 0 24px; line-height: 1.4;
}
.service-rule { width: 28px; height: 1px; background: rgba(184,150,74,0.35); margin-bottom: 22px; }
.service-desc {
  font-family: var(--sans); font-size: 13px; font-weight: 300; color: rgba(245,240,228,0.48);
  line-height: 1.95; margin: 0;
}

/* CONTACT */
.contact { background: var(--cream); padding: 100px 72px 120px; }
.contact-inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 20px;
}
.contact-title {
  font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); font-weight: 300;
  font-style: italic; color: var(--dark); margin: 0 0 20px; line-height: 1.05;
}
.contact-intro {
  font-family: var(--sans); font-size: 14px; font-weight: 300; color: #9a9080;
  margin: 0 0 60px; line-height: 1.9; max-width: 440px;
}

.form-success, .form-error { display: none; }
.form-success.visible { display: block; }
.form-error.visible { display: block; }
.form-success {
  padding: 64px 0; text-align: center;
  border-top: 1px solid rgba(26,25,18,0.09); border-bottom: 1px solid rgba(26,25,18,0.09);
}
.success-rule { width: 44px; height: 1px; background: var(--gold); margin: 0 auto 40px; }
.success-title {
  font-family: var(--serif); font-size: 30px; font-style: italic; font-weight: 300;
  color: var(--dark); margin: 0 0 16px; line-height: 1.35;
}
.success-sub { font-family: var(--sans); font-size: 13px; font-weight: 300; color: #9a9080; margin: 0; letter-spacing: 0.06em; }
.form-error {
  font-family: var(--sans); font-size: 13px; color: #a33; background: rgba(163,51,51,0.08);
  border: 1px solid rgba(163,51,51,0.25); padding: 16px 20px; margin-bottom: 32px;
}

.contact-form { display: flex; flex-direction: column; gap: 40px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-group label {
  font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.form-group input, .form-group select, .form-group textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(26,25,18,0.18);
  padding: 10px 0 12px; font-size: 15px; font-weight: 300; color: var(--dark);
  width: 100%; transition: border-color 0.3s;
}
.form-group textarea { resize: none; }
.form-group input.field-error, .form-group textarea.field-error { border-bottom-color: #a33; }

#submitBtn {
  font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; background: var(--dark); color: var(--cream); border: none;
  padding: 16px 44px; cursor: pointer; transition: background 0.3s;
}
#submitBtn:hover:not(:disabled) { background: var(--gold); }
#submitBtn:disabled { opacity: 0.6; cursor: not-allowed; }

/* FOOTER */
.footer {
  background: var(--dark); padding: 36px 72px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-icon { height: 26px; width: auto; opacity: 0.85; }
.footer-logo span {
  font-family: var(--serif); font-size: 13px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(245,240,228,0.45);
}
.footer-copy { font-family: var(--sans); font-size: 10px; font-weight: 300; color: rgba(245,240,228,0.28); letter-spacing: 0.1em; }

/* ============ RESPONSIVE ============ */

/* Tablette */
@media (max-width: 1024px) {
  #nav, .hero, .apropos, .services, .contact, .footer { padding-left: 40px; padding-right: 40px; }
  .apropos-inner { grid-template-columns: 280px 1fr; gap: 44px; }
  .form-row { gap: 28px; }
}

@media (max-width: 860px) {
  .apropos-inner { grid-template-columns: 1fr; text-align: center; }
  .apropos-photo { max-width: 280px; margin: 0 auto; }
  .apropos-text p { margin-left: auto; margin-right: auto; text-align: left; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  #nav, .hero, .apropos, .services, .contact, .footer { padding-left: 22px; padding-right: 22px; }

  #nav { padding-top: 18px; padding-bottom: 18px; }
  #nav.scrolled { padding-top: 14px; padding-bottom: 14px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--cream); flex-direction: column; justify-content: center;
    align-items: flex-start; gap: 32px; padding: 40px;
    transform: translateX(100%); transition: transform 0.35s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 12px; }
  .nav-cta { padding: 13px 24px; }

  .hero { padding: 100px 22px 140px; min-height: 100svh; }
  .hero-tagline br { display: inline; }

  .apropos { padding: 72px 22px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; }

  .services { padding: 72px 22px 88px; }
  .section-heading { gap: 20px; margin-bottom: 44px; }
  .service-card { padding: 40px 28px; }

  .contact { padding: 72px 22px 88px; }
  .form-row { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { gap: 32px; }

  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in, #nav, .nav-links, .nav-toggle span { transition: none !important; }
}
