/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #333;
  background: #f5f3f0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #6b8e6b;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #4a6e4a;
  text-decoration: underline;
}

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-weight: normal;
  color: #4a4a4a;
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 1.2rem; }
h2 { font-size: 1.6rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  background: #fff;
  max-width: 1040px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e4df;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.site-logo img {
  height: 60px;
  width: auto;
}

/* ===== NAVIGATION ===== */
.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #4a4a4a;
  padding: 8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 10px 14px;
  color: #555;
  font-size: 0.88rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0.3px;
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: #6b8e6b;
  text-decoration: none;
  background: #f9f7f4;
}

.nav-menu > li.nav-cta > a {
  background: #6b8e6b;
  color: #fff;
  border-radius: 4px;
  margin-left: 8px;
  padding: 8px 16px;
}

.nav-menu > li.nav-cta > a:hover {
  background: #5a7d5a;
  color: #fff;
}

/* Dropdown */
.nav-menu .has-children > a::after {
  content: ' ▾';
  font-size: 0.7em;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e8e4df;
  border-radius: 0 0 4px 4px;
  z-index: 100;
}

.has-children:hover .nav-dropdown,
.has-children.open .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #555;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  border-bottom: 1px solid #f0ece7;
  transition: background 0.2s;
}

.nav-dropdown li:last-child a {
  border-bottom: none;
}

.nav-dropdown li a:hover {
  background: #f9f7f4;
  color: #6b8e6b;
  text-decoration: none;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: #2c2c2c;
  overflow: hidden;
  height: 400px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-quote {
  color: #fff;
  text-align: center;
  max-width: 600px;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.85;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== THREE COLUMNS ===== */
.info-section {
  padding: 40px 20px;
  background: #f9f7f4;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}

.info-col {
  text-align: center;
  padding: 20px;
}

.info-col h3 {
  color: #6b8e6b;
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-family: 'Georgia', serif;
}

.info-col p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.7;
}

.info-col .contact-detail {
  font-size: 0.9rem;
  margin-top: 8px;
}

.info-col .phone {
  font-size: 1.1rem;
  font-weight: bold;
  color: #4a4a4a;
  display: block;
  margin-bottom: 6px;
}

/* ===== DIVIDER ===== */
.divider {
  text-align: center;
  padding: 20px 0;
  background: #fff;
}

.divider img {
  display: inline-block;
  max-width: 120px;
  opacity: 0.5;
}

/* ===== PAGE CONTENT ===== */
.page-header {
  background: linear-gradient(135deg, #6b8e6b 0%, #8aab8a 100%);
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin: 0;
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.page-content {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content p {
  margin-bottom: 1.2em;
  font-size: 0.95rem;
  line-height: 1.8;
}

.page-content h2 {
  color: #6b8e6b;
  margin-top: 2em;
  margin-bottom: 0.8em;
  border-bottom: 1px solid #e8e4df;
  padding-bottom: 8px;
}

.page-content h3 {
  color: #5a7d5a;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.page-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1.2em;
}

.page-content ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-content .content-image {
  float: right;
  margin: 0 0 20px 20px;
  max-width: 250px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-content .content-image-left {
  float: left;
  margin: 0 20px 20px 0;
  max-width: 250px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-content .content-image-center {
  display: block;
  margin: 20px auto;
  max-width: 300px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: #f9f7f4;
  border-left: 4px solid #6b8e6b;
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

.highlight-box p {
  margin-bottom: 0.5em;
}

.highlight-box strong {
  color: #4a4a4a;
}

/* ===== LINKS LIST ===== */
.links-section {
  margin-bottom: 2em;
}

.links-section h3 {
  color: #6b8e6b;
  border-bottom: 1px solid #e8e4df;
  padding-bottom: 6px;
}

.links-section ul {
  list-style: none;
  padding-left: 0;
}

.links-section ul li {
  padding: 6px 0;
  border-bottom: 1px dotted #e8e4df;
}

.links-section ul li a {
  font-size: 0.92rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.contact-info {
  font-size: 0.95rem;
}

.contact-info p {
  margin-bottom: 0.6em;
}

.contact-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.contact-photos img {
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-rdv {
  display: inline-block;
  background: #6b8e6b;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-top: 16px;
  transition: background 0.3s;
}

.btn-rdv:hover {
  background: #5a7d5a;
  color: #fff;
  text-decoration: none;
}

/* ===== THUMBNAIL GRID (landing pages) ===== */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.thumb-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9f7f4;
  border-radius: 6px;
  transition: box-shadow 0.3s;
  text-decoration: none;
  color: #333;
}

.thumb-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
}

.thumb-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.thumb-card span {
  font-size: 1rem;
  color: #6b8e6b;
  font-weight: bold;
}

/* ===== PRACTITIONER BIO ===== */
.bio-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.bio-header img {
  width: 200px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.bio-header .bio-title {
  font-size: 1rem;
  color: #6b8e6b;
  font-weight: bold;
  margin-bottom: 12px;
}

/* ===== MEMOIRE DOWNLOADS ===== */
.download-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.download-list li {
  padding: 12px 16px;
  background: #f9f7f4;
  border-radius: 4px;
  margin-bottom: 8px;
  border-left: 3px solid #6b8e6b;
}

.download-list li a {
  font-weight: bold;
}

.download-list li em {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #3a3a3a;
  color: #ccc;
  padding: 40px 20px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-nav ul li a {
  color: #aaa;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.footer-nav ul li a:hover {
  color: #fff;
}

.footer-contact {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-contact a {
  color: #aaa;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 960px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid #555;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e8e4df;
    border-radius: 0 0 4px 4px;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > li > a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0ece7;
  }

  .nav-menu > li.nav-cta > a {
    margin: 8px 12px;
    text-align: center;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: #f9f7f4;
  }

  .has-children.open .nav-dropdown {
    display: block;
  }

  .nav-dropdown li a {
    padding-left: 36px;
  }

  .hero {
    height: 260px;
  }

  .hero-quote {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .info-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .bio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-header img {
    width: 160px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-content .content-image,
  .page-content .content-image-left {
    float: none;
    margin: 0 auto 20px;
    display: block;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .contact-photos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 8px 12px;
  }

  .site-logo img {
    height: 45px;
  }

  .hero {
    height: 200px;
  }

  .hero-quote {
    font-size: 0.9rem;
  }

  .page-content {
    padding: 24px 16px;
  }

  .info-section {
    padding: 24px 12px;
  }
}

/* ===== ADMIN CMS ===== */
.admin-panel {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.admin-panel h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  color: #333;
}

.admin-panel h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  color: #333;
  border: none;
  padding: 0;
}

.menu-editor {
  margin-top: 20px;
}

.menu-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f9f7f4;
  border: 1px solid #e8e4df;
  border-radius: 4px;
  margin-bottom: 6px;
}

.menu-item-row.child {
  margin-left: 30px;
  background: #fff;
}

.menu-item-row input {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.9rem;
}

.menu-item-row input.label-input {
  flex: 1;
}

.menu-item-row input.url-input {
  flex: 2;
}

.menu-item-row button {
  padding: 4px 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 3px;
  font-size: 0.8rem;
}

.menu-item-row button:hover {
  background: #eee;
}

.menu-item-row button.delete-btn {
  color: #c44;
  border-color: #c44;
}

.menu-item-row button.delete-btn:hover {
  background: #fdd;
}

.admin-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.admin-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-save {
  background: #6b8e6b;
  color: #fff;
}

.btn-save:hover {
  background: #5a7d5a;
}

.btn-add {
  background: #4a90d9;
  color: #fff;
}

.btn-add:hover {
  background: #3a7fc8;
}

.btn-export {
  background: #888;
  color: #fff;
}

.btn-export:hover {
  background: #777;
}

.admin-msg {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.admin-msg.success {
  display: block;
  background: #dff0d8;
  color: #3c763d;
  border: 1px solid #c3e6cb;
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  .page-wrapper { box-shadow: none; }
  .page-content { max-width: 100%; }
}
