/* ============================================
   Cabinet de Chiropratique - Clélia Réchard
   ============================================ */

:root {
    --navy: #1a1c5c;
    --navy-dark: #12143f;
    --cream: #f8efd6;
    --gold: #e3c77e;
    --rose: #c17d72;
    --rose-dark: #a8695f;
    --text-dark: #2b2b2b;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 110px; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--cream);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    margin: 0 0 1rem;
}

a { text-decoration: none; }

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

/* ---------- HEADER / NAV (bandeau fin, sticky) ---------- */
header {
    background: var(--navy-dark);
    padding: 0.7rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

nav ul {
    display: flex;
    gap: 2.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}
nav ul li a {
    color: #f4ead0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ---------- BRAND BAND (logo + coordonnées, sous le header) ---------- */
.brand-band {
    background: linear-gradient(135deg, var(--navy) 0%, #23256e 100%);
    padding: 2.2rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid rgba(227,199,126,0.25);
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.brand-logo {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.brand-title {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1.25;
    max-width: 260px;
}

/* ---------- FONDU ENTRE SECTIONS ---------- */
section[id] { position: relative; }
section[id]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 70px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--fade-to, transparent));
}
#chiropratique::after { --fade-to: var(--cream); }
#visite::after { --fade-to: var(--navy); }
#avis::after { --fade-to: #0c0e32; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(120deg, rgba(18,20,63,0.75) 0%, rgba(18,20,63,0.45) 55%, rgba(18,20,63,0.2) 100%), url('images/soin-hero.webp') center 20%/cover no-repeat;
    padding: 4rem 3rem;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-content .eyebrow {
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}
.hero-content h1 {
    color: var(--gold);
    font-size: 2.3rem;
    line-height: 1.35;
    text-shadow: 1px 2px 10px rgba(0,0,0,0.5);
}
.hero-content p.lead {
    color: #fdf7e4;
    font-size: 1.15rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

/* ---------- SECTIONS GENERIC ---------- */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
    text-align: center;
    color: var(--rose);
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
}
.ornament {
    display: block;
    text-align: center;
    color: var(--rose);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.section-navy { background: var(--navy); color: #f4ead0; }
.section-navy p { color: #e6dcc0; }
.section-navy .section-title { color: var(--rose); }

.section-cream { background: var(--cream); }

.centered-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
}

/* ---------- POURQUOI CONSULTER ---------- */
.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}
.pourquoi-grid h3 {
    color: var(--rose-dark);
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
}
.pourquoi-grid ul { list-style: none; padding: 0; margin: 0; }
.pourquoi-grid li {
    color: var(--navy);
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(26,28,92,0.15);
}

/* ---------- VISITE ---------- */
.visite-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.visite-block:nth-child(even) .visite-text { order: 2; }
.visite-block h3 { color: var(--rose-dark); font-size: 1.5rem; }
.visite-image { min-width: 0; }
.visite-block img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---------- QUI SUIS-JE ---------- */
.bio-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.bio-grid img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ---------- AVIS ---------- */
.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}
.avis-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.6rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.avis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.avis-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.avis-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.avis-name { color: #202124; font-weight: 600; font-size: 0.95rem; }
.avis-stars { color: #fbbc04; font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 0.6rem; }
.avis-card p { font-size: 0.92rem; color: #4a4a4a; line-height: 1.6; }

/* ---------- CONTACT ---------- */
.section-contact-forest {
    background: linear-gradient(rgba(12,14,50,0.72), rgba(12,14,50,0.8)), url('images/foret.webp') center/cover no-repeat;
    color: white;
    padding: 5rem 2rem;
}
.section-contact-forest .section-title { color: var(--gold); }
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 10px;
    color: var(--text-dark);
}
form label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
input, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
}
.btn, .btn-doctolib, button.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: var(--navy-dark);
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover, .btn-doctolib:hover, button.btn:hover { background: #d1b263; }
.btn-doctolib img { height: 28px; width: auto; }

/* ---------- HONEYPOT (anti-spam, invisible pour un humain) ---------- */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- RGPD ---------- */
.rgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 400;
    color: #555;
    line-height: 1.4;
}
.rgpd-label input { width: auto; margin-top: 3px; }
.rgpd-label a { color: var(--navy); text-decoration: underline; }

/* ---------- CARTE GOOGLE MAPS ---------- */
.map-embed {
    margin-top: 1.2rem;
    border-radius: 8px;
    overflow: hidden;
}

.contact-infos {
    background: rgba(0,0,0,0.35);
    padding: 2rem;
    border-radius: 10px;
    align-self: start;
}
.contact-infos h3 { color: var(--gold); }
.contact-infos p { color: #f4ead0; }

/* ---------- BOUTON RETOUR EN HAUT ---------- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 28, 92, 0.55);
    color: var(--gold);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(227, 199, 126, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 200;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(26, 28, 92, 0.85);
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--navy-dark);
    color: #cfc7a3;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}
footer a { color: var(--gold); }

/* ---------- MOBILE ---------- */
@media screen and (max-width: 900px) {
    .bio-grid, .visite-block, .contact-grid { grid-template-columns: 1fr; }
    .visite-block:nth-child(even) .visite-text { order: 0; }
}

@media screen and (max-width: 768px) {
    .top-bar { flex-direction: column; gap: 0.3rem; padding: 0.6rem; font-size: 0.85rem; }
    header { flex-direction: column; padding: 1rem; }
    nav ul { justify-content: center; gap: 1rem; }
    nav ul li a { font-size: 0.8rem; }
    .hero { padding: 3rem 1.2rem; min-height: 70vh; }
    .hero-content h1 { font-size: 1.7rem; }
    section { padding: 3rem 1.2rem; }
    .section-title { font-size: 1.6rem; }
    .bio-grid img { max-width: 300px; margin: 0 auto; }
}
