/*
Theme Name: Cabinet Connect
Description: Theme standalone pour le site du Cabinet Saffarian
Version: 1.1
*/

:root {
    --bg: #f8f5ee;
    --surface: #fcfaf5;
    --surface-alt: #f3ede2;
    --text: #2d3136;
    --muted: #6c7179;
    --primary: #3f6f77;
    --primary-dark: #31565d;
    --border: #ddd4c7;
    --shadow: 0 20px 60px rgba(54, 55, 50, 0.08);
    --radius: 20px;
    --container: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(184, 207, 199, 0.28), transparent 30%),
        linear-gradient(180deg, #fcfaf5 0%, var(--bg) 45%, #f7f1e7 100%);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

main,
section {
    display: block;
    visibility: visible;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.narrow {
    width: min(calc(100% - 2rem), 880px);
    margin-inline: auto;
}

.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-sm .section-heading {
    margin-bottom: 1.75rem;
}

.section-tinted {
    background: rgba(255, 251, 244, 0.7);
    border-top: 1px solid rgba(221, 212, 199, 0.7);
    border-bottom: 1px solid rgba(221, 212, 199, 0.7);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 250, 245, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(221, 212, 199, 0.55);
    box-shadow: 0 10px 30px rgba(54, 55, 50, 0.05);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(252, 250, 245, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(54, 55, 50, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(63, 111, 119, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.brand-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.08em;
    background: linear-gradient(135deg, rgba(63, 111, 119, 0.16), rgba(63, 111, 119, 0.04));
    color: var(--primary-dark);
}

.brand-letter-accent {
    margin-left: -0.4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.desktop-nav,
.header-actions,
.mobile-actions,
.mobile-cta,
.quick-info,
.grid,
.contact-grid,
.footer-grid {
    display: flex;
    gap: 1rem;
}

.desktop-nav {
    align-items: center;
    gap: 1.75rem;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-nav li {
    margin: 0;
}

.desktop-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--primary);
}

.header-actions {
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
}

.button-secondary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.button-secondary:hover {
    background: rgba(63, 111, 119, 0.08);
}

.button-large {
    padding-inline: 1.6rem;
    min-height: 3.25rem;
}

.menu-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#mobile-menu-toggle:checked + .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#mobile-menu-toggle:checked + .menu-toggle span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle:checked + .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top: 1px solid var(--border);
    background: rgba(252, 250, 245, 0.98);
    transition: max-height 0.3s ease-in, opacity 0.2s ease;
}

#mobile-menu-toggle:checked ~ .mobile-menu,
.site-header:has(#mobile-menu-toggle:checked) .mobile-menu {
    max-height: 28rem;
    opacity: 1;
    transition: max-height 0.4s ease-out, opacity 0.25s ease;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
    padding: 1rem 0 1.25rem;
    gap: 0.25rem;
}

.mobile-nav a,
.mobile-nav .mobile-lang-switcher {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.mobile-nav a {
    padding: 0.65rem 0;
    color: var(--muted);
    font-weight: 600;
}

/* ── Staggered entrance for mobile nav links ── */
.site-header:has(#mobile-menu-toggle:checked) .mobile-nav a:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.06s; }
.site-header:has(#mobile-menu-toggle:checked) .mobile-nav a:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.site-header:has(#mobile-menu-toggle:checked) .mobile-nav a:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
.site-header:has(#mobile-menu-toggle:checked) .mobile-nav a:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.site-header:has(#mobile-menu-toggle:checked) .mobile-nav a:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.22s; }
.site-header:has(#mobile-menu-toggle:checked) .mobile-nav a:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.site-header:has(#mobile-menu-toggle:checked) .mobile-nav .mobile-lang-switcher { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }

.mobile-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-inner {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
    animation: fade-up 0.7s ease both;
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 5.4rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

p {
    margin: 0;
}

.lead {
    margin-top: 1.5rem;
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    color: var(--muted);
}

.hero-copy,
.section-heading p {
    margin-top: 1rem;
    max-width: 42rem;
    margin-inline: auto;
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.05rem);
}

.hero-actions {
    margin-top: 2rem;
}

.quick-info {
    flex-wrap: wrap;
    margin-top: 2.25rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.quick-info div {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(252, 250, 245, 0.85);
}

.announcement-section {
    background: rgba(255, 251, 244, 0.7);
    border-top: 1px solid rgba(221, 212, 199, 0.7);
    border-bottom: 1px solid rgba(221, 212, 199, 0.7);
}

.announcement-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.announcement-header {
    text-align: center;
    margin-bottom: 2rem;
}

.announcement-header h2 {
    color: var(--primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-item {
    padding: 1rem;
    border-left: 4px solid var(--primary);
    background: rgba(63, 111, 119, 0.05);
    border-radius: 8px;
}

.announcement-item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.1rem;
}

.announcement-item p,
.announcement-copy {
    color: var(--muted);
    line-height: 1.5;
}

.announcement-copy p + p,
.announcement-copy ul + p,
.announcement-copy p + ul,
.announcement-copy li + li {
    margin-top: 0.75rem;
}

.announcement-copy ul,
.announcement-copy ol {
    padding-left: 1.2rem;
    margin: 0.75rem 0 0;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.grid {
    flex-wrap: wrap;
}

.grid-two > * {
    flex: 1 1 320px;
}

.grid-four > * {
    flex: 1 1 220px;
}

.location-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.location-panel {
    padding: 2rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(252, 250, 245, 0.92), rgba(243, 237, 226, 0.85));
    border: 1px solid rgba(221, 212, 199, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.location-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-eyebrow {
    margin-bottom: 0.55rem;
}

.location-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Note sous le téléphone */
.info-note {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Description sous le titre du panel */
.location-panel-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    background: rgba(63, 111, 119, 0.06);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

/* Notice 1733 */
.notice-1733 {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.1rem 1.4rem;
    background: #fff8ed;
    border: 1px solid #f5d98a;
    border-radius: 10px;
    font-size: 0.93rem;
    color: var(--text);
    line-height: 1.6;
}

.notice-1733-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.notice-1733-tel {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.notice-1733-tel:hover {
    text-decoration: underline;
}

/* Bloc planning */
.schedule-block {
    background: var(--surface);
    border: 1px solid rgba(221, 212, 199, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.7rem;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.schedule-header h3 {
    margin: 0;
    font-size: 1rem;
}

.schedule-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    min-width: 0;
}

.schedule-table th {
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1.1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.schedule-table th:first-child {
    border-radius: 8px 0 0 0;
    width: 140px;
}

.schedule-table th:last-child {
    border-radius: 0 8px 0 0;
}

.schedule-table td {
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover td {
    background: rgba(63, 111, 119, 0.04);
}

.schedule-day {
    font-weight: 700;
    color: var(--text);
}

.schedule-slot {
    color: var(--text);
}

.schedule-slot-off {
    color: var(--muted);
    opacity: 0.55;
}

.schedule-row-closed .schedule-day {
    color: var(--muted);
}

.profile-card,
.info-card,
.contact-card {
    background: var(--surface);
    border: 1px solid rgba(221, 212, 199, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-card {
    padding: 2rem;
    text-align: center;
}

.profile-card p,
.info-card p {
    color: var(--muted);
}

.doctor-title,
.doctor-locations {
    margin-top: 0.5rem;
}

/* Photo praticien */
.profile-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--border);
    box-shadow: 0 4px 16px rgba(63, 111, 119, 0.15);
}

.profile-photo-initials {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(63, 111, 119, 0.2);
}

.profile-photo-initials--staff {
    background: linear-gradient(135deg, #7a8e8c, #4e6563);
    font-size: 1.4rem;
}

.staff-card {
    opacity: 0.9;
}

.staff-grid {
    max-width: 760px;
    margin-inline: auto;
}

/* Grille compacte pour dentistes & équipe élargie */
.team-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

.profile-card--sm {
    padding: 1.35rem 1.1rem;
}

.profile-card--sm .profile-photo,
.profile-card--sm .profile-photo-initials {
    width: 80px;
    height: 80px;
    font-size: 1.4rem;
}

.profile-card--sm .profile-photo-wrap {
    margin-bottom: 0.85rem;
}

.profile-card--sm h3 {
    font-size: 1rem;
}

.profile-card--sm p {
    font-size: 0.875rem;
}

.location-map {
    margin-top: 1.25rem;
    border-radius: 14px;
    overflow: hidden;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 280px;
}

.info-card {
    padding: 1.7rem;
}

.info-card p + p {
    margin-top: 0.25rem;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(184, 207, 199, 0.35);
    color: var(--primary);
}

.icon-box svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.map-shell {
    margin-top: 2rem;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 20rem;
}

.map-shell iframe {
    width: 100%;
    min-height: 20rem;
    border: 0;
}

.contact-card {
    padding: 2.25rem;
}

.contact-grid {
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.contact-grid > div {
    flex: 1 1 180px;
    text-align: center;
}

.contact-grid strong {
    display: block;
    margin-bottom: 0.75rem;
    font-family: Georgia, "Times New Roman", serif;
}

.contact-grid p {
    color: var(--muted);
}

.contact-actions {
    text-align: center;
}

.site-footer {
    padding: 3rem 0 5.5rem;
    border-top: 1px solid var(--border);
    background: rgba(252, 250, 245, 0.85);
}

.footer-grid {
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-grid > div {
    flex: 1 1 220px;
}

.footer-grid h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-grid p + p {
    margin-top: 0.2rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-admin-link {
    font-size: 0.78rem;
    color: var(--muted);
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-admin-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    justify-content: center;
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(252, 250, 245, 0.98);
    backdrop-filter: blur(10px);
}

.mobile-cta .button {
    flex: 1 1 0;
    max-width: 220px;
}

.reveal {
    opacity: 1;
    transform: none;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Tablette large (jusqu'à 1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
    .desktop-nav ul {
        gap: 1.1rem;
    }

    .desktop-nav a {
        font-size: 0.88rem;
    }
}

/* ── Tablette / mobile landscape (jusqu'à 900px) ─────────────────── */
@media (max-width: 900px) {
    .desktop-nav,
    .header-actions {
        display: none;
    }

    .header-inner {
        min-height: 3.5rem;
    }

    .brand-mark {
        padding: 0.35rem 0.55rem;
    }

    .brand-letter {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 1.05rem;
    }

    .lang-switcher {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-top: 5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }


    .narrow {
        width: calc(100% - 2rem);
    }
}

/* ── Tablette portrait (jusqu'à 768px) ───────────────────────────── */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .grid-two > * {
        flex: 1 1 280px;
    }

    .grid-four > * {
        flex: 1 1 200px;
    }

    .contact-card {
        padding: 1.75rem;
    }

    .footer-grid > div {
        flex: 1 1 180px;
    }

    .location-panel-grid {
        grid-template-columns: 1fr;
    }

    .location-panel {
        padding: 1.5rem;
    }

    .schedule-table {
        font-size: 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem 0.75rem;
    }
}

/* ── Grand mobile (jusqu'à 640px) ────────────────────────────────── */
@media (max-width: 640px) {
    .section {
        padding: 3.5rem 0;
    }

    h2 {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .quick-info {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .quick-info div {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .mobile-cta {
        flex-direction: row;
    }

    .mobile-cta .button {
        max-width: none;
        width: 100%;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .announcement-box {
        padding: 1.5rem 1.25rem;
    }

    .schedule-table th:first-child {
        width: 100px;
    }

    .notice-1733 {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }
}

/* ── Mobile standard (jusqu'à 480px) ────────────────────────────── */
@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .container,
    .narrow {
        width: calc(100% - 1.5rem);
    }

    .hero {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .grid-two > *,
    .grid-four > *,
    .contact-grid > div {
        flex: 1 1 100%;
    }

    .contact-grid {
        gap: 1.25rem;
    }

    .contact-grid > div {
        text-align: left;
    }

    .location-panel {
        padding: 1.35rem;
        border-radius: 14px;
    }

    .location-panel-head {
        flex-direction: column;
        gap: 0.5rem;
    }

    .location-panel-desc {
        font-size: 0.84rem;
        padding: 0.75rem 0.9rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.78rem;
    }

    .schedule-table th:first-child {
        width: 80px;
    }

    .schedule-header h3 {
        font-size: 0.9rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .profile-card {
        padding: 1.35rem;
    }

    .profile-photo,
    .profile-photo-initials {
        width: 90px;
        height: 90px;
    }

    .profile-photo-initials {
        font-size: 1.6rem;
    }

    .contact-card {
        padding: 1.35rem;
    }

    .announcement-box {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .lang-switcher a {
        padding: 0.25rem 0.45rem;
        font-size: 0.75rem;
    }

    .mobile-cta {
        padding: 0.7rem 0.8rem;
    }

    .mobile-cta .button {
        min-height: 48px;
        font-size: 0.95rem;
        width: 100%;
        max-width: none;
    }

    .map-shell iframe {
        min-height: clamp(15rem, 40vh, 20rem);
    }

    .footer-grid > div {
        flex: 1 1 100%;
    }

    .site-footer {
        padding-bottom: 6rem;
    }
}

/* ── Petit mobile (jusqu'à 360px) ────────────────────────────────── */
@media (max-width: 360px) {
    .section {
        padding: 2.5rem 0;
    }

    .brand-letter {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 1rem;
    }

    .announcement-box {
        padding: 1rem 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.35rem 0.35rem;
        font-size: 0.72rem;
    }

    .schedule-table th:first-child {
        width: 65px;
    }

    .profile-photo,
    .profile-photo-initials {
        width: 75px;
        height: 75px;
    }

    .profile-photo-initials {
        font-size: 1.3rem;
    }

    .team-compact-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.45rem;
    }
}

/* ── Language switcher ─────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 1rem;
}

.lang-switcher a {
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.03em;
}

.lang-switcher a:hover {
    background: rgba(63, 111, 119, 0.08);
    color: var(--primary);
}

.lang-switcher a.active {
    background: var(--primary);
    color: #fff;
}

.mobile-lang-switcher {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    justify-content: center;
}

/* ── RTL support (Persian / Farsi) ─────────────────────────────── */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] body {
    font-family: "Tahoma", "Segoe UI", Arial, sans-serif;
}

[dir="rtl"] .header-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .desktop-nav ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .announcement-item {
    border-left: none;
    border-right: 4px solid var(--primary);
}

[dir="rtl"] .location-panel-desc {
    border-left: none;
    border-right: 3px solid var(--primary);
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .schedule-table th,
[dir="rtl"] .schedule-table td {
    text-align: right;
}

[dir="rtl"] .schedule-table th:first-child {
    border-radius: 0 8px 0 0;
}

[dir="rtl"] .schedule-table th:last-child {
    border-radius: 8px 0 0 0;
}

[dir="rtl"] .notice-1733 {
    flex-direction: row-reverse;
}

[dir="rtl"] .quick-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .info-card,
[dir="rtl"] .profile-card {
    text-align: center;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

@media (max-width: 640px) {
    .lang-switcher {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-nav a,
    .mobile-nav .mobile-lang-switcher {
        transition: none;
    }
}

/* =======================================================================
   Carrousel photos du cabinet (deux versions A/B + toggle navbar admin)

   POUR SUPPRIMER LA VERSION NON RETENUE après décision du client :
     - V1 (slider) : retirer le bloc "--- V1" jusqu'au prochain "---"
     - V2 (mosaïque + lightbox) : retirer le bloc "--- V2"
     - Toggle admin : retirer le bloc ".admin-carousel-toggle*" en entier
   ======================================================================= */

/* --- Toggle admin dans la navbar (supprimable d'un bloc) --- */
.admin-carousel-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .55rem;
    background: rgba(63, 111, 119, 0.08);
    border: 1px dashed rgba(63, 111, 119, 0.5);
    border-radius: 999px;
    font-size: .78rem;
    margin-inline-start: .75rem;
    white-space: nowrap;
}
.admin-carousel-toggle-label {
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: .02em;
}
.admin-carousel-toggle-btn {
    padding: .15rem .55rem;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    text-decoration: none;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: .78rem;
    line-height: 1.4;
    transition: background .15s, color .15s, border-color .15s;
}
.admin-carousel-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.admin-carousel-toggle-btn.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.admin-carousel-toggle-mobile {
    margin: .5rem 0;
    align-self: center;
}
@media (max-width: 980px) {
    .admin-carousel-toggle:not(.admin-carousel-toggle-mobile) {
        display: none;
    }
}

/* --- Section carrousel : conteneur commun aux 2 versions, compact --- */
.cabinet-photos-section {
    padding-block: 2.5rem 2rem;
    background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}
.section-heading--compact {
    margin-bottom: 1.5rem;
    text-align: center;
}
.section-heading--compact h2 { margin: .25rem 0 0; font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.section-heading--compact .eyebrow { margin: 0; }

/* ===== BEGIN CAROUSEL V1 — Marquee horizontal continu (supprimable d'un bloc) ===== */
.cv1-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    border-radius: var(--radius);
}
.cv1-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    will-change: transform;
}
.cv1-tile {
    position: relative;
    flex: 0 0 auto;
    width: clamp(220px, 26vw, 360px);
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(14, 29, 34, 0.18);
    background: #0e1d22;
    will-change: transform, opacity;
    transition: transform .35s ease, opacity .3s ease;
}
.cv1-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cv1-tile figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: .75rem 1rem .65rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 85%);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .01em;
}
/* Fallback CSS-only si Motion One ne charge pas (ex : CDN bloqué, JS désactivé) */
@keyframes cv1-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.no-js .cv1-track,
.cv1-marquee:not([data-motion-ready]) .cv1-track {
    animation: cv1-marquee-scroll var(--cv1-speed, 30s) linear infinite;
}
.cv1-marquee:hover .cv1-track { animation-play-state: paused; }
@media (max-width: 640px) {
    .cv1-tile { width: 70vw; }
    .cv1-tile figcaption { font-size: .82rem; padding: .55rem .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .cv1-track { animation: none !important; transform: translateX(0) !important; }
}
/* ===== END CAROUSEL V1 ===== */

/* ===== BEGIN CAROUSEL V2 — Bento grid avec rotation (supprimable d'un bloc) ===== */
/* Layout :
       ┌──────────────┬──────┐
       │              │  1   │
       │      0       ├──────┤
       │   (HERO)     │  2   │
       ├──────┬───────┴──────┤
       │  3   │      4       │
       └──────┴──────────────┘                                                  */
.cv2-bento {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: .65rem;
    width: 100%;
    height: clamp(320px, 42vw, 440px);
    border-radius: var(--radius);
}
.cv2-cell {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #0e1d22;
    box-shadow: 0 10px 28px rgba(14, 29, 34, 0.16);
    margin: 0;
    cursor: pointer;
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.cv2-cell:hover {
    transform: translateY(-2px) scale(1.012);
    box-shadow: 0 16px 36px rgba(14, 29, 34, 0.24);
    z-index: 2;
}
.cv2-cell--0 { grid-column: 1; grid-row: 1 / span 2; }
.cv2-cell--1 { grid-column: 2 / span 2; grid-row: 1; }
.cv2-cell--2 { grid-column: 2 / span 2; grid-row: 2; }
.cv2-cell--3 { display: none; } /* fallback : optionnel pour 5+ photos, voir media query */
.cv2-cell--4 { display: none; }

/* Variante riche pour grands écrans : 5 cellules au lieu de 3 */
@media (min-width: 900px) {
    .cv2-bento {
        grid-template-columns: 1.6fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .cv2-cell--0 { grid-column: 1;          grid-row: 1 / span 2; }
    .cv2-cell--1 { grid-column: 2 / span 2; grid-row: 1; }
    .cv2-cell--2 { grid-column: 2;          grid-row: 2; display: block; }
    .cv2-cell--3 { grid-column: 3;          grid-row: 2; display: block; }
    .cv2-cell--4 { display: none; }
}

.cv2-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: opacity;
}
.cv2-img--a { opacity: 1; }
.cv2-img--b { opacity: 0; }
.cv2-cell-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: .85rem 1rem .7rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 85%);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .01em;
    z-index: 3;
}
.cv2-cell--0 .cv2-cell-caption { font-size: 1rem; padding: 1rem 1.2rem .85rem; }

/* Fallback : quand Motion One absent / JS off, on garde le layout statique. */
.cv2-bento:not([data-motion-ready]) .cv2-img--b { display: none; }

@media (max-width: 768px) {
    .cv2-bento {
        height: clamp(360px, 75vw, 480px);
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1.5fr 1fr 1fr;
        gap: .5rem;
    }
    .cv2-cell--0 { grid-column: 1 / span 2; grid-row: 1; }
    .cv2-cell--1 { grid-column: 1; grid-row: 2; }
    .cv2-cell--2 { grid-column: 2; grid-row: 2; display: block; }
    .cv2-cell--3 { grid-column: 1; grid-row: 3; display: block; }
    .cv2-cell--4 { grid-column: 2; grid-row: 3; display: block; }
    .cv2-cell-caption { font-size: .82rem; padding: .55rem .75rem .55rem; }
    .cv2-cell--0 .cv2-cell-caption { font-size: .92rem; padding: .75rem 1rem .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cv2-cell { transition: none; }
    .cv2-img { transition: none !important; }
}
/* ===== END CAROUSEL V2 ===== */

/* =======================================================================
   Admin smooth — toast notifications, loading states, fade-out de ligne,
   progress bar d'upload (utilisé par manage-photos.php).
   ======================================================================= */

/* Toast container fixé en haut à droite */
#adm-toast-container {
    position: fixed;
    top: 1.25rem;
    inset-inline-end: 1.25rem;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    max-width: calc(100vw - 2.5rem);
}
.adm-toast {
    background: #fff;
    border-left: 4px solid var(--primary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    padding: .9rem 1.15rem;
    border-radius: 10px;
    max-width: 380px;
    pointer-events: auto;
    font-size: .92rem;
    color: #1f2933;
    animation: adm-toast-in .25s ease;
    line-height: 1.4;
}
.adm-toast-success { border-left-color: #2da44e; }
.adm-toast-error   { border-left-color: #cf222e; }
.adm-toast-info    { border-left-color: var(--primary); }
.adm-toast.is-leaving { animation: adm-toast-out .22s ease forwards; }
@keyframes adm-toast-in  { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes adm-toast-out { to   { transform: translateX(120%); opacity: 0; } }

/* Loading spinner sur les boutons en attente serveur */
.btn.is-loading {
    opacity: .65;
    cursor: wait;
    position: relative;
    pointer-events: none;
}
.btn.is-loading::after {
    content: '';
    position: absolute;
    right: .5rem;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: adm-btn-spin .65s linear infinite;
}
@keyframes adm-btn-spin { to { transform: rotate(360deg); } }

/* Animation de retrait d'une ligne (delete) */
#adm-photos-tbody tr.is-removing {
    animation: adm-row-fade-out .28s ease forwards;
    pointer-events: none;
}
@keyframes adm-row-fade-out {
    to { opacity: 0; transform: translateX(-24px); }
}
#adm-photos-tbody tr.is-inactive {
    opacity: .55;
}

/* Barre de progression pendant l'upload */
.adm-upload-progress {
    height: 4px;
    background: rgba(63, 111, 119, 0.15);
    border-radius: 999px;
    margin-top: .55rem;
    overflow: hidden;
    display: none;
}
.adm-upload-progress.is-active {
    display: block;
    animation: adm-progress-fade-in .2s ease;
}
.adm-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    width: 0%;
    transition: width .15s linear;
    border-radius: 999px;
}
@keyframes adm-progress-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Vignette manquante dans la liste admin */
.adm-photo-missing {
    width: 90px;
    height: 64px;
    background: #fee;
    border: 1px dashed #c33;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: #c33;
}
