@import url(
    "https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap"
);


/* =========================
   Variables
========================= */

:root {
    --background: #f8f6f2;
    --surface: #ffffff;
    --surface-soft: #f1f3ef;

    --primary: #294f7b;
    --primary-hover: #4d6785;

    --accent: #8ca08f;
    --accent-soft: #dfe6df;

    --warm: #d9c8bc;
    --warm-soft: #f2ebe6;

    --text: #24303a;
    --text-light: #69737c;

    --border: #e2e4e1;

    --shadow-small:
        0 10px 30px rgba(36, 54, 75, 0.06);

    --shadow-large:
        0 24px 65px rgba(36, 54, 75, 0.09);

    --container-width: 1320px;

    --radius-small: 14px;
    --radius-medium: 22px;
    --radius-large: 32px;
}


/* =========================
   Réinitialisation
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--text);
    background-color: var(--background);

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* =========================
   Conteneur
========================= */

.container {
    width: min(
        var(--container-width),
        calc(100% - 40px)
    );

    margin: 0 auto;
}


/* =========================
   Titres
========================= */

h1,
h2 {
    color: var(--primary);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-weight: 700;

    letter-spacing: -0.025em;
}

h1 {
    margin-bottom: 24px;

    font-size:
        clamp(
            3rem,
            6vw,
            5.6rem
        );

    line-height: 1.02;
}

h2 {
    margin-bottom: 24px;

    font-size:
        clamp(
            2.2rem,
            4vw,
            3.8rem
        );

    line-height: 1.1;
}

h3 {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 1.25rem;
    line-height: 1.35;
}


/* =========================
   En-tête
========================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: 100;

    background-color:
        rgba(248, 246, 242, 0.94);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid rgba(226, 228, 225, 0.9);
}




/* Logo */

.logo {
    display: flex;
    align-items: center;

    gap: 13px;
}

.logo-circle {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: white;
    background-color: var(--primary);

    border-radius: 50%;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 1rem;
    font-weight: 700;

    box-shadow:
        0 8px 20px
        rgba(36, 54, 75, 0.14);
}

.logo-text strong,
.logo-text small {
    display: block;
}

.logo-text strong {
    color: var(--primary);

    font-size: 0.95rem;
}

.logo-text small {
    color: var(--text-light);

    font-size: 0.76rem;
}




.appointment-nav-button {
    min-height: 44px;

    padding-inline: 19px;

    font-size: 0.84rem;

    white-space: nowrap;
}

/* =========================
   Boutons
========================= */

.button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 23px;

    border:
        1px solid transparent;

    border-radius: 999px;

    font-size: 0.92rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background-color: var(--primary);

    box-shadow:
        0 10px 24px
        rgba(36, 54, 75, 0.15);
}

.button-primary:hover {
    background-color: var(--primary-hover);

    box-shadow:
        0 14px 32px
        rgba(36, 54, 75, 0.2);
}

.button-secondary {
    color: var(--primary);
    background-color: transparent;

    border-color: var(--primary);
}

.button-secondary:hover {
    color: white;
    background-color: var(--primary);
}


/* =========================
   Label de section
========================= */

.section-label {
    margin-bottom: 15px;

    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


/* =========================
   Hero
========================= */

.hero {
    position: relative;

    overflow: hidden;

    padding:
        105px 0
        90px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(140, 160, 143, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(217, 200, 188, 0.16),
            transparent 30%
        ),
        var(--background);
}

.hero-content {
    display: grid;

    grid-template-columns:
        1.1fr
        0.9fr;

    align-items: center;

    gap: 80px;
}

.hero-text {
    max-width: 760px;
}

.hero-description {
    max-width: 680px;

    margin-bottom: 0;

    color: var(--text-light);

    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;

    margin-top: 34px;
}


/* Carte photo */

.hero-image-card {
    padding: 16px;

    background-color: rgba(255, 255, 255, 0.88);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.photo-placeholder {
    min-height: 460px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background:
        linear-gradient(
            145deg,
            var(--accent-soft),
            var(--warm-soft)
        );

    border-radius: 24px;

    font-size: 0.9rem;
    font-weight: 600;
}

.availability {
    display: flex;
    align-items: center;

    gap: 13px;

    padding:
        18px 8px
        4px;
}

.availability strong,
.availability small {
    display: block;
}

.availability strong {
    color: var(--primary);

    font-size: 0.9rem;
}

.availability small {
    color: var(--text-light);

    font-size: 0.78rem;
}

.status-circle {
    width: 11px;
    height: 11px;

    flex-shrink: 0;

    background-color: var(--accent);

    border-radius: 50%;

    box-shadow:
        0 0 0 6px
        rgba(140, 160, 143, 0.15);
}


/* =========================
   Sections générales
========================= */

.section {
    padding: 95px 0;
}

.section h2 {
    max-width: 820px;
}

.services-preview {
    background-color: var(--surface-soft);
}


/* =========================
   Cartes services
========================= */

.cards-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.service-card {
    min-height: 270px;

    padding: 30px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(140, 160, 143, 0.6);

    box-shadow: var(--shadow-large);
}

.card-number {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 45px;

    color: var(--primary);
    background-color: var(--accent-soft);

    border-radius: 50%;

    font-size: 0.78rem;
    font-weight: 700;
}

.service-card p {
    margin-bottom: 0;

    color: var(--text-light);

    font-size: 0.94rem;
}


/* =========================
   En-têtes de pages
========================= */

.page-header {
    padding:
        100px 0
        75px;

    background:
        linear-gradient(
            135deg,
            var(--warm-soft),
            var(--background)
        );
}

.page-header h1 {
    max-width: 880px;
}

.page-description {
    max-width: 720px;

    margin-bottom: 0;

    color: var(--text-light);

    font-size: 1.08rem;
}


/* =========================
   Page À propos
========================= */

.about-grid {
    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap: 75px;

    align-items: start;
}

.about-photo {
    min-height: 540px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background:
        linear-gradient(
            145deg,
            var(--accent-soft),
            var(--warm-soft)
        );

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);

    font-size: 0.9rem;
    font-weight: 600;
}

.about-content {
    display: grid;

    gap: 18px;
}

.about-block {
    padding: 28px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);
}

.about-block h2 {
    margin-bottom: 12px;

    font-size: 1.8rem;
}

.about-block p {
    margin-bottom: 0;

    color: var(--text-light);
}


/* =========================
   Page services
========================= */

.services-page {
    background-color: var(--background);
}

.services-page .cards-grid {
    grid-template-columns:
        repeat(3, 1fr);
}


/* =========================
   Page contact
========================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap: 60px;

    align-items: start;
}

.contact-information {
    display: grid;

    gap: 16px;
}

.contact-item {
    padding: 24px 26px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);
}

.contact-item small {
    display: block;

    margin-bottom: 7px;

    color: var(--text-light);

    font-size: 0.76rem;
    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.contact-item strong,
.contact-item a {
    color: var(--primary);

    font-size: 0.95rem;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.contact-note {
    padding: 38px;

    color: white;
    background-color: var(--primary);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.contact-note h2 {
    margin-bottom: 18px;

    color: white;

    font-size: 2.4rem;
}

.contact-note p {
    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.8);
}


/* =========================
   Rendez-vous
========================= */

.appointment-section {
    padding: 95px 0;
}

.appointment-layout {
    display: grid;

    grid-template-columns:
        0.75fr
        1.25fr;

    gap: 55px;

    align-items: start;
}

.appointment-explanation {
    padding: 32px;

    background-color: var(--surface-soft);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);
}

.appointment-explanation h2 {
    margin-bottom: 16px;

    font-size: 2.3rem;
}

.appointment-explanation > p:not(.section-label) {
    color: var(--text-light);
}

.appointment-steps {
    display: grid;

    gap: 14px;

    margin-top: 28px;
}

.appointment-step {
    display: flex;
    align-items: center;

    gap: 13px;
}

.appointment-step p {
    margin: 0;

    color: var(--text);
}

.appointment-step span {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: white;
    background-color: var(--primary);

    border-radius: 50%;

    font-size: 0.78rem;
    font-weight: 700;
}


/* Formulaire */

.appointment-form {
    display: grid;

    gap: 22px;

    padding: 36px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.form-group {
    display: grid;

    gap: 8px;
}

.form-group-full {
    grid-column:
        1 / -1;
}

.form-group label {
    color: var(--primary);

    font-size: 0.88rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px 15px;

    color: var(--text);
    background-color: #fbfbfa;

    border:
        1px solid var(--border);

    border-radius: var(--radius-small);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: white;

    border-color: var(--accent);

    box-shadow:
        0 0 0 4px
        rgba(140, 160, 143, 0.13);
}

.form-group textarea {
    min-height: 140px;

    resize: vertical;
}

.form-help {
    margin-bottom: 0;

    color: var(--text-light);

    font-size: 0.78rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;

    gap: 10px;
}

.checkbox-group input {
    width: auto;

    margin-top: 5px;
}

.checkbox-group label {
    color: var(--text-light);

    font-size: 0.86rem;
}


/* =========================
   Footer
========================= */

.site-footer {
    padding: 50px 0;

    background-color: var(--surface);

    border-top:
        1px solid var(--border);
}

.footer-content {
    display: grid;

    grid-template-columns:
        0.8fr
        1.4fr
        auto;

    align-items: start;

    gap: 40px;
}

.footer-content strong {
    color: var(--primary);
}

.footer-content p {
    margin:
        5px 0
        0;

    color: var(--text-light);
}

.emergency-message {
    max-width: 540px;

    font-size: 0.86rem;
}


@media screen and (max-width: 1120px) {

    .menu-button {
        display: block;

        margin-inline-start: auto;
    }

    .main-menu {
        display: none;

        position: absolute;

        top: 72px;
        left: 20px;
        right: 20px;

        padding: 22px;

        flex-direction: column;
        align-items: stretch;

        background-color: var(--surface);

        border: 1px solid var(--border);
        border-radius: var(--radius-medium);

        box-shadow: var(--shadow-large);
    }

    .main-menu.menu-open {
        display: flex;
    }

    .navigation-links,
    .navigation-actions {
        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 5px;
    }

    .navigation-links > a,
    .login-link {
        padding: 10px 8px;
    }

    .language-selector {
        width: fit-content;

        margin: 10px 0;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-dropdown-button {
        width: 100%;

        justify-content: flex-start;

        border-radius: var(--radius-small);
    }

    .user-dropdown-menu {
        position: static;

        width: 100%;

        margin-top: 8px;

        box-shadow: none;
    }

    .appointment-nav-button {
        width: 100%;

        margin-top: 8px;
    }
}
/* =========================
   Responsive mobile
========================= */

@media screen and (max-width: 650px) {

    .container {
        width:
            calc(100% - 24px);
    }

    .navigation {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;
}

    .logo-text small {
        display: none;
    }

    .hero {
        padding:
            70px 0
            60px;
    }

    h1 {
        font-size: 3.15rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .photo-placeholder {
        min-height: 360px;
    }

    .section {
        padding: 70px 0;
    }

    .page-header {
        padding:
            70px 0
            55px;
    }

    .cards-grid,
    .services-page .cards-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .card-number {
        margin-bottom: 32px;
    }

    .about-photo {
        min-height: 380px;
    }

    .appointment-form,
    .appointment-explanation,
    .contact-note {
        padding: 25px;
    }
}

/* =========================
   Messages Flask
========================= */

.flash-container {
    padding-top: 22px;
}

.flash-message {
    padding: 15px 18px;

    border-radius: var(--radius-small);

    font-size: 0.9rem;
    font-weight: 600;
}

.flash-error {
    color: #7b3030;
    background-color: #f8e5e5;

    border:
        1px solid #edcaca;
}

.flash-success {
    color: #315b3e;
    background-color: #e5f2e8;

    border:
        1px solid #cbe2d0;
}
/* =========================
   Confirmation du rendez-vous
========================= */

.confirmation-section {
    min-height: 70vh;

    display: flex;
    align-items: center;

    padding: 100px 0;
}

.confirmation-card {
    max-width: 760px;

    margin: 0 auto;

    padding: 55px;

    text-align: center;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.confirmation-icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin:
        0 auto
        24px;

    color: white;
    background-color: var(--accent);

    border-radius: 50%;

    font-size: 1.8rem;
    font-weight: 700;

    box-shadow:
        0 12px 30px
        rgba(140, 160, 143, 0.25);
}

.confirmation-card h1 {
    max-width: 680px;

    margin:
        0 auto
        22px;

    font-size:
        clamp(
            2.7rem,
            5vw,
            4.6rem
        );
}

.confirmation-card > p:not(.section-label) {
    max-width: 580px;

    margin:
        0 auto;

    color: var(--text-light);
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}

@media screen and (max-width: 650px) {

    .confirmation-section {
        padding: 70px 0;
    }

    .confirmation-card {
        padding:
            40px
            22px;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .button {
        width: 100%;
    }
}
/* =========================
   Connexion administrateur
========================= */

.admin-login-section {
    min-height: 75vh;

    display: flex;
    align-items: center;

    padding: 95px 0;
}

.admin-login-card {
    max-width: 900px;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 50px;

    margin: 0 auto;

    padding: 45px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.admin-login-introduction h1 {
    margin-bottom: 20px;

    font-size:
        clamp(
            2.8rem,
            5vw,
            4.3rem
        );
}

.admin-login-introduction > p:not(.section-label) {
    color: var(--text-light);
}

.admin-login-form {
    display: grid;

    gap: 20px;

    align-content: center;
}


/* =========================
   Tableau de bord
========================= */

.admin-header {
    padding:
        85px 0
        65px;

    background:
        linear-gradient(
            135deg,
            var(--warm-soft),
            var(--background)
        );
}

.admin-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.admin-header h1 {
    margin-bottom: 15px;
}

.admin-section {
    padding: 75px 0 100px;
}

.statistics-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 40px;
}

.statistic-card {
    padding: 25px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);
}

.statistic-card small {
    display: block;

    margin-bottom: 12px;

    color: var(--text-light);

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.statistic-card strong {
    display: block;

    margin-bottom: 6px;

    color: var(--primary);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 2.5rem;
}

.statistic-card p {
    margin: 0;

    color: var(--text-light);

    font-size: 0.85rem;
}


/* Liste des rendez-vous */

.appointments-panel {
    padding: 34px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.appointments-panel-header {
    margin-bottom: 28px;
}

.appointments-panel-header h2 {
    margin-bottom: 0;
}

.appointments-list {
    display: grid;

    gap: 20px;
}

.appointment-admin-card {
    padding: 26px;

    background-color: #fbfbfa;

    border:
        1px solid var(--border);

    border-radius: var(--radius-medium);
}

.appointment-admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.appointment-id {
    display: block;

    margin-bottom: 7px;

    color: var(--text-light);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.appointment-admin-header h3 {
    margin-bottom: 0;

    font-size: 1.45rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    padding: 0 13px;

    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 700;
}

.status-pending {
    color: #7c6220;
    background-color: #f6edcf;
}

.status-confirmed {
    color: #315b3e;
    background-color: #dfeee3;
}

.status-cancelled {
    color: #7b3030;
    background-color: #f4dddd;
}

.appointment-details-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    padding:
        22px 0;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.appointment-details-grid small,
.appointment-message small {
    display: block;

    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 0.73rem;
    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.appointment-details-grid strong,
.appointment-details-grid a {
    color: var(--primary);

    font-size: 0.9rem;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.appointment-message {
    padding:
        20px 0
        5px;
}

.appointment-message p {
    margin-bottom: 0;

    color: var(--text-light);
}

.status-form {
    display: grid;

    grid-template-columns:
        auto
        minmax(160px, 220px)
        auto;

    align-items: center;

    gap: 14px;

    margin-top: 22px;
}

.status-form label {
    color: var(--primary);

    font-size: 0.84rem;
    font-weight: 700;
}

.status-form select {
    width: 100%;

    padding: 12px 14px;

    color: var(--text);
    background-color: white;

    border:
        1px solid var(--border);

    border-radius: var(--radius-small);
}

.empty-state {
    padding: 70px 20px;

    text-align: center;

    background-color: var(--surface-soft);

    border-radius: var(--radius-medium);
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 0;

    color: var(--text-light);
}


/* =========================
   Responsive administrateur
========================= */

@media screen and (max-width: 950px) {

    .admin-login-card {
        grid-template-columns: 1fr;
    }

    .statistics-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .appointment-details-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media screen and (max-width: 650px) {

    .admin-login-section {
        padding: 70px 0;
    }

    .admin-login-card {
        padding: 26px;
    }

    .admin-header-content {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header-content .button {
        width: 100%;
    }

    .statistics-grid,
    .appointment-details-grid {
        grid-template-columns: 1fr;
    }

    .appointments-panel {
        padding: 20px;
    }

    .appointment-admin-card {
        padding: 20px;
    }

    .appointment-admin-header {
        flex-direction: column;
    }

    .status-form {
        grid-template-columns: 1fr;
    }

    .status-form .button {
        width: 100%;
    }
}
.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;

    padding: 4px;

    background-color: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: 999px;
}

.language-selector a {
    min-width: 34px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    color: var(--text-light);

    font-size: 0.72rem;
    font-weight: 700;
}

.language-selector a.active-language {
    color: white;
    background-color: var(--primary);
}

.profile-positions {
    display: grid;
    gap: 12px;

    margin: 28px 0;
    padding: 0;

    list-style: none;
}

.profile-positions li {
    position: relative;

    padding-inline-start: 26px;

    color: var(--text-light);
}

.profile-positions li::before {
    content: "✓";

    position: absolute;
    inset-inline-start: 0;

    color: var(--accent);

    font-weight: 700;
}

.profile-summary {
    padding: 30px 5px;
}

.profile-summary h2 {
    margin-bottom: 14px;

    font-size: 2.2rem;
}

.profile-summary p {
    color: var(--text-light);
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}

.additional-service-item {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 20px;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.additional-service-item span {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: white;
    background-color: var(--accent);

    border-radius: 50%;

    font-size: 0.72rem;
}

.additional-service-item p {
    margin: 0;

    color: var(--text-light);
}

.button-light {
    margin-top: 25px;

    color: var(--primary);
    background-color: white;
}

html[dir="rtl"] body {
    font-family: Arial, Tahoma, sans-serif;
}

html[dir="rtl"] .main-menu > a:not(.button)::after {
    right: 0;
    left: auto;
}

@media screen and (max-width: 650px) {
    .additional-services-grid {
        grid-template-columns: 1fr;
    }

    .language-selector {
        justify-content: center;
    }
}
/* =========================
   Authentification patient
========================= */

.auth-section {
    min-height: 75vh;

    display: flex;
    align-items: center;

    padding: 95px 0;
}

.auth-card {
    max-width: 920px;

    display: grid;
    grid-template-columns:
        1fr
        1fr;

    gap: 55px;

    margin: 0 auto;
    padding: 45px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.auth-introduction {
    padding-right: 10px;
}

.auth-introduction h1 {
    margin-bottom: 20px;

    font-size:
        clamp(
            2.8rem,
            5vw,
            4.2rem
        );
}

.auth-introduction > p:not(.section-label) {
    color: var(--text-light);
}

.auth-form {
    display: grid;

    gap: 19px;

    align-content: center;
}

.auth-link {
    margin: 0;

    color: var(--text-light);

    text-align: center;

    font-size: 0.88rem;
}

.auth-link a {
    color: var(--primary);

    font-weight: 700;
}

/* =========================
   Navigation principale
========================= */

.navigation {
    min-height: 80px;

    display: flex;
    align-items: center;

    gap: 34px;
}

.logo {
    flex-shrink: 0;
}

.main-menu {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.navigation-links,
.navigation-actions {
    display: flex;
    align-items: center;

    white-space: nowrap;
}

.navigation-links {
    gap: 30px;
}

.navigation-actions {
    gap: 14px;
}

.navigation-links > a {
    position: relative;

    color: var(--text);

    font-size: 0.88rem;
    font-weight: 600;

    white-space: nowrap;
}

.navigation-links > a::after {
    content: "";

    position: absolute;

    inset-inline-start: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background-color: var(--primary);

    transition: width 0.2s ease;
}

.navigation-links > a:hover::after {
    width: 100%;
}

.login-link {
    color: var(--primary);

    font-size: 0.86rem;
    font-weight: 700;
}

.appointment-nav-button {
    min-height: 46px;

    padding-inline: 22px;

    font-size: 0.86rem;

    white-space: nowrap;
}


/* Le bouton Menu est caché sur ordinateur */

.menu-button {
    display: none;

    padding: 9px 15px;

    color: var(--primary);
    background-color: transparent;

    border: 1px solid var(--border);
    border-radius: 999px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================
   Sélecteur de langues
========================= */

.language-selector {
    display: flex;
    align-items: center;

    gap: 3px;

    padding: 4px;

    background-color: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: 999px;
}

.language-selector a {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-light);

    border-radius: 50%;

    font-size: 0.7rem;
    font-weight: 700;
}

.language-selector a.active-language {
    color: white;
    background-color: var(--primary);
}


/* =========================
   Menu utilisateur
========================= */

.user-dropdown {
    position: relative;
}

.user-dropdown-button {
    min-height: 46px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 5px 12px 5px 6px;

    color: var(--primary);
    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: 999px;

    cursor: pointer;
}

.user-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: white;
    background-color: var(--primary);

    border-radius: 50%;

    font-size: 0.78rem;
    font-weight: 700;
}

.user-dropdown-name {
    max-width: 115px;

    overflow: hidden;

    font-size: 0.8rem;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    color: var(--text-light);

    font-size: 0.9rem;
}

.user-dropdown-menu {
    display: none;

    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    z-index: 200;

    width: 230px;

    padding: 10px;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-large);
}

html[dir="rtl"] .user-dropdown-menu {
    right: auto;
    left: 0;
}

.user-dropdown-menu.open {
    display: block;
}

.user-dropdown-header {
    padding: 10px 11px 14px;
}

.user-dropdown-header strong,
.user-dropdown-header small {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-header strong {
    color: var(--primary);

    font-size: 0.88rem;
}

.user-dropdown-header small {
    margin-top: 3px;

    color: var(--text-light);

    font-size: 0.72rem;
}

.user-dropdown-menu > a {
    display: block;

    padding: 10px 11px;

    color: var(--text);

    border-radius: 10px;

    font-size: 0.82rem;
    font-weight: 600;
}

.user-dropdown-menu > a:hover {
    background-color: var(--surface-soft);
}

.dropdown-separator {
    height: 1px;

    margin: 7px 4px;

    background-color: var(--border);
}

.user-dropdown-menu .dropdown-logout {
    color: #8b3e3e;
}

@media screen and (max-width: 950px) {

    .auth-card {
        grid-template-columns: 1fr;
    }

    .user-menu {
        justify-content: space-between;

        border-radius: var(--radius-small);
    }
}

@media screen and (max-width: 650px) {

    .auth-section {
        padding: 70px 0;
    }

    .auth-card {
        padding: 25px;
    }

    .auth-form .button {
        width: 100%;
    }
}
/* =========================
   Espace patient
========================= */

.patient-header {
    padding: 85px 0 65px;

    background:
        linear-gradient(
            135deg,
            var(--warm-soft),
            var(--background)
        );
}

.patient-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.patient-header h1 {
    margin-bottom: 15px;
}

.patient-section {
    padding: 75px 0 100px;
}

.patient-panel {
    padding: 34px;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.patient-panel-header {
    margin-bottom: 28px;
}

.patient-panel-header h2 {
    margin-bottom: 0;
}

.patient-appointments-list {
    display: grid;

    gap: 20px;
}

.patient-appointment-card {
    padding: 26px;

    background-color: #fbfbfa;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.patient-appointment-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.patient-appointment-top small {
    display: block;

    margin-bottom: 7px;

    color: var(--text-light);

    font-size: 0.74rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.patient-appointment-top h3 {
    margin-bottom: 0;

    font-size: 1.4rem;
}

.patient-appointment-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    padding: 22px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.patient-appointment-details small,
.patient-appointment-message small {
    display: block;

    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.patient-appointment-details strong {
    color: var(--primary);

    font-size: 0.9rem;

    overflow-wrap: anywhere;
}

.patient-appointment-message {
    padding: 20px 0;
}

.patient-appointment-message p {
    margin-bottom: 0;

    color: var(--text-light);
}

.button-danger {
    color: #7b3030;
    background-color: #f8e5e5;

    border-color: #edcaca;
}

.button-danger:hover {
    color: white;
    background-color: #9c4141;
}

@media screen and (max-width: 950px) {

    .patient-appointment-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 650px) {

    .patient-header-content {
        align-items: stretch;
        flex-direction: column;
    }

    .patient-header-content .button {
        width: 100%;
    }

    .patient-panel {
        padding: 20px;
    }

    .patient-appointment-card {
        padding: 20px;
    }

    .patient-appointment-top {
        flex-direction: column;
    }

    .patient-appointment-details {
        grid-template-columns: 1fr;
    }
}
/* =========================
   Photo de la psychologue
========================= */

.psychologist-photo {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 28px;

    box-shadow: 0 20px 50px rgba(0,0,0,.12);

    transition: transform .35s ease;
}

.psychologist-photo:hover {
    transform: scale(1.02);
}

.hero-image-card {

    overflow: hidden;

    border-radius: 28px;
}

.about-photo {

    overflow: hidden;

    border-radius: 28px;

    box-shadow: 0 15px 45px rgba(0,0,0,.12);
}
/* =========================
   Nouvelle page Contact
========================= */

.contact-page {
    padding-top: 80px;
}

.contact-main-grid {
    display: grid;

    grid-template-columns:
        0.85fr
        1.15fr;

    gap: 45px;

    align-items: start;
}

.contact-information {
    display: grid;

    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    padding: 24px;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);
}

.contact-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: white;
    background-color: var(--primary);

    border-radius: 50%;

    font-size: 1.1rem;
}

.contact-item small {
    display: block;

    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-item strong,
.contact-item a {
    color: var(--primary);

    font-weight: 700;

    overflow-wrap: anywhere;
}

.contact-actions {
    display: grid;

    gap: 11px;

    margin-top: 8px;
}

.contact-action {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 18px;

    border-radius: var(--radius-small);

    font-size: 0.87rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-action:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-small);
}

.contact-action span {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    border-radius: 50%;

    font-weight: 700;
}

.contact-action-whatsapp {
    color: #17683b;
    background-color: #e4f5e9;
}

.contact-action-whatsapp span {
    background-color: #27a85e;
}

.contact-action-email {
    color: #8b5624;
    background-color: #fff0df;
}

.contact-action-email span {
    background-color: #e99338;
}

.contact-action-facebook {
    color: #264e89;
    background-color: #e9eff9;
}

.contact-action-facebook span {
    background-color: #3b5998;
}


/* Carte */

.contact-map-card {
    overflow: hidden;

    padding: 22px;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.contact-map-header h2 {
    margin-bottom: 20px;

    font-size: 2.5rem;
}

.contact-map {
    width: 100%;
    height: 430px;

    display: block;

    border: 0;
    border-radius: var(--radius-medium);
}

.map-button {
    width: 100%;

    margin-top: 17px;
}


/* Réseaux sociaux */

.contact-social-section {
    padding:
        0 0
        95px;
}

.contact-social-card {
    padding: 38px;

    text-align: center;

    background-color: var(--primary);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.contact-social-card h2 {
    margin-bottom: 25px;

    color: white;

    font-size: 2.4rem;
}

.contact-social-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;
}

.social-circle {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    border-radius: 50%;

    font-size: 1.3rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.social-circle:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 28px
        rgba(0, 0, 0, 0.18);
}

.whatsapp-circle {
    background-color: #25d366;
}

.email-circle {
    background-color: #ee973c;
}

.facebook-circle {
    background-color: #4267b2;
}


/* =========================
   Galerie du cabinet
========================= */

.cabinet-gallery-section {
    background-color: var(--surface-soft);
}

.gallery-heading {
    max-width: 780px;

    margin-bottom: 42px;
}

.cabinet-gallery {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-auto-rows: 260px;

    gap: 16px;
}

.gallery-item {
    overflow: hidden;

    margin: 0;

    background-color: var(--surface);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}


/* Responsive */

@media screen and (max-width: 950px) {

    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .cabinet-gallery {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .gallery-item-large {
        grid-column: span 2;
    }
}

@media screen and (max-width: 650px) {

    .contact-map {
        height: 330px;
    }

    .contact-social-card {
        padding:
            32px
            20px;
    }

    .contact-social-card h2 {
        font-size: 2rem;
    }

    .cabinet-gallery {
        grid-template-columns: 1fr;

        grid-auto-rows: 240px;
    }

    .gallery-item-large {
        grid-column: auto;
        grid-row: auto;
    }
}
html[dir="rtl"] .page-header,
html[dir="rtl"] .patient-header,
html[dir="rtl"] .appointment-section,
html[dir="rtl"] .auth-section {
    text-align: right;
}

html[dir="rtl"] .patient-header-content,
html[dir="rtl"] .appointment-layout,
html[dir="rtl"] .auth-card {
    direction: rtl;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] {
    direction: ltr;
    text-align: right;
}

html[dir="rtl"] .confirmation-actions {
    flex-direction: row-reverse;
}
/* =========================
   Page de rendez-vous améliorée
========================= */

.appointment-page-header {
    padding-bottom: 70px;
}

.appointment-section {
    padding:
        78px 0
        105px;
}

.appointment-layout {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.72fr)
        minmax(0, 1.28fr);

    gap: 52px;

    align-items: start;
}

.appointment-explanation {
    position: sticky;
    top: 110px;

    padding: 36px;

    background:
        linear-gradient(
            145deg,
            #eef2ee,
            #f7f5f1
        );

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.appointment-explanation h2 {
    margin-bottom: 18px;

    font-size:
        clamp(
            2.1rem,
            3vw,
            3rem
        );
}

.appointment-explanation-text {
    margin-bottom: 0;

    color: var(--text-light);
}

.appointment-steps {
    display: grid;

    gap: 18px;

    margin-top: 34px;
}

.appointment-step {
    display: grid;
    grid-template-columns:
        38px
        1fr;

    align-items: center;

    gap: 14px;
}

.appointment-step span {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    background-color: var(--primary);

    border-radius: 50%;

    font-size: 0.82rem;
    font-weight: 700;

    box-shadow:
        0 8px 18px
        rgba(36, 54, 75, 0.15);
}

.appointment-step p {
    margin: 0;

    color: var(--text);

    font-size: 0.94rem;
}


/* Carte du formulaire */

.appointment-form {
    display: grid;

    gap: 26px;

    padding: 38px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.appointment-form-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(220px, 0.8fr);

    gap: 30px;

    align-items: end;

    padding-bottom: 26px;

    border-bottom:
        1px solid var(--border);
}

.appointment-form-heading h2 {
    margin-bottom: 0;

    font-size:
        clamp(
            2rem,
            3vw,
            2.9rem
        );
}

.appointment-form-heading > p {
    margin: 0;

    color: var(--text-light);

    font-size: 0.9rem;
}


/* Champs */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.form-group {
    display: grid;

    gap: 9px;
}

.form-group-full {
    grid-column:
        1 / -1;
}

.form-group label {
    color: var(--primary);

    font-size: 0.86rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 15px 16px;

    color: var(--text);
    background-color: #fcfbfa;

    border:
        1px solid var(--border);

    border-radius: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input,
.form-group select {
    min-height: 54px;
}

.form-group textarea {
    min-height: 150px;

    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: white;

    border-color: var(--accent);

    box-shadow:
        0 0 0 4px
        rgba(140, 160, 143, 0.13);
}

.form-group select:disabled {
    color: var(--text-light);

    background-color: #f2f3f1;

    cursor: not-allowed;
}

.form-help {
    margin: 0;

    color: var(--text-light);

    font-size: 0.76rem;
}

.slots-message {
    min-height: 19px;
}

.textarea-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

#message-counter {
    color: var(--text-light);

    font-size: 0.76rem;
}


/* Consentement */

.appointment-consent-box {
    display: grid;

    grid-template-columns:
        auto
        1fr;

    gap: 12px;

    align-items: flex-start;

    padding: 17px 18px;

    background-color: var(--surface-soft);

    border:
        1px solid var(--border);

    border-radius: var(--radius-small);
}

.appointment-consent-box input {
    width: 17px;
    height: 17px;

    margin-top: 3px;

    accent-color: var(--primary);
}

.appointment-consent-box label {
    color: var(--text-light);

    font-size: 0.84rem;
}

.appointment-submit-button {
    width: 100%;

    min-height: 54px;
}


/* RTL */

html[dir="rtl"] .appointment-form-heading,
html[dir="rtl"] .appointment-step,
html[dir="rtl"] .appointment-consent-box {
    direction: rtl;
}

html[dir="rtl"] .textarea-help-row {
    flex-direction: row-reverse;
}


/* Responsive */

@media screen and (max-width: 950px) {

    .appointment-layout {
        grid-template-columns: 1fr;
    }

    .appointment-explanation {
        position: static;
    }

    .appointment-form-heading {
        grid-template-columns: 1fr;

        gap: 12px;
    }
}

@media screen and (max-width: 650px) {

    .appointment-section {
        padding:
            58px 0
            75px;
    }

    .appointment-explanation,
    .appointment-form {
        padding: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .textarea-help-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================
   Expérience administrateur
========================= */

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 32px;
}

.statistic-card {
    position: relative;

    overflow: hidden;

    padding: 25px;

    color: inherit;
    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.statistic-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-large);
}

.statistic-card::before {
    content: "";

    position: absolute;

    inset-inline-start: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background-color: var(--primary);
}

.statistic-pending::before {
    background-color: #c49a3a;
}

.statistic-confirmed::before {
    background-color: #5f9670;
}

.statistic-cancelled::before {
    background-color: #b56565;
}

.statistic-card small {
    display: block;

    margin-bottom: 11px;

    color: var(--text-light);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.statistic-card strong {
    display: block;

    margin-bottom: 5px;

    color: var(--primary);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 2.8rem;
}

.statistic-card p {
    margin: 0;

    color: var(--text-light);

    font-size: 0.82rem;
}


.admin-dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(270px, 0.55fr)
        minmax(0, 1.45fr);

    gap: 28px;

    align-items: start;
}


.today-panel,
.appointments-panel {
    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.today-panel {
    position: sticky;
    top: 105px;

    padding: 27px;
}

.panel-heading,
.appointments-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.panel-heading h2,
.appointments-panel-header h2 {
    margin-bottom: 0;

    font-size: 2rem;
}

.today-count,
.results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    min-height: 34px;

    padding: 0 10px;

    color: white;
    background-color: var(--primary);

    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 700;
}

.results-count {
    color: var(--primary);
    background-color: var(--surface-soft);
}


.today-list {
    display: grid;

    gap: 10px;

    margin-top: 24px;
}

.today-appointment {
    display: grid;
    grid-template-columns:
        58px
        1fr
        auto;

    align-items: center;

    gap: 12px;

    padding: 14px;

    background-color: #fafaf8;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.today-appointment time {
    color: var(--primary);

    font-size: 0.88rem;
    font-weight: 800;
}

.today-appointment strong,
.today-appointment small {
    display: block;
}

.today-appointment strong {
    color: var(--primary);

    font-size: 0.84rem;
}

.today-appointment small {
    margin-top: 2px;

    color: var(--text-light);

    font-size: 0.7rem;
}

.status-dot-admin {
    width: 9px;
    height: 9px;

    border-radius: 50%;
}

.status-dot-confirmed {
    background-color: #5f9670;
}

.status-dot-pending {
    background-color: #c49a3a;
}

.today-empty {
    margin-top: 24px;

    padding: 30px 15px;

    color: var(--text-light);
    background-color: var(--surface-soft);

    border-radius: var(--radius-small);

    text-align: center;
}


.appointments-panel {
    padding: 30px;
}

/* =========================
   Filtres administrateur
========================= */

.admin-filters {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(150px, 0.75fr)
        minmax(180px, 0.9fr);

    gap: 16px;

    margin:
        26px 0
        28px;

    padding: 20px;

    background-color: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.admin-search-group,
.admin-filter-group {
    min-width: 0;

    display: grid;

    gap: 7px;
}

.admin-filters label {
    color: var(--primary);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-filters input,
.admin-filters select {
    width: 100%;
    min-width: 0;
    min-height: 48px;

    padding: 11px 13px;

    color: var(--text);
    background-color: white;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-filter-actions {
    grid-column:
        1 / -1;

    display: flex;
    justify-content: flex-end;

    gap: 12px;

    padding-top: 2px;
}

.admin-filter-actions .button {
    min-width: 130px;
}


.appointments-list {
    display: grid;

    gap: 16px;
}

.appointment-admin-card {
    padding: 24px;

    background-color: #fcfbfa;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.appointment-admin-card:hover {
    border-color:
        rgba(140, 160, 143, 0.55);

    box-shadow: var(--shadow-small);
}

.appointment-main-info {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin:
        9px 0
        0;
}

.appointment-main-info span {
    display: inline-flex;

    padding: 5px 9px;

    color: var(--text-light);
    background-color: var(--surface-soft);

    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 600;
}


.appointment-message-details {
    margin-top: 17px;

    padding: 13px 15px;

    background-color: var(--surface-soft);

    border-radius: var(--radius-small);
}

.appointment-message-details summary {
    color: var(--primary);

    font-size: 0.8rem;
    font-weight: 700;

    cursor: pointer;
}

.appointment-message-details p {
    margin:
        12px 0
        0;

    color: var(--text-light);

    font-size: 0.88rem;
}


.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;
}

.admin-quick-actions form {
    margin: 0;
}

.quick-action {
    min-height: 38px;

    padding: 0 14px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-1px);
}

.quick-action-confirm {
    color: #315b3e;
    background-color: #e2f1e6;

    border-color: #c5dfcc;
}

.quick-action-pending {
    color: #7c6220;
    background-color: #f6edcf;

    border-color: #eadcaa;
}

.quick-action-cancel {
    color: #7b3030;
    background-color: #f6e1e1;

    border-color: #ebcaca;
}


@media screen and (max-width: 1150px) {

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .today-panel {
        position: static;
    }

    .admin-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-search-group {
        grid-column:
            1 / -1;
    }
}

@media screen and (max-width: 750px) {

    .statistics-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-search-group {
        grid-column: auto;
    }

    .admin-filters .button {
        width: 100%;
    }

    .appointments-panel {
        padding: 20px;
    }
}

@media screen and (max-width: 500px) {

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .appointment-admin-header {
        flex-direction: column;
    }

    .admin-quick-actions {
        display: grid;
    }

    .admin-quick-actions form,
    .quick-action {
        width: 100%;
    }
}
@media screen and (max-width: 1050px) {

    .admin-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-search-group {
        grid-column:
            1 / -1;
    }
}

@media screen and (max-width: 650px) {

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-search-group {
        grid-column: auto;
    }

    .admin-filter-actions {
        grid-column: auto;

        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-filter-actions .button {
        width: 100%;
    }
}
/* =========================================================
   Navigation administrateur
========================================================= */

.admin-site-header {
    position: sticky;
    top: 0;

    z-index: 150;

    background-color:
        rgba(248, 246, 242, 0.96);

    backdrop-filter: blur(16px);

    border-bottom:
        1px solid var(--border);
}

.admin-navigation {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.admin-brand {
    display: flex;
    align-items: center;

    gap: 13px;

    flex-shrink: 0;
}

.admin-brand-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    background-color: var(--primary);

    border-radius: 14px;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-weight: 700;

    box-shadow:
        0 8px 22px
        rgba(36, 54, 75, 0.16);
}

.admin-brand-text strong,
.admin-brand-text small {
    display: block;
}

.admin-brand-text strong {
    color: var(--primary);

    font-size: 0.92rem;
}

.admin-brand-text small {
    color: var(--text-light);

    font-size: 0.72rem;
}

.admin-navigation-actions {
    display: flex;
    align-items: center;

    gap: 18px;
}

.admin-navigation-link {
    color: var(--primary);

    font-size: 0.84rem;
    font-weight: 700;
}

.admin-navigation-link:hover {
    text-decoration: underline;
}

.admin-connected-account {
    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        5px
        13px
        5px
        6px;

    background-color: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 999px;
}

.admin-account-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    background-color: var(--primary);

    border-radius: 50%;

    font-size: 0.78rem;
    font-weight: 700;
}

.admin-account-information strong,
.admin-account-information small {
    display: block;
}

.admin-account-information strong {
    color: var(--primary);

    font-size: 0.76rem;
}

.admin-account-information small {
    max-width: 170px;

    overflow: hidden;

    color: var(--text-light);

    font-size: 0.68rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   Footer administrateur
========================================================= */

.admin-site-footer {
    padding: 34px 0;

    background-color: var(--surface);

    border-top:
        1px solid var(--border);
}

.admin-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.admin-footer-content strong {
    color: var(--primary);
}

.admin-footer-content p {
    margin:
        4px 0
        0;

    color: var(--text-light);

    font-size: 0.82rem;
}

.admin-footer-content small {
    color: var(--text-light);
}


/* =========================================================
   Lien d'inscription
========================================================= */

.signup-link {
    color: var(--primary);

    font-size: 0.84rem;
    font-weight: 700;
}


/* =========================================================
   Responsive admin
========================================================= */

@media screen and (max-width: 850px) {

    .admin-navigation {
        align-items: flex-start;
        flex-direction: column;

        padding:
            15px 0;
    }

    .admin-navigation-actions {
        width: 100%;

        align-items: stretch;
        flex-direction: column;
    }

    .admin-connected-account {
        width: 100%;

        border-radius: var(--radius-small);
    }

    .admin-navigation-actions .button {
        width: 100%;
    }

    .admin-footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}