/* --- VARIABLES & RESET --- */
:root {
  --main-green: #6A9A8B;
  --soft-peach: #F4B393;
  --light-beige: #F1E8D9;
  --off-white: #F9F8F6;
  --dark-text: #4a4a4a;
  --subtle-shadow: 0 8px 30px rgba(161, 140, 122, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--dark-text);
  background-color: var(--off-white);
  line-height: 1.7;
}

/* --- HEADER --- */
header {
  background-color: var(--main-green);
  color: var(--off-white);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  /* MODIFIÃ‰ : Arrondi de l'en-tÃªte rÃ©duit */
  border-radius: 0 0 30% 30%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-brand {
  margin-left: 2rem;
}

header h1 {
  font-weight: 700; font-size: 2.5rem; margin-bottom: 0.2rem;
  letter-spacing: 0.03em; transition: all 0.4s ease-in-out;
}
header p {
  font-size: 1.1rem; font-weight: 300;
  color: rgba(249, 248, 246, 0.85); margin: 0;
  transition: all 0.4s ease-in-out;
}

/* Header au scroll */
header.scrolled {
  padding: 0.8rem 1rem;
  background-color: rgba(106, 154, 139, 0.95);
  backdrop-filter: blur(10px);
}
header.scrolled h1 { font-size: 1.4rem; margin-bottom: 0; }
header.scrolled p { font-size: 0.9rem; color: rgba(249, 248, 246, 0.9); white-space: nowrap; }

/* --- NAVIGATION --- */
.nav-desktop {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem; transition: all 0.4s ease-in-out;
}
.nav-desktop a {
  color: var(--off-white); text-decoration: none; font-weight: 500;
  padding: 0.6rem 1.2rem; border-radius: 50px;
  border: 1px solid transparent; transition: all 0.4s ease;
}
.nav-desktop a:hover, .nav-desktop a:focus, .nav-desktop a.active {
  background-color: var(--off-white); color: var(--main-green);
  transform: translateY(-2px); outline: none;
}
header.scrolled .nav-desktop { flex-wrap: nowrap; gap: 1rem; }


/* --- SECTIONS --- */
section { padding: 5rem 2rem; max-width: 950px; margin: 0 auto; position: relative; text-align: center; }
section:not(:first-of-type) { margin-top: -1px; }
section::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 80px; background-size: cover;
  background-repeat: no-repeat; transform: translateY(-99%) rotate(180deg);
}
section:nth-of-type(odd) { background: var(--light-beige); --wave-bg: #f1e8d9; }
section:nth-of-type(even) { background: #fdfaf5; --wave-bg: #fdfaf5; }
section:nth-of-type(odd)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill:%23f1e8d9;'/%3E%3C/svg%3E"); }
section:nth-of-type(even)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill:%23fdfaf5;'/%3E%3C/svg%3E"); }
.intro { text-align: left; }

/* --- CONTENU & CARTES --- */
h2 { font-weight: 700; font-size: 2.8rem; color: var(--main-green); text-align: center; margin-bottom: 3rem; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.intro { display: flex; align-items: center; gap: 3rem; }
.portrait-rounded { width: 250px; height: 250px; object-fit: cover; border-radius: 50%; box-shadow: var(--subtle-shadow); }
.specialites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.specialite-card { background: var(--off-white); padding: 2.5rem 2rem; border-radius: 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.specialite-card:hover, .specialite-card:focus-within { transform: translateY(-10px); box-shadow: var(--subtle-shadow); outline: none; }
.specialite-card i { font-size: 2.5rem; color: var(--soft-peach); margin-bottom: 1rem; }
.specialite-card h3 { font-size: 1.4rem; color: var(--main-green); margin-bottom: 0.5rem; }
.btn { background-color: var(--main-green); color: var(--off-white); padding: 1.1rem 2.5rem; text-decoration: none; display: inline-block; border-radius: 50px; font-weight: 700; box-shadow: 0 8px 20px rgba(106, 154, 139, 0.3); transition: all 0.4s ease; text-align: center; }
.btn:hover, .btn:focus { background-color: var(--soft-peach); color: #fff; box-shadow: 0 10px 25px rgba(244, 179, 147, 0.5); transform: translateY(-3px); outline: none; }
#rdv { text-align: center; }

/* --- STYLES TEMOIGNAGES --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; text-align: left; }
.testimonial-card { background: var(--off-white); padding: 2.5rem 2rem; border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.testimonial-card .stars { color: #FFC107; margin-bottom: 1rem; font-size: 1.2rem; }
.testimonial-card p { font-style: italic; color: #555; margin-bottom: 1.5rem; flex-grow: 1; }
.testimonial-card h4 { font-weight: 500; color: var(--main-green); text-align: right; }

/* --- NOUVEAUX STYLES : SECTION ACCÃˆS & CONTACT --- */
.access-contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.access-column { text-align: center; }
.address-text { text-align: center; font-size: 1.1rem; margin-bottom: 2rem; }
.map-container { border-radius: 20px; overflow: hidden; box-shadow: var(--subtle-shadow); }
.map-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn-secondary { background-color: #fff; color: var(--main-green); padding: 0.8rem 2rem; text-decoration: none; border-radius: 50px; font-weight: 500; box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: all 0.4s ease; display: inline-flex; align-items: center; gap: 0.8rem; }
.btn-secondary:hover, .btn-secondary:focus { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.12); outline: none; }
.map-icon { width: 24px; height: 24px; object-fit: contain; }

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 400px; /* Limite la largeur sur les grands Ã©crans */
  margin: 0 auto; /* Centre la colonne */
}
.contact-card { background: var(--off-white); padding: 2.5rem 2rem; border-radius: 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.contact-card:hover, .contact-card:focus-within { transform: translateY(-8px); box-shadow: var(--subtle-shadow); }
.contact-card i { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
.contact-card.email i { color: #EA4335; }
.contact-card.phone i { color: #34A853; }
.contact-card h3 { font-size: 1.3rem; color: var(--main-green); margin-bottom: 1rem; font-weight: 600; }
.contact-card a { color: var(--dark-text); text-decoration: none; font-size: 1.1rem; font-weight: 500; padding: 1rem 1.5rem; border-radius: 50px; background: rgba(106, 154, 139, 0.1); display: inline-block; transition: all 0.3s ease; margin-top: 0.5rem; }
.contact-card a:hover, .contact-card a:focus { background: var(--main-green); color: var(--off-white); transform: translateY(-2px); outline: none; }


/* --- FOOTER --- */
footer { text-align: center; padding: 4rem 1rem 2rem; font-size: 0.9rem; color: var(--main-green); font-weight: 500; background-color: var(--light-beige); }

/* --- BOUTON RETOUR EN HAUT --- */
.back-to-top { position: fixed; bottom: 20px; right: 20px; background-color: var(--main-green); color: var(--off-white); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.15); z-index: 1001; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus { background-color: var(--soft-peach); outline: none; }

/* --- MENU HAMBURGER & NAVIGATION MOBILE --- */
.menu-toggle { display: none; flex-direction: column; justify-content: center; width: 40px; height: 40px; background: none; border: none; gap: 6px; cursor: pointer; z-index: 2002; }
.menu-toggle span { width: 30px; height: 3px; background: var(--off-white); border-radius: 3px; display: block; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-mobile { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; background: var(--main-green); transform: translateY(-110%); transition: transform 0.4s cubic-bezier(.53,.01,.22,1); z-index: 999; padding-top: 100px; padding-bottom: 24px; box-shadow: 0 6px 25px rgba(0,0,0,0.10); min-height: 100vh; }
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a { color: var(--off-white); padding: 1.2rem 2rem; font-size: 1.5rem; font-weight: 500; text-align: center; text-decoration: none; }

/* --- RESPONSIVE DESIGN --- */
@media screen and (max-width: 860px) { /* Point de rupture pour la section contact */
  .access-contact-container {
   grid-template-columns: 1fr;
   gap: 4rem; /* Espace vertical entre la carte et le contact sur mobile */
  }
}

@media screen and (max-width: 1070px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .header-brand { margin-left: 0; }
  body.menu-open { overflow: hidden; }
  .header-content { text-align: left; }
  header h1 { font-size: 1.3rem; }
  header p { display: none; }  
h1 { font-size: 2rem; }
  h2 { font-size: 2.2rem; }
  .intro { flex-direction: column; text-align: center; gap: 2rem; }
  .portrait-rounded { width: 180px; height: 180px; }
  section { padding: 4rem 1.5rem; }
  .header-content { flex-direction: row; justify-content: space-between; align-items: center; }
  .header-brand { text-align: left; margin-left: 1rem; }
  header h1 { font-size: 1.5rem; }
  header p { font-size: 0.9rem; }
}

@media screen and (max-width: 768px) {
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.2rem; }
  .btn { width: 100%; padding : 1.2rem }
  .btn-secondary { min-width: 200px; }
  .specialite-card { padding: 1.6rem 1rem; }
  .portrait-rounded { width: 120px; height: 120px; }
  section { padding: 2.5rem 1rem; }
  .back-to-top { width: 50px; height: 50px; right: 15px; bottom: 15px; font-size: 1.5rem; }
}