/* === ATLANTIQUE LAB - CSS OPTIMISÉ & PERFORMANCE === */
/* === ATLANTIQUE LAB - CSS OPTIMISÉ & PERFORMANCE === */
/* Font loaded via HTML for better performance */

:root {
    /* Palette de couleurs */
    --medical-blue: #0A2342;
    --accent: #0A66C2;
    --light-blue: #E0F2F7;
    --silver: #F0F2F5;
    --text-dark: #2D3748;
    --text-light: #718096;
    --white: #FFFFFF;
    --grey-bg: #f8f8f8;
    --gold: #d4af37;

    /* Logo Specifics */
    --logo-primary-blue: #0A2342;
    --logo-secondary-blue: #0A66C2;
    --logo-accent-light: #E0F2F7;
    --logo-white: #FFFFFF;

    /* Dimensions */
    --header-height: 80px;
}

/* === RÉINITIALISATION OPTIMISÉE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Empêche le header fixe de cacher les titres lors du scroll */
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Rendu texte plus net sur Mac */
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHIE === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: var(--medical-blue);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3em);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2em);
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Classe utilitaire pour accessibilité (lecteurs d'écran uniquement) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === BOUTONS === */
.btn-primary,
.btn-secondary,
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--medical-blue), var(--accent));
    color: var(--white);
    box-shadow: 0 5px 20px rgba(14, 76, 117, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 76, 117, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--accent);
}

.btn-cta {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--medical-blue);
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.4);
    /* Animation désactivée si l'utilisateur préfère réduire le mouvement */
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
    .btn-cta {
        animation: pulse-animation 2.5s infinite;
    }
}

@keyframes pulse-animation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--medical-blue);
    box-shadow: 0 5px 15px rgba(14, 76, 117, 0.1);
    border: 1px solid rgba(14, 76, 117, 0.1);
    white-space: nowrap;
}

.badge i {
    margin-right: 0.5rem;
    color: var(--accent);
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.text-center {
    text-align: center;
}

/* === HEADER & NAVIGATION === */
header {
    background-color: rgba(255, 255, 255, 0.92);
    /* Glass Base */
    backdrop-filter: blur(12px);
    /* Blur Effect */
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft Shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-symbol {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--logo-primary-blue) 0%, var(--logo-secondary-blue) 100%);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(10, 35, 66, 0.25);
}

.logo-icon i {
    color: var(--logo-white);
    font-size: 24px;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--logo-primary-blue);
    line-height: 1;
}

.logo-text span {
    color: var(--logo-secondary-blue);
}

.logo-subtitle {
    font-size: 10px;
    color: var(--logo-primary-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: right;
}

/* Navigation Desktop */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul li a {
    color: var(--medical-blue);
    font-weight: 500;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--accent);
}

/* Sous-menus */
.has-submenu {
    position: relative;
}

.has-submenu>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-submenu .fa-chevron-down {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 993px) {

    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu {
        display: block;
    }

    .has-submenu:hover .fa-chevron-down {
        transform: rotate(180deg);
    }
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--medical-blue);
    transition: all 0.2s ease;
}

.submenu li a:hover {
    background-color: var(--light-blue);
    color: var(--accent);
    padding-left: 25px;
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: var(--medical-blue);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* === SECTIONS === */
section {
    padding: 80px 0;
    /* Optimisation : ne calcule le rendu que si proche de l'écran */
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.hero,
.contact-section,
.page-header {
    /* Ces sections sont visibles au chargement, pas de content-visibility */
    content-visibility: visible;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    margin-bottom: 15px;
}

.section-heading p {
    font-size: 1.1em;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* === BREADCRUMB === */
.breadcrumb {
    padding: 15px 0;
    background-color: var(--grey-bg);
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '\f054';
    /* FontAwesome chevron-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7em;
    margin: 0 10px;
    color: var(--text-light);
    opacity: 0.6;
}

/* === FORM STYLING (PREMIUM) === */
.form-group {
    margin-bottom: 20px;
}

/* Contact Form Container with Blue Top Border */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent);
    /* Blue Top Border like "Conception & Essayage" */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--medical-blue);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    /* Smooth corners */
    background-color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.1);
    /* Glow effect */
}

/* Checkbox styling if needed (future proofing) */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.breadcrumb a {
    color: var(--text-light);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .current {
    color: var(--medical-blue);
    font-weight: 600;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, #0A66C2 0%, #0A4E93 100%);
    padding: 40px 0;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Performance */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.hero h1 {
    color: var(--white);
    opacity: 0;
    /* Géré par JS */
    transform: translateY(30px);
}

.hero p,
.hero-buttons,
.hero-badges {
    opacity: 0;
    /* Géré par JS */
    transform: translateY(30px);
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4em);
    color: var(--light-blue);
    max-width: 700px;
    margin: 0 auto 2em auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* === ABOUT & SERVICES === */
.about {
    background: linear-gradient(to bottom, var(--light-blue) 0%, var(--white) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img,
.service-image img,
.prothese-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.services {
    background-color: var(--grey-bg);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center items, including orphans */
    gap: 30px;
}

/* Ensure items have consistent width in Flex mode */
/* Ensure items have consistent width in Flex mode */
.service-item {
    flex: 1 1 300px;
    /* Grow, Shrink, Basis 300px */
    max-width: 400px;
    /* Prevent over-stretching on wide screens */
    background-color: var(--white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Levitation */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -10px rgba(10, 35, 66, 0.15);
}

.service-item i {
    font-size: 3em;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* === CATALOGUE & PAGES === */
.page-header {
    background: linear-gradient(135deg, #0A66C2 0%, #0A4E93 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0 60px 0;
}

.page-header h1 {
    color: var(--white);
}

.page-header p {
    color: var(--light-blue);
    font-size: 1.2em;
}

.prothese-item-section,
.service-item-section {
    padding: 80px 0;
}

.prothese-item-section:nth-child(even),
.service-item-section:nth-child(even) {
    background-color: var(--grey-bg);
}

.prothese-grid,
.service-grid {
    display: flex;
    gap: 60px;
    align-items: center;
}



.prothese-content,
.service-content {
    flex: 1;
}

.prothese-image,
.service-image {
    flex: 1;
}

/* === CONTACT & FORM === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-item i {
    color: var(--accent);
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--silver);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(10, 102, 194, 0.2);
}

/* === FOOTER === */
/* === PROFESSIONAL FOOTER (Redesigned) === */
.main-footer {
    background-color: #0d1b2a;
    /* Deep Dark Blue */
    color: #e0e1dd;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    text-align: left;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #d4af37;
    /* Gold Accent */
    border-radius: 2px;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #b0bec5;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links-list a:hover {
    color: #d4af37;
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    color: #b0bec5;
}

.footer-contact-info i {
    color: #d4af37;
    margin-right: 15px;
    margin-top: 4px;
    font-size: 1.1rem;
    min-width: 20px;
}

.footer-contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: #d4af37;
    transform: translateY(-3px);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.copyright {
    opacity: 0.7;
}

.footer-legal-links a {
    color: #778ca3;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #d4af37;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 60px 0 40px;
        text-align: left;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links a {
        margin: 0 10px;
    }
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {

    .about-grid,
    .prothese-grid,
    .service-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .prothese-item-section:nth-child(odd) .prothese-grid,
    .service-item-section:nth-child(odd) .service-grid {
        flex-direction: column-reverse;
    }

    .prothese-image,
    .service-image {
        width: 100%;
    }

    /* Menu Mobile Performance */
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--medical-blue);
        padding-top: 80px;
        /* Utilisation de transform pour l'animation (GPU) */
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 15px 25px;
        color: var(--white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Sous-menu Mobile */
    .submenu {
        position: static;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        opacity: 1;
        transform: none;
        display: none;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    .has-submenu.open .fa-chevron-down {
        transform: rotate(180deg);
    }

    .submenu li a {
        padding-left: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* === TRUST GRID === */
.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.trust-icon {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.trust-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.trust-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === ABOUT SECTION SPECIFICS === */
.about-list {
    margin-bottom: 20px;
    margin-top: 10px;
    list-style: none;
}

.list-icon {
    color: #d4af37;
}

.mt-10 {
    margin-top: 10px;
}

/* === WHY US SECTION === */
.why-us {
    padding: 80px 0;
    background-color: #f8f8f8;
}

/* === PROCESS SECTION === */
.process {
    padding: 80px 0;
}

.process-container {
    max-width: 900px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0A2342, #0A66C2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: 700;
}

.step-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.step-desc {
    color: #718096;
}

/* === ZONES SECTION === */
.zones {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.zones-intro-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.zones-intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.zone-card {
    display: block;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.3s;
}

.zone-card-static {
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.zone-icon {
    font-size: 2em;
    color: #0A66C2;
    margin-bottom: 10px;
}

.zone-title {
    font-size: 1.3em;
    color: #0A2342;
    margin-bottom: 5px;
}

.zone-subtitle {
    color: #718096;
    font-size: 0.9em;
}

/* === OFFER BOX === */
.offer-box {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #0A66C2 0%, #0A4E93 100%);
    border-radius: 12px;
    color: white;
}

.offer-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: white;
}

.offer-text {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.offer-conditions {
    margin: 20px 0;
}

/* === MISC === */
.footer-logo-text {
    color: #E0F2F7;
    margin-top: 10px;
}

.gold-link {
    color: #d4af37;
}

.footer-sublinks {
    margin-top: 15px;
}

.legal-link {
    color: #aaa;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9em;
}

.hero-subtitle {
    font-size: 1.1em;
    margin-top: 1rem;
    color: #E0F2F7;
}

/* === CONTACT PAGE SPECIFICS === */
.map-iframe {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === LEGAL PAGE SPECIFICS === */
.legal-section {
    padding: 60px 0;
}

.legal-container {
    max-width: 800px;
}

.legal-heading {
    color: var(--medical-blue);
    margin-top: 30px;
}

.legal-list {
    margin-bottom: 20px;
    margin-top: 10px;
    list-style: none;
}

/* === PAGE COURONNES ZIRCONE === */
.responsive-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

th,
td {
    border: 1px solid #e0e0e0;
    padding: 14px;
    text-align: left;
    font-size: 0.95rem;
}

th {
    background-color: #f4f6f9;
    color: var(--medical-blue);
    font-weight: 700;
}

.text-expert {
    color: var(--medical-blue);
    font-weight: 700;
}

.cta-button {
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #004080;
}

/* Ajustements pour le contenu riche */
article ul,
article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* === PAGE FACETTES E.MAX === */
:root {
    --emax-color: #512da8;
    --emax-light: #f3e5f5;
}

.alert-box {
    background-color: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.formula-box {
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    margin: 20px 0;
    border: 1px dashed #bbb;
}

/* === PAGE INLAY-CORE === */
:root {
    --rcr-color: #37474f;
    --rcr-light: #eceff1;
}

.tech-highlight {
    border-left: 4px solid #ffab00;
    background: #fff8e1;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

/* === PAGE STELLITE === */
:root {
    --amovible-color: #006064;
    --amovible-light: #e0f7fa;
}

.benefit-card {
    background: #fff;
    padding: 20px;
    border-left: 4px solid var(--amovible-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* === PAGE IMPLANTOLOGIE === */
:root {
    --imp-color: #263238;
    --imp-accent: #0277bd;
    --imp-bg: #eceff1;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.brand-tag {
    background: #fff;
    border: 1px solid #cfd8dc;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #546e7a;
    border-radius: 4px;
    font-size: 0.9em;
}

.alert-clinical {
    background-color: #e1f5fe;
    border-left: 4px solid var(--imp-accent);
    padding: 20px;
    margin: 30px 0;
}

/* === PAGE ORTHODONTIE === */
:root {
    --ortho-color: #00838f;
    --ortho-bg: #e0f7fa;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    color: var(--ortho-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tech-badge {
    background: #00838f;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 10px;
}

/* === ZONES D'INTERVENTION (Refactor Clean) === */
.zones-section {
    background-color: #1a3c5e;
    color: var(--white);
    padding: 50px 0;
    border-bottom: 4px solid #d4af37;
}

.zones-section h2 {
    color: var(--white);
    margin-bottom: 40px;
}

.zones-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.zone-link {
    text-decoration: none;
    color: var(--white);
    transition: transform 0.3s ease;
    display: block;
}

.zone-link:hover {
    transform: translateY(-5px);
}

.zone-icon {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.zone-city {
    font-weight: 700;
    font-size: 1.2rem;
}

.zone-region {
    font-size: 0.9rem;
    opacity: 0.8;
}

.zones-footer-text {
    margin-top: 40px;
    font-size: 1.1em;
    opacity: 0.9;
    color: #ddd;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === REFACTORING CLASSES (CLEANUP) === */

/* Utilities */
.text-gold {
    color: var(--gold) !important;
}

.text-dark-blue {
    color: var(--medical-blue) !important;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-white {
    background-color: var(--white);
}

/* Components */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
}

.hero-subtitle-span {
    font-size: 0.6em;
    font-weight: 400;
}

.trust-bar {
    background-color: var(--medical-blue);
    color: var(--white);
    padding: 25px 0;
    border-bottom: 4px solid var(--gold);
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.trust-item i {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.trust-item-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.trust-item-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-link {
    color: var(--medical-blue);
    font-weight: bold;
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

.tech-services {
    background-color: #f8f9fa;
    color: #333;
}

.tech-service-heading {
    color: var(--medical-blue);
}

.tech-service-sub {
    color: #666;
}

.tech-service-item {
    background: white;
}

.tech-service-btn {
    font-size: 0.9em;
    margin-top: 10px;
    display: inline-block;
}

.about-list {
    margin-bottom: 20px;
    margin-top: 10px;
    list-style: none;
}

.list-icon-gold {
    color: var(--gold);
}

.footer-logo-container {
    margin-bottom: 20px;
}

.footer-heading-logo {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.zones-footer-text {
    margin-top: 40px;
    font-size: 1.1em;
    opacity: 0.9;
    color: #ddd;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === ALTERNATING LAYOUT (DESKTOP) === */
@media (min-width: 993px) {

    .service-item-section:nth-of-type(odd) .service-grid,
    .prothese-item-section:nth-of-type(odd) .prothese-grid {
        flex-direction: row-reverse;
    }
}

/* === MOBILE MENU FIX & BACK TO TOP === */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        /* Show hamburger on mobile */
    }

    /* Main Nav Overlay - Glass Style */
    nav#main-nav {
        display: none;
        /* Hide by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.96);
        /* Glass effect */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    nav#main-nav.active {
        display: block;
        /* Show when active */
        animation: fadeIn 0.3s ease;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        color: var(--medical-blue);
        /* Ensure main links are dark */
    }

    /* Submenu visibility fix */
    nav ul .submenu {
        position: static;
        box-shadow: none;
        background-color: #ffffff;
        /* Solid White Background */
        padding: 0;
        display: none;
        /* Hidden by default */
        opacity: 1;
        visibility: visible;
        width: 100%;
        transform: none;
        border-radius: 8px;
        margin-top: 0;
        border: 1px solid #f0f0f0;
    }

    /* Class '.open' is toggled by JS on the li */
    nav ul li.open>.submenu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    nav ul li.open .fa-chevron-down {
        transform: rotate(180deg);
    }


    /* Submenu Links - HIGH CONTRAST */
    nav ul .submenu li a {
        padding: 12px 20px;
        color: var(--medical-blue) !important;
        /* Force Dark Blue Text */
        font-weight: 500;
        border-bottom: 1px solid #f5f5f5;
        background-color: transparent;
    }

    nav ul .submenu li:last-child a {
        border-bottom: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--medical-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 1.2rem;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}