@import url(
    "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap"
);


/* =========================================================
   NOUVELLE IDENTITÉ VISUELLE
========================================================= */

:root {
    --background: #f8f5f0;
    --background-deep: #f0ebe4;

    --surface: #ffffff;
    --surface-soft: #f2eee8;
    --surface-sage: #e8eee9;

    --primary: #49364c;
    --primary-dark: #332438;
    --primary-soft: #ece5ed;

    --sage: #99aa9d;
    --sage-dark: #6e8374;

    --terracotta: #c8876f;
    --terracotta-soft: #f2ded5;

    --text: #29262c;
    --text-light: #716b73;
    --text-faint: #938d94;

    --border: rgba(73, 54, 76, 0.12);
    --border-strong: rgba(73, 54, 76, 0.2);

    --shadow-small:
        0 14px 35px rgba(57, 40, 58, 0.07);

    --shadow-medium:
        0 25px 60px rgba(57, 40, 58, 0.1);

    --shadow-large:
        0 35px 90px rgba(57, 40, 58, 0.14);

    --radius-small: 14px;
    --radius-medium: 24px;
    --radius-large: 38px;

    --container-width: 1240px;
}


/* =========================================================
   BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--text);
    background-color: var(--background);

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

body::selection {
    color: white;
    background-color: var(--primary);
}

h1,
h2 {
    color: var(--primary);

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-weight: 400;

    letter-spacing: -0.025em;
}

h3,
h4,
button,
input,
select,
textarea {
    font-family:
        "DM Sans",
        Arial,
        sans-serif;
}

h1 {
    font-size:
        clamp(
            3.6rem,
            7vw,
            7.6rem
        );

    line-height: 0.97;
}

h2 {
    font-size:
        clamp(
            2.5rem,
            4.5vw,
            4.7rem
        );

    line-height: 1.05;
}

h3 {
    color: var(--primary);

    font-size: 1.25rem;
    line-height: 1.35;
}

.container {
    width: min(
        var(--container-width),
        calc(100% - 48px)
    );

    margin-inline: auto;
}


/* =========================================================
   NAVIGATION PUBLIQUE
========================================================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: 150;

    background-color:
        rgba(248, 245, 240, 0.88);

    backdrop-filter: blur(20px);

    border-bottom:
        1px solid rgba(73, 54, 76, 0.08);
}

.navigation {
    min-height: 84px;

    display: flex;
    align-items: center;

    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;

    gap: 13px;

    flex-shrink: 0;
}

.logo-circle {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    color: white;
    background-color: var(--primary);

    border-radius: 50%;

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size: 1.02rem;

    box-shadow:
        0 12px 30px
        rgba(73, 54, 76, 0.22);
}

.logo-text strong,
.logo-text small {
    display: block;
}

.logo-text strong {
    color: var(--primary);

    font-size: 0.92rem;
}

.logo-text small {
    color: var(--text-light);

    font-size: 0.72rem;
}

.main-menu {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.navigation-links,
.navigation-actions {
    display: flex;
    align-items: center;

    white-space: nowrap;
}

.navigation-links {
    gap: 30px;
}

.navigation-actions {
    gap: 12px;
}

.navigation-links > a {
    position: relative;

    color: var(--text);

    font-size: 0.84rem;
    font-weight: 600;
}

.navigation-links > a::after {
    content: "";

    position: absolute;

    inset-inline-start: 0;
    bottom: -9px;

    width: 0;
    height: 2px;

    background-color: var(--terracotta);

    transition: width 0.25s ease;
}

.navigation-links > a:hover::after {
    width: 100%;
}

.menu-button {
    display: none;
}


/* =========================================================
   BOUTONS
========================================================= */

.button {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding-inline: 24px;

    border:
        1px solid transparent;

    border-radius: 999px;

    font-size: 0.88rem;
    font-weight: 700;

    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background-color: var(--primary);

    box-shadow:
        0 15px 35px
        rgba(73, 54, 76, 0.2);
}

.button-primary:hover {
    background-color: var(--primary-dark);

    box-shadow:
        0 20px 45px
        rgba(73, 54, 76, 0.28);
}

.button-secondary {
    color: var(--primary);
    background-color: transparent;

    border-color: var(--border-strong);
}

.button-secondary:hover {
    background-color: var(--surface);

    border-color: var(--primary);
}

.button-light {
    color: var(--primary);
    background-color: white;
}


/* =========================================================
   LANGUES
========================================================= */

.language-selector {
    display: flex;
    align-items: center;

    gap: 2px;

    padding: 4px;

    background-color: rgba(255, 255, 255, 0.7);

    border: 1px solid var(--border);
    border-radius: 999px;
}

.language-selector a {
    width: 33px;
    height: 33px;

    display: grid;
    place-items: center;

    color: var(--text-light);

    border-radius: 50%;

    font-size: 0.68rem;
    font-weight: 700;
}

.language-selector a.active-language {
    color: white;
    background-color: var(--primary);
}


/* =========================================================
   COMPTE PATIENT
========================================================= */

.user-dropdown {
    position: relative;
}

.user-dropdown-button {
    min-height: 46px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding:
        5px
        12px
        5px
        6px;

    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.75);

    border: 1px solid var(--border);
    border-radius: 999px;

    cursor: pointer;
}

.user-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    color: white;
    background-color: var(--terracotta);

    border-radius: 50%;

    font-size: 0.78rem;
    font-weight: 700;
}

.user-dropdown-name {
    max-width: 110px;

    overflow: hidden;

    font-size: 0.78rem;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    display: none;

    position: absolute;

    top: calc(100% + 13px);
    inset-inline-end: 0;

    z-index: 300;

    width: 235px;

    padding: 10px;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-large);
}

.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.86rem;
}

.user-dropdown-header small {
    color: var(--text-light);

    font-size: 0.7rem;
}

.user-dropdown-menu > a {
    display: block;

    padding: 10px 11px;

    color: var(--text);

    border-radius: 11px;

    font-size: 0.8rem;
    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: #934b4b;
}

.login-link,
.signup-link {
    color: var(--primary);

    font-size: 0.82rem;
    font-weight: 700;
}


/* =========================================================
   LABELS DE SECTION
========================================================= */

.section-label {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 17px;

    color: var(--terracotta);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-label::before {
    content: "";

    width: 30px;
    height: 1px;

    background-color: currentColor;
}


/* =========================================================
   HERO PREMIUM
========================================================= */

.premium-hero {
    position: relative;

    overflow: hidden;

    min-height: calc(100vh - 84px);

    display: flex;
    align-items: center;

    padding:
        80px 0
        95px;

    background:
        radial-gradient(
            circle at 5% 15%,
            rgba(200, 135, 111, 0.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 18%,
            rgba(153, 170, 157, 0.22),
            transparent 31%
        ),
        var(--background);
}

.premium-hero::before {
    content: "";

    position: absolute;

    width: 410px;
    height: 410px;

    inset-inline-end: -180px;
    bottom: -200px;

    border:
        1px solid
        rgba(73, 54, 76, 0.12);

    border-radius: 50%;
}

.premium-hero-grid {
    position: relative;

    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(390px, 0.92fr);

    align-items: center;

    gap: 85px;
}

.hero-copy h1 {
    max-width: 820px;

    margin:
        0 0
        28px;
}

.hero-copy h1 span {
    display: block;
}

.hero-copy h1 .hero-accent-word {
    color: var(--terracotta);
}

.hero-copy-description {
    max-width: 690px;

    margin: 0;

    color: var(--text-light);

    font-size: 1.12rem;
}

.hero-audiences {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 26px;
}

.hero-audiences span {
    display: inline-flex;

    padding:
        7px
        12px;

    color: var(--primary);
    background-color:
        rgba(255, 255, 255, 0.72);

    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;

    margin-top: 34px;
}


/* Portrait */

.hero-portrait-wrapper {
    position: relative;

    max-width: 510px;

    margin-inline-start: auto;
}

.hero-portrait-shape {
    position: absolute;

    inset: 35px -25px -28px 35px;

    background-color: var(--sage);

    border-radius:
        48% 52% 44% 56%
        / 39% 43% 57% 61%;

    opacity: 0.34;
}

.hero-portrait {
    position: relative;

    z-index: 2;

    overflow: hidden;

    aspect-ratio: 0.82;

    background-color: var(--surface-sage);

    border:
        9px solid
        rgba(255, 255, 255, 0.82);

    border-radius:
        48% 52% 42% 58%
        / 35% 42% 58% 65%;

    box-shadow: var(--shadow-large);
}

.hero-portrait img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

.hero-profile-card {
    position: absolute;

    z-index: 4;

    inset-inline-start: -48px;
    bottom: 42px;

    width: min(280px, 75%);

    padding: 19px;

    background-color:
        rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(14px);

    border:
        1px solid
        rgba(255, 255, 255, 0.7);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-medium);
}

.hero-profile-card strong,
.hero-profile-card span,
.hero-profile-card small {
    display: block;
}

.hero-profile-card strong {
    color: var(--primary);

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size: 1.35rem;
    font-weight: 400;
}

.hero-profile-card span {
    color: var(--text);

    font-size: 0.8rem;
    font-weight: 600;
}

.hero-profile-card small {
    margin-top: 6px;

    color: var(--text-light);

    font-size: 0.72rem;
}

.hero-profile-status {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 13px;

    color: var(--sage-dark);

    font-size: 0.72rem;
    font-weight: 700;
}

.hero-profile-status::before {
    content: "";

    width: 8px;
    height: 8px;

    background-color: var(--sage-dark);

    border-radius: 50%;

    box-shadow:
        0 0 0 5px
        rgba(110, 131, 116, 0.13);
}


/* =========================================================
   BANDE DE CONFIANCE
========================================================= */

.trust-strip {
    position: relative;

    z-index: 4;

    margin-top: -42px;
}

.trust-strip-inner {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    overflow: hidden;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-medium);
}

.trust-item {
    padding: 25px;

    border-inline-end:
        1px solid var(--border);
}

.trust-item:last-child {
    border-inline-end: 0;
}

.trust-item strong,
.trust-item span {
    display: block;
}

.trust-item strong {
    color: var(--primary);

    font-size: 0.9rem;
}

.trust-item span {
    margin-top: 4px;

    color: var(--text-light);

    font-size: 0.76rem;
}


/* =========================================================
   SECTIONS
========================================================= */

.premium-section {
    padding:
        115px 0;
}

.section-introduction {
    max-width: 820px;

    margin-bottom: 54px;
}

.section-introduction h2 {
    margin:
        0 0
        20px;
}

.section-introduction p {
    max-width: 700px;

    margin: 0;

    color: var(--text-light);

    font-size: 1.02rem;
}


/* =========================================================
   PUBLICS ACCOMPAGNÉS
========================================================= */

.audience-section {
    background-color: var(--surface);
}

.audience-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.audience-card {
    position: relative;

    overflow: hidden;

    min-height: 440px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 32px;

    color: white;

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow-large);
}

.audience-card::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to top,
            rgba(45, 29, 47, 0.88),
            rgba(45, 29, 47, 0.08)
        );
}

.audience-card-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.audience-card:hover .audience-card-bg {
    transform: scale(1.04);
}

.audience-card-content {
    position: relative;

    z-index: 2;
}

.audience-number {
    display: inline-flex;

    margin-bottom: 22px;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 0.74rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.audience-card h3 {
    margin:
        0 0
        12px;

    color: white;

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size: 2.2rem;
    font-weight: 400;
}

.audience-card p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 0.9rem;
}


/* =========================================================
   APPROCHE
========================================================= */

.approach-section {
    background-color: var(--background);
}

.approach-grid {
    display: grid;
    grid-template-columns:
        0.9fr
        1.1fr;

    align-items: center;

    gap: 80px;
}

.approach-visual {
    position: relative;

    min-height: 600px;
}

.approach-image-primary {
    position: absolute;

    inset-inline-start: 0;
    top: 0;

    width: 78%;
    height: 78%;

    overflow: hidden;

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.approach-image-primary img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.approach-image-secondary {
    position: absolute;

    inset-inline-end: 0;
    bottom: 0;

    width: 52%;
    height: 45%;

    overflow: hidden;

    border:
        8px solid var(--background);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-medium);
}

.approach-image-secondary img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.approach-content h2 {
    margin:
        0 0
        22px;
}

.approach-content > p {
    color: var(--text-light);
}

.approach-points {
    display: grid;

    gap: 16px;

    margin-top: 32px;
}

.approach-point {
    display: grid;
    grid-template-columns:
        48px
        1fr;

    gap: 16px;

    align-items: flex-start;

    padding:
        18px 0;

    border-bottom:
        1px solid var(--border);
}

.approach-point:last-child {
    border-bottom: 0;
}

.approach-point-number {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    color: var(--primary);
    background-color: var(--primary-soft);

    border-radius: 50%;

    font-size: 0.78rem;
    font-weight: 700;
}

.approach-point h3 {
    margin:
        0 0
        6px;
}

.approach-point p {
    margin: 0;

    color: var(--text-light);

    font-size: 0.88rem;
}


/* =========================================================
   EXPERTISE
========================================================= */

.expertise-section {
    color: white;
    background-color: var(--primary);
}

.expertise-section .section-label {
    color: var(--terracotta);
}

.expertise-section h2 {
    color: white;
}

.expertise-section .section-introduction p {
    color:
        rgba(255, 255, 255, 0.68);
}

.expertise-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.expertise-card {
    min-height: 250px;

    padding: 28px;

    background-color:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: var(--radius-medium);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);

    background-color:
        rgba(255, 255, 255, 0.1);
}

.expertise-card-number {
    display: inline-flex;

    margin-bottom: 44px;

    color: var(--terracotta);

    font-size: 0.76rem;
    font-weight: 700;
}

.expertise-card h3 {
    margin:
        0 0
        12px;

    color: white;

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size: 1.65rem;
    font-weight: 400;
}

.expertise-card p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.66);

    font-size: 0.88rem;
}


/* =========================================================
   DÉROULEMENT
========================================================= */

.process-section {
    background-color: var(--surface);
}

.process-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 0;
}

.process-step {
    position: relative;

    padding:
        30px
        28px;

    border-inline-end:
        1px solid var(--border);
}

.process-step:last-child {
    border-inline-end: 0;
}

.process-number {
    display: inline-flex;

    margin-bottom: 45px;

    color: var(--terracotta);

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size: 2.5rem;
}

.process-step h3 {
    margin:
        0 0
        10px;

    font-size: 1.05rem;
}

.process-step p {
    margin: 0;

    color: var(--text-light);

    font-size: 0.84rem;
}


/* =========================================================
   GALERIE CABINET
========================================================= */

.cabinet-preview-section {
    background-color: var(--background-deep);
}

.cabinet-preview-grid {
    display: grid;
    grid-template-columns:
        1.25fr
        0.75fr;

    grid-template-rows:
        repeat(2, 280px);

    gap: 16px;
}

.cabinet-preview-item {
    overflow: hidden;

    margin: 0;

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);
}

.cabinet-preview-main {
    grid-row:
        1 / 3;
}

.cabinet-preview-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.cabinet-preview-item:hover img {
    transform: scale(1.035);
}


/* =========================================================
   CTA FINAL
========================================================= */

.final-cta-section {
    padding:
        105px 0;
}

.final-cta {
    position: relative;

    overflow: hidden;

    display: grid;
    grid-template-columns:
        1fr
        auto;

    align-items: center;

    gap: 50px;

    padding:
        55px
        60px;

    color: white;
    background-color: var(--primary);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.final-cta::before {
    content: "";

    position: absolute;

    width: 310px;
    height: 310px;

    inset-inline-end: -120px;
    top: -140px;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 50%;
}

.final-cta-content {
    position: relative;

    z-index: 2;
}

.final-cta h2 {
    max-width: 760px;

    margin:
        0 0
        16px;

    color: white;
}

.final-cta p {
    max-width: 700px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.7);
}

.final-cta-action {
    position: relative;

    z-index: 2;
}


/* =========================================================
   PAGE HEADER AUTRES PAGES
========================================================= */

.page-header,
.patient-header,
.admin-header {
    position: relative;

    overflow: hidden;

    padding:
        105px 0
        75px;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(153, 170, 157, 0.21),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            var(--background),
            var(--background-deep)
        );
}

.page-header h1,
.patient-header h1,
.admin-header h1 {
    max-width: 930px;

    margin:
        0 0
        22px;

    font-size:
        clamp(
            3.2rem,
            6vw,
            6rem
        );
}

.page-description {
    max-width: 760px;

    color: var(--text-light);

    font-size: 1.04rem;
}


/* =========================================================
   FORMULAIRES, AUTH, PATIENT ET ADMIN
========================================================= */

.appointment-form,
.auth-card,
.patient-panel,
.appointments-panel,
.today-panel,
.admin-login-card,
.contact-map-card,
.contact-item {
    background-color: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-small);
}

.form-group input,
.form-group select,
.form-group textarea,
.admin-filters input,
.admin-filters select {
    color: var(--text);
    background-color: #fcfaf8;

    border:
        1px solid var(--border);

    border-radius: var(--radius-small);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.admin-filters input:focus,
.admin-filters select:focus {
    border-color: var(--sage-dark);

    box-shadow:
        0 0 0 4px
        rgba(110, 131, 116, 0.12);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding:
        58px 0;

    background-color: #2e2231;

    border-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns:
        0.8fr
        1.4fr
        auto;

    gap: 40px;

    align-items: start;
}

.footer-content strong {
    color: white;
}

.footer-content p,
.footer-content small {
    color:
        rgba(255, 255, 255, 0.58);
}


/* =========================================================
   RTL
========================================================= */

html[dir="rtl"] body {
    font-family:
        "DM Sans",
        Tahoma,
        Arial,
        sans-serif;
}

html[dir="rtl"] .section-label {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-introduction,
html[dir="rtl"] .approach-content {
    text-align: right;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media screen and (max-width: 1120px) {

    .menu-button {
        display: inline-flex;

        margin-inline-start: auto;

        padding:
            9px
            15px;

        color: var(--primary);
        background-color: transparent;

        border:
            1px solid var(--border);

        border-radius: 999px;

        font-weight: 700;
    }

    .main-menu {
        display: none;

        position: absolute;

        top: 74px;
        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: 6px;
    }

    .navigation-links > a,
    .login-link,
    .signup-link {
        padding:
            10px
            7px;
    }

    .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;
    }

    .premium-hero-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 850px;
    }

    .hero-portrait-wrapper {
        width: min(520px, 100%);

        margin:
            20px auto
            0;
    }

    .audience-grid,
    .expertise-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .approach-visual {
        width: min(650px, 100%);

        margin-inline: auto;
    }
}


@media screen and (max-width: 800px) {

    .container {
        width:
            calc(100% - 28px);
    }

    .premium-hero {
        min-height: auto;

        padding:
            70px 0
            100px;
    }

    .premium-hero-grid {
        gap: 58px;
    }

    .hero-profile-card {
        inset-inline-start: 10px;
        bottom: 20px;
    }

    .trust-strip {
        margin-top: -55px;
    }

    .trust-strip-inner {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-inline-end: 0;
    }

    .trust-item:nth-child(-n + 2) {
        border-bottom:
            1px solid var(--border);
    }

    .premium-section {
        padding:
            82px 0;
    }

    .audience-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .audience-card {
        min-height: 400px;
    }

    .process-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .process-step:nth-child(2) {
        border-inline-end: 0;
    }

    .process-step:nth-child(-n + 2) {
        border-bottom:
            1px solid var(--border);
    }

    .cabinet-preview-grid {
        grid-template-columns: 1fr;
        grid-template-rows:
            repeat(3, 260px);
    }

    .cabinet-preview-main {
        grid-row: auto;
    }

    .final-cta {
        grid-template-columns: 1fr;

        padding:
            42px
            30px;
    }

    .final-cta-action .button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}


@media screen and (max-width: 520px) {

    h1 {
        font-size: 3.6rem;
    }

    .logo-text small {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-portrait {
        aspect-ratio: 0.78;
    }

    .hero-profile-card {
        width:
            calc(100% - 20px);
    }

    .trust-strip-inner {
        grid-template-columns: 1fr;
    }

    .trust-item,
    .trust-item:nth-child(2) {
        border-inline-end: 0;

        border-bottom:
            1px solid var(--border);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step,
    .process-step:nth-child(2) {
        border-inline-end: 0;

        border-bottom:
            1px solid var(--border);
    }

    .process-step:last-child {
        border-bottom: 0;
    }

    .approach-visual {
        min-height: 480px;
    }
}
/* =========================================================
   VIDÉOS FACEBOOK
========================================================= */

.videos-section {
    position: relative;

    overflow: hidden;

    background-color: var(--surface);
}

.videos-section::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    inset-inline-start: -220px;
    top: 80px;

    background-color:
        rgba(153, 170, 157, 0.14);

    border-radius: 50%;

    filter: blur(4px);
}

.videos-introduction {
    position: relative;

    z-index: 2;
}

.facebook-videos-grid {
    position: relative;

    z-index: 2;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 26px;
}

.facebook-video-card {
    overflow: hidden;

    background-color: var(--background);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.facebook-video-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-large);
}

.facebook-video-frame {
    position: relative;

    overflow: hidden;

    width: 100%;
    aspect-ratio: 16 / 10;

    background:
        linear-gradient(
            145deg,
            var(--primary-soft),
            var(--surface-sage)
        );
}

.facebook-video-frame iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

.facebook-reel-frame {
    aspect-ratio: 16 / 10;
}

.facebook-video-content {
    position: relative;

    padding:
        30px
        32px
        34px;
}

.facebook-video-index {
    display: inline-flex;

    margin-bottom: 24px;

    color: var(--terracotta);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.facebook-video-content h3 {
    margin:
        0 0
        12px;

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size: 1.8rem;
    font-weight: 400;
}

.facebook-video-content p {
    min-height: 58px;

    margin:
        0 0
        24px;

    color: var(--text-light);

    font-size: 0.9rem;
}

.facebook-video-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 0.82rem;
    font-weight: 700;
}

.facebook-video-link span {
    transition: transform 0.2s ease;
}

.facebook-video-link:hover span {
    transform:
        translateX(3px)
        translateY(-3px);
}

html[dir="rtl"] .facebook-video-link:hover span {
    transform:
        translateX(-3px)
        translateY(-3px);
}

@media screen and (max-width: 900px) {

    .facebook-videos-grid {
        grid-template-columns: 1fr;
    }

    .facebook-video-content p {
        min-height: auto;
    }
}

@media screen and (max-width: 520px) {

    .facebook-video-frame,
    .facebook-reel-frame {
        aspect-ratio: 4 / 3;
    }

    .facebook-video-content {
        padding:
            25px
            22px
            28px;
    }
}
.notification-dropdown{

position:relative;

}

.notification-button{

background:white;

border:none;

cursor:pointer;

font-size:22px;

position:relative;

padding:8px;

border-radius:12px;

transition:.3s;

}

.notification-button:hover{

background:#f5f5f5;

}

.notification-count{

position:absolute;

top:-5px;

right:-5px;

background:#ff4d4f;

color:white;

width:20px;

height:20px;

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

font-size:11px;

font-weight:bold;

}

.notification-menu{

position:absolute;

top:55px;

right:0;

width:340px;

background:white;

border-radius:18px;

box-shadow:0 20px 50px rgba(0,0,0,.15);

display:none;

overflow:hidden;

z-index:9999;

}

.notification-menu.open{

display:block;

}

.notification-menu h4{

padding:18px;

margin:0;

border-bottom:1px solid #eee;

}

.notification-item{

display:block;

padding:15px 18px;

text-decoration:none;

color:#333;

border-bottom:1px solid #f3f3f3;

}

.notification-item:hover{

background:#f8f8f8;

}

.notification-item strong{

display:block;

margin-bottom:5px;

}

.notification-item small{

color:#777;

}

.empty-notification{

padding:20px;

text-align:center;

color:#999;

}
/* =========================================================
   MESSAGERIE
========================================================= */

.chat-page-header {
    padding: 85px 0 45px;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(153, 170, 157, 0.18),
            transparent 30%
        ),
        var(--background);
}

.chat-page-header h1 {
    margin: 0 0 14px;

    font-size: clamp(3rem, 6vw, 5.5rem);
}

.chat-page-header p:last-child {
    max-width: 720px;

    color: var(--text-light);
}

.chat-section {
    padding: 55px 0 100px;
}

.admin-chat-section {
    padding-top: 70px;
}

.chat-card {
    max-width: 950px;

    overflow: hidden;

    margin-inline: auto;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.chat-header {
    min-height: 78px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px 22px;

    background-color: rgba(255, 255, 255, 0.92);

    border-bottom: 1px solid var(--border);
}

.chat-header strong,
.chat-header small {
    display: block;
}

.chat-header strong {
    color: var(--primary);
}

.chat-header small {
    color: var(--text-light);

    font-size: 0.72rem;
}

.chat-contact-avatar,
.conversation-avatar {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: white;
    background-color: var(--primary);

    border-radius: 50%;

    font-weight: 700;
}

.chat-contact-avatar {
    width: 44px;
    height: 44px;
}

.chat-back-link {
    color: var(--primary);

    font-size: 1.45rem;
    font-weight: 700;
}

.chat-messages {
    height: min(570px, 62vh);

    overflow-y: auto;

    display: flex;
    flex-direction: column;

    gap: 12px;

    padding: 28px;

    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(200, 135, 111, 0.08),
            transparent 28%
        ),
        var(--background);
}

.chat-message {
    display: flex;
}

.chat-message-sent {
    justify-content: flex-end;
}

.chat-message-received {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: min(620px, 78%);

    padding: 12px 15px 9px;

    border-radius: 20px;

    box-shadow:
        0 8px 20px
        rgba(57, 40, 58, 0.05);
}

.chat-message-sent .chat-bubble {
    color: white;
    background-color: var(--primary);

    border-end-end-radius: 6px;
}

.chat-message-received .chat-bubble {
    color: var(--text);
    background-color: white;

    border-end-start-radius: 6px;
}

.chat-bubble p {
    margin: 0;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-bubble time {
    display: block;

    margin-top: 5px;

    color: currentColor;

    font-size: 0.62rem;

    opacity: 0.62;

    text-align: end;
}

.chat-empty {
    margin: auto;

    max-width: 430px;

    color: var(--text-light);

    text-align: center;
}

.chat-empty h2 {
    font-size: 2rem;
}

.chat-composer {
    display: grid;
    grid-template-columns: 1fr auto;

    gap: 12px;

    padding: 17px 20px;

    background-color: white;

    border-top: 1px solid var(--border);
}

.chat-composer textarea {
    width: 100%;

    resize: none;

    padding: 13px 16px;

    color: var(--text);
    background-color: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: 18px;

    outline: none;
}

.chat-composer textarea:focus {
    border-color: var(--sage-dark);

    box-shadow:
        0 0 0 4px
        rgba(110, 131, 116, 0.1);
}


/* Liste admin */

.conversation-list-card {
    overflow: hidden;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.conversation-preview {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 17px 20px;

    color: var(--text);

    border-bottom: 1px solid var(--border);

    transition: background-color 0.2s ease;
}

.conversation-preview:last-child {
    border-bottom: 0;
}

.conversation-preview:hover {
    background-color: var(--surface-soft);
}

.conversation-avatar {
    width: 48px;
    height: 48px;

    background-color: var(--terracotta);
}

.conversation-content {
    min-width: 0;

    flex: 1;
}

.conversation-top,
.conversation-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.conversation-top strong {
    color: var(--primary);
}

.conversation-top time {
    flex-shrink: 0;

    color: var(--text-light);

    font-size: 0.67rem;
}

.conversation-bottom > span {
    overflow: hidden;

    color: var(--text-light);

    font-size: 0.8rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-unread {
    min-width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: white;
    background-color: var(--terracotta);

    border-radius: 50%;

    font-size: 0.68rem;
}


@media screen and (max-width: 650px) {

    .chat-section {
        padding: 25px 0 60px;
    }

    .chat-card {
        border-radius: var(--radius-medium);
    }

    .chat-messages {
        height: 58vh;

        padding: 18px 13px;
    }

    .chat-bubble {
        max-width: 88%;
    }

    .chat-composer {
        grid-template-columns: 1fr;
    }

    .chat-composer .button {
        width: 100%;
    }

    .conversation-top time {
        display: none;
    }
}
/* =========================================================
   Correctifs PHP — fidélité Flask et garde-fous de mise en page
   ========================================================= */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

main {
    min-width: 0;
}

.page-header .container,
.section .container,
.admin-login-section .container {
    min-width: 0;
}

.service-card,
.service-card h3,
.service-card p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.services-page .cards-grid {
    width: 100%;
}

.admin-login-form input {
    width: 100%;
}

@media (max-width: 1100px) {
    .services-page .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .services-page .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
