/* ═══════════════════════════════════════════════════════════
   Reiki à distance – Main Stylesheet
   Palette: Off-White #F0F4F1 · Lavendel #9B8ECD · Gold #C5B358
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
    --bg:          #F0F4F1;
    --text:        #4A5D50;
    --accent:      #9B8ECD;
    --accent-dark: #7A6DAD;
    --gold:        #C5B358;
    --white:       #FFFFFF;
    --radius:      15px;
    --gap:         2rem;
    --max-w:       900px;

    --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:   'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Container ────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ── Navigation ───────────────────────────────────────────── */
.main-nav {
    position: sticky;
    top: 0;
    background: rgba(240,244,241,.92);
    backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid rgba(155,142,205,.15);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .8rem;
    padding-bottom: .8rem;
}
.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 400;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a { color: var(--text); font-size: .9rem; }
.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: .45rem 1.2rem;
    border-radius: var(--radius);
    transition: background .2s;
}
.nav-cta:hover { background: var(--accent-dark) !important; text-decoration: none !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background:
        linear-gradient(160deg, rgba(155,142,205,.18) 0%, rgba(197,179,88,.10) 100%),
        radial-gradient(ellipse at top, rgba(240,244,241,1) 0%, rgba(220,230,222,1) 100%);
    overflow: hidden;
}
.hero::before {
    content: '❁';
    position: absolute;
    font-size: 40vw;
    color: rgba(155,142,205,.06);
    user-select: none;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hero-content { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { margin-bottom: .5rem; }
.subtitle {
    font-size: 1.15rem;
    font-style: italic;
    opacity: .75;
    margin-bottom: 2rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .7rem 1.8rem;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--accent);
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 400;
    transition: background .25s, color .25s, transform .15s;
    text-decoration: none;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn--hero { font-size: 1.1rem; padding: .9rem 2.4rem; }
.btn--large { font-size: 1.1rem; padding: .9rem 2.6rem; }
.btn--sm { font-size: .85rem; padding: .35rem 1rem; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--white); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--light { background: var(--bg); }
.section--card .container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 30px rgba(0,0,0,.06);
    padding: 3.5rem var(--gap);
}
.section--cta {
    background: linear-gradient(135deg, rgba(155,142,205,.12), rgba(197,179,88,.08));
    text-align: center;
}
.section--cta p { opacity: .75; margin-bottom: 2rem; }

.text-center { text-align: center; }
.label {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
    font-weight: 400;
}
.center-label { display: block; text-align: center; }
.sub { opacity: .7; margin-top: -.5rem; margin-bottom: 2.5rem; }

/* ── Split layout (about) ─────────────────────────────────── */
.split { display: flex; align-items: center; gap: 4rem; }
.split-text { flex: 1; }
.split-symbol {
    flex: 0 0 auto;
    font-size: 8rem;
    color: rgba(155,142,205,.18);
    line-height: 1;
    user-select: none;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 2rem; }
.step { background: var(--bg); border-radius: var(--radius); padding: 1.8rem; }
.step-icon { font-size: 2rem; margin-bottom: .8rem; color: var(--accent); }
.step h3 { color: var(--gold); margin-bottom: .5rem; border-bottom: 1px solid rgba(197,179,88,.2); padding-bottom: .5rem; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.pricing-card {
    border: 1px solid rgba(155,142,205,.25);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    background: var(--white);
    position: relative;
}
.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(155,142,205,.2);
}
.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: .72rem;
    padding: .25rem .9rem;
    border-radius: 99px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.price { font-size: 1.6rem; font-family: var(--font-serif); margin: .8rem 0 1.5rem; color: var(--text); }
.price span { font-size: .85rem; opacity: .6; }

/* ── Flash messages ───────────────────────────────────────── */
.flash-container { max-width: var(--max-w); margin: 1rem auto; padding: 0 var(--gap); }
.flash {
    padding: .9rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: .5rem;
    font-size: .9rem;
}
.flash--error   { background: #fde8e8; color: #9b1c1c; border: 1px solid #fca5a5; }
.flash--success { background: #def7ec; color: #03543f; border: 1px solid #84e1bc; }

/* ── Booking page ─────────────────────────────────────────── */
.booking-page { min-height: 70vh; }
.booking-form { margin-top: 2rem; }
.form-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.form-block h2 { margin-bottom: 1.2rem; font-size: 1.3rem; }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: .85rem; margin-bottom: .35rem; font-weight: 400; }
.optional { opacity: .55; font-size: .8rem; }
.form-row input:not([type="checkbox"]),
.form-row textarea,
.form-row select {
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid rgba(155,142,205,.35);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { resize: vertical; min-height: 80px; }
.disclaimer-check { display: flex; align-items: flex-start; gap: .6rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; cursor: pointer; }
.checkbox-label input { margin-top: .25rem; flex-shrink: 0; accent-color: var(--accent); }
.form-submit { text-align: center; margin-top: 1.5rem; }
.date-display { text-align: center; color: var(--gold); font-style: italic; font-size: .95rem; margin-top: .8rem; }

/* ── Calendar ─────────────────────────────────────────────── */
.calendar-wrap {
    border: 1px solid rgba(155,142,205,.25);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
}
.cal-nav {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 .5rem;
    line-height: 1;
    transition: opacity .2s;
}
.cal-nav:hover { opacity: .7; }
.cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(155,142,205,.08);
    text-align: center;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .4rem 0;
    color: var(--accent);
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: .5rem;
    gap: .25rem;
}
.cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .9rem;
    cursor: default;
    transition: background .15s, color .15s;
}
.cal-cell--empty { background: none; }
.cal-cell--past { opacity: .25; }
.cal-cell--unavailable { opacity: .35; text-decoration: line-through; }
.cal-cell--available { background: rgba(155,142,205,.12); cursor: pointer; font-weight: 400; }
.cal-cell--available:hover { background: rgba(155,142,205,.3); }
.cal-cell--selected { background: var(--accent) !important; color: var(--white) !important; }
.cal-loading { grid-column: 1/-1; text-align: center; padding: 2rem; opacity: .5; font-size: .9rem; }

/* ── Time slots ───────────────────────────────────────────── */
.time-slots { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.time-btn {
    padding: .5rem 1.1rem;
    border: 2px solid rgba(155,142,205,.4);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-size: .95rem;
    cursor: pointer;
    transition: all .15s;
    font-family: var(--font-sans);
}
.time-btn:hover { border-color: var(--accent); color: var(--accent); }
.time-btn--selected { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ── Success page ─────────────────────────────────────────── */
.success-page { max-width: 550px; margin: 0 auto; padding: 4rem var(--gap); }
.success-icon { font-size: 4rem; color: var(--accent); margin-bottom: 1rem; }
.success-detail { font-size: 1.1rem; margin: 1rem 0; }
.success-hint { opacity: .65; font-style: italic; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--white);
    border-top: 1px solid rgba(155,142,205,.15);
    padding: 3rem 0 2rem;
    text-align: center;
}
.disclaimer {
    font-size: .8rem;
    opacity: .7;
    max-width: 680px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}
.disclaimer a { color: inherit; text-decoration: underline; }
.tva-notice {
    display: inline-block;
    margin-top: 1.8rem;
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: .04em;
    color: #7a6a2a;
    background: rgba(197,179,88,.12);
    border: 1px solid rgba(197,179,88,.35);
    border-radius: 99px;
    padding: .3rem 1.1rem;
}
.footer-copy { font-size: .8rem; opacity: .45; }
.footer-copy a { color: inherit; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 680px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(240,244,241,.98); backdrop-filter: blur(8px); padding: 1rem var(--gap); gap: 1rem; border-bottom: 1px solid rgba(155,142,205,.15); }
    .nav-links.open { display: flex; }
    .nav-burger { display: flex; }
    .split { flex-direction: column; gap: 1rem; }
    .split-symbol { display: none; }
    .hero { min-height: 60vh; }
    .hero h1 { font-size: 1.8rem; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
    .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0; background: transparent; }
}

/* ── Nav dropdown ─────────────────────────────────────────── */
.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text); font-size: .9rem; font-family: var(--font-sans);
    display: flex; align-items: center; gap: .3rem; padding: 0;
}
.nav-dropdown-btn:hover { color: var(--accent); }
.nav-arrow { font-size: .7rem; transition: transform .2s; }
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none; position: absolute; top: calc(100% + .5rem); left: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    min-width: 180px; padding: .5rem 0; z-index: 200;
    border: 1px solid rgba(155,142,205,.15);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a { display: block; padding: .55rem 1.2rem; color: var(--text); font-size: .9rem; }
.nav-dropdown-menu a:hover { background: rgba(155,142,205,.08); text-decoration: none; color: var(--accent); }
.nav-dropdown-divider { height: 1px; background: rgba(155,142,205,.15); margin: .3rem 0; }

/* ── CMS Page ─────────────────────────────────────────────── */
.cms-page { padding: 4rem 0 5rem; }
.cms-page__header {
    text-align: center; margin-bottom: 2.5rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(155,142,205,.2);
}
.cms-page__header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* Quill output normalization */
.ql-editor-output { max-width: 720px; margin: 0 auto; }
.ql-editor-output h1 { font-family: var(--font-serif); font-size: clamp(1.6rem,3.5vw,2.2rem); margin: 1.8rem 0 .8rem; }
.ql-editor-output h2 { font-family: var(--font-serif); margin: 1.5rem 0 .6rem; }
.ql-editor-output h3 { font-family: var(--font-serif); margin: 1.2rem 0 .5rem; }
.ql-editor-output p { margin-bottom: 1rem; }
.ql-editor-output ul, .ql-editor-output ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.ql-editor-output li { margin-bottom: .3rem; }
.ql-editor-output img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; display: block; }
.ql-editor-output a { color: var(--accent); }
.ql-editor-output blockquote {
    border-left: 3px solid var(--accent); margin: 1.5rem 0;
    padding: .8rem 1.2rem; font-style: italic; opacity: .8;
    background: rgba(155,142,205,.05); border-radius: 0 var(--radius) var(--radius) 0;
}

@media (max-width: 680px) {
    .cms-page { padding: 2.5rem 0 3rem; }
}

/* ── CMS Breadcrumb ───────────────────────────────────────── */
.cms-breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .85rem; opacity: .65; margin-bottom: 1.5rem;
}
.cms-breadcrumb a { color: var(--accent); }
.cms-breadcrumb span { color: var(--text); }

/* ── CMS Children grid (blog index) ──────────────────────── */
.cms-children { margin-top: 3.5rem; padding-top: 2.5rem;
    border-top: 1px solid rgba(155,142,205,.2); }
.cms-children__title {
    text-align: center; font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 1.8rem;
}
.cms-children__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.cms-child-card {
    display: flex; flex-direction: column; gap: .5rem;
    background: var(--white); border-radius: var(--radius);
    padding: 1.5rem; text-decoration: none; color: var(--text);
    border: 1px solid rgba(155,142,205,.15);
    transition: box-shadow .2s, transform .15s;
}
.cms-child-card:hover {
    box-shadow: 0 6px 24px rgba(155,142,205,.18);
    transform: translateY(-2px); text-decoration: none;
}
.cms-child-card h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--accent); }
.cms-child-card__excerpt { font-size: .88rem; opacity: .7; flex: 1; }
.cms-child-card__cta { font-size: .82rem; color: var(--accent); margin-top: .5rem; font-weight: 400; }

/* ── CMS Back link ────────────────────────────────────────── */
.cms-back { margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(155,142,205,.15); font-size: .9rem; }
.cms-back a { color: var(--accent); }

@media (max-width: 680px) {
    .cms-children__grid { grid-template-columns: 1fr; }
}
