/* ===== SOPHRO'AUBRAC — SHARED STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Nunito', sans-serif; font-weight: 400; color: #2C2C2C; background: #FDF8F6; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

:root {
  --cream: #FDF8F6;
  --sakura: #E8B4C0;
  --rose-vif: #D4708A;
  --vert-foret: #1E5C3A;
  --vert-moyen: #2D7A50;
  --rose-pale: #F9EEF0;
  --text-dark: #2C2C2C;
  --text-mid: #5A5A5A;
  --text-light: #888;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(30,92,58,0.08);
  --shadow-hover: 0 12px 40px rgba(30,92,58,0.15);
}

/* TYPOGRAPHY */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

/* LAYOUT */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 999px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; cursor: pointer; white-space: nowrap; }
.btn-green { background: var(--vert-foret); color: var(--white); border: 2px solid var(--vert-foret); }
.btn-green:hover { background: var(--vert-moyen); border-color: var(--vert-moyen); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,92,58,0.3); }
.btn-outline-green { background: transparent; color: var(--vert-foret); border: 2px solid var(--vert-foret); }
.btn-outline-green:hover { background: var(--vert-foret); color: var(--white); transform: translateY(-2px); }
.btn-outline-rose { background: transparent; color: #7D3C98; border: 2px solid #9B2D5A; }
.btn-outline-rose:hover { background: #9B2D5A; color: var(--white); transform: translateY(-2px); }

/* DECORATIVE */
.deco-img { position: absolute; pointer-events: none; z-index: 0; }

/* NAVBAR */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease; }
#navbar.scrolled { background: rgba(253,248,246,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 12px 0; box-shadow: 0 2px 20px rgba(30,92,58,0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 56px; width: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.nav-logo-img img { height: 56px; width: 56px; object-fit: contain; border-radius: 50%; }
.nav-brand { font-family: 'Dancing Script', cursive; font-size: 1.5rem; font-weight: 700; color: var(--vert-foret); }
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-links a { font-size: 0.85rem; font-weight: 600; color: var(--vert-foret); padding: 8px 10px; border-radius: 8px; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.nav-links a:hover { background: var(--rose-pale); color: #7D3C98; }
.nav-links .nav-cta { background: #DFB8F0; color: var(--text-mid) !important; border-radius: 999px; padding: 10px 18px; margin-left: 6px; }
.nav-links .nav-cta:hover { background: #7D3C98 !important; color: #FFFFFF !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.hamburger:hover { background: var(--rose-pale); }
.hamburger span { display: block; width: 24px; height: 2px; background: #7D3C98; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(253,248,246,0.97); backdrop-filter: blur(20px); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 80px 24px 40px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.15rem; font-weight: 700; color: #7D3C98; padding: 12px 32px; border-radius: 999px; transition: background 0.2s, color 0.2s; width: 100%; text-align: center; max-width: 320px; }
.mobile-menu a:hover { background: var(--rose-pale); color: #7D3C98; }
.mobile-menu .nav-cta { background: #DFB8F0; color: var(--text-mid) !important; }
.mobile-menu .nav-cta:hover { background: #7D3C98 !important; color: #FFFFFF !important; }

/* PAGE HEADER */
.page-header { background: linear-gradient(160deg, var(--cream) 0%, #F5E8EC 60%, var(--rose-pale) 100%); padding: 140px 0 72px; text-align: center; }
.page-header-title { color: #000000; margin-bottom: 24px; }
.page-header-intro { max-width: 680px; margin: 0 auto; color: var(--text-mid); font-size: 1.05rem; line-height: 1.85; }
.back-link { display: inline-block; color: #7D3C98; font-weight: 700; font-size: 0.9rem; margin-bottom: 24px; transition: color 0.2s; }
.back-link:hover { color: #7D3C98; }

/* PAGE MAIN */
.page-main { padding: 72px 0 96px; }

/* CONTENT BLOCKS */
.content-block { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); margin-bottom: 28px; position: relative; overflow: hidden; transition: box-shadow 0.3s ease; }
.content-block:hover { box-shadow: var(--shadow-hover); }
.block-bar { height: 4px; border-radius: 4px; width: 60px; margin-bottom: 24px; }
.content-block h2 { color: #000000; margin-bottom: 20px; font-size: 1.7rem; }
.content-block h3 { color: #000000; margin: 20px 0 10px; }
.content-block p { color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }
.content-block p:last-child { margin-bottom: 0; }
.content-block.dark-block { background: linear-gradient(135deg, var(--vert-foret), #0F3A24); color: var(--white); }
.content-block.dark-block h2 { color: var(--white); }
.content-block.dark-block p { color: rgba(255,255,255,0.88); }

/* CITATION BLOCK */
.citation-block { background: var(--rose-pale); text-align: center; }
.citation-text { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 700; color: #7D3C98; font-style: italic; line-height: 1.75; margin-bottom: 20px !important; }
.citation-rose { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 700; color: #7D3C98; font-style: italic; line-height: 1.75; margin-bottom: 0 !important; }

/* FLEUR LIST */
.fleur-list { padding: 0; }
.fleur-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-mid); padding: 6px 0; line-height: 1.65; }
.fleur-list li::before { content: "✿"; color: var(--rose-vif); flex-shrink: 0; margin-top: 1px; }
.fleur-list.green li::before { color: var(--vert-foret); }
.fleur-list.dark li { color: rgba(255,255,255,0.88); }
.fleur-list.dark li::before { color: var(--sakura); }

/* GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* SMALL CARDS */
.small-card { background: var(--white); border-radius: 16px; padding: 20px; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; font-weight: 600; color: var(--vert-foret); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.small-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.small-card::before { content: "✿"; color: var(--rose-vif); flex-shrink: 0; }

/* PRINCIPE CARD */
.principe-card { background: var(--rose-pale); border-left: 4px solid var(--vert-foret); border-radius: 0 12px 12px 0; padding: 24px; transition: transform 0.3s ease; }
.principe-card:hover { transform: translateY(-2px); }
.principe-card h3 { color: #000000; margin-bottom: 10px; font-size: 1.05rem; }
.principe-card p { color: var(--text-mid); font-size: 0.92rem; line-height: 1.7; margin: 0; }

/* NUMBERED CARD */
.numbered-card { background: var(--white); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); border-top: 4px solid var(--sakura); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.numbered-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.num-label { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; color: #D4708A; line-height: 1; margin-bottom: 4px; }
.numbered-card h3 { color: #000000; margin-bottom: 14px; font-size: 1.1rem; line-height: 1.4; }
.numbered-card p { color: var(--text-mid); line-height: 1.8; font-size: 0.95rem; margin-bottom: 12px; }
.seance-step { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.seance-step-label { background: var(--rose-pale); color: #7D3C98; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; margin-top: 3px; }
.seance-step p { color: var(--text-mid); font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* FONDATEUR */
.fondateur-card { background: var(--white); border-radius: 16px; padding: 28px; text-align: center; box-shadow: var(--shadow); }
.fondateur-avatar { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--rose-pale), var(--sakura)); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-family: 'Dancing Script', cursive; color: var(--vert-foret); font-size: 1.4rem; font-weight: 700; }
.fondateur-card h4 { color: #000000; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin-bottom: 6px; }
.fondateur-card p { color: var(--text-mid); font-size: 0.85rem; line-height: 1.6; margin: 0; }

/* MOSAIC PILL */
.mosaic-pill { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: var(--white); font-size: 0.82rem; font-weight: 600; padding: 8px 20px; border-radius: 999px; margin-top: 20px; }

/* PHOTO BLOB */
.photo-blob { width: 280px; height: 350px; border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; overflow: hidden; background: linear-gradient(135deg, var(--rose-pale), var(--sakura)); display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 60px rgba(232,180,192,0.4); }
.photo-blob img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder-text { text-align: center; padding: 20px; }
.photo-placeholder-text p { font-family: 'Dancing Script', cursive; color: var(--vert-foret); font-size: 1rem; opacity: 0.6; }

/* BADGES */
.badge-list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.badge-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--vert-foret); font-size: 0.95rem; }
.badge-item::before { content: "✿"; color: var(--vert-moyen); }

/* CTA BLOCK */
.cta-block { background: linear-gradient(135deg, var(--vert-foret), #0F3A24); border-radius: 24px; padding: 52px 40px; text-align: center; margin-top: 52px; }
.cta-block h3 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--white); margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.85); margin-bottom: 28px; line-height: 1.7; }

/* FOOTER */
footer { background: #0F3A24; padding: 40px 0 32px; text-align: center; }
.footer-logo { margin: 0 auto 12px; height: 70px; width: auto; }
.footer-brand { font-family: 'Dancing Script', cursive; font-size: 1.4rem; color: #7D3C98; margin-bottom: 8px; }
.footer-sub { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 16px; }
.footer-contacts { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-contacts a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color 0.2s; }
.footer-contacts a:hover { color: #7D3C98; }
.footer-bottom { color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .deco-img.big { width: 50% !important; }
  .deco-img.galets { display: none; }
  .page-header { padding: 120px 0 52px; }
}
@media (max-width: 500px) {
  .grid-3 { grid-template-columns: 1fr; }
  .content-block { padding: 28px 20px; }
  .cta-block { padding: 36px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}