/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Security-first CSS - No dangerous functions */
:root {
    /* Blue color palette based on #2596be */
    --primary-blue: #2596be;
    --primary-blue-dark: #1d6b8a;
    --primary-blue-light: #4db8d9;
    --secondary-blue: #7ac5e0;
    --light-blue: #a8d8eb;
    --very-light-blue: #d1ecf5;
    --ultra-light-blue: #e8f5fa;
    /* Button colors - darker for reservation buttons */
    --button-reserve: #1d6b8a;
    --button-reserve-hover: #155a75;
    /* Security colors */
    --security-safe: #10b981;
    --security-warning: #f59e0b;
    --security-danger: #ef4444;
    /* Gradients */
    --gradient-blue-1: linear-gradient(135deg, #4db8d9 0%, #2596be 50%, #1d6b8a 100%);
    --gradient-blue-2: linear-gradient(135deg, #7ac5e0 0%, #4db8d9 100%);
    --gradient-blue-3: linear-gradient(135deg, #d1ecf5 0%, #a8d8eb 100%);
    --gradient-blue-4: linear-gradient(135deg, #e8f5fa 0%, #d1ecf5 100%);
    /* White and grays */
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #f1f5f9;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --darker-gray: #475569;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Prevent CSS-based attacks */
script {
    display: none !important;
}

/* Allow Google Maps iframe */
iframe[src*="google.com/maps"] {
    display: block !important;
}

embed, object {
    display: none !important;
}

/* Safe font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hiA.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKfAZ9hiA.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYZ9hiA.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuI6fAZ9hiA.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: 'Poiret One';
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/poiretone/v17/UqyTP9RUJ5-pCB0dOMoednmM.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
}

/* Base styles with security */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Security: Prevent clickjacking */
body {
    position: relative;
}

/* Safe focus styles */
:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Safe hover states */
:hover {
    transition: all 0.3s ease;
}

/* Safe animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Safe transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header / Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

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

.logo-main {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(1);
    margin-left: var(--spacing-sm);
    transition: opacity 0.3s ease;
}

.logo-main:hover {
    opacity: 0.8;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-blue);
    margin: 0;
    font-family: 'Poiret One', cursive;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-line1,
.logo-line2 {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cta-primary {
    background: var(--button-reserve);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-cta-primary:hover {
    background: var(--button-reserve-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue-1);
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 107, 138, 0.9) 0%, rgba(37, 150, 190, 0.85) 50%, rgba(77, 184, 217, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s infinite ease-in-out;
    will-change: transform;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: float1 10s infinite ease-in-out;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: float2 12s infinite ease-in-out;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: float3 9s infinite ease-in-out;
    animation-delay: 1s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    top: 20%;
    left: 15%;
    animation: float2 15s infinite ease-in-out;
    animation-delay: 3s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    right: 20%;
    animation: float1 15 infinite ease-in-out;
    animation-delay: 4s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ffffff 0%, var(--ultra-light-blue) 100%);
}

.btn-primary:hover {
    background: var(--gradient-blue-4);
    color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-reserve {
    background: var(--button-reserve);
    color: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.btn-reserve:hover {
    background: var(--button-reserve-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 0.75rem;
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* About Section */
.about {
    background: linear-gradient(180deg, var(--white) 0%, var(--very-light-blue) 100%);
}

/* Carousel Section */
.carousel-section {
    background: linear-gradient(180deg, var(--very-light-blue) 0%, var(--white) 100%);
    padding: var(--spacing-xl) 0;
}

.carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(37, 150, 190, 0.25), 
                0 0 0 1px rgba(37, 150, 190, 0.1),
                0 10px 30px -5px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--white) 0%, var(--ultra-light-blue) 100%);
    padding: 8px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 4px);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide.prev {
    opacity: 0;
    z-index: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease-out, filter 0.6s ease;
    filter: brightness(0.95) contrast(1.05);
}

.carousel-slide.active img {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.1);
    box-shadow: 0 0 30px rgba(37, 150, 190, 0.2);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active::after {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 150, 190, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 20px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(37, 150, 190, 0.2);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-color: var(--primary-blue);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37, 150, 190, 0.4);
}

@media (max-width: 768px) {
    .carousel-slides {
        height: 400px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        padding: 8px 12px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicator.active {
        width: 25px;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
    line-height: 1.8;
}

.about-features {
    margin-top: var(--spacing-md);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.feature-text h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.image-placeholder {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--gradient-blue-4);
}

.placeholder-content {
    text-align: center;
    color: var(--primary-blue);
}

.placeholder-content p {
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

/* Technologies Section */
.technologies {
    background: linear-gradient(180deg, var(--white) 0%, var(--very-light-blue) 100%);
    padding: var(--spacing-xl) 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.tech-item {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}


.tech-image {
    margin-top: var(--spacing-md);
    order: 2;
}

.tech-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.tech-item h4 {
    order: 1;
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
}

.tech-item p {
    order: 1;
    color: var(--gray);
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
    background: var(--gradient-blue-4);
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--very-light-blue) 0%, var(--white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(37, 150, 190, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 150, 190, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, var(--ultra-light-blue) 100%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
    background: var(--gradient-blue-4);
}

.service-card:active {
    transform: translateY(-3px);
}

.service-card[data-service="preventifs"] {
    position: relative;
    background-image: url('img/soins_preventifs.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}


.service-card[data-service="preventifs"] > * {
    position: relative;
    z-index: 1;
}

.service-card[data-service="conservateurs"] {
    position: relative;
    background-image: url('img/soins_conservateurs.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}


.service-card[data-service="conservateurs"] > * {
    position: relative;
    z-index: 1;
}

.service-card[data-service="protheses"] {
    position: relative;
    background-image: url('img/protheses.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.service-card[data-service="protheses"] > * {
    position: relative;
    z-index: 1;
}

.service-card[data-service="blanchiment"] {
    position: relative;
    background-image: url('img/eclaircissement.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}


.service-card[data-service="blanchiment"] > * {
    position: relative;
    z-index: 1;
}

.service-card[data-service="parodontologie"] {
    position: relative;
    background-image: url('img/parondontologie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}


.service-card[data-service="parodontologie"] > * {
    position: relative;
    z-index: 1;
}

.service-card[data-service="implantologie"] {
    position: relative;
    background-image: url('img/implantologie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}


.service-card[data-service="implantologie"] > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue-2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    margin-left: -35px;
    margin-top: -35px;
    color: var(--white);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue-light) 100%);
}


.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: -45px;
    margin-top: auto;
    padding: 0rem 0rem;
    padding-bottom: var(--spacing-md);
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    display: inline-block;
    backdrop-filter: blur(5px);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
}

.services-cta {
    text-align: center;
}

/* Team Section */
.team {
    background: linear-gradient(180deg, var(--white) 0%, var(--very-light-blue) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.team-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--ultra-light-blue) 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 150, 190, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 150, 190, 0.1);
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37, 150, 190, 0.15);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-blue-4);
}

.team-image {
    margin-bottom: var(--spacing-sm);
}

.team-placeholder {
    background: var(--gradient-blue-4);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.team-image img,
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

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

.about-image .image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    line-height: 0;
    transition: box-shadow 0.2s ease;
}

.about-image .image-container:hover {
    box-shadow: 0 25px 50px -12px rgba(37, 150, 190, 0.35);
}

.about-image .image-container:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.team-image .image-container {
    border-radius: 50%;
    overflow: hidden;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-image .image-container:hover {
    transform: scale(1.05);
}

.team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Team Photo Modal */
.team-photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
    animation: slideUp 0.3s ease;
    border: 3px solid var(--primary-blue);
    cursor: default;
    transition: transform 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll restoration */
body.scroll-locked {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

.team-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary-blue-light);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.team-description {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray);
    margin: 0;
}

.contact-map-container {
    background: var(--gradient-blue-4);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 400px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--gradient-blue-1);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Legal Page Styles */
.legal-page {
    padding-top: 100px;
    padding-bottom: var(--spacing-lg);
    background: linear-gradient(180deg, var(--white) 0%, var(--ultra-light-blue) 100%);
    min-height: calc(100vh - 80px);
}

.legal-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.legal-header h1 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.legal-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(37, 150, 190, 0.1);
}

.legal-section {
    margin-bottom: 12px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--very-light-blue);
    font-weight: 700;
}

.legal-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--ultra-light-blue);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue);
}

.legal-item:last-child {
    margin-bottom: 0;
}

.legal-item h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.legal-item p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.legal-item p:last-child {
    margin-bottom: 0;
}

.legal-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-item a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: var(--spacing-sm) 0;
}

.legal-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
    color: var(--dark-gray);
    line-height: 1.8;
}

.legal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-contact {
    background: var(--ultra-light-blue);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue);
}

.legal-practitioners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.practitioner-item {
    background: var(--ultra-light-blue);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practitioner-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.practitioner-item h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.practitioner-item p {
    margin: 0.25rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.practitioner-item p:last-child {
    color: var(--gray);
    font-style: italic;
}

.legal-contact p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

.legal-back {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-page .container {
        padding: var(--spacing-md);
    }
    
    .legal-content {
        padding: var(--spacing-md);
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-item {
        padding: var(--spacing-sm);
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-blue-2);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
}

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

.scroll-to-top:hover {
    background: var(--gradient-blue-1);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-3px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(80px, -60px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-50px, 70px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translate(60px, 40px) rotate(270deg) scale(1.05);
    }
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(120px, -80px) rotate(72deg) scale(1.15);
    }
    40% {
        transform: translate(-90px, 100px) rotate(144deg) scale(0.9);
    }
    60% {
        transform: translate(100px, 60px) rotate(216deg) scale(1.1);
    }
    80% {
        transform: translate(-70px, -50px) rotate(288deg) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(-100px, 90px) rotate(-90deg) scale(1.2);
    }
    50% {
        transform: translate(70px, -80px) rotate(-180deg) scale(0.85);
    }
    75% {
        transform: translate(-60px, -40px) rotate(-270deg) scale(1.1);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    30% {
        transform: translate(90px, -70px) rotate(108deg) scale(1.25);
    }
    60% {
        transform: translate(-80px, 90px) rotate(216deg) scale(0.8);
    }
    90% {
        transform: translate(50px, 30px) rotate(324deg) scale(1.15);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .btn-cta-primary {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.service-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 2001;
}

.service-modal-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    object-fit: contain;
    filter: brightness(1.1) saturate(1.2);
}

.service-modal.active .service-modal-content {
    transform: scale(1) translateY(0);
}

.service-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gradient-blue-2);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-modal-close:hover {
    background: var(--gradient-blue-1);
    transform: rotate(90deg) scale(1.1);
}

.service-modal-body {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-lg);
}

.service-modal-body h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    padding-right: 60px;
}

.service-modal-body h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.service-modal-body p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.service-modal-body ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0;
}

.service-modal-body ul li {
    padding: var(--spacing-xs) 0;
    padding-left: 30px;
    position: relative;
    color: var(--dark-gray);
    line-height: 1.7;
}

.service-modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-modal-cta {
    margin-top: var(--spacing-lg);
    text-align: center;
}

@media (max-width: 768px) {
    .service-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .service-modal-body {
        padding: var(--spacing-md);
    }
    
    .service-modal-body h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   MESSAGE DE BIENVENUE
   ============================================ */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 107, 138, 0.98) 0%, rgba(37, 150, 190, 0.98) 50%, rgba(77, 184, 217, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    visibility: visible;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    text-align: left;
    color: var(--white);
    max-width: 900px;
    padding: 3rem;
    animation: welcomeFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.welcome-title-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.welcome-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.welcome-logo-container {
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 0;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.welcome-logo-main {
    width: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
    animation: logoGlow 2s ease-in-out infinite alternate;
    display: block;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 8px 24px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    to {
        filter: drop-shadow(0 8px 24px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
}

.welcome-text {
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.welcome-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: titleSlideIn 1s ease-out 0.3s both;
    font-family: 'Poiret One', cursive;
    color: #ffffff;
    display: block;
}

.welcome-title-line2 {
    margin-top: 0;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-message {
    font-size: 2.25rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: messageSlideIn 1s ease-out 0.6s both;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 0.95;
        transform: translateX(0);
    }
}

.welcome-loader {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    animation: loaderFadeIn 1s ease-out 0.9s both;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loader-line {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 10px;
    animation: loaderMove 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes loaderMove {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(350%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: shimmerRotate 8s linear infinite;
    pointer-events: none;
}

@keyframes shimmerRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .welcome-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .welcome-title-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .welcome-title-wrapper {
        align-items: center;
        text-align: center;
    }
    
    .welcome-logo-main {
        width: 120px;
    }
    
    .welcome-title {
        font-size: 3rem;
    }
    
    .welcome-message {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .welcome-loader {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .welcome-content {
        padding: 1.5rem 1rem;
        max-width: 95%;
    }
    
    .welcome-title-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .welcome-title-wrapper {
        align-items: center;
        text-align: center;
    }
    
    .welcome-logo-main {
        width: 100px;
    }
    
    .welcome-title {
        font-size: 2.25rem;
    }
    
    .welcome-message {
        font-size: 1.5rem;
        text-align: center;
    }
}

/* Responsive Design for Technologies */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .tech-item {
        min-height: 250px;
        padding: var(--spacing-md);
        background-size: 30% !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
    
    .tech-item:hover {
        background-color: white !important;
        box-shadow: var(--shadow-lg) !important;
    }
    
    .tech-item h4 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .tech-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .tech-item:hover {
        background-color: white !important;
        box-shadow: var(--shadow-lg) !important;
    }
}

@media (max-width: 480px) {
    .technologies {
        display: none;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================================
   ADMINISTRATION MAIN
   ============================================ */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #e2e8f0;
    border-radius: var(--radius-md);
    border: 1px solid #94a3b8;
    margin-bottom: 1rem;
}

.speed-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #e2e8f0;
    border-radius: var(--radius-md);
    border: 1px solid #94a3b8;
}

.speed-label {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.speed-select {
    padding: 0.5rem;
    border: 1px solid #94a3b8;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.speed-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.admin-main {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.admin-container {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.admin-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.section-header-admin {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   MODAL DES MESSAGES
   ============================================ */

.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.admin-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.admin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.admin-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

.admin-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    z-index: 10;
}

.admin-modal-close:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
}

.admin-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.admin-modal-body {
    padding: 2rem;
}

/* ============================================
   MODAL DES HORAIRES
   ============================================ */
.horaires-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.horaires-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.horaires-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 107, 138, 0.85) 0%, rgba(37, 150, 190, 0.9) 100%);
    backdrop-filter: blur(8px) saturate(180%);
    animation: fadeIn 0.4s ease;
}

.horaires-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    max-width: 680px;
    width: 90%;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.horaires-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.horaires-modal-close:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 12px -2px rgba(37, 150, 190, 0.4);
}

.horaires-header {
    padding: 1.75rem 2rem 1.75rem;
    text-align: center;
    background: linear-gradient(135deg, #1d6b8a 0%, #2596be 50%, #4db8d9 100%);
    color: var(--white);
    position: relative;
    overflow: visible;
}

.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: -40px;
    right: -40px;
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: 10%;
    animation-delay: 2s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: -20px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.header-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    animation: iconPulse 3s ease-in-out infinite;
}

.header-icon svg {
    width: 32px;
    height: 32px;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.horaires-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 2px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    line-height: 1.3;
    padding: 0 1rem;
}

.horaires-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.horaires-status-badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px rgba(255, 255, 255, 0.3);
    animation: statusPulse 2s ease-in-out infinite;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: ripple 2s ease-out infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.status-indicator.open {
    background: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.7), 0 0 32px rgba(16, 185, 129, 0.4);
}

.status-indicator.closed {
    background: #ef4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.7), 0 0 32px rgba(239, 68, 68, 0.4);
}

.horaires-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.schedule-section, .days-section {
    margin-bottom: 2.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.section-title svg {
    color: var(--primary-blue);
    width: 22px;
    height: 22px;
}

.schedule-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.schedule-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 150, 190, 0.15);
    border-color: var(--primary-blue-light);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-icon.morning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.card-icon.afternoon {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.card-content {
    text-align: center;
}

.time-range {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.time-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.schedule-days {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.day-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.day-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 150, 190, 0.1);
    border-color: var(--primary-blue-light);
}

.day-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.day-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--ultra-light-blue);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.day-name {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1rem;
}

.day-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.day-status.open {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.day-status.open .status-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.day-status.closed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.day-status.closed .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.horaires-phone-info {
    margin-top: 1rem;
}

.phone-card {
    background: linear-gradient(135deg, #e8f5fa 0%, #d1ecf5 50%, #a8d8eb 100%);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    border: 2px solid var(--light-blue);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(37, 150, 190, 0.1);
}

.agenda-card {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 50%, #ffd699 100%);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    border: 2px solid #ffb366;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(255, 179, 102, 0.1);
}

.agenda-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.agenda-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ff9500 0%, #ff6200 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 16px rgba(255, 149, 0, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: agendaPulse 2s ease-in-out infinite;
}

@keyframes agendaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.agenda-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff6200;
    margin: 0;
}

.agenda-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.agenda-margin-top {
    margin-top: 1.5rem;
}

.phone-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.phone-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 16px rgba(37, 150, 190, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.phone-content {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.phone-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(37, 150, 190, 0.3);
    text-align: center;
}

.phone-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.phone-description {
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 150, 190, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.phone-number:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(37, 150, 190, 0.4);
}

.phone-number:hover::before {
    left: 100%;
}

.phone-number svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .horaires-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .phone-number {
        font-size: 1.2rem;
        padding: 0.8rem 1.2rem;
    }
    
    .phone-number svg {
        width: 18px;
        height: 18px;
    }
    
    .agenda-card {
        padding: 1.5rem;
    }
    
    .agenda-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .agenda-content h3 {
        font-size: 1.1rem;
    }
    
    .agenda-description {
        font-size: 0.9rem;
    }
    
    .horaires-header {
        padding: 1.5rem 1.5rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .agenda-card {
        padding: 1.2rem;
    }
    
    .agenda-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .agenda-content h3 {
        font-size: 1rem;
    }
    
    .agenda-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .agenda-margin-top {
        margin-top: 1rem;
    }
}
    
    .horaires-header h2 {
        font-size: 1.25rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 3px rgba(0, 0, 0, 0.6);
        padding: 0 0.5rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .header-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .horaires-status-badge {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .status-indicator {
        width: 8px;
        height: 8px;
    }
    
    .horaires-body {
        padding: 1.75rem;
    }
    
    .schedule-cards {
        grid-template-columns: 1fr;
    }
    
    .phone-card {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem;
    }
    
    .phone-icon-wrapper {
        margin: 0 auto;
    }
    
    .time-range {
        font-size: 1.5rem;
    }
    
    .day-item {
        padding: 0.875rem 1rem;
    }
}

/* ============================================
   BANDEAU DE MESSAGE DÉFILANT POUR LES PATIENTS
   ============================================ */
.rotating-message-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    pointer-events: none; /* Permet les clics à travers - ne bloque pas l'interaction */
    overflow: visible;
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: flex-start;
}

.rotating-message-track {
    position: relative;
    width: 100vw;
    height: 100%;
    overflow: visible;
}

.rotating-message {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
    padding: 2rem 3rem;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(37, 150, 190, 0.4),
                0 0 0 2px rgba(255, 255, 255, 0.2),
                0 0 40px rgba(37, 150, 190, 0.3);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    animation: scrollHorizontal 30s linear infinite, messageGlow 3s ease-in-out infinite alternate;
    will-change: transform;
    z-index: 1;
}

@keyframes scrollHorizontal {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ============================================
   CAPTCHA VISUEL AMÉLIORÉ (hCaptcha-like)
   ============================================ */
#captchaCanvas {
    border: 1px solid var(--light-blue);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.captcha-refresh {
    background: var(--secondary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--spacing-xs);
}

.captcha-refresh:hover {
    background: var(--primary-blue);
    transform: rotate(180deg);
}

@keyframes messageGlow {
    0% {
        box-shadow: 0 8px 24px rgba(37, 150, 190, 0.4),
                    0 0 0 2px rgba(255, 255, 255, 0.2),
                    0 0 40px rgba(37, 150, 190, 0.3);
    }
    100% {
        box-shadow: 0 8px 32px rgba(37, 150, 190, 0.6),
                    0 0 0 2px rgba(255, 255, 255, 0.3),
                    0 0 60px rgba(37, 150, 190, 0.5);
    }
}

/* Support pour plusieurs messages qui défilent avec des décalages */
.rotating-message-track.multiple-messages .rotating-message {
    /* Chaque message aura son propre délai calculé dynamiquement */
}

@media (max-width: 768px) {
    .rotating-message {
        font-size: 0.95rem;
        padding: 1.75rem 2.5rem;
    }
    
    .rotating-message {
        animation-duration: 25s, 3s;
    }
}

@media (max-width: 480px) {
    .rotating-message {
        font-size: 0.85rem;
        padding: 1.5rem 2rem;
    }
    
    .rotating-message {
        animation-duration: 20s, 3s;
    }
}

