﻿/* ============================
   Hero Section Button Tooltips
   Style moderne pour les tooltips
   ============================ */

/* Container pour le bouton avec tooltip */
.hero-btn-with-tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip container */
.hero-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0;
    border-radius: 12px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    font-size: 0.85rem;
    text-align: left;
    overflow: visible;
}

/* Zone de pont invisible pour faciliter le passage vers le tooltip */
.hero-tooltip::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* Flèche du tooltip (vers le bas) */
.hero-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #34495e transparent transparent transparent;
}

/* Afficher au survol - DESKTOP UNIQUEMENT */
@media (hover: hover) and (pointer: fine) {
    .hero-btn-with-tooltip:hover .hero-tooltip,
    .hero-tooltip:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Header du tooltip */
.hero-tooltip-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tooltip-header i {
    color: #ffc107;
}

/* Corps du tooltip */
.hero-tooltip-body {
    padding: 0.75rem 1rem;
}

/* Liste des éléments */
.hero-tooltip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-tooltip-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.hero-tooltip-list li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-tooltip-list li i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-tooltip-list li span {
    flex: 1;
}

/* Section de highlight */
.hero-tooltip-highlight {
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Footer du tooltip */
.hero-tooltip-footer {
    background: rgba(0, 0, 0, 0.15);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
}

/* ============================
   MOBILE: Cacher les tooltips hover
   Sur mobile, les boutons marchent directement
   ============================ */
@media (max-width: 767px), (hover: none) {
    /* Cacher complètement les tooltips sur mobile */
    .hero-tooltip {
        display: none !important;
    }
}

/* ============================
   DESKTOP: Ajustements de position
   ============================ */
@media (min-width: 768px) and (hover: hover) {
    .hero-tooltip {
        /* Position centrée par défaut */
    }
}

/* Animation de pulse pour attirer l'attention - desktop uniquement */
@media (hover: hover) and (pointer: fine) {
    @keyframes tooltip-pulse {
        0%, 100% {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }
        50% {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 193, 7, 0.3);
        }
    }

    .hero-btn-with-tooltip:hover .hero-tooltip {
        animation: tooltip-pulse 2s ease-in-out infinite;
    }
}
