/* ================================
   STYLE GLOBAL — Meg Bourrel
   ================================ */
:root {
  --bg: #fbf9f8;
  --card: #ffffff;
  --muted: #6b6f76;
  --text: #102027; /* Couleur très sombre pour le texte */
  --accent: #d9bfb6;
  --accent-600: #b8978f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 32, 39, 0.08);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ======================
   HEADER & NAVIGATION
   ====================== */
.site-header {
  position: sticky;
  top: 0;
  /* CORRECTION Z-INDEX : Doit être supérieur à l'overlay (2100) */
  z-index: 2200; 
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.7));
  padding: .75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.logo {
  height: 44px;
}

section {
  scroll-margin-top: 5rem;
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* ======================
   BUTTONS
   ====================== */
.btn {
  padding: .55rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-600));
  color: white;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
  border-radius: 10px;
}

/* ======================
   HERO
   ====================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 4.5rem 0;
}

.eyebrow {
  color: var(--muted);
  font-weight: 600;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  margin: .25rem 0 1rem;
  font-size: 2rem;
}

.lead {
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 95%;
  margin-left: 0.65rem;
}

.hero-left {
  width: 95%;
  margin-left: 0.65rem;
}

.socials {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
}

.social-icon img {
  width: 40px;
  height: 40px;
  display: block;
  filter: grayscale(40%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icon:hover img {
  transform: scale(1.12);
  filter: grayscale(0%);
}

/* ======================
   VIDEO
   ====================== */
.video-wrap {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ======================
   CARTES SÉANCES
   ====================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.2, .9, .3, 1), box-shadow .28s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(16, 32, 39, 0.12);
}

.card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

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

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

.card-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 120px;
}

.card-body h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.card-body .desc {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: .5rem;
  align-items: center;
  padding-top: .5rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-600);
  color: var(--accent-600);
  padding: .45rem .6rem;
  border-radius: 10px;
  cursor: pointer;
}

/* ======================
   MODALE CONTACT
   ====================== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, 0.45);
  z-index: 3000; /* Très haut pour passer au dessus de tout */
}

.modal.open {
  display: flex;
}

.modal-card {
  width: 92%;
  max-width: 520px;
  background: var(--card);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 20px 50px rgba(2, 6, 10, 0.4);
}

.modal-card h3 {
  margin: 0 0 .6rem;
}

.modal-card input,
.modal-card textarea {
  width: 100%;
  padding: .7rem;
  border-radius: 10px;
  border: 1px solid #ececec;
  margin-bottom: .5rem;
}

.modal-actions {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

/* ======================
   CONTACT / FOOTER
   ====================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 10px;
}

.contact-links-group {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1rem 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.contact-link img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.contact-link:hover {
  color: var(--accent-600);
}

.contact-link:hover img {
  transform: scale(1.12);
  opacity: 1;
}

.site-footer {
  background: linear-gradient(180deg, var(--accent), var(--accent-600));
  color: white;
  padding: 2rem 0;
  border-radius: 14px 14px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* =========================================
   NOUVEAU MENU BURGER MODERNE
   ========================================= */
.modern-burger {
    display: none; /* Caché sur desktop */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(184, 151, 143, 0.3);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    
    /* IMPORTANT: Z-index relatif au header */
    position: relative;
    z-index: 2300; 
    
    transition: all 0.3s ease;
    padding: 0;
}

.modern-burger:hover {
    border-color: var(--accent-600);
    background: rgba(217, 191, 182, 0.1);
}

.burger-lines {
    position: relative;
    width: 24px;
    height: 14px;
}

.burger-lines span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #102027; /* Force la couleur noire */
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.2s;
}

.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { bottom: 0; }

/* ÉTAT ACTIF (CROIX) */
.modern-burger.active {
    border-color: transparent;
}
.modern-burger.active .burger-lines span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}
.modern-burger.active .burger-lines span:nth-child(2) {
    bottom: 6px;
    transform: rotate(-45deg);
}

/* =========================================
   MODERN OVERLAY MENU (PLEIN ÉCRAN)
   ========================================= */
.modern-overlay {
    position: fixed;
    inset: 0;
    background: rgba(251, 249, 248, 0.98); /* Fond presque opaque */
    backdrop-filter: blur(12px);
    
    /* CORRECTION Z-INDEX : Doit être INFÉRIEUR au header (2200) */
    z-index: 2100; 
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.overlay-nav {
    text-align: center;
    width: 100%;
    margin-top: 3rem; /* Espace pour ne pas coller au header */
}

.overlay-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.overlay-nav a {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease;
}

.modern-overlay.open .overlay-nav a,
.modern-overlay.open .overlay-footer {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay);
}

.overlay-nav a:hover {
    color: var(--accent-600);
}

.overlay-footer {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

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

/* ======================
   AVIS GOOGLE BTN
   ====================== */
.avis-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

#btn_avis {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25%;
  height: 5rem;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #d9bfb6, #b8978f);
  color: white;
  cursor: pointer;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .nav-list {
    display: none; /* Cache le menu desktop */
  }
  .modern-burger {
    display: flex; /* Affiche le burger mobile */
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  #btn_avis {
      width: 80%;
  }
}

/* ======================
   ACCESSIBILITÉ
   ====================== */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(185, 151, 143, 0.18);
  outline-offset: 3px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: .9rem;
}