/* ================================
   ATELIER PIANO LÉMAN — Style
   ================================ */

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

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivoire:        #F5F0E8;
  --noir:          #1A1A1A;
  --bronze:        #8B7355;
  --bronze-light:  #B09878;
  --vert:          #001538;
  --gris:          #6B6459;
  --blanc:         #FDFAF5;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--ivoire);
  color: var(--noir);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Typographie --- */
h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p  { font-size: clamp(0.9rem, 1.5vw, 1rem); color: var(--gris); }

/* --- Utilitaires --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.accent { color: var(--bronze); }
.divider { width: 40px; height: 1px; background: var(--bronze); margin: 1.5rem auto; }
.divider.left { margin-left: 0; }

/* --- Navigation --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(8px);
  padding: 1rem 2rem;
  box-shadow: 0 1px 0 rgba(139, 115, 85, 0.15);
}
.nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--noir); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--bronze); }
.nav-cta {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blanc); background: var(--vert);
  padding: 0.65rem 1.6rem; border: none; cursor: pointer;
  text-decoration: none; transition: background 0.25s;
}
.nav-cta:hover { background: var(--bronze); }

/* Burger mobile */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 1px; background: var(--noir); }

/* --- Hero --- */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 5rem;
  background-color: var(--ivoire);
  position: relative; overflow: hidden;
}
body { overflow-x: hidden; }
#hero { --diag-x: 0px; }
#hero::before {
  content: '';
  position: absolute; top: 0; right: -190px;
  width: 45%; height: 100%;
  background: var(--vert); opacity: 0.06;
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
  transform: translateX(var(--diag-x));
  will-change: transform;
}
/* Hero institutionnel */
.hero-institution {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 700px; margin: 0 auto;
}
.hero-logo-wrap {
  width: 396px; height: 396px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
  animation: fadeDown 0.9s ease both;
}
.hero-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-rule {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--bronze), transparent);
  margin-bottom: 1.5rem;
  animation: fadeIn 1s 0.3s ease both;
}
.hero-titre-metier {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--bronze); display: block; margin-bottom: 1rem;
  animation: fadeIn 1s 0.4s ease both;
}
.hero-institution h1 {
  margin-bottom: 1.5rem;
  animation: fadeIn 1s 0.5s ease both;
}
.hero-institution h1 em { font-style: italic; color: var(--bronze); }
.hero-institution .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-style: italic;
  color: var(--gris); margin-bottom: 2.5rem; line-height: 1.7;
  animation: fadeIn 1s 0.6s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeIn 1s 0.7s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400;
  color: var(--blanc); background: var(--vert);
  padding: 0.85rem 2.2rem; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s;
}
.btn-primary:hover { background: var(--bronze); }

.btn-secondary {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400;
  color: var(--vert); padding: 0.85rem 2.2rem; text-decoration: none;
  border: 1px solid var(--vert); transition: all 0.25s;
}
.btn-secondary:hover { background: var(--vert); color: var(--blanc); }

/* --- Sections --- */
section { padding: 6rem 0; scroll-margin-top: 80px; }
section:nth-child(even) { background: var(--blanc); }

.section-label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bronze); display: block; margin-bottom: 0.8rem;
}
.section-header { max-width: 600px; }
.section-header p { margin-top: 1rem; font-size: 1rem; line-height: 1.8; }

/* --- À propos --- */
#apropos .apropos-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start; margin-top: 4rem;
}
.apropos-text p { margin-bottom: 1.2rem; line-height: 1.9; }
.apropos-valeurs { display: flex; flex-direction: column; gap: 0; }
.valeur {
  border-top: 1px solid rgba(139, 115, 85, 0.25);
  padding: 1.4rem 0;
}
.valeur:last-child { border-bottom: 1px solid rgba(139, 115, 85, 0.25); }
.valeur-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: var(--vert);
  display: block; margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
.valeur p { font-size: 0.88rem; line-height: 1.7; margin: 0; }

/* --- Prestations --- */
#prestations .prestations-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-top: 4rem;
}
.prestation-card {
  background: var(--blanc); padding: 2.5rem 2rem;
  border-top: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
}
.prestation-card .duree { margin-top: auto; padding-top: 1.5rem; }
section:nth-child(even) .prestation-card { background: var(--ivoire); }

@media (max-width: 600px) {
  #prestations .prestations-grid { grid-template-columns: 1fr; }
}
.prestation-card:hover { border-color: var(--bronze); transform: translateY(-3px); }
.prestation-card, .prestation-card * { user-select: none; -webkit-user-select: none; }
.prestation-card .num {
  font-family: 'Cormorant Garamond', serif; font-size: 0.9rem;
  color: var(--bronze); letter-spacing: 0.1em; display: block; margin-bottom: 1.2rem;
}
.prestation-card h3 { margin-bottom: 0.8rem; }
.prestation-card p { font-size: 0.9rem; line-height: 1.7; }
.prestation-card .duree {
  display: block;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--bronze); border-top: 1px solid rgba(139, 115, 85, 0.3);
  padding-top: 0.8rem; width: 100%;
}

/* --- Méthode --- */
#methode .methode-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0; margin-top: 4rem; position: relative;
}
.methode-steps::before {
  content: '';
  position: absolute; top: 1.5rem; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--bronze-light), transparent);
}
.step { padding: 2.2rem 2rem 0 0; position: relative; }
.step-num {
  font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300;
  color: rgba(139, 115, 85, 0.2); line-height: 1; display: block; margin-bottom: 1.5rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.step p { font-size: 0.88rem; }

/* --- Réservation --- */
#reservation { background: var(--vert); }
#reservation .section-label { color: var(--bronze-light); }
#reservation h2 { color: var(--blanc); }
#reservation .section-header p { color: rgba(253, 250, 245, 0.65); }
#reservation .divider { background: var(--bronze-light); }

.cal-embed-wrap {
  margin-top: 3rem; background: var(--blanc); overflow: hidden; min-height: 600px;
}
.cal-embed-wrap iframe { width: 100%; min-height: 600px; border: none; display: block; }

/* Placeholder avant config Cal.com */
.cal-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; padding: 3rem; text-align: center;
  background: rgba(253, 250, 245, 0.05);
  border: 1px dashed rgba(253, 250, 245, 0.2); margin-top: 3rem;
}
.cal-placeholder p { color: rgba(253, 250, 245, 0.6); font-size: 0.9rem; margin-top: 0.5rem; }
.cal-placeholder .picto { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.35; }
.cal-placeholder h3 { font-family: 'Cormorant Garamond', serif; color: rgba(253,250,245,0.7); font-size: 1.6rem; }

/* --- Footer --- */
footer { background: var(--noir); color: rgba(253, 250, 245, 0.5); padding: 2rem 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(253, 250, 245, 0.4); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--bronze-light); }
.footer-copy { font-size: 0.75rem; }

/* --- Responsive tablette --- */
@media (max-width: 900px) {
  .hero-actions { justify-content: center; }
  #apropos .apropos-grid { grid-template-columns: 1fr; gap: 3rem; }
  .methode-steps::before { display: none; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
}

/* --- Responsive mobile --- */
@media (max-width: 600px) {
  section { padding: 4rem 0; scroll-margin-top: 70px; }

  /* Hero */
  #hero { padding: 5rem 0 3rem; overflow: hidden; }
  #hero::before { display: none; }
  .hero-institution { padding: 0 1.2rem; text-align: center; align-items: center; width: 100%; }
  .hero-logo-wrap { width: 200px !important; height: 200px !important; }
  .hero-logo-wrap img { width: 200px !important; height: 200px !important; }
  .hero-institution h1 { font-size: 2.2rem !important; white-space: normal; }
  .hero-institution .tagline { font-size: 1rem; padding: 0 1rem; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; box-sizing: border-box; }

  /* À propos */
  .apropos-valeurs { gap: 0; }

  /* Prestations 1 colonne */
  #prestations .prestations-grid { grid-template-columns: 1fr; }

  /* Méthode */
  .methode-steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 2rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* --- Menu mobile overlay --- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ivoire);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem;
  color: var(--noir); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--bronze); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--gris);
}
