:root {
    --bg: #f6f9fc;
    --surface: #ffffff;
    --ink: #0f1f2c;
    --ink-soft: #4a5b6a;
    --muted: #7e8c97;
    --line: #e3e9f0;
    --primary: #0F5BA8;
    --primary-dark: #0A4787;
    --primary-soft: #E6F1FA;
    --accent: #3FA3DD;
    --btn: #0F5BA8;
    --btn-dark: #0A4787;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(15, 31, 44, 0.04);
    --shadow: 0 12px 40px rgba(15, 31, 44, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 31, 44, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: var(--ink);
    font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
h5 { font-size: 0.85rem; font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: 14px;
    padding: 6px 14px;
    background: var(--primary-soft);
    border-radius: 99px;
}

.accent { color: var(--primary); font-style: italic; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 249, 252, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header.scrolled {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.15rem;
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    transform: rotate(0deg);
    box-shadow: 0 6px 14px rgba(15, 91, 168, 0.3);
}
.logo-text { letter-spacing: -0.01em; }
.logo-text strong { color: var(--primary); font-weight: 700; }
.logo-emblem {
    display: block;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-size: 74px auto;
    background-position: -12px -1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav a {
    font-weight: 500;
    font-size: 0.94rem;
    color: var(--ink-soft);
    transition: color 0.15s;
}
.nav a:hover { color: var(--primary); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--btn);
    color: white;
    box-shadow: 0 8px 22px rgba(15, 91, 168, 0.28);
}
.btn-primary:hover {
    background: var(--btn-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 91, 168, 0.34);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--btn); color: var(--btn); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
    padding: 60px 0 100px;
    background:
        radial-gradient(circle at 90% 10%, rgba(15, 91, 168, 0.12), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(63, 163, 221, 0.1), transparent 50%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
}
.hero-content .lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin: 22px 0 32px;
    max-width: 520px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 50px;
}
.hero-meta {
    display: flex;
    gap: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}
.hero-meta span { color: var(--muted); font-size: 0.88rem; }

.hero-card {
    position: relative;
    padding: 4px;
    border-radius: var(--radius-lg);
}
.card-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(15, 91, 168, 0.18), transparent 70%);
    z-index: 0;
    border-radius: 30px;
}
.hero-card-inner {
    position: relative;
    background: var(--surface);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.hero-card-inner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 22px;
}
.hours li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.hours li:last-child { border-bottom: none; }
.hours li span:first-child { color: var(--ink-soft); }
.hours li span:last-child { font-weight: 600; }
.hours .closed { color: var(--accent); }

.hero-card-cta { margin-top: 24px; }
.phone-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--primary-soft);
    border-radius: var(--radius);
    transition: transform 0.15s;
}
.phone-link:hover { transform: scale(1.02); }
.phone-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
}
.phone-link small { display: block; color: var(--ink-soft); font-size: 0.78rem; }
.phone-link strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* Sections */
.section { padding: 100px 0; }
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}
.section-head p {
    color: var(--ink-soft);
    margin-top: 16px;
    font-size: 1.05rem;
}

/* Praticiens */
.praticiens-section { background: white; }
.praticiens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.praticien-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.praticien-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    font-family: 'Playfair Display', serif;
}
.avatar[data-color="1"] { background: linear-gradient(135deg, #0F5BA8, #0A4787); }
.avatar[data-color="2"] { background: linear-gradient(135deg, #5b8def, #3d6dc4); }
.avatar[data-color="3"] { background: linear-gradient(135deg, #3FA3DD, #2980c4); }
.avatar[data-color="4"] { background: linear-gradient(135deg, #9b6dd1, #7649ad); }
.avatar[data-color="5"] { background: linear-gradient(135deg, #e0a92b, #b9871a); }
.avatar[data-color="6"] { background: linear-gradient(135deg, #d2649b, #a8487a); }

/* Cabinet dentaire */
.dentaire-section { background: var(--bg); }
.dentaire-specialites {
    margin-bottom: 56px;
    text-align: center;
}
.dentaire-specialites h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.specialites-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
}
.specialites-list li {
    background: white;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.specialites-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: transparent;
    background: linear-gradient(135deg, #d2649b, #a8487a);
    color: white;
}

.praticien-card h3 { margin-bottom: 4px; }
.role {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-bottom: 14px;
}
.tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--bg);
    color: var(--muted);
}
.tag-new {
    background: rgba(63, 163, 221, 0.12);
    color: var(--accent);
}

.doctolib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 16px;
    background: var(--btn);
    color: white;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(15, 91, 168, 0.25);
}
.doctolib-btn:hover {
    background: var(--btn-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 91, 168, 0.35);
}
.doctolib-icon { font-size: 0.9rem; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.service {
    background: white;
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform 0.2s, box-shadow 0.2s;
}
.service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.service-icon {
    font-size: 2rem;
    width: 56px; height: 56px;
    background: var(--primary-soft);
    border-radius: 14px;
    display: grid; place-items: center;
    margin-bottom: 18px;
}
.service h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service p { color: var(--ink-soft); font-size: 0.94rem; }

/* Infos */
.infos-section { background: white; }
.infos-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}
.infos-list {
    margin-top: 30px;
}
.infos-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 1rem;
}
.infos-list li:last-child { border-bottom: none; }
.infos-list strong { color: var(--ink); margin-right: 6px; }

.urgences {
    background: linear-gradient(160deg, #e6f1fa, #f2f8fd);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(63, 163, 221, 0.2);
}
.urgences h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.urgences p { color: var(--ink-soft); margin-bottom: 18px; }
.urgences-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(63, 163, 221, 0.18);
}
.urgences-list li:last-child { border-bottom: none; }
.urgences-list strong {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    font-size: 1.3rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: start;
}
.contact-info {
    display: grid;
    gap: 28px;
}
.info-block h4 {
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.info-block p { color: var(--ink); font-size: 1.02rem; }
.info-block a:hover { color: var(--primary); }

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 6px;
}
.form-intro { color: var(--ink-soft); margin-bottom: 24px; font-size: 0.95rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form label {
    display: block;
    margin-bottom: 18px;
}
.contact-form label span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: white;
}
.contact-form textarea { resize: vertical; }

.form-feedback {
    margin-top: 16px;
    padding: 14px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 10px;
    font-size: 0.92rem;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--ink);
    color: #b8c5d1;
    padding: 70px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-footer .logo-text { color: white; }
.footer-tag {
    margin-top: 14px;
    color: #8595a5;
    font-size: 0.92rem;
    max-width: 280px;
}
.footer h5 { color: white; margin-bottom: 18px; }
.footer ul li {
    padding: 6px 0;
    font-size: 0.92rem;
}
.footer ul a { transition: color 0.15s; }
.footer ul a:hover { color: white; }
.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    color: #6b7a89;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 920px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .burger { display: flex; }

    .hero { padding: 40px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }

    .infos-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid { gap: 32px; }
    .form-row { grid-template-columns: 1fr; }

    .section { padding: 70px 0; }
    .hero-meta { gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-meta { flex-wrap: wrap; }
    .contact-form, .urgences { padding: 28px 22px; }
    .hero-card-inner { padding: 28px 22px; }
}

/* ---- Carte cliquable & indice ---- */
.praticien-card.has-details { cursor: pointer; }
.card-more {
    display: block;
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--btn);
    opacity: 0;
    transition: opacity 0.2s;
}
.praticien-card.has-details:hover .card-more { opacity: 1; }

/* ---- Modale fiche praticien ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}
.modal[hidden] { display: none; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 40, 0.55);
    backdrop-filter: blur(3px);
}
.modal-card {
    position: relative;
    background: white;
    border-radius: var(--radius);
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    animation: modalIn 0.22s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--ink); }
.modal-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.modal-head .avatar { margin: 0; flex-shrink: 0; }
.modal-head h3 { margin: 0 0 2px; }
.modal-fonction { color: var(--accent); font-weight: 500; font-size: 0.95rem; }
.modal-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.modal-label { color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.modal-value { font-size: 0.95rem; }
.modal-value a { color: var(--accent); }
.modal-domaines { margin: 0; padding-left: 18px; font-size: 0.95rem; }
.modal-domaines li { margin-bottom: 4px; }
.modal-rdv { margin-top: 24px; display: inline-flex; }
@media (max-width: 560px) {
    .modal-row { grid-template-columns: 1fr; gap: 2px; }
    .modal-card { padding: 28px 20px; }
}

/* Champ piège anti-spam (invisible) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
/* Message d'erreur du formulaire */
.form-error {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: #fdecec;
    color: #b3261e;
    font-size: 0.92rem;
    font-weight: 500;
}
