/* ========================================
   CSS CORRIGÉ - SECTIONS RESTAURÉES
   ======================================== */

/* ========================================
   1. RESET ET VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #26D0CE;
    --secondary-color: #FF6B35;
    --dark-bg: #2C2C2C;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --gray-light: #F5F5F5;
    --transition: all 0.3s ease;
}


/* ========================================
   2. TYPOGRAPHIE
   ======================================== */
.noto-serif-h1,
.noto-serif-h2,
.noto-serif-title {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-image: url('fond-page.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   3. HEADER ET NAVIGATION
   ======================================== */
.main-header {
    background-color: var(--dark-bg);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo avec Yanone Kaffeesatz */
.logo h1 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1;
    dis play: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 .doctora {
    font-weight: 200;
    font-size: 0.9em;
    letter-spacing: 1px;
    margin-bottom: -2px;
    opacity: 0.9;
}

.logo h1 .mayorga {
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    line-height: 0.85;
}

.tagline {
    color: var(--text-light);
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    margin-top: 2px;
}

.call-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.call-button:hover {
    background-color: #f0f0f0;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
    padding: 8px 0;
    position: relative;
    z-index: 999;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    color: var(--dark-bg);
    text-decoration: none;
    font-size: 0.813rem;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
    display: block;
    padding: 8px 0;
}

.nav-list a:hover {
    opacity: 0.7;
}

.nav-list a.active {
    opacity: 1;
    font-weight: 700;
}

/* Dropdown Desktop */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-list li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    color: var(--text-dark);
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background-color: var(--gray-light);
    color: var(--primary-color);
    opacity: 1;
}

/* Dropdown Large pour traitements */
.dropdown-large {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 700px;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #f0f0f0;
}

.nav-list li:hover .dropdown-large {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dropdown-column h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 8px;
}

.dropdown-column a {
    display: block;
    color: var(--text-dark);
    padding: 10px 0;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.dropdown-column a:hover {
    color: var(--primary-color);
    padding-left: 15px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-bg);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========================================
   4. HERO SECTION - DESKTOP UNIQUEMENT
   ======================================== */
@media (min-width: 769px) {
    .hero {
        position: relative;
        min-height: 80vh;
        padding: 110px 0 80px;
        background-color: var(--dark-bg);
        background-image: url('texture-dark.png');
        background-repeat: repeat;
        overflow: hidden;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
        pointer-events: none;
        opacity: 0.5;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        display: block;
    }

    .hero-text {
        max-width: 50%;
        color: var(--text-light);
        margin-top: 9%;
    }

    .hero-text h2 {
        color: var(--text-light);
        font-size: clamp(2.5rem, 5vw, 3.75rem);
        font-weight: 300;
        line-height: 1.1;
        margin-bottom: 25px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        color: var(--primary-color);
        font-size: 1.125rem;
        margin-bottom: 20px;
        font-weight: 400;
        line-height: 1.4;
    }

    .hero-description {
        color: var(--text-light);
        opacity: 0.85;
        margin-bottom: 35px;
        line-height: 1.7;
        font-size: 0.938rem;
        font-weight: 300;
    }

    .hero-image {
        position: absolute;
        bottom: 0;
        right: 15%;
        width: 38%;
        pointer-events: none;
        z-index: 1000;
    }

    .hero-image img {
        wi dth: 100%;
        height: auto;
        display: block;
    }

    /* Cache les éléments mobile */
    .hero-main,
    .hero-cta,
    .scroll-indicator {
        dis play: visible;
    }
    .hero-visual {
        display: none;
    }
}

/* HERO MOBILE */

@media (max-width: 768px) {
     .main-nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        order: 2; /* Place après la navigation */
        flex-direction: column !important;
        gap: 5px;
    }

    .mobile-menu-toggle span {
    margin: 0; /* Supprimer la marge */
}
    
    .nav-list {
        order: 1;
    }
    .hero {
        position: relative;
        height: 100vh; /* Utilise toute la hauteur de vue */
        padding: 0;
        margin: 0; /* Supprime toute marge */
        background: url('/doctora-mayorga-mobile2.png');
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        overflow: hidden;
        display: flex;
        align-items: center; /* Centre verticalement */
        justify-content: center;
    }
    
    /* Ajustement du dégradé pour meilleure lisibilité */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to bottom,
            rgba(44, 44, 44, 0.4) 0%,
            rgba(44, 44, 44, 0.6) 30%,
            rgba(44, 44, 44, 0.8) 70%,
            var(--dark-bg) 100%
        );
        z-index: 1;
    }
    
    /* Conteneur positionné correctement */
    .hero .container {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 20px; /* Padding réduit pour mobile */
        text-align: center;
        margin-top: 190px; /* Compense la hauteur de la navigation */
    }

    /* Ajustements typographiques pour meilleure lisibilité */
    .hero .noto-serif-h1 {
        font-size: clamp(2.5rem, 5vw, 3.75rem);
        font-weight: 500;
        line-height: 1.1; 
        margin-bottom: 25px;
        letter-spacing: -1px;
        color:white;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        background-color: transparent; /* Supprime l'arrière-plan */
    }

    .hero .hero-subtitle {
        color: var(--primary-color);
        font-size: 1rem;
        margin-bottom: 45px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
        background-color: transparent; /* Supprime l'arrière-plan */
    }

    .hero-description {
        display: none !important;
        color: var(--text-light);
        opacity: 0.85;
        margin-bottom: 35px;
        line-height: 1.5;
        font-size: 0.938rem;
        font-weight: 300;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
        
        background-color: #e55a2b;
    }

    /* Cache l'image HTML si elle existe */
    .hero img,
    .hero-description,
    .hero-image img {
        display: none !important;
    }
    
    /* Ajustement pour les très petits écrans */
    @media (max-height: 600px) {
        .hero .container {
            margin-top: 40px;
            padding: 10px;
        }
        
        .hero .hero-description {
            display: none; /* Cache la description sur très petits écrans */
        }
    }

    .article-meta {
        display: none !important;
    }

    /*article */
    .page-content, .article-content{
        padding:0;
    }
}

/* ========================================
   5. BOUTONS ET CTA
   ======================================== */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cta-button-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-light);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: var(--transition);
}

.cta-button-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.free-consultation {
    color: var(--text-light);
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 10px;
    font-style: italic;
}

.cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   6. SECTIONS TESTIMONIALS
   ======================================== */
.testimonial {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial blockquote {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    height: 120px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    transform: translateY(20px);
}

.testimonial-item.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial p {
    color: var(--text-light);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.testimonial cite {
    color: var(--text-light);
    font-size: 1rem;
    font-style: normal;
    opacity: 0.9;
    font-weight: 400;
}

/* ========================================
   7. VIDEO SECTION
   ======================================== */
.video-section {
    background-color: var(--dark-bg);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    padding: 80px 0;
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* ========================================
   8. SECTIONS CONDITIONS ET TRAITEMENTS
   ======================================== */
.section-title {
    text-align: center;
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 50px;
    font-size: 0.813rem;
    letter-spacing: 1.5px;
    opacity: 0.6;
    font-weight: 500;
    text-transform: uppercase;
}

.conditions {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.condition-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    
    /* Animation d'entrée par défaut */
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

/* Animation pour chaque carte avec délai */
.condition-card:nth-child(1) { animation-delay: 0.1s; }
.condition-card:nth-child(2) { animation-delay: 0.2s; }
.condition-card:nth-child(3) { animation-delay: 0.3s; }
.condition-card:nth-child(4) { animation-delay: 0.4s; }
.condition-card:nth-child(5) { animation-delay: 0.5s; }
.condition-card:nth-child(6) { animation-delay: 0.6s; }

/* Override pour les éléments visibles au scroll */
.condition-card.animate-visible,
.condition-card.aos-animate,
.condition-card.wow-animated {
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.8s ease-out forwards;
}

.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.condition-card h3 {
    color: var(--dark-bg);
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-weight: 500;
}

.condition-card p {
    color: var(--text-dark);
    font-size: 0.813rem;
    margin-bottom: 25px;
    opacity: 0.6;
    line-height: 1.5;
    font-weight: 400;
}

.condition-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.condition-cta:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* ========================================
   9. WHY CHOOSE SECTION
   ======================================== */
.why-choose {
    padding: 80px 0;
    background-color: var(--dark-bg);
    background-image: 
        url('fond_why-choose.png'),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.03) 2px,
            rgba(255,255,255,0.03) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.02) 2px,
            rgba(255,255,255,0.02) 4px
        );
    background-size: cover, auto, auto;
    background-position: center, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
    color: var(--text-light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.feature {
    background-color: rgba(38, 208, 206, 0.1);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(38, 208, 206, 0.3);
    
    /* Animation d'entrée */
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Animation alternée pour features */
.feature:nth-child(odd) {
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.feature:nth-child(even) {
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out forwards;
}

/* Délais pour chaque feature */
.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }
.feature:nth-child(4) { animation-delay: 0.8s; }

/* Override pour les éléments visibles au scroll */
.feature.animate-visible,
.feature.aos-animate,
.feature.wow-animated {
    opacity: 1;
    transform: translateX(0);
}

.feature h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.feature p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   10. PATIENT TESTIMONIALS
   ======================================== */
.patient-testimonials {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    
    /* Animation d'entrée */
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: scaleInUp 0.8s ease-out forwards;
}

/* Animation avec délais pour chaque testimonial */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.5s; }
.testimonial-card:nth-child(4) { animation-delay: 0.7s; }
.testimonial-card:nth-child(5) { animation-delay: 0.9s; }
.testimonial-card:nth-child(6) { animation-delay: 1.1s; }

/* Override pour les éléments visibles au scroll */
.testimonial-card.animate-visible,
.testimonial-card.aos-animate,
.testimonial-card.wow-animated {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 30px;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-condition {
    font-size: 0.875rem;
    color: #666;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* ========================================
   11. FINANCING SECTION
   ======================================== */
.financing-section {
    padding: 80px 0;
    background-color: rgba(44, 44, 44, 0.95);
    color: var(--text-light);
}

.financing-section .section-subtitle {
    color: var(--text-light);
}

.financing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.financing-card {
    background-color: rgba(38, 208, 206, 0.1);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid rgba(38, 208, 206, 0.3);
    text-align: center;
}

.financing-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.financing-card p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* ========================================
   12. FOOTER
   ======================================== */
.main-footer {
    background-color: rgba(44, 44, 44, 0.95);
    color: var(--text-light);
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    opacity: 0.7;
}

/* ========================================
   13. CATEGORY PAGES
   ======================================== */
.category-hero {
    position: relative;
    min-height: 70vh;
    padding: 140px 0 100px;
    background-color: var(--dark-bg);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    color: var(--text-light);
}

.category-hero .container {
    position: relative;
    z-index: 2;
}

.category-hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.category-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
    color: var(--text-light);
}

.category-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.3;
}

.category-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.hero-stat .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Quick Navigation */
.quick-nav {
    background-color: var(--primary-color);
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.quick-nav h2 {
    text-align: center;
    color: var(--dark-bg);
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.quick-nav-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-bg);
    transition: var(--transition);
    min-width: 120px;
}

.quick-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* Category Content */
.category-content {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.treatment-section {
    margin-bottom: 100px;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
}

.treatment-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.treatment-tagline {
    font-size: 1.125rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

.section-cta .cta-button-primary {
    padding: 12px 30px;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Treatment Overview */
.treatment-overview {
    margin-bottom: 50px;
}

.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.treatment-description {
    font-size: 1.125rem;
    line-height: 1.6;
}

.treatment-description p {
    margin-bottom: 30px;
    color: var(--text-dark);
}

.key-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefit-item {
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.benefit-icon {
    background-color: var(--primary-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    flex-shrink: 0;
}

.treatment-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Related Articles Section */
.related-articles-section {
    border-top: 2px solid var(--gray-light);
    padding-top: 40px;
}

.related-articles-section h3 {
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 30px;
    font-weight: 600;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-image {
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-content h4 {
    margin-bottom: 15px;
}

.article-content h4 a {
    color: var(--dark-bg);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-content h4 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8125rem;
}

.article-meta span {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.read-time {
    background-color: var(--gray-light);
    color: #666;
}

.article-type {
    background-color: var(--primary-color);
    color: white;
}

/* Category Final CTA */
.category-final-cta {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-color));
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.final-cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
    color: white;
}

.final-cta-content p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   14. PAGES ARTICLES ET CONTENU
   ======================================== */
.page-hero, .article-hero {
    background-color: var(--dark-bg);
    background-image: url('fond-page.png');
    background-size: cover;
    background-position: center;
    padding: 170px 0 80px;
    color: var(--text-light);
    position: relative;
}

.page-hero::before, .article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 44, 44, 0.8);
    z-index: 1;
}

.page-hero .container, .article-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title, .article-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 0;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 20px;
}

.article-meta span {
    padding: 5px 15px;
    background-color: rgba(38, 208, 206, 0.2);
    border-radius: 15px;
}

/* Content Grid Layout */
.page-content, .article-content {
    padding: 50px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Main Content Styles */
.main-content, .main-article {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-block, .content-section {
    margin-bottom: 50px;
}

.content-block h2, .content-section h2 {
    font-family: "Noto Serif", serif;
    font-size: 2rem;
    line-height: 2rem;;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.content-block p, .content-section p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Conditions List */
.conditions-list {
    display: grid;
    gap: 25px;
}

.condition-item {
    padding: 25px;
    background-color: var(--gray-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.condition-item h3 {
    color: var(--dark-bg);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.condition-item p {
    margin: 0;
    color: #666;
}

/* Treatments Grid */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.treatment-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.treatment-card h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.treatment-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.treatment-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.treatment-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Content CTA */
.content-cta, .article-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-top: 50px;
}

.content-cta h2, .article-cta h2 {
    color: white;
    margin-bottom: 15px;
}

.content-cta p, .article-cta p {
    color: white;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Article Specific Styles */
.featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.featured-image caption {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.article-quote {
    background-color: var(--gray-light);
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 1.125rem;
    margin: 30px 0;
}

.article-quote cite {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 10px;
}

.step-number {
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--dark-bg);
    margin-bottom: 5px;
    font-size: 1.125rem;
}

/* Indications Grid */
.indications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.indication-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.indication-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.125rem;
}

.indication-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Advantages List */
.advantages-list {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.advantage {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 10px;
}

.advantage::before {
    content: '✓';
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.advantage h3 {
    color: var(--dark-bg);
    margin-bottom: 5px;
    font-size: 1.125rem;
}

/* Results Stats */
.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
    text-align: center;
}

.stat-item {
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
}

/* ========================================
   15. SIDEBAR
   ======================================== */
.sidebar, .article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.sidebar-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.urgent-card {
    background: linear-gradient(135deg, var(--secondary-color), #ff8a5c);
    color: white;
    text-align: center;
    position: sticky;
    top: 120px;
    z-index: 100;
    align-self: flex-start;
}

.urgent-card h3 {
    color: white;
}

.urgent-card p {
    color: white;
    opacity: 0.9;
}

.note {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 10px;
    text-align: center;
}

.related-links {
    list-style: none;
    padding: 0;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    transition: var(--transition);
}

.related-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Stats Card */
.stats-card {
    text-align: center;
}

.stat {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 10px;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 5px 0;
    display: block;
    border-left: 3px solid transparent;
    padding-left: 15px;
    transition: var(--transition);
}

.toc-list a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-article {
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.related-article:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
}

.related-article h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.related-article p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* Social Share */
.social-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.875rem;
    text-align: center;
    transition: var(--transition);
}

.share-btn.facebook {
    background-color: #3b5998;
    color: white;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background-color: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ========================================
   16. FORMULAIRES CONTACT
   ======================================== */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    color: var(--text-dark);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.1);
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #ff4757;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #2ed573;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Range Input Styles */
.form-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    border: none;
}

.form-group input[type="range"]::-webkit-slider-track {
    background: #e5e5e5;
    height: 6px;
    border-radius: 3px;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.form-group input[type="range"]::-moz-range-track {
    background: #e5e5e5;
    height: 6px;
    border-radius: 3px;
    border: none;
}

.form-group input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #666;
}

#valor_dolor {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.checkbox-group label:hover {
    background-color: var(--gray-light);
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-single {
    margin: 30px 0;
}

.checkbox-single label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5;
    gap: 10px;
}

.checkbox-single input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-single a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-single a:hover {
    text-decoration: underline;
}

.contact-form .cta-button {
    width: 100%;
    padding: 16px 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.contact-form .cta-button:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.contact-form .cta-button:active {
    transform: translateY(0);
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Contact Methods Grid */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-method {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-method h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-method p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-method a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* ========================================
   17. PAGE QUIEN SOY (DOCTOR PROFILE)
   ======================================== */
.doctor-intro {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 40px;
    margin-bottom: 50px;
}

.doctor-presentation {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.doctor-photo {
    width: 250px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-photo:hover img {
    transform: scale(1.05);
}

.doctor-info h2 {
    font-family: "Noto Serif", serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.doctor-titles {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.4;
}

.key-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.highlight-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(38, 208, 206, 0.3);
}

/* Timeline for Experience */
.experience-timeline {
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 2px;
}

.timeline-marker {
    position: absolute;
    left: -27px;
    top: 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.timeline-content {
    background-color: var(--gray-light);
    padding: 25px 30px;
    border-radius: 15px;
    
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--gray-light);
}

.timeline-content h3 {
    color: var(--dark-bg);
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-period {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Academic Grid */
.academic-grid {
    display: grid;
    gap: 25px;
}

.academic-item {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.academic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.academic-item h3 {
    color: var(--dark-bg);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.academic-period {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Research Areas */
.research-areas {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.research-item {
    background-color: rgba(38, 208, 206, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(38, 208, 206, 0.2);
    transition: var(--transition);
}

.research-item:hover {
    background-color: rgba(38, 208, 206, 0.1);
    transform: translateY(-2px);
}

.research-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.research-period {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

/* Publications Highlight */
.publications-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.publications-highlight h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.publications-highlight p {
    color: white;
    opacity: 0.95;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.philosophy-item {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.philosophy-item h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.philosophy-item p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Personal Touch Section */
.personal-touch {
    background-color: rgba(255, 107, 53, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
}

.personal-touch .lead {
    font-size: 1.125rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    font-weight: 500;
}

.personal-touch p {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   18. RESPONSIVE DESIGN CONSOLIDÉ
   ======================================== */

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
    .category-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .treatments-grid {
        grid-template-columns: 1fr;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doctor-presentation {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }
    
    .doctor-photo {
        width: 200px;
        height: 240px;
    }
    
    .doctor-info h2 {
        font-size: 2rem;
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header responsive */
    .header-top {
        padding: 8px 0;
    }
    
    .logo h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        letter-spacing: 0.3px;
    }
    
    .logo h1 .doctora {
        letter-spacing: 0.8px;
        margin-bottom: -1px;
    }
    
    .logo h1 .mayorga {
        letter-spacing: 0.3px;
    }
    
    .tagline {
        font-size: 0.7rem;
        letter-spacing: 0.8px;
    }
    
    .call-button {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    /* Navigation mobile */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        justify-content: center;
        align-items: center;
        z-index: 1002;
        overflow-y: auto;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
        margin: 0;
        position: relative;
    }
    
    .nav-list > li > a {
        font-size: 1.1rem;
        color: var(--dark-bg);
        display: block;
        padding: 15px 20px;
        width: 100%;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    }
    
    .nav-list > li > a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    /* Cache tous les dropdowns sur mobile */
    .dropdown,
    .dropdown-large {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Animations mobile */
    .nav-list li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }
    
    .nav-list.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-list.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-list.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-list.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-list.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-list.active li:nth-child(6) { transition-delay: 0.35s; }
    
    /* Hamburger animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Sections responsive */
    .category-hero {
        padding: 160px 0 80px;
        min-height: 60vh;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
    
    .category-subtitle {
        font-size: 1.25rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .quick-nav-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-nav-item {
        flex-direction: row;
        width: 200px;
        justify-content: center;
    }
    
    .treatment-section {
        padding: 30px 20px;
        margin-bottom: 60px;
    }
    
    .treatment-title {
        font-size: 1.875rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .category-final-cta {
        padding: 40px 20px;
    }
    
    .final-cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .page-hero, .article-hero {
        padding: 120px 0 60px;
    }
    
    .main-content, .main-article {
        padding: 30px 20px;
    }
    
    .page-title, .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .content-cta, .article-cta {
        padding: 30px 20px;
    }
    
    .process-steps .step {
        flex-direction: column;
        text-align: left;
    }
    
    .indications-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .urgent-card {
        position: relative;
        top: auto;
        margin-bottom: 20px;
    }
    
    /* Testimonials responsive */
    .testimonial p {
        font-size: 1.5rem;
    }
    
    .testimonial-slider {
        height: 140px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Grilles responsive */
    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .condition-card {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .financing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    /* Forms responsive */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Doctor page responsive */
    .doctor-presentation {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .doctor-photo {
        width: 180px;
        height: 220px;
        margin: 0 auto;
    }
    
    .doctor-info h2 {
        font-size: 1.875rem;
    }
    
    .key-highlights {
        justify-content: center;
        gap: 10px;
    }
    
    .highlight-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .experience-timeline {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -22px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 20px 25px;
    }
    
    .timeline-content::before {
        left: -12px;
        border-right-width: 8px;
        border-top-width: 8px;
        border-bottom-width: 8px;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .philosophy-item {
        padding: 25px 20px;
    }
    
    .publications-highlight {
        padding: 25px 20px;
    }
    
    .personal-touch {
        padding: 25px 20px;
    }

    /* HOMEPAGE */
    .conditions
     {padding: 40px 0;}
    .patient-testimonials
     {padding: 20px 0; }
     .financing-section {padding: 50px 0;}
     .why-choose {padding: 40px 0;}

     /*FOOTER*/
     .footer-section h3 {
        margin-bottom: 0;
     }

     /*traitements*/
     .article-body h2 {
        line-height: 2.2rem;
     }
     .advantage {
        display: block;
     }

     .content-section ul {
        list-style-type: none;
     }
     .content-section p{
        margin-bottom: 0;
     }
      .article-content p{
        margin-bottom: 0;
     }
     .article-sidebar{
        display: none;
     }

/* Très petits écrans */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
        letter-spacing: 0.2px;
    }
    
    .logo h1 .doctora {
        letter-spacing: 0.5px;
    }
    
    .logo h1 .mayorga {
        letter-spacing: 0.2px;
    }
    
    .tagline {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    
    .nav-list > li > a {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .category-hero {
        padding: 100px 0 60px;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .page-hero, .article-hero {
        padding: 100px 0 50px;
    }
    
    .main-content, .main-article {
        padding: 20px 15px;
    }
    
    .page-title, .article-title {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .sidebar-card {
        padding: 20px 15px;
    }
    
    .range-labels {
        font-size: 0.75rem;
    }
    
    #valor_dolor {
        padding: 2px 8px;
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 0.875rem;
    }
    
    .feature {
        padding: 25px;
    }
    
    .feature h3 {
        font-size: 1.25rem;
    }
    
    .doctor-photo {
        width: 150px;
        height: 180px;
    }
    
    .doctor-info h2 {
        font-size: 1.5rem;
    }
    
    .doctor-titles {
        font-size: 1rem;
    }
    
    .key-highlights {
        gap: 8px;
    }
    
    .highlight-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .timeline-content {
        padding: 15px 20px;
    }
    
    .academic-item,
    .research-item {
        padding: 20px;
    }
    
    .philosophy-item {
        padding: 20px 15px;
    }
    
    .publications-highlight {
        padding: 20px 15px;
    }
    
    .publications-highlight h3 {
        font-size: 1.25rem;
    }
}

/* Body lock pour mobile */
body.menu-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* ========================================
   19. FALLBACKS ET ACCESSIBILITÉ
   ======================================== */

/* Fallback pour navigateurs anciens */
@supports not (height: 100dvh) {
    @media (max-width: 768px) {
        .hero,
        .hero .container {
            min-height: calc(100vh - 60px);
            background-color: pink;
        }
    }
}

/* Reduced motion pour accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-indicator {
        animation: none !important;
    }
}

/* ========================================
   20. UTILITAIRES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }

.hidden { display: none !important; }
.visible { visibility: visible !important; }

/* Animation keyframes améliorées */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleInUp {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* Classes utilitaires pour animations scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Intersection Observer - Force final state */
.condition-card.observed,
.feature.observed,
.testimonial-card.observed {
    opacity: 1 !important;
    animation-play-state: paused;
    animation-fill-mode: forwards;
}

/* Fallback pour JS désactivé */
@media screen and (prefers-reduced-motion: no-preference) {
    .condition-card,
    .feature,
    .testimonial-card {
        animation-play-state: running;
        animation-fill-mode: forwards;
    }
}

.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-in-left { animation: slideInLeft 0.6s ease-out; }
.slide-in-right { animation: slideInRight 0.6s ease-out; }

/* Styles pour l'accordéon mobile */
@media (max-width: 991px) {
    .mobile-expand {
        background: none;
        border: none;
        color: inherit;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0 10px;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-list > li {
        position: relative;
    }
    
    .nav-list .dropdown {
        display: none;
        padding-left: 15px;
    }
    
    .nav-list .dropdown.active {
        display: block;
    }
    
    /* Cacher la version desktop des dropdowns */
    .dropdown-large, .dropdown-columns {
        display: none !important;
    }
    
    /* Afficher la version simple pour mobile */
    .dropdown:not(.dropdown-large) {
        display: none;
    }
    
    .dropdown.active:not(.dropdown-large) {
        display: block;
    }
    
    /* Styles pour les éléments du dropdown mobile */
    .dropdown a {
        display: block;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Styles desktop - masquer le bouton d'expansion */
@media (min-width: 992px) {
    .mobile-expand {
        display: none !important;
    }
}

/* MOBILE — tout afficher (racine + sous-rubriques) */
@media (max-width: 991px) {
  /* On REND visibles les dropdowns */
  .nav-list .dropdown,
  .nav-list .dropdown-large {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* La grille "dropdown-large" devient une liste verticale simple */
  .dropdown-columns { display: block !important; }
  .dropdown-column { margin: 0; padding: 0; }
  .dropdown-column h4 { display: none; } /* optionnel */

  /* Style homogène pour tous les liens enfants */
  .dropdown a,
  .dropdown-column a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(44,44,44,0.1);
    color: var(--dark-bg);
    text-decoration: none;
  }

  /* Et on s'assure que le pseudo-bouton de l'ancien accordéon est invisible si laissé en DOM */
  .mobile-expand { display: none !important; }
}

/* MOBILE: aplatit l'ancien mega-menu traitements */
@media (max-width: 991px) {
  /* Le conteneur méga-menu devient un bloc simple, visible */
  .dropdown-flat {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* La grille en colonnes devient une pile verticale */
  .dropdown-flat .dropdown-columns { 
    display: block !important;
  }
  .dropdown-flat .dropdown-column {
    width: auto !important;
    padding: 0;
    margin: 0;
  }
  /* (Optionnel) cacher les titres de colonne pour alléger */
  .dropdown-flat .dropdown-column h4 {
    display: none;
  }

  /* Liens enfants en liste verticale */
  .dropdown-flat a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    color: inherit;
    text-decoration: none;
  }

  /* Si tu avais des règles qui cachaient les dropdowns en mobile, on neutralise */
  .nav-list .dropdown,
  .nav-list .dropdown-large,
  .nav-list .dropdown-flat {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Footer Affiliations */
.footer-affiliations {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-affiliations h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.affiliations-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.affiliate-logo {
    height: 60px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--transition);
    filter: none;
}

.affiliate-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}
/* Responsive affiliations */
@media (max-width: 768px) {
    .affiliations-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .affiliate-logo {
        height: 45px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .affiliations-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .affiliate-logo {
        max-width: 100px;
    }
}

/* Footer Social Media - Amélioré */

.footer-grid {
    margin-bottom: 40px;
}

.footer-social {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-social h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex; /* Changé de flex à inline-flex pour meilleur alignement */
    align-items: center;
    justify-content: center; /* Centrage parfait du contenu */
    gap: 10px; /* Augmenté pour plus d'espace entre icône et texte */
    padding: 14px 24px; /* Augmenté le padding pour plus de présence */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px; /* Plus arrondi pour un style moderne */
    text-decoration: none !important;
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    font-size: 0.95rem; /* Légèrement plus grand */
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Bordure subtile */
    min-height: 50px; /* Hauteur minimum pour cohérence */
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.social-link:visited {
    color: var(--text-light) !important;
    text-decoration: none !important;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-decoration: none !important;
    border-color: transparent;
}

/* Styles spécifiques par plateforme */
.social-link.youtube:hover {
    background-color: #ff0000;
    color: white !important;
}

.social-link.facebook:hover {
    background-color: #1877f2;
    color: white !important;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    color: white !important;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
}

.social-link svg {
    width: 22px; /* Légèrement plus grand */
    height: 22px;
    flex-shrink: 0;
    display: block; /* Force l'affichage en block pour éviter les décalages */
}

.social-link span {
    display: inline-block;
    vertical-align: middle; /* Alignement vertical parfait */
    line-height: 1; /* Hauteur de ligne fixe */
}

/* Améliorations desktop uniquement */
@media (min-width: 769px) {
    .social-links {
        gap: 25px;
    }
    
    .social-link {
        padding: 16px 28px;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .social-link svg {
        width: 24px;
        height: 24px;
    }
    
    /* Animation plus sophistiquée sur desktop avec soulignement au hover */
    .social-link:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 30px rgba(0,0,0,0.4);
        text-decoration: underline !important;
    }
    
    /* Pas de soulignement par défaut sur desktop */
    .social-link {
        text-decoration: none !important;
    }
}

/* Responsive - Tablette */
@media (max-width: 768px) {
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
        padding: 12px 16px;
    }
}

/* Styles pour les variantes */

/* Bouton simple */
.whatsapp-simple {
    display: inline-block;
    padding: 10px 20px;
    background-color: #25d366;
    color: white !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-weight: 500;
}

/* Bouton médical personnalisé */
.whatsapp-medical {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-medical:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Bouton flottant */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-floating {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Groupe de boutons contact */
.contact-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.whatsapp-primary {
    padding: 12px 24px;
    background-color: #25d366;
    color: white !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-weight: 500;
}

.phone-fallback {
    padding: 12px 24px;
    background-color: #007bff;
    color: white !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-weight: 500;
}

.contact-divider {
    color: #666;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-divider {
        text-align: center;
        margin: 5px 0;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-floating {
        width: 55px;
        height: 55px;
    }
}