/* ==========================================================================
   CAP HORN SANTE — feuille de style du site
   --------------------------------------------------------------------------
   Fusion des trois maquettes V3 validees. Aucune valeur (couleur, espacement,
   typographie, ombre, rayon) n'a ete modifiee : les regles sont reprises
   telles quelles. Les regles qui divergeaient d'une maquette a l'autre sont
   conservees dans leurs trois versions, scopees par la classe du <body> :

     body.page-home        accueil            (CHS-Maquette-Fusion-V3.html)
     body.page-specialite  pages specialites  (CHS-Maquette-Fusion-Page-Type-V3.html)
     body.page-standard    maisons de sante, hubs et pages transverses
                                              (CHS-Maquette-Fusion-Centre-Montreuil-V3.html)

   Genere par _build/build_css.py, verifie par _build/check_css.py.
   Les composants ajoutes pour les besoins du document de textes figurent en
   fin de fichier, section AJOUTS.
   ========================================================================== */

/* ========================================================================
   VARIABLES & RESET
   ======================================================================== */

:root {
    /* --- Cap Horn V3 · palette "Chaleur signature" (bordeaux + bois) --- */
    --primary: #16324f;         /* marine profond (titres + bandes d'ancrage) */
    --primary-light: #24476b;
    --secondary: #0d9488;       /* teal V2 (plus clair) */
    --secondary-light: #14b8a6;
    --bordeaux: #6d2233;        /* accent signature (façade / tenues) */
    --bordeaux-dark: #521626;
    --bordeaux-light: #8a3346;
    --gold: #c2822f;           /* accent bois / or */
    --gold-light: #d59a45;
    --accent: #8a3346;          /* accent chaud (ex-violet) */
    --accent-light: #a8455a;
    --sand: #ece5da;            /* fond de page greige/sable */
    --light: #f3ede4;           /* off-white chaud (sections claires) */
    --white: #faf7f2;           /* blanc chaud (cartes / UI claire) */
    --pure: #ffffff;
    --ink: #2b2320;             /* brun-noir chaud (texte) */
    --gray-100: #efe9e0;
    --gray-200: #e3dccf;
    --gray-500: #7a6f62;
    --gray-700: #4a4137;
    --glass-bg: rgba(250, 247, 242, 0.75);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 8px 32px rgba(60, 40, 30, 0.14);
    --gradient-2: linear-gradient(135deg, #00d4aa 0%, #6c5ce7 100%);
    --gradient-warm: linear-gradient(135deg, #8a3346 0%, #c2822f 100%);
    --shadow: 0 4px 20px rgba(60, 40, 30, 0.08);
    --shadow-lg: 0 10px 40px rgba(50, 30, 25, 0.16);
    --radius: 20px;
    --radius-sm: 12px;
}

/* Variables propres aux pages specialites (reprises du :root de la page type V3).
   Portees par le <body> pour ne pas contaminer les autres gabarits ;
   --spec-color et ses derivees sont surchargees page par page en inline. */
body.page-specialite {
    --spec-color: #e0475d;
    --spec-color-light: #eb7a8c;
    --spec-color-dark: #c23350;
    --gradient-2: linear-gradient(135deg, var(--spec-color-light) 0%, var(--spec-color-dark) 100%);
    --gradient-header: linear-gradient(135deg, #00d4aa 0%, #6c5ce7 100%);
}

/* ========================================================================
   BASE COMMUNE + ACCUEIL   (CHS-Maquette-Fusion-V3.html)
   ======================================================================== */

body.page-home .section-dark {
    background: var(--primary);
}

.section-dark .section-header h2 {
    color: var(--pure);
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

.section-dark .section-tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(197, 130, 47, 0.4);
    color: var(--gold-light);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--sand);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    z-index: 1000;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(26, 54, 93, 0.12),
        0 2px 8px rgba(26, 54, 93, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: -1;
}

header.scrolled::before {
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: auto;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

body.page-home nav a:hover {
    color: var(--secondary);
    background: var(--gray-100);
}

nav a.active {
    color: var(--secondary);
    background: rgba(13, 148, 136, 0.1);
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

nav ul,
nav ul li,
nav li,
.dropdown,
.dropdown-menu,
.dropdown-menu li {
    list-style: none !important;
    list-style-type: none !important;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-toggle::after {
    content: '';
    border: solid var(--gray-500);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow:
        0 10px 40px rgba(26, 54, 93, 0.15),
        0 4px 12px rgba(26, 54, 93, 0.1);
    border-radius: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

body.page-home .dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--secondary);
}

body.page-home .btn-header {
    background: var(--gradient-2) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

body.page-home .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 40px 80px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 520px at 85% 8%, rgba(197, 130, 47, 0.12), transparent 60%),
        radial-gradient(900px 520px at 8% 92%, rgba(109, 34, 51, 0.10), transparent 55%),
        linear-gradient(160deg, var(--sand) 0%, var(--light) 60%, #e7dccb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

body.page-home .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 24px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

body.page-home .hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary);
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.page-home .hero-description {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--white);
}

body.page-home .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    z-index: 2;
}

body.page-home .hero-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-lg);
}

.hero-card-1 {
    bottom: 40px;
    left: -30px;
    animation: slide-up 1s ease-out 0.5s both;
}

.hero-card-2 {
    top: 40px;
    right: -30px;
    animation: slide-up 1s ease-out 0.8s both;
}

body.page-home .hero-card p {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-card h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
}

.specialties-nav {
    padding: 40px;
    background: var(--white);
}

.specialties-container {
    max-width: 1400px;
    margin: 0 auto;
}

.specialties-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.specialty-tab {
    --spec: var(--secondary);
    --spec-soft: rgba(13, 148, 136, 0.1);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--gray-500);
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.specialty-tab:hover {
    background: var(--spec-soft);
    border-color: var(--spec);
    color: var(--spec);
    transform: translateY(-2px);
}

.centers {
    padding: 80px 40px;
    position: relative;
    background:
        radial-gradient(900px 400px at 80% 0%, rgba(197, 130, 47, 0.10), transparent 60%),
        linear-gradient(180deg, #16324f 0%, #122843 100%);
}

.centers-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

body.page-home .section-tag {
    display: inline-block;
    background: rgba(138, 51, 70, 0.10);
    border: 1px solid rgba(138, 51, 70, 0.28);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.centers-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.center-modern-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.6s ease;
}

.center-modern-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.center-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.3);
}

.center-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.center-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.center-modern-card:hover .center-img {
    transform: scale(1.05);
}

.center-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gradient-2);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.center-body {
    padding: 22px 24px 26px;
}

.center-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}

.center-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0 0 14px;
    line-height: 1.5;
}

.center-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.center-address,
.center-phone {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.center-link {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.center-link:hover {
    color: var(--accent);
}

.why-choose {
    padding: 100px 40px;
    position: relative;
    background: var(--white);
}

.why-container {
    max-width: 1400px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.3);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.card-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card-content p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

.specialties-section {
    padding: 100px 40px;
    position: relative;
    background: var(--gray-100);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.specialty-card {
    --spec: var(--secondary);
    --spec-shadow: rgba(13, 148, 136, 0.2);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.6s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--spec);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.specialty-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.specialty-card:hover {
    transform: translateY(-8px);
    border-color: var(--spec);
    box-shadow: 0 20px 45px var(--spec-shadow);
}

.specialty-card:hover::before {
    transform: scaleX(1);
}

.specialty-card:hover h3 {
    color: var(--spec);
}

.specialty-card:hover .specialty-number {
    color: var(--spec);
    opacity: 0.4;
}

.specialty-number {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-200);
    transition: color 0.4s ease, opacity 0.4s ease;
}

.specialty-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
    transition: color 0.4s ease;
}

.specialty-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

body.page-home .team-section {
    padding: 100px 0;
    position: relative;
    background: var(--white);
}

.team-section .section-header,
.team-section .team-cta {
    padding: 0 40px;
}

.team-carousel {
    overflow: hidden;
    margin-top: 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.team-track {
    display: flex;
    width: max-content;
    padding: 24px 0;
    animation: scroll-loop 34s linear infinite;
}

.team-carousel:hover .team-track {
    animation-play-state: paused;
}

body.page-home .team-card {
    --spec: var(--secondary);
    flex: 0 0 auto;
    width: 190px;
    margin-right: 28px;
    text-align: center;
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

body.page-home .team-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--gradient-2) border-box;
    transition: all 0.3s ease;
}

body.page-home .team-card:hover .team-image {
    border-width: 4px;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.3);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-home .team-card h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--primary);
}

body.page-home .team-card p {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.team-card:hover p {
    color: var(--spec);
}

.team-cta {
    text-align: center;
    margin-top: 20px;
}

.testimonials {
    padding: 100px 0;
    position: relative;
    background: var(--gray-100);
}

.testimonials .section-header {
    padding: 0 40px;
}

.testimonials-carousel {
    overflow: hidden;
    margin-top: 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.testimonials-track {
    display: flex;
    width: max-content;
    padding: 24px 0;
    animation: scroll-loop 32s linear infinite;
}

.testimonials-carousel:hover .testimonials-track {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 400px;
    margin-right: 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: var(--shadow);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.25;
    position: absolute;
    top: 20px;
    right: 24px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars span {
    color: #f59e0b;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warm);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h5 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--primary);
}

.testimonial-info p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

body.page-home .cta-section {
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    color: var(--white);
    border-radius: 30px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
}

.cta-box h2 .highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 40px;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
}

.cta-box .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    box-shadow: none;
}

.cta-box .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

footer {
    padding: 80px 40px 40px;
    background: var(--primary);
    color: var(--white);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 20px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--secondary-light);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary-light);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: auto;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(13, 148, 136, 0.25); }
    50% { box-shadow: 0 0 32px rgba(13, 148, 136, 0.45); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-loop {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================================================
   PAGES SPECIALITES   (CHS-Maquette-Fusion-Page-Type-V3.html)
   ======================================================================== */

body.page-specialite .section-dark {
    background: var(--primary) !important;
}

body.page-specialite nav a:hover {
    color: var(--spec-color);
    background: var(--gray-100);
}

body.page-specialite .dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--spec-color);
}

body.page-specialite .btn-header {
    background: var(--gradient-header) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 12px !important;
}

body.page-specialite .hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 140px 40px 80px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 480px at 88% 6%, rgba(197, 130, 47, 0.12), transparent 60%),
        radial-gradient(820px 480px at 6% 94%, rgba(109, 34, 51, 0.10), transparent 55%),
        linear-gradient(160deg, var(--sand) 0%, var(--light) 60%, #e7dccb 100%);
}

body.page-specialite .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(224, 71, 93, 0.1);
    border: 1px solid rgba(224, 71, 93, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--spec-color);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    animation: pulse-glow--page-specialite 3s ease-in-out infinite;
}

body.page-specialite .hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary);
    letter-spacing: -1px;
}

body.page-specialite .hero-description {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

body.page-specialite .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(224, 71, 93, 0.35);
}

body.page-specialite .hero-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
}

body.page-specialite .hero-card p {
    font-size: 2rem;
    font-weight: 800;
    color: var(--spec-color);
    line-height: 1;
    margin-bottom: 6px;
}

body.page-specialite .section-tag {
    display: inline-block;
    background: rgba(224, 71, 93, 0.1);
    border: 1px solid rgba(224, 71, 93, 0.3);
    color: var(--spec-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefits-section {
    padding: 80px 40px;
    position: relative;
    background: var(--white);
}

.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    box-shadow: var(--shadow);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(224, 71, 93, 0.3);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--white);
}

.benefit-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

.process-section {
    padding: 80px 40px;
    position: relative;
    background: var(--gray-100);
}

.process-container {
    max-width: 1100px;
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(224, 71, 93, 0.3);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 52px;
    height: 52px;
    background: var(--gradient-2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto 20px;
}

.process-step h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

body.page-specialite .team-section {
    padding: 100px 40px;
    position: relative;
    background: var(--white);
}

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

body.page-specialite .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

body.page-specialite .team-card {
    --spec: var(--secondary);
    text-align: center;
    transition: transform 0.4s ease;
}

body.page-specialite .team-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--gradient-2) border-box;
    transition: all 0.3s ease;
}

body.page-specialite .team-card:hover .team-image {
    border-width: 4px;
    box-shadow: 0 10px 40px rgba(224, 71, 93, 0.3);
}

body.page-specialite .team-card h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--primary);
}

body.page-specialite .team-card p {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.page-specialite .btn-view-more {
    display: block;
    width: fit-content;
    margin: 3rem auto 0;
    background: transparent;
    color: var(--spec-color);
    padding: 14px 32px;
    border: 2px solid var(--spec-color);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1rem;
}

body.page-specialite .btn-view-more:hover {
    background: var(--spec-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224, 71, 93, 0.3);
}

.faq-section {
    padding: 80px 40px;
    position: relative;
    background: var(--gray-100);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 4px 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(224, 71, 93, 0.35);
    box-shadow: var(--shadow-lg);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: '';
}

.faq-q {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-toggle-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(224, 71, 93, 0.1);
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--spec-color);
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.faq-toggle-icon::before {
    width: 10px;
    height: 2px;
}

.faq-toggle-icon::after {
    width: 2px;
    height: 10px;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-item .faq-a-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item[open] .faq-a-wrap {
    grid-template-rows: 1fr;
}

.faq-a {
    overflow: hidden;
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 0;
    transition: padding-bottom 0.35s ease;
}

.faq-item[open] .faq-a {
    padding-bottom: 22px;
}

body.page-specialite .cta-section {
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

@keyframes pulse-glow--page-specialite {
    0%, 100% { box-shadow: 0 0 20px rgba(224, 71, 93, 0.2); }
    50% { box-shadow: 0 0 32px rgba(224, 71, 93, 0.4); }
}

/* ========================================================================
   MAISONS DE SANTE, HUBS ET PAGES TRANSVERSES   (CHS-Maquette-Fusion-Centre-Montreuil-V3.html)
   ======================================================================== */

body.page-standard .section-dark {
    background: var(--primary) !important;
}

.gallery-section {
    padding: 20px 40px 80px; background: var(--white);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 16px 12px;
    background: linear-gradient(transparent, rgba(22, 20, 18, 0.78));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

body.page-standard nav a:hover {
    color: var(--secondary);
    background: var(--gray-100);
}

body.page-standard .dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--secondary);
}

body.page-standard .btn-header {
    background: var(--gradient-2) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 12px !important;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span.sep {
    color: var(--gray-200);
}

.breadcrumb span.current {
    color: var(--primary);
    font-weight: 600;
}

body.page-standard .hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 140px 40px 80px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 480px at 88% 6%, rgba(197, 130, 47, 0.12), transparent 60%),
        radial-gradient(820px 480px at 6% 94%, rgba(109, 34, 51, 0.10), transparent 55%),
        linear-gradient(160deg, var(--sand) 0%, var(--light) 60%, #e7dccb 100%);
}

body.page-standard .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    animation: pulse-glow 3s ease-in-out infinite;
}

body.page-standard .hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary);
    letter-spacing: -1px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 1rem;
}

.hero-meta-item strong {
    color: var(--gray-700);
    font-weight: 600;
}

.hero-meta-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.hero-meta-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--secondary);
}

body.page-standard .hero-description {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.8;
}

body.page-standard .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.35);
}

body.page-standard .hero-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
}

body.page-standard .hero-card p {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 6px;
}

body.page-standard .section-tag {
    display: inline-block;
    background: rgba(138, 51, 70, 0.10);
    border: 1px solid rgba(138, 51, 70, 0.28);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.onsite-section {
    padding: 80px 40px;
    position: relative;
    background: var(--white);
}

.onsite-container {
    max-width: 1400px;
    margin: 0 auto;
}

.onsite-subtitle {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.specialty-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.specialty-tag {
    --spec: var(--secondary);
    --spec-soft: rgba(13, 148, 136, 0.1);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 10px 22px;
    border-radius: 12px;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.specialty-tag:hover {
    background: var(--spec-soft);
    border-color: var(--spec);
    color: var(--spec);
    transform: translateY(-2px);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.equipment-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: var(--shadow);
}

.equipment-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: var(--shadow-lg);
}

.equipment-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.equipment-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--white);
}

.equipment-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.equipment-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

.access-section {
    padding: 80px 40px;
    position: relative;
    background: var(--gray-100);
}

.access-container {
    max-width: 1400px;
    margin: 0 auto;
}

.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.access-map {
    background: var(--white);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    min-height: 320px;
    box-shadow: var(--shadow);
}

.access-map-pin {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.access-map-pin svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

.access-map h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.access-map p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 320px;
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.access-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.access-item:hover {
    transform: translateX(5px);
    border-color: rgba(13, 148, 136, 0.3);
}

.access-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.access-item-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.access-item h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.access-item p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

body.page-standard .team-section {
    padding: 100px 40px;
    position: relative;
    background: var(--white);
}

body.page-standard .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 50px;
}

body.page-standard .team-card {
    --spec: var(--secondary);
    text-align: center;
    transition: transform 0.4s ease;
}

body.page-standard .team-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--gradient-2) border-box;
    transition: all 0.3s ease;
}

body.page-standard .team-card:hover .team-image {
    border-width: 4px;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.3);
}

body.page-standard .team-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--primary);
}

body.page-standard .team-card p {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.page-standard .btn-view-more {
    display: inline-block;
    width: fit-content;
    background: transparent;
    color: var(--secondary);
    padding: 14px 32px;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1rem;
}

body.page-standard .btn-view-more:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

body.page-standard .cta-section {
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    body.page-home .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .specialties-tabs {
        grid-template-columns: repeat(4, 1fr);
    }

    .specialties-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .centers-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    body.page-specialite .hero-description {
        margin: 0 auto 40px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-meta,
    .hero-meta-item {
        justify-content: center;
    }

    body.page-standard .hero-description {
        margin: 0 auto 32px;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .access-grid {
        grid-template-columns: 1fr;
    }

    body.page-standard .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    body.page-home .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .centers-modern-grid {
        grid-template-columns: 1fr;
    }

    .specialties-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        padding: 50px 30px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    body.page-specialite .hero h1 {
        font-size: 2.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    body.page-specialite .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    body.page-standard .hero h1 {
        font-size: 2.3rem;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    body.page-standard .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header {
        padding: 12px 20px;
    }

    body.page-home .hero {
        padding: 120px 20px 60px;
    }

    body.page-home .hero h1 {
        font-size: 2rem;
    }

    .specialties-nav {
        padding: 20px;
    }

    .centers,
    .why-choose,
    .specialties-section {
        padding: 60px 20px;
    }

    body.page-home .cta-section {
        padding: 60px 20px;
    }

    .testimonials {
        padding: 60px 0;
    }

    body.page-home .team-section {
        padding: 60px 0;
    }

    .specialties-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    body.page-specialite .hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    body.page-specialite .hero h1 {
        font-size: 2rem;
    }

    .benefits-section,
    .process-section,
    .faq-section {
        padding: 60px 20px;
    }

    body.page-specialite .team-section,
    body.page-specialite .cta-section {
        padding: 60px 20px;
    }

    .benefits-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    body.page-specialite .team-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    .gallery-section {
        padding: 10px 20px 60px;
    }

    body.page-standard .hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    body.page-standard .hero h1 {
        font-size: 1.9rem;
    }

    .onsite-section,
    .access-section {
        padding: 60px 20px;
    }

    body.page-standard .team-section,
    body.page-standard .cta-section {
        padding: 60px 20px;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    body.page-standard .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-track,
    .testimonials-track {
        animation: none;
    }
}

/* ==========================================================================
   AJOUTS
   --------------------------------------------------------------------------
   Composants demandes par le document de textes et absents des trois
   maquettes V3 (texte SEO, ou consulter, maillage, video, bandeaux, mega-menu,
   menu mobile). Ils n'introduisent aucune couleur, typographie ni ombre
   nouvelle : tout est construit sur les variables et les composants existants.
   ========================================================================== */

/* --- Mega-menu "Trouver un medecin" (40 specialites, 6 poles) ------------
   Quatre colonnes : Medecine seule a gauche, Chirurgie + Dentaire,
   Esthetique + Paramedical, puis Plateau technique seul a droite.
   Le menu s'aligne sur le bord gauche de son entree ; s'il deborde a droite,
   chs.js le decale vers la gauche (variable --mega-shift). */
.dropdown-menu.mega {
    /* Le décalage horizontal et la largeur passent par `left` et `width`, hors
       de la liste des propriétés animées : ils s'appliquent instantanément.
       Sans cela, la maquette (`transition: all`) les animait et le menu
       semblait arriver par la gauche ou par la droite. */
    left: var(--mega-shift, 0px);
    transform: translateY(10px);
    transition-property: opacity, visibility, transform;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 32px;
    padding: 26px 28px 22px;
    /* largeur de repli ; chs.js la recale sur celle du header */
    width: min(1184px, calc(100vw - 40px));
}

.dropdown:hover .dropdown-menu.mega,
.dropdown.open .dropdown-menu.mega {
    transform: translateY(0);
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* Les intitulés tiennent sur une ligne tant que la largeur le permet ; sur un
   écran plus étroit ils passent sur deux lignes plutôt que d'être coupés ou
   tassés. Le survol couvre la totalité du libellé dans les deux cas. */
.dropdown-menu.mega a {
    white-space: normal;
    line-height: 1.35;
}

.mega-title {
    margin-bottom: 4px;
}

.mega-title-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 1rem 8px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary);
    text-align: left;
    cursor: default;
}

.mega-chevron {
    display: none;
    width: 8px;
    height: 8px;
    border: solid var(--secondary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex: 0 0 auto;
    margin-bottom: 3px;
}

.mega-col ul {
    list-style: none;
}

.dropdown-menu.mega a {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
}

.mega-all {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 26px;
    padding-top: 4px;
}

.dropdown-menu.mega .mega-all .btn {
    padding: 11px 26px;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* --- Menu mobile (le bouton de la maquette V3 n'ouvrait rien) ------------
   Sur mobile, les deux niveaux s'ouvrent au clic : d'abord les six poles,
   puis la liste de specialites du pole choisi. */
@media (max-width: 900px) {
    nav.nav-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: var(--radius);
        box-shadow: var(--glass-shadow);
        padding: 16px;
        max-height: 75vh;
        overflow-y: auto;
    }

    nav.nav-open .nav-links {
        flex-direction: column;
        align-items: stretch !important;
        gap: 2px !important;
    }

    nav.nav-open .dropdown {
        display: block;
    }

    nav.nav-open .dropdown-toggle {
        justify-content: space-between;
        padding: 0.7rem 1rem;
        border-radius: 10px;
    }

    nav.nav-open .dropdown.open > .dropdown-toggle {
        background: var(--gray-100);
        color: var(--secondary);
    }

    nav.nav-open .dropdown-toggle::after {
        margin-left: auto;
    }

    /* niveau 1 : le menu ne s'ouvre qu'au clic */
    nav.nav-open .dropdown-menu,
    nav.nav-open .dropdown-menu.mega,
    nav.nav-open .dropdown:hover .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: none;
        min-width: 0;
        max-width: none;
        padding: 4px 0 10px;
        grid-template-columns: 1fr;
        gap: 0;
    }

    nav.nav-open .dropdown.open > .dropdown-menu {
        display: block;
    }

    nav.nav-open .mega-col {
        display: block;
        gap: 0;
    }

    /* niveau 2 : les six poles, repliés */
    nav.nav-open .mega-group + .mega-group,
    nav.nav-open .mega-col + .mega-col {
        margin-top: 2px;
    }

    nav.nav-open .mega-title {
        margin-bottom: 0;
    }

    nav.nav-open .mega-title-btn {
        border-bottom: none;
        border-radius: 10px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    nav.nav-open .mega-group.open .mega-title-btn,
    nav.nav-open .mega-title-btn:hover {
        background: var(--gray-100);
    }

    nav.nav-open .mega-chevron {
        display: block;
    }

    nav.nav-open .mega-group.open .mega-chevron {
        transform: rotate(-135deg);
        margin-bottom: -3px;
    }

    /* la flèche du premier niveau suit l'ouverture (pas de survol sur mobile) */
    nav.nav-open .dropdown.open > .dropdown-toggle::after {
        transform: rotate(-135deg);
    }

    nav.nav-open .mega-group ul {
        display: none;
        padding: 2px 0 8px 12px;
    }

    nav.nav-open .mega-group.open ul {
        display: block;
    }

    nav.nav-open .mega-all {
        border-top: 1px solid var(--gray-200);
        margin-top: 8px;
        padding-top: 8px;
    }

    nav.nav-open .btn-header {
        margin-top: 10px;
        text-align: center;
    }
}

/* --- Bloc texte SEO (150-200 mots, discret) ------------------------------ */
.seo-section {
    padding: 90px 40px;
    background: var(--light);
}

.seo-container {
    max-width: 860px;
    margin: 0 auto;
}

.seo-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.seo-container p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 18px;
}

.seo-container p:last-child {
    margin-bottom: 0;
}

/* --- Ou consulter / maillage interne : pastilles cliquables --------------- */
.where-section {
    padding: 90px 40px;
    background: var(--white);
}

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

.where-container .specialty-tags,
.linking-tags {
    margin-bottom: 0;
}

a.specialty-tag {
    display: inline-block;
    text-decoration: none;
}

.linking-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 0;
    border-top: 1px solid var(--gray-200);
}

.linking-block h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 18px;
}

.linking-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Bloc video ---------------------------------------------------------- */
.video-section {
    padding: 100px 40px;
    background: var(--light);
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    background:
        radial-gradient(700px 320px at 50% 20%, rgba(197, 130, 47, 0.25), transparent 65%),
        var(--primary);
}

.video-placeholder strong {
    font-size: 1.1rem;
    color: var(--pure);
}

.video-placeholder span {
    font-size: 0.9rem;
    max-width: 460px;
    line-height: 1.6;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-grid .video-frame {
    aspect-ratio: 9 / 16;
}

.video-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* --- Encadres d'information et d'urgence --------------------------------- */
.callout {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    box-shadow: var(--shadow);
}

.callout h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.callout p {
    color: var(--gray-700);
    line-height: 1.7;
}

.callout p + p {
    margin-top: 10px;
}

.callout.callout-urgence {
    border-left-color: var(--bordeaux);
}

.callout.callout-center {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.note-legale {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Bandeau partenaires institutionnels (au-dessus du footer) ----------- */
.partners-band {
    padding: 40px;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.partners-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 40px;
}

.partners-inner p {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-500);
}

.partners-inner span {
    color: var(--gray-700);
    font-weight: 600;
}

/* --- Footer : variante 4 colonnes + mention urgence ---------------------- */
.footer-main.footer-wide {
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 40px;
}

.footer-urgence {
    padding: 24px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-urgence strong {
    color: var(--pure);
}

/* --- Bandeau cookies ----------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* --- Cartes-liens (3 entrees de la page rendez-vous, hub parcours) ------- */
.card-link {
    display: block;
    text-decoration: none;
}

.card-arrow {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Regroupements par pole (hub specialites) ---------------------------- */
.pole-block {
    margin-bottom: 70px;
}

.pole-block:last-child {
    margin-bottom: 0;
}

.pole-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.pole-intro {
    color: var(--gray-700);
    max-width: 780px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* --- Tableau des contacts (page prendre rendez-vous) --------------------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--shadow);
}

table.chs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

table.chs-table th,
table.chs-table td {
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
    color: var(--gray-700);
}

table.chs-table th {
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 600;
}

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

/* --- Monogrammes praticiens (praticiens sans portrait, cf. doc §5) ------- */
.team-image.monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--spec, var(--secondary));
    color: var(--pure);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- Liste simple mise en forme (accès, horaires) ------------------------ */
.plain-list {
    list-style: none;
}

.plain-list li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.7;
}

.plain-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* --- Responsive des ajouts ---------------------------------------------- */
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .footer-main.footer-wide {
        grid-template-columns: 1fr;
    }

    .seo-section,
    .where-section,
    .video-section {
        padding: 60px 20px;
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

/* --- Header : 4 entrées + bouton en toutes lettres tiennent sur une ligne --- */
nav a,
.dropdown-toggle,
.btn-header {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    nav {
        gap: 0;
    }

    nav .nav-links {
        gap: 0.4rem !important;
    }

    nav a,
    .dropdown-toggle {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}

@media (max-width: 900px) {
    nav.nav-open a,
    nav.nav-open .dropdown-toggle {
        white-space: normal;
    }
}

/* --- Troisième badge chiffré du hero d'accueil (le document en prévoit 3) --- */
.hero-card-3 {
    bottom: -26px;
    right: 90px;
    animation: slide-up 1s ease-out 1.1s both;
}

@media (max-width: 900px) {
    .hero-card-3 {
        display: none;
    }
}

/* --- Troisième badge du hero : texte long, pas de chiffre ---------------- */
.hero-card-3 p {
    font-size: 1.15rem;
}

/* --- Formulaires (alerte ouverture Bagneux, candidature) ----------------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-field input,
.form-field select,
.form-field textarea {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--pure);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(138, 51, 70, 0.12);
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Quatre maisons de santé : la grille de la maquette en comptait trois --- */
.centers-modern-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
}

@media (min-width: 1300px) {
    .centers-modern-grid.grid-4 {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
    }
}

@media (max-width: 700px) {
    .centers-modern-grid.grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CORRECTIFS
   ========================================================================== */

/* --- Badge des sections sur fond bleu : or, comme dans la V3 --------------
   Les règles `.section-dark .section-tag` de la maquette étaient neutralisées
   par les règles `body.page-* .section-tag` (spécificité supérieure). */
body .section-dark .section-tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(197, 130, 47, 0.4);
    color: var(--gold-light);
}

/* --- « Voir tous les praticiens » : bouton aussi sur l'accueil ------------ */
body.page-home .btn-view-more {
    display: inline-block;
    width: fit-content;
    background: transparent;
    color: var(--secondary);
    padding: 14px 32px;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

body.page-home .btn-view-more:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Cartes devenues cliquables : pas de soulignement --------------------- */
a.specialty-card,
a.card,
a.benefit-card,
a.equipment-card,
a.center-modern-card,
.card-link,
a.specialty-tag,
header .logo {
    text-decoration: none;
    color: inherit;
}

a.specialty-card h3,
a.card h3,
a.benefit-card h3 {
    text-decoration: none;
}

/* --- Grille des spécialités : sans numéro -------------------------------- */
.specialty-number {
    display: none;
}

/* --- Équipe : la couleur de survol suit celle de la page ------------------ */
body.page-specialite .team-card:hover .team-image {
    box-shadow: 0 10px 40px rgba(var(--spec-rgb, 224, 71, 93), 0.3);
}

/* --- Méga-menu : couleur de survol propre à chaque spécialité ------------- */
.dropdown-menu.mega a {
    transition: background 0.2s ease, color 0.2s ease;
}

/* `body .dropdown-menu.mega` et non `.dropdown-menu.mega` : la règle par
   gabarit (`body.page-specialite .dropdown-menu a:hover`) compte deux éléments,
   il en faut autant pour l'emporter. */
body .dropdown-menu.mega a:hover {
    background: var(--gray-100);
    color: var(--lien, var(--secondary));
}

.dropdown-menu.mega .mega-all .btn:hover {
    color: var(--primary);
}

/* --- Maillage : un peu d'air au-dessus du filet --------------------------- */
.linking-block {
    margin-top: 40px;
    padding-top: 36px;
}

/* --- Encadré d'urgence : de l'air en dessous ------------------------------ */
.callout-wrap {
    padding: 60px 40px 40px;
}

.callout-wrap .seo-container {
    max-width: 860px;
    margin: 0 auto;
}

/* --- Équipe des maisons de santé : cartes et bouton centrés --------------- */
body.page-standard .team-grid {
    justify-content: center;
}

body.page-standard .team-container {
    text-align: center;
}

body.page-standard .team-container .btn-view-more {
    margin: 3rem auto 0;
}

/* --- Badges du hero : valeur toujours d'un seul tenant -------------------- */
.hero-card p {
    white-space: nowrap;
}

/* --- Footer : « Voir toutes les spécialités → » sur une seule ligne ------- */
.footer-main.footer-wide {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 28px;
}

.footer-col ul a {
    white-space: nowrap;
}

/* --- Bandeau partenaires : logos ----------------------------------------- */
.partners-inner {
    gap: 24px 48px;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px 56px;
}

.partners-logos img {
    height: 46px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    /* les logos fournis ont un fond blanc : il se fond dans la bande */
    mix-blend-mode: multiply;
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    filter: none;
    opacity: 1;
}

@media (max-width: 600px) {
    .partners-logos {
        gap: 24px 32px;
    }

    .partners-logos img {
        height: 34px;
    }
}

/* --- Annuaire des praticiens --------------------------------------------- */
.specialty-tag.filtre {
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
}

.specialty-tag.filtre.actif {
    background: var(--spec, var(--accent));
    border-color: var(--spec, var(--accent));
    color: var(--pure);
}

.specialty-tags.filtres {
    margin-bottom: 32px;
}

.team-grid.annuaire {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
}

.team-card.praticien[hidden] {
    display: none;
}

.praticien-lieux {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.annuaire-compteur {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.annuaire-vide {
    text-align: center;
    color: var(--gray-700);
    padding: 40px 0;
}

@media (max-width: 900px) {
    .team-grid.annuaire {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid.annuaire {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive des correctifs -------------------------------------------
   (ce bloc doit rester en dernier : il rattrape les règles ci-dessus, qui
   sont écrites sans media query) */
@media (max-width: 900px) {
    .footer-main.footer-wide {
        grid-template-columns: 1fr;
    }

    .footer-col ul a {
        white-space: normal;
    }
}

/* --- Équipe en cours de constitution (pages sans praticien référencé) ----- */
.equipe-a-venir {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Fiches maisons de santé entièrement cliquables ------------------------ */
.center-modern-card {
    position: relative;
    cursor: pointer;
}

.center-modern-card .center-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.center-modern-card:hover .center-link {
    color: var(--accent);
}

/* --- Header : fondu transparent au scroll ----------------------------------
   --header-fondu passe de 0 (haut de page) à 1 (après ~300 px), piloté par chs.js */
header::before,
header.scrolled::before {
    background: rgba(255, 255, 255, calc(0.85 - 0.3 * var(--header-fondu, 0)));
    backdrop-filter: blur(calc(20px + 8px * var(--header-fondu, 0))) saturate(1.4);
    -webkit-backdrop-filter: blur(calc(20px + 8px * var(--header-fondu, 0))) saturate(1.4);
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

/* --- Pourquoi choisir Cap Horn Santé : textes des cartes justifiés --------- */
.why-choose .card-content p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* --- Portraits : cadrage sur le visage, haut de tête jamais coupé ---------- */
.team-image img {
    object-position: 50% 12%;
}

/* --- Monogrammes : fond couleur de la spécialité (bat le fond blanc des
       gabarits body.page-* .team-image, qui a la même spécificité) --------- */
body[class] .team-image.monogram {
    background: linear-gradient(var(--spec, var(--secondary)), var(--spec, var(--secondary))) padding-box,
                var(--gradient-2) border-box;
    color: var(--pure);
}

/* --- Notre projet médical : les 4 fondateurs sur une ligne, puis 2 × 2 ------ */
body.page-standard .team-grid.fondateurs {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 700px) {
    body.page-standard .team-grid.fondateurs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Carrousel de l'accueil : 30 praticiens, même vitesse de défilement ----- */
.team-section .team-track {
    animation-duration: 128s;
}

/* --- Mention de secteur sous les étapes du parcours ------------------------ */
.callout.callout-secteur {
    max-width: 900px;
    margin: 50px auto 0;
}

/* --- Mobile : les mots très longs (psychomotricienne…) se coupent ---------- */
@media (max-width: 600px) {
    h1, h2, h3, h4 {
        overflow-wrap: break-word;   /* coupe seulement les mots trop longs,
                                        sans césure des titres ordinaires */
    }
}

/* --- Fenêtre de choix de la maison de santé (prise de rendez-vous) --------- */
body.modale-ouverte {
    overflow: hidden;
}

.modale-rdv[hidden] {
    display: none;   /* sans cette règle, display:flex l'emporte sur [hidden] */
}

.modale-rdv {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modale-rdv-fond {
    position: absolute;
    inset: 0;
    background: rgba(43, 35, 32, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modale-rdv-boite {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 36px 36px 32px;
    animation: modale-rdv-entree 0.3s ease-out;
}

@keyframes modale-rdv-entree {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.modale-rdv-boite h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0 8px;
    letter-spacing: -0.5px;
}

.modale-rdv-intro {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.modale-rdv-fermer {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--gray-500);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.modale-rdv-fermer:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.modale-rdv-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modale-rdv-choix {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 16px;
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--pure);
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

a.modale-rdv-choix:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.modale-rdv-nom {
    font-weight: 600;
    color: var(--primary);
}

.modale-rdv-adresse {
    grid-column: 1;
    font-size: 0.82rem;
    color: var(--gray-500);
}

.modale-rdv-fleche {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--secondary);
    font-size: 1.1rem;
}

.modale-rdv-choix.inactif {
    opacity: 0.6;
}

.modale-rdv-choix.inactif .modale-rdv-adresse {
    font-style: italic;
}

@media (max-width: 600px) {
    .modale-rdv-boite {
        padding: 30px 22px 24px;
    }
}

/* --- Pages légales : hero court, sur une seule colonne --------------------- */
body.page-standard .hero.hero-court {
    min-height: 0;
    padding: 150px 40px 60px;
}

.hero-court .hero-grid {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.hero-court .hero-description {
    max-width: 640px;
}

.seo-container h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 22px 0 8px;
}

.seo-container table.chs-table.sans-entete td:first-child {
    font-weight: 600;
    color: var(--primary);
    width: 38%;
}

.seo-container table.chs-table.sans-entete thead {
    display: none;   /* tableaux « libellé / valeur » des mentions légales */
}

.seo-container .table-wrap + p,
.seo-container .plain-list + p {
    margin-top: 18px;
}
