:root {
    --color-primary: #2c7a7b;
    --color-primary-dark: #234e52;
    --color-accent: #e6fffa;
    --color-text-main: #2d3748;
    --color-text-muted: #718096;
    --color-bg-body: #ffffff;
    --color-bg-light: #f7fafc;
    --color-gold: #c5a059;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Playfair Display', serif;
    --container-width: 1100px;
    --header-height: 80px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
    --transition-base: all 0.3s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition-base); }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 10px auto 0;
}

h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.text-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.text-link:hover { color: var(--color-primary-dark); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--color-bg-light); }
.bg-teal { background-color: var(--color-primary); color: #fff; }
.text-center { text-align: center; }
.mb-large { margin-bottom: 3rem; }
.mb-tiny { margin-bottom: 0.25rem !important; }

/* --- GESTION IMAGES AVEC EFFET BLUR-UP --- */
.image-placeholder {
    position: relative;
    border-radius: var(--radius-md); 
    background-color: #eee; /* Couleur de fond si tiny image charge mal */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* L'image réelle est transparente au début */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0; 
    transition: opacity 0.6s ease-out;
}

/* Classe ajoutée par JS une fois l'image chargée */
.image-placeholder img.loaded {
    opacity: 1;
}

.btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 700; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm); cursor: pointer;
}
.btn-primary { background-color: var(--color-primary); color: #fff; }
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-white { background-color: #fff; color: var(--color-primary); }
.btn-white:hover { background-color: var(--color-accent); }
.full-width { width: 100%; }

.site-header {
    background-color: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
    height: var(--header-height);
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { height: 60px; width: auto; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a { font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--color-primary); }

.hamburger { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    padding: 10px; 
    width: 44px;
    height: 44px;
    background: none; 
    border: none;
    color: var(--color-primary-dark);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: auto;
    padding: 2rem 0 3rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    padding: 0.5rem 0;
    position: relative;
    border-bottom: none;
}

.mobile-menu a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s;
    margin: 5px auto 0;
}

.mobile-menu a:hover::after {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 75vh; 
    min-height: 75dvh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
    padding: 100px 20px; 
    overflow: hidden;
    background-color: var(--color-primary-dark);
}

.hero-bg-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-size: cover;
    background-position: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-out; /* Plus lent pour le hero */
}
.hero-img.loaded { opacity: 1; }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(44, 122, 123, 0.7), rgba(35, 78, 82, 0.7));
    z-index: 2; pointer-events: none;
}
.hero-content { position: relative; z-index: 3; width: 100%; }

.trust-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero h1 {
    color: #fff; font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.hero p { font-size: 1.25rem; max-width: 650px; margin: 0 auto 2.5rem; opacity: 0.95; }
.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

.single-practitioner-layout {
    display: grid; grid-template-columns: 1fr 350px; gap: 4rem; align-items: start;
}
.practitioner-header-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 1.5rem; }
.role { font-style: italic; color: var(--color-primary); font-weight: 600; display: block; margin-bottom: 0; }

.subtle-rating-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; text-decoration: none; color: var(--color-text-muted);
    padding: 4px 0; transition: var(--transition-base);
}
.google-logo-svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.subtle-rating-link .stars { color: #f59e0b; letter-spacing: 1px; font-size: 0.8rem; line-height: 1; }
.subtle-rating-link:hover .rating-label { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

.diploma-box { margin-top: 2rem; }

.diploma-timeline { 
    position: relative; 
    padding-left: 20px; 
    border-left: 2px solid #e2e8f0; 
    margin-left: 10px; 
}

.diploma-timeline li { 
    position: relative; 
    margin-bottom: 1.5rem; 
    padding-left: 1.5rem; 
}

.diploma-timeline li:last-child {
    margin-bottom: 0;
}

.diploma-timeline li::before {
    content: ''; 
    position: absolute; 
    left: -26px; 
    top: 6px;
    width: 10px; 
    height: 10px; 
    background: var(--color-primary);
    border: 2px solid #fff; 
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-primary);
    z-index: 2;
}

.diploma-timeline .year { display: block; font-weight: 700; color: var(--color-primary-dark); font-size: 0.9rem; }
.diploma-timeline .desc { font-size: 0.95rem; color: var(--color-text-muted); }

.affiliations-box { margin-top: 1.5rem; font-size: 0.9rem; border-top: 1px solid #eee; padding-top: 1rem; color: var(--color-text-muted); }
.practitioner-image-wrapper .image-placeholder { aspect-ratio: 3/4; box-shadow: var(--shadow-md); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.service-card {
    background: #fff; padding: 2rem; border-radius: var(--radius-md); text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); border: 1px solid transparent; transition: var(--transition-base);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.service-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1.5rem; }

.gallery-grid { display: grid; grid-template-columns: 9fr 16fr; gap: 1.5rem; align-items: center; }
.gallery-item .image-placeholder { width: 100%; box-shadow: var(--shadow-md); height: auto; }
.ratio-portrait { aspect-ratio: 3/4; }
.ratio-landscape { aspect-ratio: 4/3; }
.image-caption { text-align: center; margin-top: 0.75rem; font-size: 0.9rem; color: var(--color-text-muted); font-style: italic; }

.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.info-block.white-card {
    background: #fff; color: var(--color-text-main); padding: 2.5rem;
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; height: 100%;
}
.price-list li, .hours-list li {
    display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid #eee;
}
.price-list li:last-child, .hours-list li:last-child { border-bottom: none; }

.payment-methods-clean { margin-top: 1.5rem; font-size: 0.95rem; }
.payment-note { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; color: var(--color-text-muted); }
.payment-note:last-child { margin-bottom: 0; }
.payment-note i { color: var(--color-primary); width: 20px; text-align: center; font-size: 1.1rem; }

.card-cta { margin-top: auto; padding-top: 2rem; text-align: center; }

.contact-layout {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: start;
}

.contact-info { 
    grid-column: 1 / 2; 
    grid-row: 1 / 2; 
}

.map-wrapper { 
    grid-column: 2 / 3; 
    grid-row: 1 / 2; 
    height: 100%; 
    min-height: 350px; 
}

.exterior-wrapper { 
    grid-column: 1 / -1; 
    grid-row: 2 / 3; 
}

.exterior-wrapper .image-placeholder { 
    aspect-ratio: 21/9; 
    box-shadow: var(--shadow-sm); 
}

.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; }
.contact-item .icon {
    width: 40px; height: 40px; background: var(--color-accent); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0;
}

.phone-link {
    display: inline-block; font-weight: 700; font-size: 1.25rem;
    color: var(--color-primary-dark); border: 2px solid var(--color-accent);
    padding: 5px 15px; border-radius: 8px; transition: all 0.2s;
}
.phone-link:hover { background: var(--color-accent); color: var(--color-primary); }

.access-details { background: var(--color-bg-light); padding: 1.5rem; border-radius: var(--radius-md); margin: 1.5rem 0; font-size: 0.95rem; }
.access-details h4 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--color-primary-dark); margin-bottom: 1rem; }
.access-details ul { padding-left: 1.5rem; list-style: circle; margin-top: 0.5rem; }
.access-info-discrete { margin-top: 10px; color: var(--color-text-muted); }

.smart-map-link {
    display: block; width: 100%; height: 100%;
    border-radius: var(--radius-md); overflow: hidden; position: relative;
    box-shadow: var(--shadow-md); border: 2px solid #fff;
    background-color: #e2e8f0;
}
.smart-map-image { width: 100%; height: 100%; background-size: cover; background-position: center; }
.map-overlay {
    position: absolute; inset: 0; 
    background: rgba(44, 122, 123, 0.2);
    transition: background 0.3s ease;
}
.smart-map-link:hover .map-overlay { background: rgba(44, 122, 123, 0.1); }

.map-btn {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: #fff; color: var(--color-primary-dark);
    padding: 12px 24px; border-radius: 30px; font-weight: 700;
    display: flex; gap: 10px; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

footer {
    background-color: var(--color-primary-dark); color: rgba(255,255,255,0.7);
    padding: 2rem 0; text-align: center; font-size: 0.9rem;
}
.footer-content { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.mobile-sticky-cta {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-primary); padding: 1rem; text-align: center;
    z-index: 2000; box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}
.mobile-sticky-cta a { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 900px) {
    .single-practitioner-layout { grid-template-columns: 1fr; gap: 3rem; }
    .practitioner-image-wrapper { order: -1; max-width: 400px; margin: 0 auto; }
    .split-layout { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    
    .contact-layout { grid-template-columns: 1fr; grid-template-rows: auto; gap: 2rem; }
    .contact-info { order: 1; }
    .map-wrapper { order: 2; grid-column: 1; grid-row: auto; min-height: 250px; }
    
    .exterior-wrapper { order: 3; grid-column: 1; grid-row: auto; }
    .exterior-wrapper .image-placeholder { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
    body { padding-bottom: 60px; }
    .header-cta, .main-nav { display: none; }
    .hamburger { display: block; }
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .mobile-sticky-cta { display: block; }
    .card-cta .btn { width: 100%; }
}

/* =========================================
   11. TRANSITION LOADER
   ========================================= */
.transition-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98); /* Fond quasi opaque */
    z-index: 9999; /* Au-dessus de tout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Caché par défaut */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Le Spinner rotatif */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-bg-light);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.transition-overlay p {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}