/* ==========================================================
   Holyvia — Tout est en vous
   ========================================================== */
:root {
    --navy-900: #101922;
    --navy-800: #16243a;
    --navy-700: #1c314a;
    --navy-500: #3d5a80;
    --ink: #2a2a2e;
    --text: #5b5b60;
    --muted: #6c717c;
    --line: #e6e8ec;
    --bg: #ffffff;
    --bg-soft: #f6f7f4;
    --green: #5d8a3a;
    --sidebar-w: 312px;
    --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.1875rem;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 2px solid #8fb3e0; outline-offset: 3px; }

.sr-only, .hp {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Sidebar (menu commun) ---------- */
.sidebar {
    position: fixed; inset: 0 auto 0 0;
    width: var(--sidebar-w);
    display: flex; flex-direction: column; align-items: center;
    padding: 56px 0 40px;
    background: linear-gradient(-20deg, var(--navy-900) 0%, var(--navy-700) 100%);
    box-shadow: 6px 0 24px rgba(16, 25, 34, .25);
    overflow-y: auto;
    z-index: 50;
}
.sidebar__logo img { width: 136px; height: auto; transition: opacity .3s; }
.sidebar__logo:hover img { opacity: .85; }

.nav { width: 100%; margin-top: 44px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
    position: relative;
    display: block;
    padding: 11px 20px;
    text-align: center;
    font-family: var(--serif);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    transition: background-color .35s var(--ease), color .35s;
}
.nav a::after {
    content: ''; position: absolute; left: 50%; bottom: 6px;
    width: 0; height: 1px; background: rgba(255, 255, 255, .6);
    transition: width .35s var(--ease), left .35s var(--ease);
}
.nav a:hover::after { width: 40px; left: calc(50% - 20px); }
.nav a.is-active {
    background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.11), rgba(255,255,255,.04));
}
.nav a.is-active::after { display: none; }

.sidebar__infos {
    margin-top: 36px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-family: var(--sans); font-size: .875rem;
}
.sidebar__infos a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.sidebar__infos a:hover { color: #fff; text-decoration: underline; }

/* ---------- Page ---------- */
.page { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.hero { position: relative; height: clamp(220px, 37vh, 380px); overflow: hidden; background: var(--navy-800); }
.hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroIn 1.8s var(--ease) forwards; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, rgba(0,0,0,.12), transparent); }
@keyframes heroIn { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1); opacity: 1; } }

.content { max-width: 800px; margin: 0 auto; padding: 48px 24px 72px; }
.content h1 {
    margin: 0 0 1.4em;
    text-align: center;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
    color: var(--ink);
}
.content .subtitle {
    margin: -1.6em auto 2.4em; max-width: 620px;
    text-align: center; font-style: italic; font-size: 1.3rem; color: var(--muted); line-height: 1.5;
}
.content h2 {
    margin: 2em 0 .6em;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--ink);
}
.content h1 + h2, .content .subtitle + h2 { margin-top: 0; }
.content h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); margin: 1.6em 0 .4em; }
.content p { margin: 0 0 1.1em; text-align: justify; hyphens: auto; }

/* Listes avec puce végétale discrète */
.content ul.list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.content ul.list > li { position: relative; padding-left: 1.6em; margin-bottom: .35em; }
.content ul.list > li::before {
    content: ''; position: absolute; left: 0; top: .72em;
    width: 8px; height: 8px; border-radius: 50% 0; background: var(--green); opacity: .75;
}
.content ul.list ul { list-style: none; padding: .3em 0 .2em 0; margin: 0; }
.content ul.list ul li { position: relative; padding-left: 1.3em; font-size: .97em; }
.content ul.list ul li::before { content: '–'; position: absolute; left: 0; color: var(--muted); }

/* Valeurs */
.values { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 1em; list-style: none; }
.values li {
    padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 1.05rem; color: var(--ink); background: var(--bg-soft);
}

/* Bloc citation / mise en avant */
.lead { font-size: 1.3rem; line-height: 1.6; color: var(--ink); text-align: center !important; font-style: italic; margin: 0 auto 2em !important; max-width: 640px; }

/* Témoignages */
.testimonials { display: grid; gap: 28px; }
.testimonial {
    position: relative; margin: 0; padding: 32px 36px 28px;
    background: var(--bg-soft); border-radius: 4px; border-left: 3px solid var(--navy-500);
}
.testimonial::before {
    content: '“'; position: absolute; top: -8px; left: 18px;
    font-size: 5rem; line-height: 1; color: var(--navy-500); opacity: .18; font-family: var(--serif);
}
.testimonial blockquote { margin: 0; }
.testimonial p { font-style: italic; }
.testimonial figcaption { font-family: var(--sans); font-size: .875rem; color: var(--ink); font-weight: 600; }
.testimonial figcaption span { display: block; font-weight: 400; color: var(--muted); }

/* Carte atelier (agenda) */
.card { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 0 0 2em; }
.card__img img { width: 100%; height: 260px; object-fit: cover; }
.card__body { padding: 28px 32px 12px; }
.card__tag { display: inline-block; font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: .4em; }
.card__body h2 { margin-top: 0; font-size: 1.35rem; }

/* Boutons */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 999px;
    font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .03em;
    background: var(--navy-700); color: #fff; text-decoration: none; border: 0; cursor: pointer;
    transition: background-color .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--navy-500); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy-700); border: 1px solid var(--navy-700); }
.btn--ghost:hover { background: var(--navy-700); }
.cta { text-align: center; margin: 3em 0 0; }
.cta p { text-align: center; }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
.contact-info { font-family: var(--sans); font-size: .95rem; line-height: 2; }
.contact-info strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink); margin-bottom: .3em; }
.form { display: grid; gap: 16px; }
.form label { display: block; font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #d6d9df; border-radius: 4px;
    font: 1rem/1.5 var(--sans); color: var(--ink); background: #fff;
    transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(61, 90, 128, .15); }
.form textarea { min-height: 170px; resize: vertical; }
.form .row-2 { display: grid; gap: 16px; }

.notice { padding: 12px 16px; border-radius: 4px; font-family: var(--sans); font-size: .9rem; text-align: left; }
.notice--ok { background: #e9f3e1; color: #33531c; }
.notice--error { background: #fbe9e9; color: #8a2a2a; }

/* ---------- Footer (vague + newsletter) ---------- */
.footer {
    position: relative;
    margin-top: 40px;
    padding: 150px 24px 28px;
    color: #fff;
    background: linear-gradient(-20deg, var(--navy-900) 0%, var(--navy-700) 100%);
    overflow: hidden;
}
.footer__wave { position: absolute; top: -2px; left: 0; width: 100%; height: 140px; }
.footer__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.footer__title { margin: 0 0 .3em; font-size: 2rem; line-height: 1.2; }
.footer__lead { margin: 0 0 1.6em; font-family: var(--sans); font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.75); }
.newsletter { display: grid; gap: 12px; }
.newsletter input {
    width: 100%; padding: 13px 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.07); color: #fff; font: .95rem var(--sans);
}
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.newsletter input:focus { outline: none; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
.newsletter button {
    padding: 13px 20px; border: 0; border-radius: 4px; cursor: pointer;
    background: #fff; color: var(--navy-800); font: 600 .9rem var(--sans); letter-spacing: .03em;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.newsletter button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.footer .notice { margin-bottom: 14px; }
.footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px;
    margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
    font: .8rem var(--sans); color: rgba(255,255,255,.55);
}
.footer__bottom a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
.mobilebar, .overlay { display: none; }

@media (min-width: 700px) {
    .form .row-2 { grid-template-columns: 1fr 1fr; }
    .newsletter { grid-template-columns: 1fr 1.3fr; }
    .newsletter button { grid-column: 1 / -1; }
    .card { grid-template-columns: 300px 1fr; }
    .card__img img { height: 100%; min-height: 100%; }
}
@media (min-width: 1100px) {
    .contact-grid { grid-template-columns: 1fr 1.6fr; }
}

@media (max-width: 900px) {
    body { font-size: 1.125rem; }
    .mobilebar {
        position: sticky; top: 0; z-index: 40;
        display: flex; align-items: center; justify-content: space-between;
        height: 60px; padding: 0 16px;
        background: linear-gradient(-20deg, var(--navy-900), var(--navy-700));
    }
    .mobilebar__brand { font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: #fff; text-decoration: none; letter-spacing: .02em; }
    .burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
    .burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
    .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .sidebar { width: min(86vw, var(--sidebar-w)); transform: translateX(-105%); transition: transform .45s var(--ease); padding-top: 40px; }
    .sidebar.is-open { transform: none; }
    .overlay { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(10, 15, 22, .55); opacity: 0; pointer-events: none; transition: opacity .4s; }
    .overlay.is-open { opacity: 1; pointer-events: auto; }
    .overlay[hidden] { display: block; }

    .page { margin-left: 0; }
    .content { padding: 36px 16px 56px; }
    .content p { text-align: left; }
    .testimonial { padding: 28px 22px 22px; }
    .card__body { padding: 22px 20px 6px; }
    .footer { padding-top: 110px; }
    .footer__wave { height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .hero img { transform: none; }
    .js .reveal { opacity: 1; transform: none; }
}
