/* ============================================
   HOME PAGE - Styles spécifiques
   ============================================ */

/* HERO - Messages alternés */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-services {
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%),
        linear-gradient(135deg, 
            rgba(79, 195, 247, 0.15) 0%, 
            rgba(38, 198, 218, 0.15) 50%,
            rgba(102, 187, 106, 0.15) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Formes rotatives HERO - RALENTIS */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.3) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    filter: blur(50px);
    animation: rotateUltraSlow 40s linear infinite, floatSlow 25s ease-in-out infinite;
}

.hero-shape-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(38, 198, 218, 0.25) 0%, transparent 70%);
    bottom: -5%;
    right: -5%;
    filter: blur(50px);
    animation: rotateUltraSlow 45s linear infinite reverse, floatSlow 30s ease-in-out infinite;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.2) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    filter: blur(55px);
    animation: rotateUltraSlow 50s linear infinite, floatSlow 35s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 var(--space-lg);
    max-width: 1000px;
    width: 100%;
}

/* Messages alternés */
.hero-messages {
    position: relative;
    min-height: 150px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 24px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    animation: fadeMessage 20s infinite;
    white-space: nowrap;
    overflow: visible;
}

.hero-message:nth-child(1) { animation-delay: 0s; }
.hero-message:nth-child(2) { animation-delay: 5s; }
.hero-message:nth-child(3) { animation-delay: 10s; }
.hero-message:nth-child(4) { animation-delay: 15s; }

@keyframes fadeMessage {
    0% { opacity: 0; visibility: hidden; transform: translate(-50%, -40%); }
    5%, 20% { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
    25%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -60%); }
}

.hero-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255,255,255,0.95);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    line-height: 1.6;
    font-weight: 400;
    position: relative;
}

/* Bouton avec pulse - RALENTI */
.btn-pulse {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(20px) saturate(180%);
    color: white !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(79, 195, 247, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: btnPulseGlass 4s ease-in-out infinite;
}

@keyframes btnPulseGlass {
    0%, 100% {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 
            0 8px 32px rgba(79, 195, 247, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transform: translateY(0) scale(1);
    }
    50% {
        background: rgba(255, 255, 255, 0.32);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 
            0 10px 40px rgba(79, 195, 247, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 30px rgba(79, 195, 247, 0.2);
        transform: translateY(-2px) scale(1.02);
    }
}

/* SECTIONS AVEC BACKGROUNDS COLORÉS + LOGO WATERMARK */
.section-accent-blue {
    background: 
        radial-gradient(ellipse at top right, 
            rgba(79, 195, 247, 0.08) 0%, 
            transparent 50%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(250, 250, 250, 1) 100%);
    position: relative;
    overflow: hidden;
}

.section-accent-blue::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: url('../images/logo_hand.png') no-repeat center;
    background-size: contain;
    opacity: 0.04;
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.section-gradient-soft {
    background: 
        linear-gradient(180deg, 
            rgba(245, 245, 245, 1) 0%, 
            rgba(250, 250, 250, 1) 50%,
            rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.section-gradient-soft::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: url('../images/logo_hand.png') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    transform: rotate(10deg);
    pointer-events: none;
    z-index: 0;
}

.section-accent-green {
    background: 
        radial-gradient(ellipse at bottom left, 
            rgba(102, 187, 106, 0.06) 0%, 
            transparent 50%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(250, 250, 250, 1) 100%);
    position: relative;
    overflow: hidden;
}

.section-accent-green::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -10%;
    width: 650px;
    height: 650px;
    background: url('../images/logo_hand.png') no-repeat center;
    background-size: contain;
    opacity: 0.035;
    transform: rotate(-20deg);
    pointer-events: none;
    z-index: 0;
}

.section-gradient-purple {
    background: 
        radial-gradient(ellipse at top left, 
            rgba(171, 71, 188, 0.05) 0%, 
            transparent 50%),
        linear-gradient(180deg, 
            rgba(250, 250, 250, 1) 0%, 
            rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.section-gradient-purple::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -20%;
    width: 750px;
    height: 750px;
    background: url('../images/logo_hand.png') no-repeat center;
    background-size: contain;
    opacity: 0.04;
    transform: translateY(-50%) rotate(15deg);
    pointer-events: none;
    z-index: 0;
}

.section .container {
    position: relative;
    z-index: 1;
}

/* FORMES FLOTTANTES SECTIONS - RALENTIS + SUBTILES */
.section-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.section-shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    filter: blur(60px);
    animation: floatSlow 35s ease-in-out infinite;
}

.section-shape-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(38, 198, 218, 0.06) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    filter: blur(60px);
    animation: floatSlow 40s ease-in-out infinite reverse;
}

.section-shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.05) 0%, transparent 70%);
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    filter: blur(65px);
    animation: floatSlow 45s ease-in-out infinite;
}

/* CARTES AVEC GLOW - SUBTIL */
.card-glow {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glow:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 16px 48px rgba(79, 195, 247, 0.15),
        0 0 0 1px rgba(79, 195, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* CARTES SERVICES AVEC BORDURE ANIMÉE */
.card-border-animated {
    position: relative;
}

.card-border-animated::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4FC3F7, #26C6DA, #66BB6A);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-border-animated:hover::before {
    width: 100%;
}

/* IMAGE ELEVATED */
.image-elevated {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all 0.4s ease;
}

.image-elevated:hover {
    transform: scale(1.02) translateY(-6px);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.18);
}

/* CTA SECTION VIBRANT - Variante home */
.cta-section-vibrant {
    background: linear-gradient(135deg, 
        rgba(79, 195, 247, 0.10) 0%, 
        rgba(38, 198, 218, 0.10) 50%,
        rgba(102, 187, 106, 0.10) 100%);
    border-radius: var(--radius-xl);
    padding: 5rem var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: var(--space-3xl) var(--space-lg);
    box-shadow: 
        0 16px 48px rgba(79, 195, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Glow rotatif ULTRA LENT */
.cta-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(79, 195, 247, 0.2) 0%, 
        rgba(38, 198, 218, 0.15) 30%,
        transparent 70%);
    animation: rotateUltraSlow 40s linear infinite;
}

/* Formes géométriques CTA - RALENTIS */
.cta-section-vibrant::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(102, 187, 106, 0.15) 0%, 
        transparent 70%);
    top: -100px;
    right: -100px;
    filter: blur(60px);
    animation: floatSlow 30s ease-in-out infinite;
}

.cta-section-vibrant::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(171, 71, 188, 0.12) 0%, 
        transparent 70%);
    bottom: -120px;
    left: -120px;
    filter: blur(60px);
    animation: floatSlow 35s ease-in-out infinite reverse;
}

.cta-section-vibrant h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 10;
    color: var(--texte-principal);
}

.cta-section-vibrant p {
    font-size: var(--text-lg);
    color: var(--texte-secondaire);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 10;
}

.cta-section-vibrant .btn {
    position: relative;
    z-index: 10;
}

/* CTA GLASSMORPHISM VARIANT */
.cta-section-glass {
    padding: var(--space-3xl) var(--space-lg);
    margin: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-glass-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 
        0 20px 60px rgba(79, 195, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.cta-glass-content:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 28px 80px rgba(79, 195, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(79, 195, 247, 0.3);
}

.cta-glass-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(79, 195, 247, 0.3) 0%, 
        rgba(38, 198, 218, 0.3) 50%,
        rgba(102, 187, 106, 0.3) 100%);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-glass-content:hover::before {
    opacity: 1;
}

.cta-glass-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: var(--space-sm);
    color: var(--texte-principal);
}

.cta-glass-content p {
    font-size: var(--text-lg);
    color: var(--texte-secondaire);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO SLIM - Pour pages secondaires */
.hero-slim {
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
}

.hero-slim .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-slim .hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* INTRO ÉQUIPE/PAGES */
.team-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
}

/* CATEGORY HEADERS */
.team-category-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.team-category-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-xs);
    color: var(--texte-principal);
}

.team-category-header p {
    font-size: var(--text-lg);
    color: var(--texte-secondaire);
}

/* LISTE MINIMALE */
.list-minimal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.list-minimal li {
    font-size: var(--text-lg);
    color: var(--texte-secondaire);
    padding: var(--space-xs) 0;
    transition: all 0.3s ease;
}

.list-minimal li:hover {
    color: var(--bleu-clair);
    transform: translateX(5px);
}

/* STATUS BADGES AMÉLIORÉS */
.status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-xl);
    margin-top: var(--space-sm);
    border: 1px solid transparent;
}

.status-primary {
    background: linear-gradient(135deg, #4FC3F7, #26C6DA);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.status-success {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.3);
}

.status-warning {
    background: linear-gradient(135deg, #FF9800, #FF6F00);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* WATERMARKS LOGO - Ultra subtils */
.section-watermark {
    position: absolute;
    width: 600px;
    height: 600px;
    background: url('../images/logo_hand.png') no-repeat center;
    background-size: contain;
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
}

.watermark-left {
    top: 10%;
    left: -15%;
    transform: rotate(-20deg);
}

.watermark-right {
    top: 15%;
    right: -15%;
    transform: rotate(15deg);
}

.watermark-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
}

/* ICÔNES MINIMALISTES SERVICES */
.service-icon-minimal {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
    transition: transform 0.3s ease;
}

.card-service:hover .service-icon-minimal {
    transform: scale(1.1) rotate(-5deg);
}

/* ICÔNES FEATURES */
.feature-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    display: block;
    transition: transform 0.4s ease;
}

.card-feature:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ICÔNES LOCATIONS */
.location-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: block;
    transition: transform 0.3s ease;
}

.card-location:hover .location-icon {
    transform: scale(1.2) translateY(-5px);
}

/* HOVER LIFT - Effet subtil */
.card-hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 20px 60px rgba(79, 195, 247, 0.15),
        0 0 0 1px rgba(79, 195, 247, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ANIMATIONS ULTRA LENTES - Spécifiques à HOME */
@keyframes rotateUltraSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-15px) translateX(0px); }
    75% { transform: translateY(-10px) translateX(-5px); }
}

@keyframes pulseSubtle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Ligne décorative entre sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(79, 195, 247, 0.3) 50%, 
        transparent 100%);
}

.section:first-of-type::before {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-messages {
        min-height: 120px;
    }
    
    .section-watermark {
        width: 500px;
        height: 500px;
        opacity: 0.02;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slim {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero-messages {
        min-height: 100px;
    }
    
    .hero-message {
        font-size: 2rem;
        white-space: normal;
    }
    
    .cta-section-vibrant {
        padding: var(--space-2xl) var(--space-md);
        margin: var(--space-2xl) var(--space-sm);
    }
    
    .cta-glass-content {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .list-minimal {
        grid-template-columns: 1fr;
    }
    
    .section-watermark {
        width: 400px;
        height: 400px;
        opacity: 0.015;
    }
    
    .watermark-left,
    .watermark-right,
    .watermark-center {
        transform: scale(0.8);
    }
    
    /* Formes plus petites mobile */
    .hero-shape-1,
    .hero-shape-2,
    .hero-shape-3 {
        width: 250px !important;
        height: 250px !important;
        filter: blur(40px) !important;
    }
    
    .section-shape-1,
    .section-shape-2,
    .section-shape-3 {
        width: 200px !important;
        height: 200px !important;
        filter: blur(35px) !important;
    }
}

@media (max-width: 480px) {
    .section-watermark {
        display: none;
    }
    
    .cta-glass-content {
        padding: var(--space-xl) var(--space-md);
    }
}
