/*
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;
    }
}
