/* ============================================================
   INDEX.CSS - CABINET AZARKANE
   Version complète avec corrections mobile
   ============================================================ */

/* === HERO SECTION === */
.hero {
    padding: 180px 0 120px;
    margin-top: 0;
    position: relative;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.05) 0%, rgba(184, 133, 152, 0.05) 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    opacity: 0.1;
    filter: blur(20px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -50px;
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation: float 15s infinite ease-in-out;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 200px;
    right: 30%;
    animation: float 18s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.pulse-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    animation: pulse-dots 20s infinite linear;
}

@keyframes pulse-dots {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-text {
    flex: 1;
    padding-right: 30px;
}

.hero-intro {
    margin-top: 0;
}

.global-badge {
    position: relative;
    top: 0;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.1), rgba(184, 133, 152, 0.1));
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.badge i {
    font-size: 1.1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.hero-title .highlight {
    color: var(--primary);
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-3);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(66, 183, 165, 0.05);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-prefix {
    font-size: 2.2rem;
    margin-right: 3px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === MEDICAL VISUAL - CORRECTION POUR AFFICHER LES CARTES COMPLÈTEMENT === */

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === HERO WAVE === */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--light-1);
}

.hero-wave path {
    animation: heroWaveFloat 15s ease-in-out infinite;
}

.hero-wave path:nth-child(1) {
    animation-delay: 0s;
    fill: var(--light-1);
    opacity: 1;
}

.hero-wave path:nth-child(2) {
    animation-delay: 3s;
    fill: var(--light-2);
    opacity: 0.8;
}

.hero-wave path:nth-child(3) {
    animation-delay: 6s;
    fill: var(--light-3);
    opacity: 0.6;
}

@keyframes heroWaveFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.1), rgba(184, 133, 152, 0.1));
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.section-title .highlight {
    color: var(--primary);
}

.section-description {
    color: var(--gray-3);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.decoration-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.decoration-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: 100px 0;
    background-color: var(--light-1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    opacity: 1 !important;
    transform: none !important;
}

.service-card {
    position: relative;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    border: 1px solid rgba(58, 156, 141, 0.1);
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
    animation: none !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(58, 156, 141, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-card-inner {
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    background: var(--white);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 156, 141, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.service-card:hover .service-card-overlay {
    left: 100%;
}

.service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
}

.icon-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.1), rgba(184, 133, 152, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
}

.service-card:hover .icon-container {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.15), rgba(184, 133, 152, 0.15));
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.1;
    animation: pulse 2s infinite;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    line-height: 1.3;
}

.service-description {
    color: var(--gray-3);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--primary);
    font-size: 0.8rem;
}

.service-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    flex: 1;
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.service-link i {
    font-size: 0.9rem;
    transition: transform var(--transition-normal);
}

.service-link:hover i {
    transform: translateX(3px);
}

.service-appointment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.1), rgba(184, 133, 152, 0.1));
    border-radius: var(--radius-md);
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.service-appointment:hover {
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.15), rgba(184, 133, 152, 0.15));
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.services-cta {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--gray-1);
}

.services-cta p {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 25px;
    font-weight: 500;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    overflow: hidden;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(30px);
    animation: float 20s infinite ease-in-out;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-light), var(--primary));
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(20px);
    animation: float 25s infinite ease-in-out reverse;
}

.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 60px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(58, 156, 141, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    animation: none !important;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(58, 156, 141, 0.2);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 120px;
    font-family: serif;
    color: rgba(58, 156, 141, 0.05);
    line-height: 1;
    font-weight: bold;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.patient-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.1), rgba(184, 133, 152, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.patient-info {
    flex: 1;
}

.patient-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.patient-rating {
    display: flex;
    gap: 3px;
}

.patient-rating i {
    color: var(--accent);
    font-size: 1.1rem;
}

.testimonial-content {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    color: var(--gray-3);
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    padding-left: 20px;
    position: relative;
}

.testimonial-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(58, 156, 141, 0.1);
}

.treatment-type {
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.1), rgba(184, 133, 152, 0.1));
    padding: 6px 15px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.treatment-date {
    color: var(--gray-2);
    font-size: 0.9rem;
}

.testimonials-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline i {
    transition: transform var(--transition-normal);
}

.btn-outline:hover i {
    transform: translateX(5px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-primary i {
    font-size: 1.2rem;
}

/* ============================================================
   TECHNOLOGIES
   ============================================================ */
.technologies {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.tech-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.tech-track {
    display: flex;
    gap: 30px;
    animation: autoSlide 30s linear infinite;
    padding: 20px 0;
    will-change: transform;
    width: max-content;
}

.tech-item {
    flex: 0 0 auto;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(58, 156, 141, 0.2);
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.05), rgba(184, 133, 152, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.1), rgba(184, 133, 152, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    position: relative;
    transition: all var(--transition-normal);
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: var(--white);
}

.tech-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.tech-item p {
    color: var(--gray-3);
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

@keyframes autoSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.tech-slider:hover .tech-track {
    animation-play-state: paused;
}

/* ============================================================
   ANIMATIONS FADE-IN
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   KEYFRAMES GLOBAUX
   ============================================================ */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ============================================================
   RESPONSIVE - CORRECTIONS IPHONE & SAMSUNG
   ============================================================ */

/* === TABLETTES === */
@media (max-width: 992px) {
    .hero {
        padding: 150px 0 80px !important;
        min-height: auto !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .hero-text {
        padding-right: 0 !important;
        text-align: center !important;
    }

    .hero-title {
        margin-top: 0 !important;
        font-size: 2.4rem !important;
    }

    .hero-description {
        max-width: 100% !important;
        margin: 0 auto 30px !important;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        max-width: 600px !important;
        margin: 40px auto 0 !important;
    }

    .stat-item {
        padding: 15px !important;
    }

    .stat-number {
        font-size: 2.2rem !important;
    }

    .hero-intro {
        margin-top: 0 !important;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .tech-item {
        width: 280px;
        padding: 35px 25px;
    }
    .tech-track {
        gap: 25px;
    }

}

/* === MOBILES === */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 2rem !important;
        margin-top: 0 !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
        max-width: 300px !important;
        gap: 10px !important;
    }

    .stat-item {
        padding: 20px 15px !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .hero-wave {
        height: 80px !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
        margin: 0 auto 40px !important;
    }

    .tech-track {
        gap: 20px;
        animation: autoSlideMobile 25s linear infinite;
    }

    .tech-item {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        padding: 30px 20px;
        margin: 0 5px;
    }

    @keyframes autoSlideMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 10px)); }
    }
}

/* === PETITS MOBILES === */
@media (max-width: 480px) {
    .hero {
        padding: 100px 0 40px !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .hero-wave {
        height: 60px !important;
    }

    .tech-track {
        gap: 15px;
        animation: autoSlideMobileSmall 20s linear infinite;
    }

    .tech-item {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        padding: 25px 18px;
        margin: 0 5px;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .tech-item h3 {
        font-size: 1.2rem;
    }

    .tech-item p {
        font-size: 0.9rem;
    }

    @keyframes autoSlideMobileSmall {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 7.5px)); }
    }
}

/* === TRÈS PETITS ÉCRANS === */
@media (max-width: 360px) {

    .services-grid {
        grid-template-columns: 1fr !important;
        max-width: 320px;
        margin: 0 auto 40px !important;
    }
}

/* === IPHONE SAFE AREA === */
@supports (-webkit-touch-callout: none) {
    .hero {
        padding-top: calc(100px + env(safe-area-inset-top)) !important;
    }
}

/* === FALLBACK SAMSUNG INTERNET === */
@supports not (display: grid) {
    .services-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .service-card {
        flex: 0 0 calc(33.33% - 20px) !important;
        min-width: 280px !important;
        max-width: 350px !important;
        margin: 10px !important;
    }
    
    .testimonials-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .testimonial-card {
        flex: 0 0 calc(33.33% - 20px) !important;
        min-width: 280px !important;
        max-width: 350px !important;
        margin: 10px !important;
    }
}

/* === MODE REDUCTION DES MOUVEMENTS === */
@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;
    }
    
    .floating-shape,
    .hero-wave path {
        animation: none !important;
    }

    .tech-track {
        animation: none !important;
        transform: none !important;
    }
}

/* ============================================================
   HERO - CARTES FLOTTANTES RESPONSIVE
   ============================================================ */


/* ---------- PETITS MOBILES ---------- */
@media screen and (max-width: 480px) {

    .hero {
        overflow: visible !important;
    }
}

/* ============================================================
   CAK HERO VISUAL
   Système indépendant - Desktop / Tablette / Mobile
   ============================================================ */

.cak-hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 500px;
    overflow: visible;
    isolation: isolate;
}

.cak-visual-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}


/* ============================================================
   CERCLE MÉDICAL
   ============================================================ */

.cak-rotating-element {
    position: absolute;
    width: 300px;
    height: 300px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}


/* Cercle de base */

.cak-ring {
    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 50%;
    border: 2px solid;

    transform: translate(-50%, -50%);

    animation: cak-ring-rotate infinite linear;
}

.cak-ring-1 {
    width: 300px;
    height: 300px;
    border-color: rgba(58, 156, 141, 0.20);
    animation-duration: 20s;
}

.cak-ring-2 {
    width: 220px;
    height: 220px;
    border-color: rgba(184, 133, 152, 0.20);
    animation-duration: 15s;
    animation-direction: reverse;
}

.cak-ring-3 {
    width: 140px;
    height: 140px;
    border-color: rgba(58, 156, 141, 0.30);
    animation-duration: 10s;
}

@keyframes cak-ring-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* ============================================================
   ICÔNE CENTRALE
   ============================================================ */

.cak-center-icon {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 80px;
    height: 80px;

    transform: translate(-50%, -50%);

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    font-size: 2rem;

    box-shadow: var(--shadow-lg);

    animation: cak-center-pulse 2s infinite;
}

@keyframes cak-center-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}


/* ============================================================
   CONTENEUR DES CARTES
   ============================================================ */

.cak-floating-cards {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    overflow: visible;

    z-index: 20;
}


/* ============================================================
   STYLE COMMUN DES CARTES
   ============================================================ */

.cak-floating-card {
    position: absolute;

    width: 110px;
    height: 110px;

    background: var(--white);

    border-radius: var(--radius-lg);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    box-shadow: var(--shadow-lg);

    color: var(--primary);

    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;

    border: 2px solid rgba(58, 156, 141, 0.10);

    pointer-events: auto;

    z-index: 30;

    box-sizing: border-box;

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}

.cak-floating-card i {
    font-size: 1.8rem;
    color: var(--primary);
}

.cak-floating-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}


/* ============================================================
   DESKTOP
   ============================================================ */

/* Neurologie : gauche */
.cak-card-neuro {
    top: 20%;
    left: 2%;

    animation: cak-float-left 8s ease-in-out infinite;
}

/* Orthopédie : droite */
.cak-card-ortho {
    top: 20%;
    right: 2%;

    animation: cak-float-right 10s ease-in-out infinite;
}

/* Cardiologie : centre / bas */
.cak-card-cardio {
    left: 50%;
    bottom: 8%;

    transform: translateX(-50%);

    animation: cak-float-center 12s ease-in-out infinite;
}


/* ============================================================
   ANIMATIONS CARTES
   ============================================================ */

@keyframes cak-float-left {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes cak-float-right {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

@keyframes cak-float-center {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }

    50% {
        transform: translateX(-50%) translateY(-15px) rotate(3deg);
    }
}


/* ============================================================
   TABLETTE
   ============================================================ */

@media (max-width: 992px) {

    .cak-hero-visual {
        height: 450px;
        min-height: 450px;
    }

    .cak-rotating-element {
        width: 260px;
        height: 260px;
    }

    .cak-ring-1 {
        width: 260px;
        height: 260px;
    }

    .cak-ring-2 {
        width: 190px;
        height: 190px;
    }

    .cak-ring-3 {
        width: 120px;
        height: 120px;
    }

    .cak-center-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .cak-floating-card {
        width: 95px;
        height: 95px;
        font-size: 0.75rem;
    }

    .cak-floating-card i {
        font-size: 1.4rem;
    }

    .cak-card-neuro {
        left: 5%;
        top: 15%;
    }

    .cak-card-ortho {
        right: 5%;
        top: 15%;
    }

    .cak-card-cardio {
        bottom: 5%;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .cak-hero-visual {
        height: 380px;
        min-height: 380px;

        margin-top: 10px;

        overflow: visible;
    }

    .cak-visual-container {
        height: 100%;
        overflow: visible;
    }

    .cak-rotating-element {
        width: 220px;
        height: 220px;
    }

    .cak-ring-1 {
        width: 220px;
        height: 220px;
    }

    .cak-ring-2 {
        width: 160px;
        height: 160px;
    }

    .cak-ring-3 {
        width: 100px;
        height: 100px;
    }

    .cak-center-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cak-floating-card {
        width: 80px;
        height: 80px;

        font-size: 0.65rem;

        gap: 4px;

        border-radius: var(--radius-md);
    }

    .cak-floating-card i {
        font-size: 1.2rem;
    }

    /* Gauche */
    .cak-card-neuro {
        top: 18%;
        left: 2%;
    }

    /* Droite */
    .cak-card-ortho {
        top: 18%;
        right: 2%;
    }

    /* Centre */
    .cak-card-cardio {
        bottom: 3%;
        left: 50%;
    }
}


/* ============================================================
   PETITS ÉCRANS : 480px ET MOINS
   ============================================================ */

@media (max-width: 480px) {

    .cak-hero-visual {
        width: 100%;
        height: 320px;
        min-height: 320px;

        margin-top: 20px;
    }

    .cak-visual-container {
        width: 100%;
        height: 320px;
    }

    .cak-floating-cards {
        width: 100%;
        height: 320px;

        inset: 0;
    }

    .cak-rotating-element {
        width: 180px;
        height: 180px;
    }

    .cak-ring-1 {
        width: 180px;
        height: 180px;
    }

    .cak-ring-2 {
        width: 130px;
        height: 130px;
    }

    .cak-ring-3 {
        width: 80px;
        height: 80px;
    }

    .cak-center-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .cak-floating-card {
        width: 70px;
        height: 70px;

        font-size: 0.55rem;

        padding: 4px;

        gap: 3px;

        border-radius: var(--radius-sm);

        box-shadow: var(--shadow-md);
    }

    .cak-floating-card i {
        font-size: 1rem;
    }

    /* =========================
       NEUROLOGIE
       ========================= */

    .cak-card-neuro {
        top: 8%;
        left: 0;

        right: auto;
        bottom: auto;

        animation: cak-float-left 8s ease-in-out infinite;
    }

    /* =========================
       ORTHOPÉDIE
       ========================= */

    .cak-card-ortho {
        top: 8%;
        right: 0;

        left: auto;
        bottom: auto;

        animation: cak-float-right 10s ease-in-out infinite;
    }

    /* =========================
       CARDIOLOGIE
       ========================= */

    .cak-card-cardio {
        left: 50%;

        top: auto;
        right: auto;

        bottom: 5%;

        transform: translateX(-50%);

        animation: cak-float-center 12s ease-in-out infinite;
    }
}


/* ============================================================
   TRÈS PETITS ÉCRANS : 360px
   ============================================================ */

@media (max-width: 360px) {

    .cak-hero-visual {
        height: 300px;
        min-height: 300px;
    }

    .cak-visual-container,
    .cak-floating-cards {
        height: 300px;
    }

    .cak-rotating-element {
        width: 150px;
        height: 150px;
    }

    .cak-ring-1 {
        width: 150px;
        height: 150px;
    }

    .cak-ring-2 {
        width: 110px;
        height: 110px;
    }

    .cak-ring-3 {
        width: 70px;
        height: 70px;
    }

    .cak-center-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cak-floating-card {
        width: 60px;
        height: 60px;

        font-size: 0.45rem;

        padding: 3px;

        gap: 2px;
    }

    .cak-floating-card i {
        font-size: 0.8rem;
    }

    .cak-card-neuro {
        top: 8%;
        left: 0;
    }

    .cak-card-ortho {
        top: 8%;
        right: 0;
    }

    .cak-card-cardio {
        left: 50%;
        bottom: 4%;
    }
}


/* ============================================================
   RÉDUCTION DES ANIMATIONS
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .cak-ring,
    .cak-center-icon,
    .cak-floating-card {
        animation: none !important;
    }
}


@media screen and (max-width: 480px) {

    .hero-content {
        display: flex !important;
        flex-direction: column !important;
    }

    .cak-hero-visual {
        order: 1 !important;
        width: 100% !important;
        height: 320px !important;
        min-height: 320px !important;

        margin-top: 140px !important;
        margin-bottom: -30px !important;

        overflow: visible !important;

        /* Couleur naturelle du site */
        background: transparent !important;
    }

    .cak-visual-container {
        width: 100% !important;
        height: 320px !important;
        overflow: visible !important;
    }

    .cak-floating-cards {
        width: 100% !important;
        height: 320px !important;
        inset: 0 !important;
        overflow: visible !important;
    }

    .cak-floating-card {
        /* Retour aux couleurs naturelles */
        background: var(--white) !important;
        color: var(--primary) !important;

        width: 70px !important;
        height: 70px !important;
    }

    .cak-card-neuro {
        top: 8% !important;
        left: 0 !important;
    }

    .cak-card-ortho {
        top: 8% !important;
        right: 0 !important;
    }

    .hero-text {
        order: 2 !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .cak-card-neuro {
        top: 20% !important;
        left: 18% !important;
    }

    .cak-card-ortho {
        top:20% !important;
        right: 18% !important;
    }
}