/* ===== Site Olivier Nanchen Énergéticien — reconstruction PHP ===== */

:root {
    --accent: #ff9e00;
    --dark: #111111;
    --grey-bg: #f5f5f5;
    --text: #666666;
    --font-body: 'Rubik', sans-serif;
    --font-heading: 'Lora', serif;
    --font-fancy: 'Great Vibes', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: #fff;
}

img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--dark); }

.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }

/* ===== Header ===== */
#header { background: #fff; border-bottom: 1px solid #e5e5e5; }
.nav-inner { display: flex; flex-direction: column; align-items: center; position: relative; padding-top: 18px; }
#logo img { width: 220px; height: auto; }
.menu { list-style: none; display: flex; gap: 6px; margin: 8px 0 0; }
.menu li a {
    display: block;
    padding: 12px 16px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #222;
}
.menu li a:hover, .menu li.current a { color: var(--accent); }
.burger { display: none; background: none; border: 0; cursor: pointer; position: absolute; left: 20px; top: 28px; }
.burger span { display: block; width: 22px; height: 3px; background: #222; margin: 4px 0; border-radius: 2px; }

/* ===== Sections génériques ===== */
.section { padding: 70px 0; position: relative; }
.section.bg-cover { background-position: center; background-size: cover; }
.overlay { position: absolute; inset: 0; }
.overlay-gold { background: #F6C90A; opacity: .17; }
.overlay-dark { background: #000; opacity: .6; }
.overlay-dark-light { background: #000; opacity: .19; }
.overlay-banner { background: #000; opacity: .16; }
.section > .container, .hero-inner, .banner-inner { position: relative; z-index: 2; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.v-center { align-items: center; }
.on-dark, .on-dark h2, .on-dark h3, .on-dark p { color: #fff; }
.section-grey { background: var(--grey-bg); }
.section-tall { padding: 90px 0; }

h1, h2, h3, h4 { color: var(--dark); }
.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 22px;
    color: var(--dark);
}
.pre-title {
    font-family: var(--font-fancy);
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 6px;
    line-height: 1.2;
}
.box-title { font-family: var(--font-heading); font-size: 26px; font-weight: 700; margin-bottom: 14px; color: var(--dark); }
.section p + p { margin-top: 14px; }

.box-grey { background: var(--grey-bg); padding: 40px; }

.img-rounded { border-radius: 10px; }

/* Section « À mon cabinet » : texte | photo | mandala côte à côte */
.cabinet-text { padding: 60px; }
.cabinet-photo { padding: 30px 60px 30px 0; align-self: center; }
.cabinet-photo img { display: block; box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
.cabinet-mandala { padding: 30px 0 30px 30px; align-self: center; }
.cabinet-mandala img { display: block; }

/* ===== Boutons ===== */
.btn-wrap { margin-top: 24px; }
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 30px;
    padding: 14px 34px;
    cursor: pointer;
    transition: background .25s;
}
.btn:hover { background: var(--dark); color: #fff; }
.btn-lg { font-size: 18px; padding: 16px 40px; }

/* ===== Hero ===== */
.hero {
    background-position: center;
    background-size: cover;
    /* Parallaxe : la photo des mains reste fixe pendant le défilement */
    background-attachment: fixed;
    position: relative;
    padding: 160px 0 180px;
}
.hero-inner { text-align: center; }
.hero-logo { width: 449px; max-width: 90%; }
.hero-tagline {
    font-family: var(--font-fancy);
    font-size: 44px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
    margin-top: 10px;
}

/* ===== Liste à puces avec icônes ===== */
.icon-list { list-style: none; margin-top: 18px; }
.icon-list li { padding: 6px 0 6px 34px; position: relative; font-size: 17px; }
.icon-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 18px;
}

/* ===== Témoignages ===== */
.testi-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.testi-item { display: none; text-align: center; padding: 0 10px; }
.testi-item.visible { display: block; }
.testi-item blockquote { font-size: 16px; font-style: italic; }
.bq-icon { display: block; font-size: 54px; line-height: 1; color: var(--accent); font-family: Georgia, serif; }
.stars { color: var(--accent); font-size: 18px; letter-spacing: 4px; margin: 14px 0 6px; }
.testi-name { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }

/* ===== Bannières de pages internes ===== */
.page-banner {
    background-position: center;
    background-size: cover;
    /* Parallaxe : la photo du bandeau reste fixe pendant le défilement */
    background-attachment: fixed;
    position: relative;
    padding: 130px 0 150px;
}
.fancy-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 54px;
    color: #fff;
}
.shape-bottom { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.shape-bottom svg { width: 100%; height: 70px; display: block; }

/* ===== Carrousel diplômes ===== */
.diploma-slider { position: relative; height: 763px; background: #fff; }
.diploma-slide {
    position: absolute; inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .8s;
}
.diploma-slide.visible { opacity: 1; }

/* ===== Dots des sliders ===== */
.slider-dots { text-align: center; margin-top: 26px; position: relative; z-index: 2; }
.slider-dots button {
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 0;
    background: #cfcfcf;
    margin: 0 5px;
    cursor: pointer;
    padding: 0;
}
.slider-dots button.active { background: var(--accent); }
.on-dark ~ .slider-dots button { background: rgba(255,255,255,.5); }

/* ===== Page rendez-vous ===== */
.page-title { font-family: var(--font-heading); font-size: 36px; font-weight: 600; margin-bottom: 4px; }
.section-sub { color: var(--text); margin-bottom: 34px; max-width: 640px; }

/* --- Module de réservation (repris d'ENK'AÏ, aux couleurs du site) --- */
.bk-app { --accent-dark: #d98600; --tint: #fff3e0; --tint-border: #ffd591; }

.bk-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.bk-cal {
    background: #fff;
    border: 1px solid var(--tint-border);
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25);
}

.bk-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.bk-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}
.bk-prev, .bk-next {
    width: 38px; height: 38px;
    border: 1.5px solid var(--tint-border);
    border-radius: 50%;
    background: #fff;
    color: var(--accent-dark);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
}
.bk-prev:hover:not(:disabled), .bk-next:hover:not(:disabled) { background: var(--tint); border-color: var(--accent); }
.bk-prev:disabled, .bk-next:disabled { opacity: .3; cursor: default; }

.bk-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    transition: opacity .25s ease;
}
.bk-grid.loading { opacity: .4; }

.bk-dow {
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--accent-dark);
    text-align: center;
    padding-bottom: .3rem;
}

.bk-day {
    aspect-ratio: 1;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.bk-day.libre    { background: #e8f4ea; color: #23662f; }
.bk-day.partiel  { background: var(--tint); color: var(--accent-dark); }
.bk-day.attente  { background: #fdf3d7; color: #8a6d1a; }
.bk-day.complet  { background: #f4d9d3; color: #a33325; cursor: default; }
.bk-day.ferme, .bk-day.passe { background: var(--grey-bg); color: #bbb; cursor: default; }
.bk-day:not(:disabled):hover { transform: scale(1.08); box-shadow: 0 6px 14px -6px rgba(17, 17, 17, .3); }
.bk-day.selected { outline: 2.5px solid var(--accent); outline-offset: 1px; }

.bk-legende {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.2rem;
    margin-top: 1.1rem;
    font-size: .78rem;
    color: var(--text);
    padding: 0;
}
.bk-legende li { display: flex; align-items: center; gap: .4rem; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg.libre   { background: #e8f4ea; border: 1px solid #bcdcc3; }
.lg.partiel { background: var(--tint); border: 1px solid var(--tint-border); }
.lg.attente { background: #fdf3d7; border: 1px solid #e6cf8a; }
.lg.complet { background: #f4d9d3; border: 1px solid #e0b0a5; }

.bk-step2 { display: none; }
.bk-step2.open { display: block; animation: bkFade .4s ease; }
@keyframes bkFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bk-slots-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .8rem;
}
.bk-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .6rem;
    margin-bottom: 1.4rem;
}
.bk-slot {
    padding: .55rem .4rem;
    border-radius: 999px;
    border: 1.5px solid var(--tint-border);
    background: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .82rem;
    color: var(--dark);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.bk-slot.libre:hover { border-color: var(--accent); background: var(--tint); transform: translateY(-2px); }
.bk-slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-slot.attente { background: #fdf3d7; border-color: #e6cf8a; color: #8a6d1a; cursor: default; }
.bk-slot.reserve, .bk-slot.indisponible {
    background: var(--grey-bg);
    border-color: var(--grey-bg);
    color: #bbb;
    cursor: default;
    text-decoration: line-through;
}

.bk-form { display: none; }
.bk-form.open { display: block; animation: bkFade .4s ease; }
.bk-recap-line { font-size: .95rem; margin-bottom: 1.1rem; }
.bk-recap { color: var(--accent-dark); }
.bk-note { font-size: .82rem; color: var(--accent-dark); text-align: center; margin-top: .8rem; }

.form-field { margin-bottom: 16px; }
.form-field label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--dark);
}
.form-field input, .form-field textarea, .form-field select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--tint-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    background: #fff;
    color: var(--dark);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 158, 0, .18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp-field { position: absolute; left: -9999px; }
.btn-block { display: block; width: 100%; }

.bk-msg {
    display: none;
    padding: .9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.4rem;
    font-size: .95rem;
}
.bk-msg.show { display: block; animation: bkFade .4s ease; }
.bk-msg.ok  { background: #e7f6e7; border: 1px solid #b4ddb4; color: #245c24; }
.bk-msg.err { background: #fdecec; border: 1px solid #eebbbb; color: #8c2626; }

/* ===== Carte ===== */
.map-section iframe { display: block; }

/* ===== Footer ===== */
#footer { background: #161616; color: #bbb; text-align: center; padding: 26px 0; font-size: 14px; }
#footer a { color: #bbb; }
#footer a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .cols-2 { grid-template-columns: 1fr; gap: 32px; }
    .bk-layout { grid-template-columns: 1fr; gap: 1.8rem; }
    .cols-3 { grid-template-columns: 1fr; }
    .cabinet-text { padding: 30px; }
    .cabinet-photo { padding: 0; }
    .cabinet-mandala { padding: 30px 0 0; }
    .section-tall { padding: 70px 0; }
    .testi-slider { grid-template-columns: 1fr; }
    .diploma-slider { height: 420px; }
    .hero-logo { width: 280px; }
    .hero-tagline { font-size: 34px; }
    .fancy-title { font-size: 46px; }
    .section-title { font-size: 30px; }
}

@media (max-width: 767px) {
    /* background-attachment: fixed est bugué sur iOS : parallaxe désactivé sur mobile */
    .hero, .page-banner { background-attachment: scroll; }
    .burger { display: block; }
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        border-top: 1px solid #eee;
        margin-top: 12px;
    }
    .menu.open { display: flex; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .diploma-slider { height: 300px; }
}
