:root {
            --primary: #52B3E8;
            --secondary: #8DC63F;
            --rose: #F5A9B8;
            --jaune: #FFE135;
            --vert: #7EC850;
        }

        * { -webkit-tap-highlight-color: transparent; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            margin: 0;
            padding: 0;
            background: #f8f9fa;
        }

        /* ===========================
           MOBILE-FIRST STYLES
           =========================== */

        /* --- Header / Navbar --- */
        .site-header {
            background: #fff;
            color: #333;
            padding: 9px 12px;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }

        /* Mobile : nom à gauche, drapeau collé en haut à droite */
        .header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .site-brand {
            font-size: 20px;
            font-weight: 700;
            color: #333;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }

        .site-brand:hover { color: #333; }

        .site-logo {
            height: 34px;
            width: auto;
            max-width: 180px;
            margin-right: 8px;
            object-fit: contain;
        }

        .site-tagline {
            font-size: 12px;
            opacity: 0.9;
            margin-top: 2px;
        }

        .desktop-nav {
            display: none;
        }

        .desktop-nav a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            padding: 8px 16px;
            border-radius: 8px;
            transition: background 0.3s;
        }

        .desktop-nav a:hover {
            background: rgba(255,255,255,0.2);
            color: white;
        }

        /* --- Status Badge --- */
        .status-badge-wrapper {
            display: none;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #d4edda;
            color: #155724;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-badge.closed {
            background: #f8d7da;
            color: #721c24;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: #7EC850;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .status-badge.closed .status-dot {
            background: #dc3545;
            animation: none;
        }

        .status-badge.garde {
            background: #fff3cd;
            color: #856404;
            cursor: pointer;
        }

        .status-badge.garde .status-dot {
            background: #ffc107;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Garde notice in horaires */
        .garde-notice {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            background: linear-gradient(135deg, #fff9e6, #fff3cd);
            border: 2px solid #ffc107;
            border-radius: 15px;
            padding: 18px;
            margin-bottom: 20px;
        }

        .garde-notice i {
            font-size: 28px;
            color: #856404;
            margin-top: 2px;
        }

        .garde-notice strong {
            display: block;
            color: #856404;
            font-size: 16px;
            margin-bottom: 4px;
        }

        .garde-notice p {
            margin: 0;
            color: #856404;
            font-size: 14px;
            line-height: 1.5;
        }

        /* Garde modal */
        .garde-modal-content {
            border: none;
            border-radius: 20px;
            overflow: hidden;
        }

        .garde-modal-header {
            background: linear-gradient(135deg, #fff9e6, #fff3cd);
            border-bottom: 2px solid #ffc107;
            padding: 25px;
        }

        .garde-modal-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: rgba(255,193,7,0.2);
            color: #856404;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .garde-modal-content .modal-body {
            padding: 25px;
            font-size: 16px;
            line-height: 1.7;
            color: #555;
        }

        .garde-modal-content .modal-footer {
            border-top: none;
            padding: 0 25px 25px;
        }

        /* --- Main Content --- */
        .main-content {
            padding-top: 56px;
            padding-bottom: 8px;      /* le pied compact prend la place de la barre du bas */
        }

        /* --- Page de service dédiée (/slug) --- */
        .svc-page-main {
            padding-top: 56px;
            padding-bottom: 16px;     /* le pied compact fait le reste sur téléphone */
            max-width: 1200px;        /* 1040 tassait l'article sur bureau (7.98) */
            margin: 0 auto;
            /* La couleur du service qui mène à la page (variables posées par
               page.php) habille le contenu ; sans elle, le bleu du site. */
            --c-primary:   var(--modale, #52B3E8);
            --c-primary-d: var(--modale-fonce, #2E86BE);
            --c-primary-b: var(--modale-bouton, #52B3E8);
            --c-primary-c: var(--modale-clair, #EAF6FD);
            --c-fil:       var(--modale-doux, #cfe7f6);
        }
        .svc-page-col { min-width: 0; }
        .svc-page-aside { padding: 22px 16px 0; }
        /* Une carte blanche, l'icône dans un rond plein : pas d'aplat teinté sous le texte */
        .svc-aside-card {
            background: #fff;
            border-radius: 18px;
            padding: 22px 18px;
            text-align: center;
            box-shadow: 0 2px 12px rgba(0,0,0,.07);
        }
        .svc-aside-card > i {
            width: 60px; height: 60px; border-radius: 50%;
            background: var(--c-primary-b, var(--primary)); color: #fff;
            display: inline-flex; align-items: center; justify-content: center;
            font-size: 26px;
        }
        .svc-aside-card b { display: block; font-size: 18px; color: #333; margin: 10px 0 4px; }
        .svc-aside-card p { margin: 0 0 14px; font-size: 15px; color: #666; }
        .svc-aside-card .btn-plein, .svc-aside-card .btn-page { width: 100%; justify-content: center; margin-bottom: 8px; }
        .btn-plein {
            display: inline-flex; align-items: center; gap: 10px;
            background: var(--c-primary-b, var(--primary)); color: #fff;
            border: 2px solid var(--c-primary-b, var(--primary));
            padding: 12px 22px; border-radius: 999px; min-height: 50px;
            font-weight: 700; font-size: 16px; text-decoration: none; transition: filter .15s;
        }
        .btn-plein:hover { color: #fff; filter: brightness(.93); }
        .svc-breadcrumb {
            font-size: 13px;
            color: #8a93a0;
            padding: 14px 16px 0;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 7px;
        }
        /* Lisible (foncé) et large au doigt : 44 px de haut sans bouger la ligne */
        .svc-breadcrumb a { color: var(--c-primary-d, #2E86BE); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -12px 0; font-weight: 600; }
        .svc-breadcrumb a:hover { text-decoration: underline; }
        .svc-breadcrumb .current { color: #59636f; font-weight: 600; }
        .svc-page {
            padding: 14px 16px 0;
        }
        .svc-page-back {
            padding: 26px 16px 10px;
            text-align: center;
        }
        .btn-page {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #fff;
            color: var(--c-primary-d, var(--primary));
            border: 2px solid var(--c-primary-b, var(--primary));
            padding: 12px 22px;
            border-radius: 999px;
            min-height: 50px;
            font-weight: 700;
            font-size: 16px;
            text-decoration: none;
            transition: all .2s;
        }
        .btn-page:hover {
            background: var(--c-primary-b, var(--primary));
            color: #fff;
        }
        .service-modal .modal-footer .btn-page { width: 100%; justify-content: center; }

        /* --- Hero --- */
        .hero-section {
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            margin: 5px 15px 0;
            min-height: 58vh;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            color: #fff;
            /* Repli quand l'officine n'a pas d'image d'accueil : un aplat, pas un
               fichier absent. Le texte du hero est blanc — sans fond coloré il
               deviendrait illisible, et une image codée en dur ici appartiendrait
               à une officine et pas aux autres. index.php pose l'image, s'il y en a une. */
            background: linear-gradient(150deg, var(--primary) 0%, #2f7fae 100%) center/cover no-repeat;
            /* Cadrage choisi dans l'atelier (index.php pose la variable), centré à défaut */
            background-position: var(--hero-pos-mobile, center);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }

        /* Dégradé gris : couvre toute la surface, gris en bas, s'estompe en montant
           (transparent à 100% au-dessus du slogan) */
        .hero-section::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 100%;
            background: linear-gradient(to top,
                rgba(20,20,20,0.85) 0%,
                rgba(20,20,20,0.55) 20%,
                rgba(20,20,20,0) 48%);
            z-index: 1;
            pointer-events: none;
        }

        .hero-slogan-row {
            position: relative;
            z-index: 2;
            width: 100%;
            text-align: center;
            padding: 0 14px 16px;
        }

        .hero-slogan {
            display: inline-block;
            margin: 0;
            white-space: nowrap;
            font-weight: 800;
            line-height: 1.05;
            text-shadow: 0 2px 8px rgba(0,0,0,0.45);
        }
        /* Le H1 : « Pharmacie X à Ville », discret au-dessus du slogan */
        .hero-nom {
            margin: 0 0 8px;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: .1em;
            text-transform: uppercase;
            line-height: 1.25;
            color: #fff;
            text-shadow: 0 2px 8px rgba(0,0,0,0.45);
        }

        /* Sous-titre : sorti du hero, affiché juste en dessous (fond gris en mobile) */
        .hero-subtitle {
            text-align: center;
            font-size: 14px;
            color: #555;
            margin: 0;
            padding: 16px 18px 10px;
        }

        /* Mobile : le bloc titre desktop est masqué (slogan utilisé à la place) */
        .hero-inner {
            display: none;
        }

        .hero-illustration {
            display: none;
        }

        /* --- Section Titles (mobile) --- */
        .section-title {
            padding: 30px 15px 15px;
            font-size: 22px;
            font-weight: 800;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-align: center;
        }

        .section-title i {
            font-size: 24px;
            color: var(--primary);
        }

        .section-title::before,
        .section-title::after {
            content: '';
            flex: 1;
            height: 2px;
        }

        .section-title::before {
            background: linear-gradient(90deg, transparent, rgba(82,179,232,0.3));
            margin-right: 10px;
        }

        .section-title::after {
            background: linear-gradient(90deg, rgba(82,179,232,0.3), transparent);
            margin-left: 10px;
        }

        /* Desktop section header (hidden on mobile) */
        .section-header {
            display: none;
        }

        /* --- Services Grid --- */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 15px;
            padding: 0 15px;
        }

        .service-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: all 0.3s;
            border: 2px solid transparent;
            cursor: pointer;
        }

        /* --- Service Modals --- */

        /* L'ouverture en gelée (grand écran) : la fenêtre arrive un peu
           petite, dépasse sa taille, s'écrase et s'étire deux fois de moins
           en moins, puis se pose. Fluide, pas mécanique — d'où l'étirement
           asymétrique (large puis haut) plutôt qu'un simple rebond d'échelle.
           Bootstrap fait glisser la fenêtre de 50 px vers le bas : on
           remplace ce glissé. À la fermeture, elle se rétracte en douceur
           pendant le fondu. Sur téléphone, la modale est une feuille plein
           écran qui a sa propre gelée (plus bas). */
        @media (min-width: 768px) {
            .service-modal.fade .modal-dialog {
                transform: scale(.85);
                transition: transform .18s ease-in;
            }
            .service-modal.show .modal-dialog {
                transform: none;
                animation: modale-gelee .5s cubic-bezier(.22, .61, .36, 1) both;
            }
        }
        @keyframes modale-gelee {
            0%   { transform: scale(.78, .78); opacity: 0; }
            12%  { opacity: 1; }
            26%  { transform: scale(1.06, .94); }
            46%  { transform: scale(.965, 1.045); }
            66%  { transform: scale(1.02, .988); }
            82%  { transform: scale(.994, 1.006); }
            100% { transform: scale(1, 1); }
        }

        /* Quelqu'un qui a demandé moins de mouvement l'a demandé partout. */
        @media (prefers-reduced-motion: reduce) {
            .service-modal.fade .modal-dialog { transform: none; transition: none; }
            .service-modal.show .modal-dialog { animation: none; }
        }

        .service-modal .modal-content {
            border: none;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            max-height: 92vh;
        }

        .service-modal .modal-header {
            border-bottom: 1px solid #eee;
            padding: 30px 30px 20px;
            position: relative;
            align-items: flex-start;
        }

        .service-modal .modal-header .btn-close {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 1;
        }

        .service-modal-header-inner {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        /* Le rond de l'icône est plein, à la couleur de la modale (sa
           version foncée si elle est trop claire), l'icône en blanc : c'est
           là que vit la couleur, pas sous le texte. */
        .service-modal-icon {
            width: 60px;
            height: 60px;
            min-width: 60px;
            border-radius: 50%;
            background: var(--modale-bouton, var(--primary));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
        }

        .service-modal .modal-title {
            font-size: 22px;
            font-weight: 800;
            color: #333;
            margin-bottom: 4px;
        }

        .service-modal .modal-subtitle {
            font-size: 14px;
            color: #666;
            margin: 0;
        }

        .service-modal .modal-body {
            padding: 20px 30px 30px;
            font-size: 15px;
            color: #555;
            line-height: 1.7;
            overflow-y: auto;
            min-height: 0;
        }

        .service-modal .modal-body h3,
        .service-modal .modal-body h6 {
            font-size: 16px;
            font-weight: 800;
            color: #333;
            margin: 18px 0 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        /* Un point à la couleur de la modale devant chaque intertitre */
        .service-modal .modal-body h3::before,
        .service-modal .modal-body h6::before {
            content: "";
            flex: none;
            width: 10px; height: 10px; border-radius: 50%;
            background: var(--modale-bouton, var(--primary));
            box-shadow: 0 0 0 4px var(--modale-clair, #EAF6FD);
        }

        .service-modal .modal-body h3:first-child,
        .service-modal .modal-body h6:first-child {
            margin-top: 0;
        }

        /* Les listes ordinaires : une coche colorée, le texte reste en ligne
           (position absolue, pas de flex : un <strong> en tête de ligne ne
           se détache pas du reste). */
        .service-modal .modal-body ul:not([class]) {
            list-style: none;
            padding-left: 0;
            margin: 8px 0 12px;
        }
        .service-modal .modal-body ul:not([class]) li {
            position: relative;
            padding-left: 34px;
            margin-bottom: 8px;
        }
        .service-modal .modal-body ul:not([class]) li::before {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute; left: 0; top: 3px;
            width: 24px; height: 24px; border-radius: 50%;
            background: var(--modale-clair, #EAF6FD);
            color: var(--modale-fonce, var(--primary));
            font-size: 11px;
            display: flex; align-items: center; justify-content: center;
        }
        .service-modal .modal-body img { border-radius: 18px !important; }

        /* --- FAQ en accordéon (dropdowns natifs <details>) --- */
        .faq-item {
            border: 0;
            border-top: 1px solid #e7e7e7;
            border-radius: 0;
            margin: 0;
            overflow: visible;
            background: transparent;
        }
        .faq-item:last-of-type { border-bottom: 1px solid #e7e7e7; }
        .faq-item > summary {
            list-style: none;
            cursor: pointer;
            padding: 12px 0;
            font-weight: 700;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .faq-item > summary::-webkit-details-marker { display: none; }
        .faq-item > summary::after {
            content: "\f078"; /* fa-chevron-down */
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            font-size: 12px;
            color: #7EC850;
            flex: 0 0 auto;
            transition: transform 0.2s ease;
        }
        .faq-item[open] > summary::after { transform: rotate(180deg); }
        .faq-item > div {
            padding: 0 0 13px;
            color: #555;
            line-height: 1.6;
        }

        /* Footer fixe en bas du modal (bouton toujours visible pendant le scroll) */
        /* Ce pied ne portait qu'UN bouton du temps de l'ancien site. Depuis
           qu'une modale peut en porter plusieurs, il lui faut une mise en
           page à lui : empilés et pleine largeur sur téléphone, côte à côte
           sur écran large. Sans ça, « En savoir plus » gardait sa pleine
           largeur pendant que « Prendre rendez-vous » passait en largeur
           automatique, et le second retombait seul, à droite, sur une
           deuxième ligne. */
        .service-modal .modal-footer {
            flex-shrink: 0;
            border-top: 1px solid #f0f0f0;
            background: #fff;
            padding: 18px 20px 18px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .service-modal .modal-footer > * {
            margin: 0;   /* Bootstrap espace ses enfants : le gap s'en charge */
        }
        .service-modal .modal-footer .btn-rdv,
        .service-modal .modal-footer .btn-page {
            width: 100%;
            justify-content: center;
        }

        /* La couleur de la modale (variables posées sur .modal-content par
           le gabarit) habille ses boutons et ses encarts : une modale ambre
           a des boutons ambre, une modale bleue des boutons bleus. Sans
           variable, les couleurs du site restent. Le texte d'un bouton plein
           est blanc, ou sombre quand la couleur est trop claire. */
        .service-modal .modal-content {
            --c-primary:   var(--modale, #52B3E8);
            --c-primary-d: var(--modale-fonce, #2E86BE);
            --c-primary-b: var(--modale-bouton, #52B3E8);
            --c-primary-c: var(--modale-clair, #EAF6FD);
            --c-fil:       var(--modale-doux, #cfe7f6);
        }
        /* Le premier bouton du pied est plein, à la couleur de la modale,
           texte blanc — toujours blanc : quand la couleur est trop claire,
           c'est --modale-bouton (assombrie) qui sert de fond. Les suivants
           sont en contour, même couleur. */
        .service-modal .modal-footer .btn-rdv,
        .service-modal .modal-footer .btn-page {
            background: var(--modale-bouton, var(--primary));
            border: 2px solid var(--modale-bouton, var(--primary));
            color: #fff;
            border-radius: 999px;
            min-height: 50px;
        }
        .service-modal .modal-footer > a:nth-child(n+2) {
            background: #fff;
            color: var(--modale-fonce, var(--primary));
        }
        .service-modal .modal-footer .btn-rdv:hover,
        .service-modal .modal-footer .btn-page:hover {
            filter: brightness(.93);
            box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
            transform: none;
        }
        .service-modal .modal-footer > a:nth-child(n+2):hover { filter: none; background: var(--modale-clair, #EAF6FD); }
        .service-modal .faq-item > summary::after { color: var(--modale-fonce, #7EC850); }
        /* Les listes du contenu (c-blocs, c-liste) font leur propre mise en
           page : la marge des listes ordinaires de la modale ne s'y ajoute pas. */
        .service-modal .modal-body ul.c-blocs,
        .service-modal .modal-body ul.c-liste { padding-left: 0; }
        .service-modal .modal-body ul.c-blocs li { margin-bottom: 8px; }

        /* Téléphone : la modale prend tout l'écran. Le titre (icône, nom,
           accroche) est collé en haut et ne bouge pas, le corps défile
           dessous, les boutons sont collés en bas, pleine largeur, hauteur
           de doigt, au-dessus de l'encoche. Elle monte depuis le bas en
           gelée, ancrée par son bord bas : elle dépasse un peu le haut en
           se pinçant sur les côtés, retombe en s'écrasant, ondule deux fois
           de moins en moins, puis se pose. Le dépassement est calibré pour
           que le titre ne sorte jamais de l'écran. À la fermeture, elle
           redescend en douceur pendant le fondu. */
        @media (max-width: 767.98px) {
            .service-modal .modal-dialog {
                margin: 0;
                width: 100%;
                max-width: none;
                height: 100vh;
                height: 100dvh;                      /* barre d'adresse mobile déduite */
                transform-origin: 50% 100%;
            }
            .service-modal .modal-content {
                height: 100%;
                max-height: none;
                border-radius: 0;
                box-shadow: none;
            }
            .service-modal .modal-header {
                padding: 16px 60px 14px 18px;        /* de la place à droite pour la croix */
                padding-top: calc(16px + env(safe-area-inset-top));
                background: #fff;
            }
            .service-modal .modal-header .btn-close {
                top: calc(16px + env(safe-area-inset-top));
                right: 16px;
                padding: 10px;                        /* cible plus large, même croix */
                opacity: .55;
            }
            .service-modal-header-inner { gap: 14px; }
            .service-modal-icon { width: 52px; height: 52px; min-width: 52px; font-size: 22px; }
            .service-modal .modal-title { font-size: 20px; }
            .service-modal .modal-subtitle { font-size: 13.5px; }
            .service-modal .modal-body {
                padding: 18px 18px 26px;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;         /* le défilement ne « fuit » pas vers la page */
            }
            .service-modal .modal-footer {
                padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
                box-shadow: 0 -6px 18px rgba(0,0,0,.06);
                gap: 10px;
            }
            .service-modal .modal-footer .btn-rdv,
            .service-modal .modal-footer .btn-page {
                min-height: 50px;
                padding: 12px 16px;
                font-size: 16px;
            }
            .service-modal.fade .modal-dialog {
                transform: translateY(100%);
                transition: transform .22s ease-in;
            }
            .service-modal.show .modal-dialog {
                transform: none;
                animation: feuille-gelee .6s cubic-bezier(.22, .61, .36, 1) both;
            }
        }
        @keyframes feuille-gelee {
            0%   { transform: translateY(100%) scale(.96, 1); opacity: .6; }
            10%  { opacity: 1; }
            38%  { transform: translateY(-1.6%) scale(.975, 1.01); }  /* dépasse un peu, pincée sur les côtés */
            56%  { transform: translateY(.9%)  scale(1.012, .982); }  /* retombe et s'écrase */
            72%  { transform: translateY(-.4%) scale(.995, 1.006); }
            86%  { transform: translateY(.15%) scale(1.002, .997); }
            100% { transform: none; }
        }

        .btn-rdv {
            background: var(--vert);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 15px;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-rdv:hover {
            background: #6ab33e;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(126,200,80,0.4);
        }

        /* L'icône dans un rond plein à la couleur du service, comme dans la
           modale (7.95). La couleur est posée en inline sur le rond ; le
           fond la reprend (currentColor) et le pictogramme passe en blanc. */
        .service-icon {
            width: 58px;
            height: 58px;
            border-radius: 50%;
            background: currentColor;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            margin: 0 auto 12px;
        }
        .service-icon i { color: #fff; }

        .service-card h3, .service-card h5 {
            font-size: 14px;
            font-weight: 600;
            margin: 0;
            color: #333;
        }

        .service-card p {
            display: none;
        }

        /* --- Horaires --- */
        .info-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin: 0 15px 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .info-card h3 {
            display: none;
        }

        .schedule-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 15px;
        }

        .schedule-row:last-child {
            border-bottom: none;
        }

        .schedule-day {
            font-weight: 600;
            color: #333;
        }

        .schedule-time {
            color: #666;
        }

        .schedule-time.open {
            color: var(--vert-d, #5A9A32);
            font-weight: 700;
        }

        .schedule-time.closed {
            color: #dc3545;
            font-weight: 700;
        }

        /* --- Contact --- */
        /* Mobile : la section contact est masquée (la barre du bas porte appeler/email/itinéraire) */
        .contact-wrapper {
            display: none;
        }

        .contact-section {
            text-align: center;
            padding: 0 15px 15px;
        }

        .contact-section h2,
        .contact-section > p.contact-subtitle {
            display: none;
        }

        .contact-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .contact-btn {
            background: white;
            border: 3px solid var(--primary);
            color: var(--primary);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-weight: 700;
            font-size: 10px;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: all 0.3s;
        }

        .contact-btn i {
            font-size: 24px;
        }

        .contact-btn:hover {
            background: var(--primary);
            color: white;
        }

        /* Desktop contact grid (hidden on mobile) */
        .contact-grid {
            display: none;
        }

        /* Map - hidden on mobile */
        .contact-map {
            display: none;
        }

        /* --- Team --- */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 15px;
            padding: 0 15px 20px;
        }

        .team-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: all 0.3s;
            border: 2px solid transparent;
        }

        .team-avatar {
            width: 70px;
            height: 70px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: 700;
            margin: 0 auto 12px;
        }

        .team-photo {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 12px;
            display: block;
        }

        .team-card:nth-child(2) .team-avatar { background: var(--vert); }
        .team-card:nth-child(3) .team-avatar { background: var(--rose); }
        .team-card:nth-child(4) .team-avatar { background: var(--jaune); color: #333; }

        .team-name {
            font-size: 16px;
            font-weight: 700;
            color: #333;
            margin-bottom: 5px;
        }

        .team-role {
            font-size: 13px;
            color: #666;
        }

        /* --- Bottom Nav (mobile only) --- */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            width: 100%;
            background: white;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            padding: 10px 0;
            z-index: 1000;
        }

        .bottom-nav a {
            text-align: center;
            color: #999;
            text-decoration: none;
            padding: 5px;
        }

        .bottom-nav a.active { color: var(--primary); }

        .bottom-nav a i {
            font-size: 22px;
            display: block;
            margin-bottom: 4px;
        }

        .bottom-nav a span {
            font-size: 11px;
            display: block;
        }

        /* --- Footer --- */
        /* Sur téléphone : un pied compact, gris clair, au-dessus de la barre
           du bas (7.95). Le matricule et le copyright restent visibles. */
        .site-footer {
            display: block;
            background: #f4f6f8;
            color: #6b7280;
            font-size: 12px;
            text-align: center;
            padding: 16px 16px 92px;
        }

        .site-footer p {
            margin: 3px 0;
        }

        .site-footer .text-muted {
            color: #999 !important;
        }

        /* ===========================
           DESKTOP STYLES (>=992px)
           =========================== */
        @media (min-width: 992px) {

            /* Header becomes a proper navbar */
            .site-header {
                background: white;
                padding: 20px 0;
                position: sticky;
            }

            /* Desktop : on repasse en barre horizontale (annule la grille mobile) */
            .header-inner {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .site-brand {
                font-size: 28px;
                font-weight: 800;
                color: #333;
            }

            .site-brand:hover { color: #333; }

            .site-tagline { display: none; }

            .status-badge-wrapper { display: block; }

            .desktop-nav {
                display: flex;
                gap: 5px;
            }

            .desktop-nav a {
                color: #333;
                padding: 8px 20px;
            }

            .desktop-nav a:hover {
                background: var(--primary);
                color: white;
            }

            /* Hide bottom nav on desktop */
            .bottom-nav { display: none; }

            /* Main content */
            .main-content {
                padding-top: 0;
                padding-bottom: 0;
            }
            .svc-page-main { padding-top: 18px; padding-bottom: 30px; }
            .svc-breadcrumb, .svc-page { padding-left: 24px; padding-right: 24px; }
            .svc-page-wrap {
                display: grid;
                grid-template-columns: minmax(0, 1fr) 280px;
                gap: 32px;
                align-items: start;
                padding: 0 24px;
            }
            .svc-page { padding-left: 0; padding-right: 0; }
            .svc-page-back { text-align: left; padding-left: 0; }
            .svc-page-aside { position: sticky; top: 80px; padding: 14px 0 0; }
            .svc-aside-card .btn-plein, .svc-aside-card .btn-page { width: 100%; }

            /* Hide mobile section titles, show desktop headers */
            .section-title { display: none; }

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

            .section-header h2 {
                font-size: 42px;
                font-weight: 800;
                color: #333;
                margin-bottom: 15px;
            }

            .section-header p {
                font-size: 18px;
                color: #666;
            }

            /* Hero - pleine largeur, presque pleine hauteur : slogan SUR la photo, bord concave en bas, sous-titre dessous */
            .hero-section {
                border-radius: 0;
                margin: 0;
                padding: 0;
                min-height: 75vh;
                /* Repli quand l'officine n'a pas d'image d'accueil : un aplat, pas un
               fichier absent. Le texte du hero est blanc — sans fond coloré il
               deviendrait illisible, et une image codée en dur ici appartiendrait
               à une officine et pas aux autres. index.php pose l'image, s'il y en a une. */
            background: linear-gradient(150deg, var(--primary) 0%, #2f7fae 100%) center/cover no-repeat;
                background-position: var(--hero-pos-bureau, center);
                box-shadow: none;
            }

            .hero-section::before { display: block; } /* dégradé (base) pour la lisibilité du slogan */

            /* effet concave en bas du hero (transition photo -> section blanche suivante) */
            .hero-section::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 70px;
                z-index: 2;
                background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 70" preserveAspectRatio="none"><path fill="%23ffffff" d="M0,0 Q720,70 1440,0 L1440,70 L0,70 Z"></path></svg>') no-repeat;
                background-size: 100% 100%;
                bottom: -1px;            /* déborde d'un pixel : plus de liseré gris sous la vague */
                height: 71px;
            }

            .hero-inner { display: none; }

            .hero-slogan-row {
                display: block;
                position: relative;
                z-index: 3;            /* au-dessus de la vague */
                max-width: 1100px;
                margin: 0 auto;
                background: transparent;
                color: #fff;
                padding: 0 20px 96px;  /* le slogan reste au-dessus de la vague (70px) */
            }
            .hero-slogan-row::before { display: none; } /* annule la vague-sur-bande blanche */

            .hero-slogan {
                color: #fff;
                text-shadow: 0 2px 8px rgba(0,0,0,0.45);
            }
            .hero-nom { font-size: 18px; margin-bottom: 12px; }

            .hero-subtitle {
                display: block;
                background: #fff;
                font-size: 28px;       /* même fonte que le slogan, un peu plus petit */
                font-weight: 800;
                color: #555;
                text-align: center;
                margin: 0;
                padding: 24px 20px 18px;
            }

            .hero-illustration { display: none; }
            .hero-icon-mobile { display: none; }

            /* Services */
            .services-wrapper {
                padding: 80px 0;
                background: white;
            }

            .services-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 35px;
                max-width: 1200px;
                margin: 0 auto;
                padding: 0 15px;
            }

            .service-card {
                border-radius: 20px;
                padding: 45px 30px;
                box-shadow: 0 5px 25px rgba(0,0,0,0.08);
            }

            .service-card:hover {
                transform: translateY(-10px);
                box-shadow: 0 15px 40px rgba(0,0,0,0.15);
                border-color: var(--primary);
            }

            .service-icon {
                width: 80px;
                height: 80px;
                font-size: 36px;
                margin-bottom: 22px;
            }

            .service-card h3, .service-card h5 {
                font-size: 20px;
                font-weight: 700;
                margin-bottom: 12px;
            }

            .service-card p {
                display: block;
                color: #666;
                font-size: 15px;
                line-height: 1.6;
                margin: 0;
            }

            /* Horaires */
            .horaires-wrapper {
                padding: 80px 0;
                background: #f8f9fa;
            }

            .info-card {
                max-width: 700px;
                margin: 0 auto;
                border-radius: 20px;
                padding: 50px;
                box-shadow: 0 5px 25px rgba(0,0,0,0.08);
            }

            .info-card h3 {
                display: block;
                font-size: 32px;
                font-weight: 800;
                color: #333;
                margin-bottom: 30px;
            }

            .schedule-row {
                padding: 18px 0;
                border-bottom: 2px solid #f0f0f0;
                font-size: 17px;
            }

            .schedule-day { font-weight: 700; }

            /* Team */
            /* Les sections alternent blanc / gris : Services blanc, Horaires
               gris, Articles blanc, Équipe gris, Contact blanc. */
            .team-wrapper {
                padding: 80px 0;
                background: #f8f9fa;
            }

            .team-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 30px;
                max-width: 1200px;
                margin: 0 auto;
                padding: 0 15px;
            }

            .team-card {
                border-radius: 20px;
                padding: 40px 25px;
                box-shadow: 0 5px 25px rgba(0,0,0,0.08);
            }

            .team-card:hover {
                transform: translateY(-10px);
                box-shadow: 0 15px 40px rgba(0,0,0,0.15);
                border-color: var(--primary);
            }

            .team-avatar {
                width: 100px;
                height: 100px;
                font-size: 36px;
                margin-bottom: 20px;
            }

            .team-photo {
                width: 100px;
                height: 100px;
                margin-bottom: 20px;
            }

            .team-name {
                font-size: 20px;
                margin-bottom: 8px;
            }

            .team-role {
                font-size: 15px;
            }

            /* Contact */
            .contact-wrapper {
                display: block;
                padding: 100px 0 0;
                background: white;
            }

            .contact-section {
                padding: 0 15px;
                max-width: 1200px;
                margin: 0 auto;
            }

            .contact-section h2 {
                display: block;
                font-size: 42px;
                font-weight: 800;
                color: #333;
                margin-bottom: 20px;
            }

            .contact-section > p.contact-subtitle {
                display: block;
                font-size: 18px;
                color: #666;
                margin-bottom: 50px;
            }

            .contact-section .section-title { color: #333; }
            .contact-section .section-title i { color: var(--primary); }

            .contact-buttons { display: none; }

            .contact-grid {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 40px;
                max-width: 1000px;
                margin: 0 auto;
            }

            .contact-item {
                color: #333;
                text-decoration: none;
                padding: 30px;
                transition: transform 0.3s;
                text-align: center;
            }

            .contact-item:hover {
                transform: translateY(-5px);
                color: #333;
            }

            .contact-item i {
                font-size: 50px;
                margin-bottom: 20px;
                color: var(--primary);
                display: block;
            }

            .contact-item h5, .contact-item .contact-libelle {
                font-size: 20px;
                font-weight: 700;
                margin-bottom: 15px;
                color: #333;
            }

            .contact-item p {
                font-size: 16px;
                line-height: 1.8;
                margin: 0;
                color: #666;
            }

            /* Map desktop: full width */
            .contact-map {
                display: block;
                margin: 0;
                padding: 0;
                border-radius: 0;
                box-shadow: none;
                background: none;
                height: 400px;
                position: relative;
            }

            .contact-map iframe {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border-radius: 0;
            }

            /* Footer */
            .site-footer {
                display: block;
                background: #1a1a1a;
                color: white;
                padding: 50px 0;
                text-align: center;
                font-size: 15px;
            }

            .site-footer p { margin: 8px 0; }

            /* Modals desktop (élargi pour les contenus riches) */
            .service-modal .modal-dialog {
                max-width: 800px;
            }
            .service-modal .modal-footer {
                padding: 16px 30px 24px;
                flex-direction: row;
                justify-content: flex-end;
                gap: 12px;
            }
            .service-modal .modal-footer .btn-rdv,
            .service-modal .modal-footer .btn-page {
                width: auto;
            }

            .service-modal .modal-header {
                padding: 40px 40px 20px;
            }

            .service-modal .modal-body {
                padding: 25px 40px 40px;
            }

            /* Un vrai espace sous le trait : les boutons y étaient collés
               (cette règle, plus bas dans le fichier, écrasait le padding
               haut posé quelques lignes au-dessus). */
            .service-modal .modal-footer {
                padding: 22px 40px 40px;
            }

            .service-modal-icon {
                width: 70px;
                height: 70px;
                min-width: 70px;
                font-size: 32px;
            }

            .service-modal .modal-title {
                font-size: 26px;
            }

            .service-modal .modal-subtitle {
                font-size: 15px;
            }
        }
/* ============================================================
   Sélecteur de langue (menu déroulant de drapeaux)
   ============================================================ */
.lang-switch {
    position: relative;
    display: inline-flex;
}
.lang-switch .lang-current {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 10px 8px;           /* une cible de 44 px au doigt, le drapeau ne bouge pas */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    color: inherit;
}
.lang-switch .lang-code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
/* Drapeau « tel quel » : ratio 4:3, pas de badge ni de cadre */
.lang-switch .fi {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}
.lang-switch .lang-caret {
    font-size: 9px;
    opacity: 0.55;
    transition: transform 0.15s ease;
}
.lang-switch.open .lang-caret {
    transform: rotate(180deg);
}
.lang-switch .lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1200;
}
.lang-switch.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-switch .lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.lang-switch .lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
}
.lang-switch .lang-option.active {
    background: rgba(82, 179, 232, 0.14);
    font-weight: 600;
}

        /* ── Mots longs (néerlandais, allemand) ──────────────────────────
           Un mot qu'on ne peut pas couper — « Geneesmiddelenvoorschriften » —
           élargissait sa colonne de grille (1fr a un minimum « contenu »),
           donc la grille, donc la page : les tuiles dépassaient du bord
           droit sur téléphone. Les colonnes sont désormais minmax(0, 1fr)
           (plus haut) et le texte des cartes se coupe au besoin, avec
           césure quand la langue de la page le permet. */
        .service-card, .team-card, .contact-card, .hours-card, .modal-body, .c-article { min-width: 0; overflow-wrap: anywhere; }
        .service-card h3, .service-card h5, .service-card p, .team-card h5, .team-card p, .modal-title { hyphens: auto; }

        /* Une page dédiée courte (grippe, suivi) remplit l'écran : le pied
           reste en bas, plus de bande grise sous lui. */
        body.corps-page { min-height: 100vh; display: flex; flex-direction: column; }
        body.corps-page .svc-page-main { flex: 1 0 auto; width: 100%; }


        /* ═══ Nos articles : un carrousel de cartes, un bouton vers la liste ═══ */
        .articles-wrapper { padding: 40px 0 10px; }
        .articles-carrousel { position: relative; }
        .articles-piste { display: flex; gap: 14px; padding: 6px 15px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .articles-piste::-webkit-scrollbar { display: none; }
        .article-card { flex: 0 0 82%; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.07); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
        .article-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); color: inherit; }
        .article-image { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e8f3fb, #eaf6e2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
        .article-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .article-image picture { display: contents; }
        .article-image i { font-size: 42px; color: var(--primary); opacity: .55; }
        .article-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
        .article-date { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
        .article-card h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin: 0; color: #222; }
        .article-card p { margin: 0; font-size: .92rem; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        .article-lire { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .9rem; color: var(--primary); }
        .article-lire i { margin-left: 6px; transition: transform .2s; }
        .article-card:hover .article-lire i { transform: translateX(4px); }
        .articles-fleches { display: none; }
        .articles-points { display: flex; justify-content: center; gap: 7px; margin-top: 2px; }
        .articles-points:empty { display: none; }
        .articles-points button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #cfd8e3; cursor: pointer; }
        .articles-points button.on { background: var(--primary); width: 22px; border-radius: 4px; }
        .articles-plus { text-align: center; margin: 22px 15px 0; }
        .articles-plus .btn-rdv { display: inline-flex; align-items: center; gap: 8px; }
        /* La page qui les liste tous : une grille, sans encart */
        .articles-grille { display: grid; grid-template-columns: 1fr; gap: 18px; margin: .4rem 0 0; }
        .articles-grille .article-card { flex: none; }
        @media (min-width: 992px) {
            .articles-wrapper { padding: 80px 0; background: white; }
            .articles-carrousel { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
            .articles-piste { gap: 30px; padding: 10px 6px 24px; }
            .article-card { flex: 0 0 calc((100% - 60px) / 3); }
            .article-body { padding: 20px 22px 22px; }
            .article-card h3 { font-size: 1.15rem; }
            .articles-fleches { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
            .articles-fleches[hidden] { display: none; }
            .articles-fleches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
            .articles-fleches button:hover { background: var(--primary); color: #fff; }
            .articles-fleches button:disabled { opacity: .35; cursor: default; }
            .articles-points { margin-top: 12px; }
            .articles-plus { margin-top: 30px; }
            .articles-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
            .svc-page-wrap.pleine { grid-template-columns: 1fr; }
            .svc-page-wrap.pleine .svc-page-col { max-width: none; }
        }

        /* Une tuile qui mène droit à une page : un lien, même allure que les autres */
        a.service-card-lien { display: block; text-decoration: none; color: inherit; }
        a.service-card-lien:hover { color: inherit; }

        /* Lien discret « Rendez-vous B2B » en pied d'accueil */
        .site-footer .footer-b2b { margin: 6px 0 0; }
        .site-footer .footer-b2b a { color: #9aa5b1; font-size: .78rem; text-decoration: none; letter-spacing: .02em; }
        .site-footer .footer-b2b a:hover { color: #c7ced6; text-decoration: underline; }
