/**
 * Feuille de style globale – Divine Silhouette
 * Layout, header, footer, composants réutilisables.
 * Les styles spécifiques à chaque page sont dans des fichiers dédiés.
 */

@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');

:root {
  --beige: #F5EDE3;
  --beige-200: #EFE6DA;
  --orange: #fc6e51;
  --orange-600: #e55a3a;
  --black: #111111;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  color: var(--black);
  background: var(--beige);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.wide { max-width: 1280px; }

/* Typographie de base */
h1 { font-family: 'Parisienne', cursive; font-size: 3rem; line-height: 1.1; margin: 0.5rem 0 1rem 0; }
h1.section-title { font-family: 'Parisienne', cursive; font-size: 3rem; margin: 0.5rem 0 1rem 0; }
.section-title { font-size: 1.6rem; margin: 0 0 20px; }
.muted { color: #444; }

main { flex: 1; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 20;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100px; overflow: visible; }
.brand-group { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.nav-logo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  /*border: 3px solid var(--white);*/
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.logo {
  font-family: 'Parisienne', 'Architects Daughter', cursive;
  font-weight: 400;
  font-size: 3.5rem;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}
.logo span { color: var(--orange-600); }
.tagline { font-size: 0.85rem; color: #666; font-style: italic; margin-top: 0; letter-spacing: 0.5px;}

.nav-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.nav-desktop a { color: var(--black); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-desktop a.active,
.nav-desktop a:hover { background: var(--orange); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 6px 16px;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--black);
}
.dropdown-menu a:hover { background: var(--orange); color: var(--white); }

.nav-toggle { display: none; border: none; background: transparent; font-size: 26px; cursor: pointer; }
.nav-desktop { display: flex; }
.nav-mobile { display: none; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-desktop { display: none; }
  .nav-mobile {
    display: block;
    position: absolute;
    right: 0;
    top: 100px;
    background: var(--white);
    width: 100%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
  }
  .nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-mobile ul { flex-direction: column; padding: 12px 16px; gap: 0; list-style: none; }
  .nav-mobile li { margin: 0; list-style: none; }
  .nav-mobile a {
    padding: 12px 16px;
    color: var(--black);
    text-decoration: none;
    border-radius: 8px;
    display: block;
    font-weight: 500;
  }
  .nav-mobile a:hover,
  .nav-mobile a.active { background: var(--orange); color: var(--white); }
  .logo { font-size: 3rem; white-space: nowrap; }
  .tagline { font-size: 0.8rem; margin-top: 0; }
  .nav-logo-circle { width: 80px; height: 80px; }
  h1 { font-size: 2.4rem; margin: 0.4rem 0 1rem 0; }
  .section-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .logo { font-size: 2.2rem; white-space: nowrap; }
  .header-inner { height: 86px; }
  .nav-mobile { top: 86px; }
  .tagline { font-size: 0.75rem; margin-top: 0; }
  .nav-logo-circle { width: 64px; height: 64px; }
  .brand-group { gap: 8px; }
  h1 { font-size: 2rem; margin: 0.3rem 0 1rem 0; }
  .section-title { font-size: 1.3rem; }
}

@media (max-width: 380px) {
  .nav-logo-circle { width: 48px; height: 48px; }
  .brand-group { gap: 6px; }
  .logo { font-size: 1.8rem; white-space: normal; }
  .header-inner { height: 96px; }
  .nav-mobile { top: 96px; }
}

@media (max-width: 314px) {
  .tagline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-logo-circle { align-self: flex-start; margin-top: 8px; }
}

/* Sections et grilles */
section { padding: 16px 0; }
.anchor-target { scroll-margin-top: 110px; }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .grid.cols-3,
  .grid.cols-2 { grid-template-columns: 1fr; }
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border-style: none;
}
.btn.primary { background: var(--orange); color: var(--black); }
.btn.primary:hover { background: var(--orange-600); color: var(--white); }
.btn.ghost { border: 1px solid var(--black); color: var(--black); background: transparent; }
.btn.ghost:hover { background: var(--black); color: var(--white); }

/* Cartes génériques */
.card {
  background: var(--white);
  border: 2px solid #eee;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.card-image { width: 100%; height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card-image:hover img { transform: scale(1.05); }
.card h3 { margin: 18px 18px 8px; font-size: 1.1rem; }
.card p { margin: 0 18px 18px; }

.service-card-clickable { transition: all 0.3s ease; cursor: pointer; }
.service-card-clickable:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { text-decoration: none; color: inherit; }

/* Blocs de section (contre-indications, etc.) */
.section-block h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.1rem; }
.section-block.contraindications {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border-left: 4px solid #e53e3e;
  padding: 20px;
  border-radius: 12px;
}
.section-block.contraindications h3 { color: #c53030; }

/* Formulaires génériques */
form { display: grid; gap: 14px; }
label { font-weight: 600; }
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: var(--white);
  font: inherit;
}
textarea { min-height: 120px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.error { color: #b00020; font-weight: 600; }
.success { color: #0a7f3f; font-weight: 600; }

.link-more { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.link-more:hover { color: var(--orange-600); }

/* Utilitaires accessibilité */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Pied de page */
.site-footer {
  background: #2c2c2c;
  color: var(--white);
  padding: 30px 0;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  gap: 12px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.site-footer a { color: var(--white); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-social { display: flex; gap: 14px; justify-content: flex-end; }
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  background: transparent;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-right { align-items: flex-start; margin-top: 4px; }
  .footer-social { justify-content: flex-start; }
}

/* Grille services (pages _old) */
.services-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  background: linear-gradient(180deg, #fff, #fff);
}
.service-card .content { padding: 16px; }
.service-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.service-card p { margin: 0 0 12px; color: #333; font-size: 0.95rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* Google Reviews – section avis */
.google-reviews { padding: 30px 0 40px; }
.google-reviews .rating-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.google-reviews .rating-summary strong { font-size: 1.4rem; }

.google-reviews .reviews-carousel {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.google-reviews .reviews-track {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.google-reviews .reviews-strip {
  display: flex;
  gap: 12px;
  height: 100%;
}
.google-reviews .reviews-strip .review-card {
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

/* Hauteur fixe des cartes = contenu moyen (~4 lignes d’avis + en-tête + date + zone bouton) */
.google-reviews .review-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #eee;
  padding: 14px 14px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 285px;
  min-height: 285px;
  transition: min-height 0.25s ease;
}
.google-reviews .review-card--expanded {
  height: auto;
  min-height: unset;
}
.google-reviews .review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.google-reviews .review-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.google-reviews .review-header strong {
  font-size: 0.95rem;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.google-reviews .review-header .stars {
  margin-left: auto;
  flex-shrink: 0;
}
.google-reviews .review-text-wrap {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.google-reviews .review-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: -webkit-line-clamp 0.2s ease;
}
.google-reviews .review-card--expanded .review-text {
  -webkit-line-clamp: unset;
  overflow: visible;
  display: block;
}
.google-reviews .review-time {
  font-size: 0.8rem;
  flex-shrink: 0;
}
/* Lien "… Voir plus" à la fin du texte (cartes trop longues), hors du wrap pour ne pas être masqué */
.google-reviews .review-more {
  flex-shrink: 0;
  margin-top: -2px;
  margin-bottom: 4px;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.google-reviews .review-more:hover {
  color: var(--orange-600);
}
.google-reviews .review-more[hidden] {
  display: none;
}

.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 0.95rem;
}
.star { color: #ddd; }
.star--full { color: #f6b400; }

.google-reviews .reviews-arrow {
  border: none;
  background: var(--white);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.google-reviews .reviews-arrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.google-reviews .reviews-arrow:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.google-reviews .reviews-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.google-reviews .reviews-index {
  font-size: 0.85rem;
  color: #555;
}
.google-reviews .reviews-all-link {
  font-size: 0.9rem;
}
