/* ==========================================
   CONTACT INFO - PAGES PUBLIQUES
   ========================================== */

/* =================
   CONTACT BUTTON (Fixed - Always Visible)
   ================= */
.contact-button-container {
    position: relative;
    height: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    pointer-events: none;
}

.floating-contact-btn {
    position: fixed;
    top: 80px; /* En dessous du header (navbar ~70px) */
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8941f 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    opacity: 0;
    pointer-events: all; /* Le bouton peut être cliqué */
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.floating-contact-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6);
    }
}

/* =================
   CONTACT POPUP
   ================= */
.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.contact-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.contact-popup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-popup-overlay.active .contact-popup {
    transform: scale(1);
}

.contact-popup-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #111 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--secondary-color);
}

.contact-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-popup-header svg {
    width: 24px;
    height: 24px;
}

.contact-popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.contact-popup-body {
    padding: 1.5rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.contact-popup-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(79, 195, 247, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* =================
   STATISTIQUES DANS POPUP
   ================= */
.contact-popup-stats {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(79, 195, 247, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stats-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.stats-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-popup-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    text-align: center;
}

.contact-popup-stats .stat-item {
    padding: 1.2rem 0.8rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-popup-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-popup-stats .stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-popup-stats .stat-item:hover::before {
    transform: scaleX(1);
}

.contact-popup-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
}

.contact-popup-stats .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

.contact-popup-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f9f9f9;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-popup-item:hover {
    background: #f0f0f0;
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-popup-item:last-child {
    margin-bottom: 0;
}

.contact-popup-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8941f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-popup-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.contact-popup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-popup-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.contact-popup-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.contact-popup-whatsapp .contact-popup-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.contact-popup-whatsapp:hover {
    border-color: #25d366;
}

/* =================
   RESPONSIVE
   ================= */
@media (max-width: 768px) {
    .contact-button-container {
        padding: 0 0.5rem;
    }
    
    .floating-contact-btn {
        width: 45px;
        height: 45px;
        top: 75px;
        right: 15px;
    }
    
    .floating-contact-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-popup-message {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .contact-popup {
        max-width: 100%;
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .contact-popup-header {
        padding: 1rem;
    }
    
    .contact-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .contact-popup-body {
        padding: 1rem;
    }
    
    .contact-popup-item {
        padding: 0.875rem;
    }
    
    /* Responsive tablette pour les statistiques */
    .contact-popup-stats {
        padding: 1.3rem;
    }
    
    .stats-title {
        font-size: 1.1rem;
        margin-bottom: 1.3rem;
    }
    
    .contact-popup-stats .stats-grid {
        gap: 1rem;
    }
    
    .contact-popup-stats .stat-item {
        padding: 1rem 0.6rem;
    }
    
    .contact-popup-stats .stat-number {
        font-size: 1.6rem;
    }
    
    .contact-popup-stats .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .floating-contact-btn {
        width: 40px;
        height: 40px;
        top: 70px;
        right: 10px;
    }
    
    .contact-popup-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-popup-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-popup-message {
        padding: 0.875rem;
        font-size: 0.85rem;
    }
    
    /* Responsive pour les statistiques du popup */
    .contact-popup-stats {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .stats-title {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        letter-spacing: 1.5px;
    }
    
    .stats-title::after {
        width: 50px;
        height: 2px;
    }
    
    .contact-popup-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }
    
    .contact-popup-stats .stat-item {
        padding: 0.8rem 0.6rem;
        border-radius: 10px;
    }
    
    .contact-popup-stats .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-popup-stats .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }
}

/* =================
   FOOTER CONTACT INFO
   ================= */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.footer-contact-info .contact-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--secondary-color);
}

.footer-contact-info .contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info .contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-contact-info .contact-item span {
    color: var(--text-color);
}

/* =================
   CONTACT CARD (OPTIONAL)
   ================= */
.contact-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card-title svg {
    color: var(--secondary-color);
}

.contact-card-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #c39a2d);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    color: white;
}

.contact-card-content {
    flex: 1;
}

.contact-card-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.contact-card-value a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-value a:hover {
    color: var(--secondary-color);
}

/* =================
   RESPONSIVE
   ================= */
@media (max-width: 768px) {
    .top-info-bar {
        padding: 0.75rem 0;
    }
    
    .top-info-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .top-info-left,
    .top-info-right {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .top-info-item {
        font-size: 0.8rem;
    }
    
    .contact-card-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-info-left,
    .top-info-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-contact-info .contact-item {
        font-size: 0.875rem;
    }
}

/* =================
   SOCIAL LINKS (FOOTER)
   ================= */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    border-color: var(--secondary-color);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Couleurs spécifiques par réseau social au survol */
.social-link[aria-label*="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-link[aria-label*="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.social-link[aria-label*="Twitter"]:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.social-link[aria-label*="Pinterest"]:hover {
    background: #E60023;
    border-color: #E60023;
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.4);
}

.social-link[aria-label*="WhatsApp"]:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.social-link[aria-label*="TikTok"]:hover {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-link[aria-label*="Snapchat"]:hover {
    background: #FFFC00;
    border-color: #FFFC00;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 252, 0, 0.4);
}

/* Style alternatif: icônes avec bordure */
.social-link.bordered {
    background: transparent;
    border-color: var(--secondary-color);
}

.social-link.bordered:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* =================
   MODE SOMBRE
   ================= */
[data-theme="dark"] .top-info-bar {
    background: #1f1f1f;
    border-bottom-color: var(--secondary-color);
}

[data-theme="dark"] .contact-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .footer-contact-info .contact-item {
    color: #e0e0e0;
}

[data-theme="dark"] .footer-contact-info .contact-item a {
    color: #e0e0e0;
}

[data-theme="dark"] .footer-contact-info .contact-item a:hover {
    color: var(--secondary-color);
}

/* Icônes réseaux sociaux en mode sombre */
[data-theme="dark"] .social-link {
    background: rgba(212, 175, 55, 0.15);
    color: var(--secondary-color);
    border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .social-link:hover {
    color: white;
}

/* =================
   RESEAUX SOCIAUX - POPUP CONTACT
   ================= */
.contact-popup-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Facebook */
.social-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-facebook:hover svg {
    fill: white;
}

/* Twitter/X */
.social-twitter:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.social-twitter:hover svg {
    fill: white;
}

/* Instagram */
.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #e4405f;
}

.social-instagram:hover svg {
    fill: white;
}

/* LinkedIn */
.social-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-linkedin:hover svg {
    fill: white;
}

/* YouTube */
.social-youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.social-youtube:hover svg {
    fill: white;
}

/* TikTok */
.social-tiktok:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.social-tiktok:hover svg {
    fill: white;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .contact-popup-social {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .social-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 0.6rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* Mode sombre */
[data-theme="dark"] .contact-popup-social {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-title {
    color: #f1f5f9;
}

[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
