/* =========================================================
   Institut MM-éternelle — feuille de style unique
   Couleurs et polices modifiables ici, en haut du fichier.
   ========================================================= */

@font-face { font-family: "Cardo"; src: url("/fonts/cardo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/fonts/cardo-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/fonts/cardo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --fond: #c2a990;        /* fond principal (beige/taupe) */
  --fond-clair: #f6f1ea;  /* cartes, tableaux */
  --blanc: #ffffff;
  --texte: #1b1714;
  --texte-doux: #4a4038;
  --accent: #d7c99f;      /* couleur des boutons (identique à l'agenda SimplyBook) */
  --ligne: rgba(27, 23, 20, .18);
  --largeur: 1000px;
  --titres: "Cardo", Georgia, serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titres); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }

/* ---------- En-tête ---------- */
.entete { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { width: 64px; height: 64px; object-fit: contain; }
.marque span { font-family: var(--titres); font-size: 1.15rem; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: .95rem; }
.menu a { text-decoration: none; padding: 4px 0; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.bouton {
  display: inline-block; background: var(--accent); color: var(--texte);
  border: 1px solid rgba(0,0,0,.25); border-radius: 4px;
  padding: 8px 18px; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.bouton:hover { filter: brightness(.95); }
.menu .bouton { padding: 6px 14px; }

/* ---------- Menu mobile (bouton ☰, sans JavaScript) ---------- */
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.burger { display: none; cursor: pointer; padding: 6px; border-radius: 6px; }
.burger svg { fill: none; stroke: var(--texte); stroke-width: 2; stroke-linecap: round; display: block; }
.burger .i-fermer { display: none; }
.menu-toggle:focus-visible + .burger { outline: 2px solid var(--texte); }

/* ---------- Contenu ---------- */
main { padding: 32px 0 48px; }
section { margin-bottom: 48px; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 25%; }
.separateur { border: 0; border-top: 1px solid var(--ligne); margin: 40px 0; }

.citation {
  position: relative; background-size: cover; background-position: center;
  padding: 80px 16px; display: flex; justify-content: center;
}
.citation blockquote {
  margin: 0; background: var(--blanc); max-width: 420px; padding: 40px 48px; border-radius: 12px;
  font-family: var(--titres); font-style: italic; font-size: 1.45rem; line-height: 1.4;
}
.citation cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--corps); font-size: .95rem; }

.duo { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.duo.inverse { grid-template-columns: 1.4fr 1fr; }
.duo img { border-radius: 6px; }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 24px 0; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.galerie figcaption { font-size: .9rem; color: var(--texte-doux); margin-top: 6px; }

/* ---------- Tableaux de prix ---------- */
.tarifs { width: 100%; border-collapse: collapse; background: var(--fond-clair); margin: 0 0 32px; font-size: .95rem; }
.tarifs caption { background: var(--fond); text-align: left; font-family: var(--titres); font-size: 1.5rem; padding: 0 0 10px; }
.tarifs th, .tarifs td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ligne); }
.tarifs thead th { background: var(--accent); font-weight: 600; }
.tarifs td:first-child { font-weight: 600; width: 26%; }
.tarifs td:last-child, .tarifs th:last-child { text-align: right; white-space: nowrap; width: 16%; font-variant-numeric: tabular-nums; }
.tarifs s { color: var(--texte-doux); font-weight: 400; margin-left: 4px; }

/* ---------- Blocs dépliables (page prestations) ---------- */
.bloc { background: var(--fond-clair); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.bloc summary {
  cursor: pointer; list-style: none; padding: 14px 20px;
  font-family: var(--titres); font-size: 1.45rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.bloc summary::-webkit-details-marker { display: none; }
.bloc summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--texte); border-bottom: 2px solid var(--texte);
  transform: rotate(45deg); transition: transform .2s;
}
.bloc[open] summary::after { transform: rotate(-135deg); }
.bloc summary:hover { background: rgba(0,0,0,.03); }
.bloc .tarifs { margin: 0; border-top: 1px solid var(--ligne); }
.bloc + .encadre, .bloc + p { margin-top: 28px; }

/* ---------- Réservation / contact ---------- */
.encadre { background: var(--fond-clair); padding: 20px 24px; border-radius: 8px; margin-bottom: 24px; }
.agenda { background: var(--blanc); border-radius: 8px; min-height: 600px; overflow: hidden; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contacts address { font-style: normal; }

/* ---------- Pied de page ---------- */
.pied { background: var(--blanc); border-top: 1px solid var(--ligne); padding: 32px 0; font-size: .92rem; }
.pied .conteneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; }
@media (min-width: 960px) {
  /* 4 colonnes, la colonne Contact plus large pour garder chaque numéro sur une ligne */
  .pied .conteneur { grid-template-columns: 1fr 1.2fr 1fr .9fr; }
}
.pied .reseaux a { white-space: nowrap; }
.pied h3 { font-size: 1.1rem; margin-bottom: .4em; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 4px; }
.pied p { margin: 0 0 .3em; }

/* ---------- Icônes réseaux sociaux (couleurs officielles) ---------- */
.ico { display: inline-flex; width: 26px; height: 26px; flex: none; margin-right: 10px; }
.ico svg { width: 100%; height: 100%; display: block; }
.ico-fb { fill: #0866ff; }
.ico-wa { fill: #25d366; }
.ico-ig {
  fill: #fff; padding: 4px; border-radius: 28%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.ico-tel, .ico-mail {
  padding: 5px; border-radius: 50%; background: #8a6d55;  /* taupe foncé, assorti au site */
  fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.note-ico { display: flex; align-items: center; }
.reseaux a, .lien-ico { display: inline-flex; align-items: center; }
.reseaux li, .contacts .lien-ico { margin-bottom: 8px; }
.reseaux a { text-decoration: none; }
.reseaux a:hover { text-decoration: underline; }
.wa-flottant {
  position: fixed; right: 16px; bottom: 16px; z-index: 10;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.wa-flottant:hover { filter: brightness(.95); }
.wa-flottant .ico { width: 32px; height: 32px; margin: 0; fill: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  /* En-tête mobile : beige, compact, menu replié derrière le bouton ☰ */
  .entete { background: var(--fond); }
  .entete .conteneur { padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .marque img { width: 48px; height: 48px; }
  .burger { display: block; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 12px; }
  .menu a { padding: 12px 4px; border-top: 1px solid var(--ligne); }
  .menu a[aria-current="page"] { text-decoration: none; font-weight: 600; }
  .menu .bouton { margin-top: 12px; text-align: center; padding: 10px 14px; }
  .menu-toggle:checked ~ .menu { display: flex; }
  .menu-toggle:checked + .burger .i-menu { display: none; }
  .menu-toggle:checked + .burger .i-fermer { display: block; }
  .duo, .duo.inverse { grid-template-columns: 1fr; }
  .duo.inverse > img, .duo.inverse > .photos { order: -1; }
  .pied { padding-bottom: 90px; } /* place pour le bouton WhatsApp */
  .citation { padding: 48px 16px; }
  .citation blockquote { padding: 28px; font-size: 1.25rem; }
  .menu { gap: 4px 16px; }
  /* Tableaux de prix lisibles sur téléphone : une carte par ligne */
  .tarifs thead { display: none; }
  .tarifs caption { display: block; width: 100%; }
  .tarifs, .tarifs tbody, .tarifs tr, .tarifs td { display: block; width: 100% !important; }
  .tarifs tr { padding: 10px 14px; border-bottom: 1px solid var(--ligne); }
  .tarifs td { border: 0; padding: 2px 0; text-align: left !important; }
  .tarifs td:last-child { font-weight: 600; }
  .tarifs td:last-child::before { content: "Prix : "; font-weight: 400; }
}
