/* =========================================================
   Cabinet de Réflexologie — Karine Chacun
   Feuille de style commune
   ========================================================= */

:root {
  --color-bg: #F5F5F0;
  --color-bg-alt: #f1ead9;
  --color-card: #ffffff;

  /* Palette de marque */
  --color-corail: #F47F78;
  --color-rose: #F06F83;
  --color-orange-rose: #F58A63;
  --color-violet: #A653C7;

  --color-sage: var(--color-violet);
  --color-sage-dark: #7C3F92;
  --color-sage-light: #EAD1F6;
  --color-terracotta: var(--color-orange-rose);
  --color-terracotta-dark: var(--color-corail);
  --color-corail-light: #F8A8A3;
  --color-corail-pale: #FAC6C3;
  --color-text: #3a352c;
  --color-text-light: #6b6558;
  --color-border: #e3dbc9;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', 'Segoe UI', Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 30px rgba(60, 50, 30, 0.08);
  --container-width: 1080px;

  --gradient-brand:
    radial-gradient(ellipse at 20% 20%, var(--color-sage-light) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, #FCDBD3 0%, transparent 58%),
    var(--color-bg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-sage-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; color: var(--color-terracotta-dark); }

p { margin: 0 0 1.1em; color: var(--color-text); text-align: justify; }
.lead { text-align: inherit; }

a { color: var(--color-terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

ul.clean { list-style: none; margin: 0; padding: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--color-corail-light);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--color-corail); }

.btn-outline {
  background: transparent;
  border-color: var(--color-sage);
  color: var(--color-sage-dark);
}
.btn-outline:hover { background: var(--color-sage-light); }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.brand {
  position: relative;
  width: 120px;
  height: 38px;
  flex-shrink: 0;
}
.brand-logo {
  position: absolute;
  left: 0;
  top: -28px;
  height: 115px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-sage-dark);
  border-bottom-color: var(--color-terracotta);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-sage-dark);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 45px 24px;
  overflow: hidden;
  background: var(--gradient-brand);
}
.hero-content { text-align: left; }
.hero-content h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6em; }
.hero-content h3 { margin-bottom: 6px; }
.hero p.lead {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.page-hero {
  padding: 28px 24px 26px;
  text-align: center;
  background: var(--gradient-brand);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--color-terracotta-dark);
  font-weight: 600;
}
.page-hero h1 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0.25em 0 0.2em;
}
.page-hero p.lead {
  max-width: 620px;
  margin: 6px auto 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- Sections génériques ---------- */
section { padding: 40px 0; }
section.alt { background: var(--gradient-brand); }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title p.lead {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--color-text-light);
}

.prose { max-width: none; margin: 0; }
.prose p { white-space: pre-line; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.pair-grid .encart, .pair-grid .card { margin: 0; height: 100%; }

/* ---------- Encarts ---------- */
.encart {
  background: var(--gradient-brand);
  border-left: 4px solid var(--color-sage);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin: 24px 0;
}
.encart h3 {
  color: var(--color-sage-dark);
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 400;
}
.encart.terracotta {
  background: #FDE8E7;
  border-left-color: var(--color-terracotta);
}
.encart.terracotta h3 { color: var(--color-terracotta-dark); }

/* Actualité (accueil) */
.actu-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  max-width: 720px;
  margin: 0 auto;
}
.actu-card h3 { text-align: center; font-weight: 400; }
.actu-tag {
  display: block;
  width: fit-content;
  background: var(--color-corail);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 18px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.actu-card .actu-tag { margin: 0 auto 14px; }

/* ---------- Cartes / grilles ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.card .icon {
  width: 44px; height: 44px;
  margin-bottom: 16px;
  color: var(--color-sage);
}
.card ul { padding-left: 1.1em; margin: 0; }
.card li { margin-bottom: 6px; color: var(--color-text); }
.card-subhead {
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--color-terracotta-dark);
  margin: 14px 0 6px;
}
.card-subhead:first-of-type { margin-top: 0; }

/* ---------- Timeline formation ---------- */
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
}
.timeline-item:first-of-type { border-top: none; }
.timeline-date {
  font-family: var(--font-heading);
  color: var(--color-terracotta-dark);
  font-weight: 600;
  font-size: 1rem;
}
.timeline-item h3 { margin-bottom: 4px; }
.timeline-item .place {
  display: block;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.timeline-item p { margin-bottom: 0.6em; }

/* ---------- Tableaux tarifs ---------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 0 0 30px;
}
.pricing-table th, .pricing-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.pricing-table th {
  background: var(--color-sage);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td.price {
  font-weight: 700;
  color: var(--color-terracotta-dark);
  white-space: nowrap;
  text-align: right;
}

/* Variante couleurs inversées (page Tarifs) */
.pricing-table.tarifs-table th { background: var(--color-corail-light); font-weight: 400; font-size: 1.2rem; padding: 8px 24px; }
.pricing-table.tarifs-table td.price { color: var(--color-sage-dark); font-weight: 400; }
.pricing-table.tarifs-table td { padding: 8px 24px; }

.pricing-table.accompagnement-table td { text-align: justify; }
.pricing-table.accompagnement-table td.price { font-weight: 400; text-align: right; }
.pricing-note {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 720px;
}

/* Contre-indications */
.list-check, .list-warn {
  padding-left: 0;
  list-style: none;
}
.list-warn li, .list-check li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.list-warn li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-terracotta);
  font-weight: 700;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3 { margin-bottom: 4px; color: var(--color-text); font-weight: 400; }
.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.contact-line .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-sage); margin-top: 2px; }

.medical-disclaimer {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-sage-dark);
  color: #f1ead9;
  padding: 3px 0 2px;
  margin-top: 3px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.site-footer p.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.site-footer p.footer-brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.site-footer p.footer-brand-tagline {
  font-style: italic;
  color: #d9d3c0;
  font-size: 0.78rem;
  margin: 3px 0 0;
  line-height: 1.2;
}
.site-footer p.footer-siret {
  margin-top: 34px;
}
.site-footer a { color: #f1ead9; }
.site-footer p { color: #d9d3c0; line-height: 1.3; margin: 0; font-size: 0.9rem; }
.footer-inner li { line-height: 1.3; margin-bottom: 0; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 4px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2px;
  row-gap: 10px;
  font-size: 0.72rem;
  color: #cfc8b3;
}
.footer-bottom span:first-child { grid-column: 1 / 3; }
.footer-bottom span:last-child { grid-column: 3; }
.footer-bottom a { color: #f1ead9; text-decoration: underline; }

/* ---------- Emplacements photo ---------- */
.photo-slot {
  aspect-ratio: 3 / 2;
  background-color: var(--color-sage-light);
  background-size: cover;
  background-position: center;
}
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 14px;
  width: 100%;
}
.photo-strip .photo-slot:nth-child(2) { background-color: #FDE8E0; }
.photo-strip .photo-slot:nth-child(3) { background-color: #F3E6F8; }
@media (max-width: 720px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* ---------- Placeholder d'illustration (pas de photo) ---------- */
.decor-blob {
  width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-sage-light), #FDE8E0);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-dark);
}
.decor-blob svg { width: 40%; height: 40%; }

/* ---------- Actualités (dynamique) ---------- */
.actu-list { display: flex; flex-direction: column; gap: 26px; max-width: 720px; margin: 0 auto; }
.actu-item { }
.actu-date {
  display: inline-block;
  font-family: var(--font-heading);
  color: var(--color-terracotta-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.actu-item h3 { margin-top: 0; }
.actu-affiche-img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 14px auto 0;
  border-radius: var(--radius-md);
}
.actu-carousel {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.actu-carousel-track { aspect-ratio: 3 / 2; position: relative; }
.actu-carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}
.actu-carousel-track img.active { display: block; }
.actu-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-sage-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.actu-carousel-btn.prev { left: 10px; }
.actu-carousel-btn.next { right: 10px; }
.actu-carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0; position: relative; z-index: 2; }
.actu-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.actu-carousel-dots button.active { background: var(--color-terracotta); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col, .contact-grid, .hero-grid, .pair-grid { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom span:first-child, .footer-bottom span:last-child { grid-column: 1; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 14px 4px; }
  .nav-toggle { display: flex; }
  .medical-disclaimer { font-size: 0.55rem; }
}
