/* ===== Site public – Cabinet médical ===== */
:root {
    --navy: #0b3a55;
    --navy-2: #134d6b;
    --teal: #2b6c7d;
    --teal-light: #d6e9ec;
    --green: #3daa6b;
    --green-dark: #2f8f57;
    --bg: #eaf2f6;
    --card: #ffffff;
    --text: #1d2a33;
    --muted: #63727c;
    --border: #d9e3e8;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(11, 58, 85, .12);
    --font: "Roboto Condensed", "Arial Narrow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font); color: var(--text); font-size: 16px; line-height: 1.5;
    background: linear-gradient(120deg, #dfeaf3 0%, #e9f3f2 60%, #e2f3e8 100%); min-height: 100vh;
}
a { color: var(--teal); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.icon { flex-shrink: 0; vertical-align: middle; }

/* Boutons */
.btn {
    white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
    padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 700; text-transform: uppercase;
    letter-spacing: .3px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(11,58,85,.35); }
.btn-dark:hover { background: var(--navy-2); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(30,120,70,.4); }
.btn-green:hover { background: var(--green-dark); }
.btn-danger { background: #c0392b; color: #fff; }
.btn-lg { padding: 14px 30px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* En-tête */
.site-header { background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; }
.brand-mark .icon { stroke-width: 3.2; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; }
.brand-text strong { font-size: 1.05rem; max-width: 260px; }
.brand-text small { font-size: .95rem; font-weight: 700; color: var(--teal); }
.main-nav { display: flex; gap: 6px; margin: 0 auto; }
.main-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; text-transform: uppercase; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { background: var(--teal-light); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; margin-left: auto; }

/* Bandeau */
.hero {
    background: linear-gradient(100deg, #e9eff3 0%, #c4d8e2 25%, #3a7799 50%, #2a6c86 75%, #2f7a85 100%);
    color: #fff; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 24px; min-height: 240px; padding-top: 18px; padding-bottom: 18px; }
.hero-doctor img { max-height: 240px; border-radius: 12px; object-fit: cover; margin: 0 auto; }
.hero-illu { width: 190px; height: 190px; margin: 0 auto; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow); }
.hero-text { text-align: center; }
.hero-text h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-transform: uppercase; letter-spacing: .5px; text-shadow: 0 2px 6px rgba(0,0,0,.25); line-height: 1.1; }
.hero-text p { margin: 0 0 18px; opacity: .95; }
.hero-cabinet img { border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.25); max-height: 200px; object-fit: cover; width: 100%; }
.hero-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 14px; padding: 18px; backdrop-filter: blur(4px); }
.hero-card-title { font-size: 1.3rem; font-weight: 700; }
.hero-card-line { margin-top: 8px; display: flex; gap: 6px; align-items: center; }

/* Panneau principal */
.main-panel { padding: 22px 0; }
.panel-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; align-items: start; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card h2 { margin: 0 0 14px; text-transform: uppercase; color: #142430; font-size: 1.5rem; }
.booking h2 { text-transform: none; }

.expertise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 12px; }
.tile {
    background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 2px 8px rgba(11,58,85,.08);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    padding: 12px 6px; min-height: 92px; color: var(--teal); text-decoration: none; font-size: .9rem; transition: transform .15s;
}
.tile:hover { transform: translateY(-2px); }
.tile span { color: var(--text); line-height: 1.15; }
.about { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.about h3 { margin: 0 0 6px; color: var(--navy); }

/* Réservation */
.field-label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
#bk-service, .bk-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
#bk-service { margin-bottom: 14px; }
.bk-layout { display: grid; grid-template-columns: 1fr 190px; gap: 14px; }
.calendar { min-width: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { text-transform: capitalize; font-size: 1.1rem; }
.cal-nav { border: 1px solid var(--border); background: #fff; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; color: var(--navy); display: grid; place-items: center; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-days span { text-align: center; font-size: .85rem; color: var(--muted); font-weight: 600; }
.cal-body { margin-top: 6px; }
.day {
    aspect-ratio: 1.15; border-radius: 6px; border: 1px solid var(--border); background: #eef2f4; font: inherit; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8a979f; padding: 0;
}
.day.empty { background: #f4f6f7; border-color: #eef1f3; }
.day.avail { background: #e7edf0; color: var(--text); cursor: pointer; }
.day.avail::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.day.avail:hover { background: var(--teal-light); }
.day.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.day.selected::after { background: #9ff0c0; }
.day.loading { opacity: .5; }
.bk-side { background: #eef2f4; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.bk-summary strong { display: block; font-size: 1.05rem; }
.bk-chosen { font-size: .95rem; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 260px; overflow-y: auto; }
.slot { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 7px 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--navy); }
.slot:hover { border-color: var(--teal); }
.slot.selected { background: var(--navy); color: #fff; }
.slots .muted { grid-column: 1 / -1; font-size: .9rem; }
.bk-form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.bk-form h3 { margin: 0; color: var(--navy); }
.bk-form label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; font-weight: 600; flex: 1; }
.bk-form .check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.bk-form .check input { width: auto; margin-top: 4px; }
.form-row { display: flex; gap: 10px; }
.hp { position: absolute !important; left: -9999px !important; }
.bk-error { color: #b3261e; font-weight: 600; }
.bk-error:empty { display: none; }
.bk-success { text-align: center; padding: 18px 6px; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 10px; }
.bk-cancel { word-break: break-all; }

/* Contact */
.contact { padding: 0 0 26px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact p { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.emergency { color: #b3261e; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 4px; border-bottom: 1px solid var(--border); }
.hours tr.today td { font-weight: 700; color: var(--navy); }
.closure { color: #a05a00; }

/* Pages simples */
.page { padding: 30px 0; }
.page h1 { color: var(--navy); margin-top: 0; }
.legal { line-height: 1.7; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.alert-success { background: #e2f5ea; color: #1d6b3d; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #e6ecef; }
.badge-confirmed { background: #e2f5ea; color: #1d6b3d; }
.badge-pending { background: #fff4d6; color: #8a5a00; }
.badge-cancelled { background: #fde4e1; color: #a12b1f; }

/* Pied de page */
.site-footer { background: rgba(255,255,255,.75); border-top: 1px solid var(--border); padding: 18px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { text-align: right; }
.footer-links a { margin-left: 14px; }
.copy { margin-top: 6px; font-size: .9rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1180px) {
    .header-cta { display: none; }
}
@media (max-width: 980px) {
    .panel-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr 1.6fr; }
    .hero-cabinet { display: none; }
}
@media (max-width: 760px) {
    .header-cta { display: none; }
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--border); }
    .main-nav.open { display: flex; }
    .hero { background: linear-gradient(135deg, #1f5f7d, #2a6c86 60%, #2f7a85); }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .btn-lg { white-space: normal; }
    .brand-text strong { font-size: .95rem; }
    .hero-doctor { display: none; }
    .bk-layout { grid-template-columns: 1fr; }
    .slots { grid-template-columns: repeat(4, 1fr); }
    .form-row { flex-direction: column; }
    .footer-links { text-align: left; }
    .footer-links a { margin: 0 14px 0 0; }
    .card { padding: 18px 16px; }
}
