
.teratech-map-section {
    padding: 60px 20px;
    position: relative;
    /* PAS d'arrière-plan ici - utilisez le style de votre site */
}

.teratech-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.teratech-header {
    text-align: center;
    margin-bottom: 50px;
    animation: teratechFadeInDown 1s ease;
}

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

.teratech-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1e40af;
    text-shadow: 0 0 30px rgba(30, 64, 175, 0.3);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.teratech-header p {
    color: #1e40af;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Carte principale */
.teratech-map-container {
    position: relative;
    width: 100%;
    height: 800px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    overflow: visible; /* Changé pour permettre le panneau de sortir */
}

/* Canvas pour les chemins animés */
#teratechPathCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Centre - Logo TERATECH */
.teratech-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.4),
                0 0 100px rgba(59, 130, 246, 0.3),
                inset 0 0 40px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    animation: teratechPulse 3s ease-in-out infinite;
    border: 4px solid white;
    overflow: hidden;
}

@keyframes teratechPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.4),
                   0 0 100px rgba(59, 130, 246, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 80px rgba(59, 130, 246, 0.6),
                   0 0 120px rgba(59, 130, 246, 0.5);
    }
}

.teratech-center-hub:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Logo image */
.teratech-logo-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    display: none;
}

.teratech-logo-image.show {
    display: block;
}

/* Nœuds de services */
.teratech-service-node {
    position: absolute;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    border: 3px solid white;
    z-index: 10;
    opacity: 0;
    animation: teratechFadeInNode 0.6s ease forwards;
}

@keyframes teratechFadeInNode {
    to {
        opacity: 1;
    }
}

.teratech-service-node:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.5),
                0 0 80px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
}

.teratech-service-node.active {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    border-color: white;
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.5),
                0 0 80px rgba(252, 211, 77, 0.4);
}

.teratech-service-node i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.teratech-node-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 0 10px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Badge */
.teratech-node-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    animation: teratechBadgeBounce 2s ease-in-out infinite;
}

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

/* Positions des nœuds */
.teratech-node-1 { top: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0.1s; }
.teratech-node-2 { top: 20%; right: 15%; animation-delay: 0.2s; }
.teratech-node-3 { top: 50%; right: 5%; transform: translateY(-50%); animation-delay: 0.3s; }
.teratech-node-4 { bottom: 20%; right: 15%; animation-delay: 0.4s; }
.teratech-node-5 { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }
.teratech-node-6 { bottom: 20%; left: 15%; animation-delay: 0.6s; }
.teratech-node-7 { top: 50%; left: 5%; transform: translateY(-50%); animation-delay: 0.7s; }
.teratech-node-8 { top: 20%; left: 15%; animation-delay: 0.8s; }

/* Panneau d'information - DESKTOP */
.teratech-info-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.teratech-info-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Overlay pour fermer en cliquant dehors */
.teratech-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(5px);
}

.teratech-overlay.show {
    opacity: 1;
    visibility: visible;
}

.teratech-info-panel h3 {
    font-size: 1.6rem;
    color: #1e40af;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
    word-wrap: break-word;
}

.teratech-info-panel h3 i {
    font-size: 1.8rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.teratech-info-panel p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.teratech-info-panel .teratech-features {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.teratech-info-panel .teratech-features li {
    color: #64748b;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
}

.teratech-info-panel .teratech-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: bold;
}

.teratech-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.teratech-close-btn:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.teratech-cta-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.teratech-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

/* ========== RESPONSIVE ========== */

/* Tablettes */
@media (max-width: 1200px) {
    .teratech-map-container {
        height: 700px;
    }

    .teratech-service-node {
        width: 120px;
        height: 120px;
    }

    .teratech-service-node i {
        font-size: 2rem;
    }

    .teratech-node-title {
        font-size: 0.7rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .teratech-map-section {
        padding: 40px 15px;
    }

    .teratech-header h1 {
        font-size: 2.5rem;
    }

    .teratech-header p {
        font-size: 1rem;
    }

    .teratech-map-container {
        height: 600px;
        border-radius: 20px;
    }

    .teratech-center-hub {
        width: 140px;
        height: 140px;
    }

    .teratech-logo-image {
        width: 100px;
        height: 100px;
    }

    .teratech-service-node {
        width: 90px;
        height: 90px;
    }

    .teratech-service-node i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .teratech-node-title {
        font-size: 0.6rem;
        padding: 0 5px;
    }

    .teratech-node-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
    }

    /* Panneau mobile - en bas de l'écran */
    .teratech-info-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        max-height: 80vh;
        overflow-y: auto;
    }

    .teratech-info-panel.show {
        transform: translateY(0);
    }

    .teratech-info-panel h3 {
        font-size: 1.3rem;
        padding-right: 30px;
    }

    .teratech-info-panel h3 i {
        font-size: 1.5rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .teratech-header h1 {
        font-size: 2rem;
    }

    .teratech-map-container {
        height: 500px;
    }

    .teratech-center-hub {
        width: 120px;
        height: 120px;
    }

    .teratech-logo-image {
        width: 80px;
        height: 80px;
    }

    .teratech-service-node {
        width: 75px;
        height: 75px;
    }

    .teratech-service-node i {
        font-size: 1.2rem;
    }

    .teratech-node-title {
        font-size: 0.55rem;
    }
}