/* =============================================
   Theme: DOM-TOM Tropical Vibe
   ============================================= */

:root {
    --color-turquoise: #06b6d4;
    --color-corail: #ef4444;
    --color-vert: #10b981;
    --color-jaune: #f59e0b;
    --color-bleu-ciel: #0ea5e9;
    --color-violet: #7c3aed;
    --text-light: #ffffff;
    --text-dark: #1e293b;
    --bg-dark-transparent: rgba(0,0,0,0.5);
}

/* --- Hero Section --- */
.hero-dom-tom {
    background: 
        url('../images/tropical-pattern-hero.svg'),
        linear-gradient(135deg, #0a4d68 0%, #088395 25%, #05bfdb 50%, #00a8cc 75%, #0693a2 100%);
    background-size: 400px 400px, 400% 400%;
    background-position: 0 0, 0% 50%;
    background-repeat: repeat, no-repeat;
    animation: gradientFlow 15s ease infinite, tropicalMove 40s linear infinite;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    color: var(--text-light);
    overflow: hidden;
}

@keyframes tropicalMove {
    from {
        background-position: 0 0, 0% 50%;
    }
    to {
        background-position: 400px 400px, 0% 50%;
    }
}

.hero-dom-tom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(6,182,212,0.1) 0%, transparent 40%);
    pointer-events: none;
    animation: shimmerEffect 10s ease-in-out infinite;
}

.hero-dom-tom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(240, 247, 255, 0.3) 50%, rgba(240, 247, 255, 1) 100%);
    pointer-events: none;
}

/* Pattern tropical dense - plus besoin de palmiers individuels */

.hero-dom-tom .hero-split-content {
    position: relative;
    z-index: 2;
}

.hero-dom-tom .hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInDown 0.6s ease-out;
}

.hero-dom-tom .hero-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.hero-dom-tom .hero-title {
    color: var(--text-light);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-dom-tom .hero-title-highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(251,191,36,0.5));
}

.hero-dom-tom .hero-description-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    margin: 1.5rem 0;
}


.hero-dom-tom .hero-description {
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.hero-dom-tom .btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border: none;
    box-shadow: 0 12px 40px rgba(251,191,36,0.4), 0 4px 15px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 18px 40px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.hero-dom-tom .btn-primary:hover::before {
    left: 100%;
}

.hero-dom-tom .btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(251,191,36,0.6), 0 8px 25px rgba(0,0,0,0.3);
}

/* --- Visuals --- */
.hero-dom-tom .hero-split-visual {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
}

.hero-dom-tom .territory-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-dom-tom .territory-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.12));
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- Section Styles Overrides --- */
.spotlight-services {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.spotlight-services .section-title-container {
    position: relative;
    z-index: 2;
}

.spotlight-services h2, .spotlight-services p {
    color: var(--text-dark) !important;
}

.spotlight-services .services-grid article {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.08), 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.spotlight-services .services-grid article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-turquoise), var(--color-bleu-ciel));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.spotlight-services .services-grid article:hover::before {
    transform: scaleX(1);
}

.spotlight-services .services-grid article:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(6, 182, 212, 0.15), 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
}

.spotlight-services .services-grid h3 {
    color: var(--text-dark) !important;
}

.spotlight-services .services-grid .tag {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: var(--color-turquoise) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    font-weight: 600;
}

.why-us-section {
    background: #1a202c;
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/tropical-pattern.svg');
    opacity: 0.05;
    background-size: cover;
}

.why-us-section h2, .why-us-section p {
    color: var(--text-light) !important;
}

.why-us-section .section-title-container span {
    color: var(--text-dark) !important;
}

.why-us-section article {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.why-us-section article h3, .why-us-section article p {
    color: var(--text-light) !important;
}

.why-us-section article .tag {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: var(--color-turquoise) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

.spotlight-services h2, .spotlight-services h3, .spotlight-services p,
.why-us-section h2, .why-us-section h3, .why-us-section p {
    color: var(--text-dark) !important;
}

.spotlight-services .section-title-container span,
.why-us-section .section-title-container span {
    color: var(--text-light) !important;
}

.spotlight-services article, .why-us-section article {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
}

.why-us-section article h3, .why-us-section article p {
    color: var(--text-dark) !important;
}

.why-us-section article span[style*="color: #D4AF37"], 
.why-us-section article span[style*="color: #60a5fa"], 
.why-us-section article span[style*="color: #34d399"], 
.why-us-section article span[style*="color: #c084fc"] {
    background-color: rgba(0,0,0,0.1) !important;
    color: var(--text-dark) !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
}

.network-section {
    background: #1a202c;
    position: relative;
    overflow: hidden;
}

.network-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/tropical-pattern.svg');
    opacity: 0.05;
    background-size: cover;
}

.network-section h2, 
.network-section h3, 
.network-section p,
.network-section div {
    color: var(--text-dark) !important;
}

.network-section [style*="color"],
.network-section [style*="text-align: center"] {
    color: var(--text-dark) !important;
    opacity: 1 !important;
}

.network-section .section-title-container span {
    color: white !important;
}

/* Force tous les textes en noir dans network-section */
.network-section * {
    color: var(--text-dark) !important;
}

/* Exception pour les sections à fond sombre - texte blanc */
.network-section [style*="background: linear-gradient(135deg, #1e293b"],
.network-section [style*="background: linear-gradient(135deg, #1e293b"] * {
    color: white !important;
}

/* Exception pour les badges de couleur dans les sections sombres */
.network-section [style*="background: linear-gradient(135deg, #1e293b"] [style*="color: #D4AF37"],
.network-section [style*="background: linear-gradient(135deg, #1e293b"] [style*="color: #60a5fa"],
.network-section [style*="background: linear-gradient(135deg, #1e293b"] [style*="color: #34d399"] {
    color: inherit !important;
}

/* Exception pour le badge en haut qui doit rester blanc */
.network-section .section-title-container span,
.network-section [style*="background: linear-gradient"][style*="padding: 8px"] span {
    color: white !important;
}

.network-section .info-card {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.network-section .info-card h3, .network-section .info-card p {
    color: var(--text-light) !important;
}

.network-section .info-card .tag {
    background: rgba(255,255,255,0.1) !important;
    color: var(--text-light) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

/* --- Animations --- */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmerEffect {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-particle {
    position: absolute;
    border-radius: 50%;
    animation: floatSlow 15s ease-in-out infinite;
    filter: blur(1px);
}

/* --- CTA Section Premium --- */
.spotlight-services .section-title-container + div + div {
    position: relative;
    overflow: hidden;
}

.spotlight-services .section-title-container + div + div::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6,182,212,0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

/* --- Stats Section Premium --- */
.why-us-section > div > div:last-child {
    position: relative;
    overflow: hidden;
    background: 
        url('../images/tropical-pattern-hero.svg'),
        linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)) !important;
    background-size: 300px 300px, cover !important;
    background-position: 0 0, center !important;
    background-repeat: repeat, no-repeat !important;
}

.why-us-section > div > div:last-child h3,
.why-us-section > div > div:last-child > div,
.why-us-section > div > div:last-child > div > div {
    color: var(--text-dark) !important;
}

.why-us-section > div > div:last-child > div {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-us-section > div > div:last-child > div > div:first-child {
    position: relative;
    display: inline-block;
    transition: transform 0.4s ease;
}

.why-us-section > div > div:last-child > div:hover > div:first-child {
    transform: scale(1.15) translateY(-5px);
}

/* --- Territory Cards Premium --- */
.network-section [style*="grid-template-columns"] > div {
    animation: fadeInUp 0.6s ease-out backwards;
}

.network-section [style*="grid-template-columns"] > div:nth-child(1) { animation-delay: 0.1s; }
.network-section [style*="grid-template-columns"] > div:nth-child(2) { animation-delay: 0.2s; }
.network-section [style*="grid-template-columns"] > div:nth-child(3) { animation-delay: 0.3s; }
.network-section [style*="grid-template-columns"] > div:nth-child(4) { animation-delay: 0.4s; }
.network-section [style*="grid-template-columns"] > div:nth-child(5) { animation-delay: 0.5s; }
.network-section [style*="grid-template-columns"] > div:nth-child(6) { animation-delay: 0.6s; }

/* --- Services Grid Staggered Animation --- */
.spotlight-services .services-grid > article {
    animation: fadeInUp 0.8s ease-out backwards;
}

.spotlight-services .services-grid > article:nth-child(1) { animation-delay: 0.2s; }
.spotlight-services .services-grid > article:nth-child(2) { animation-delay: 0.4s; }
.spotlight-services .services-grid > article:nth-child(3) { animation-delay: 0.6s; }

/* --- Why Us Grid Staggered Animation --- */
.why-us-section [style*="grid-template-columns"] > article {
    animation: fadeInUp 0.7s ease-out backwards;
}

.why-us-section [style*="grid-template-columns"] > article:nth-child(1) { animation-delay: 0.15s; }
.why-us-section [style*="grid-template-columns"] > article:nth-child(2) { animation-delay: 0.3s; }
.why-us-section [style*="grid-template-columns"] > article:nth-child(3) { animation-delay: 0.45s; }
.why-us-section [style*="grid-template-columns"] > article:nth-child(4) { animation-delay: 0.6s; }

/* --- Button Enhancements --- */
.spotlight-services a[href*="contact"],
.network-section a[href*="contact"] {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.spotlight-services a[href*="contact"]::after,
.network-section a[href*="contact"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.spotlight-services a[href*="contact"]:hover::after,
.network-section a[href*="contact"]:hover::after {
    width: 300px;
    height: 300px;
}

/* --- Improved Section Titles --- */
.section-title-container {
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-turquoise), var(--color-bleu-ciel));
    border-radius: 2px;
    opacity: 0.6;
}

/* --- Icon Boxes Enhancement --- */
.spotlight-services article > div:first-of-type,
.why-us-section article > div:nth-of-type(2) {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spotlight-services article:hover > div:first-of-type,
.why-us-section article:hover > div:nth-of-type(2) {
    transform: scale(1.1) rotate(5deg);
}

/* --- Smooth Scroll Behavior --- */
html {
    scroll-behavior: smooth;
}

/* --- Enhanced Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
}

/* --- Parallax Effect on Scroll --- */
.hero-dom-tom,
.spotlight-services,
.why-us-section,
.network-section {
    will-change: transform;
}

/* --- Badge Animations --- */
.hero-badge-wrapper {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

/* --- Enhanced Glassmorphism --- */
.spotlight-services .services-grid article,
.why-us-section article {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* --- Shimmer on Load --- */
@keyframes shimmerLoad {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.spotlight-services article,
.why-us-section article,
.network-section [style*="grid-template-columns"] > div {
    position: relative;
    overflow: hidden;
}

.spotlight-services article::before,
.why-us-section article::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
    z-index: 10;
}

.spotlight-services article:hover::before,
.why-us-section article:hover::before {
    animation: shimmerSlide 1.5s ease;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* --- 3D Card Effect --- */
.spotlight-services article,
.why-us-section article {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* --- Enhanced Price Box --- */
.spotlight-services article > div[style*="padding: 20px"] {
    position: relative;
    overflow: hidden;
}

.spotlight-services article > div[style*="padding: 20px"]::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

/* --- Floating Animation for Icons --- */
.spotlight-services article > div:nth-of-type(2),
.why-us-section article > div:nth-of-type(2),
.network-section [style*="font-size: 3rem"] {
    animation: floatGentle 3s ease-in-out infinite;
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* --- Tag Hover Effects --- */
.spotlight-services article span[style*="border-radius: 12px"],
.why-us-section article span[style*="border-radius: 10px"] {
    transition: all 0.3s ease;
    cursor: default;
}

.spotlight-services article span[style*="border-radius: 12px"]:hover,
.why-us-section article span[style*="border-radius: 10px"]:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Enhanced Stats Counter --- */
.why-us-section > div > div:last-child > div > div:first-child {
    background: linear-gradient(135deg, currentColor, currentColor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* --- Section Separator Line --- */
.spotlight-services::after,
.network-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-turquoise), var(--color-bleu-ciel));
    border-radius: 2px;
    opacity: 0.3;
}

/* --- Improved Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-turquoise);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Performance Optimization --- */
.hero-dom-tom *,
.spotlight-services *,
.why-us-section *,
.network-section * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Responsive Improvements --- */
@media (max-width: 768px) {
    .hero-dom-tom .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .why-us-section [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .network-section [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Disable complex animations on mobile for performance */
    .spotlight-services article::before,
    .why-us-section article::before {
        display: none;
    }
    
    .animated-particle {
        display: none;
    }
    
    /* Garder le pattern tropical mais sans animation sur mobile */
    .hero-dom-tom {
        background: 
            url('../images/tropical-pattern-hero.svg'),
            linear-gradient(135deg, #0a4d68 0%, #088395 25%, #05bfdb 50%, #00a8cc 75%, #0693a2 100%);
        background-size: 300px 300px, 400% 400%;
        background-position: 0 0, 0% 50%;
        background-repeat: repeat, no-repeat;
        animation: gradientFlow 15s ease infinite;
    }
    
    /* Grille territoires responsive */
    .territories-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .territories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
