/**
 * TAXI CLERMONT 63 - Main CSS
 * Styles globaux pour toutes les pages
 */

/* ============================================
   RESET & BASE
============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   ACCENT LINE
============================================= */
.accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F5C518, #D4A817);
}

/* ============================================
   CTA BUTTON
============================================= */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(245, 197, 24, 0.25);
}

/* ============================================
   NAVIGATION LINK HOVER
============================================= */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5C518;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   MOBILE MENU
============================================= */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ============================================
   FOOTER LINK HOVER
============================================= */
.footer-link {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
    color: #F5C518;
    padding-left: 8px;
}

/* ============================================
   SCROLL ANIMATIONS
============================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service items */
.service-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.5s, background 0.5s;
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-item:nth-child(1) { transition-delay: 0.1s; }
.service-item:nth-child(2) { transition-delay: 0.2s; }
.service-item:nth-child(3) { transition-delay: 0.3s; }
.service-item:nth-child(4) { transition-delay: 0.4s; }

/* Advantage items */
.advantage-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.4s, border-color 0.4s;
}

.advantage-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.advantage-item:nth-child(1) { transition-delay: 0.1s; }
.advantage-item:nth-child(2) { transition-delay: 0.2s; }
.advantage-item:nth-child(3) { transition-delay: 0.3s; }
.advantage-item:nth-child(4) { transition-delay: 0.4s; }

/* Navette cards */
.navette-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.5s;
}

.navette-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.navette-card:nth-child(1) { transition-delay: 0.2s; }
.navette-card:nth-child(2) { transition-delay: 0.35s; }

/* Zone cards */
.zone-card {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.4s, background 0.4s;
}

.zone-card.visible {
    opacity: 1;
    transform: scale(1);
}

.zone-card:nth-child(1) { transition-delay: 0.05s; }
.zone-card:nth-child(2) { transition-delay: 0.1s; }
.zone-card:nth-child(3) { transition-delay: 0.15s; }
.zone-card:nth-child(4) { transition-delay: 0.2s; }
.zone-card:nth-child(5) { transition-delay: 0.25s; }
.zone-card:nth-child(6) { transition-delay: 0.3s; }
.zone-card:nth-child(7) { transition-delay: 0.35s; }
.zone-card:nth-child(8) { transition-delay: 0.4s; }

/* About values */
.about-value {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.about-value.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-value:nth-child(1) { transition-delay: 0.1s; }
.about-value:nth-child(2) { transition-delay: 0.2s; }
.about-value:nth-child(3) { transition-delay: 0.3s; }

/* Value cards */
.value-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.4s, background 0.4s;
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:nth-child(1) { transition-delay: 0.1s; }
.value-card:nth-child(2) { transition-delay: 0.2s; }
.value-card:nth-child(3) { transition-delay: 0.3s; }
.value-card:nth-child(4) { transition-delay: 0.4s; }

/* Timeline items */
.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }

/* FAQ items */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.4s;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-item:nth-child(2) { transition-delay: 0.15s; }
.faq-item:nth-child(3) { transition-delay: 0.2s; }
.faq-item:nth-child(4) { transition-delay: 0.25s; }
.faq-item:nth-child(5) { transition-delay: 0.3s; }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-content {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* ============================================
   MOTIFS & ANIMATIONS DÉCORATIVES
============================================= */

/* Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

@keyframes drift-reverse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-30px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes diagonal-move {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

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

/* Floating circles */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Pattern dots */
.pattern-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1.5px, transparent 0);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
    animation: pulse-soft 6s ease-in-out infinite;
}

/* Pattern diagonal */
.pattern-diagonal {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pattern-diagonal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(245, 197, 24, 0.03) 40px,
        rgba(245, 197, 24, 0.03) 41px
    );
}

/* Diagonal line */
.diagonal-line {
    position: absolute;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.4), transparent);
    transform: rotate(45deg);
    animation: diagonal-move 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(245, 197, 24, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.particle-1 { top: 20%; left: 10%; animation: float 7s ease-in-out infinite, pulse-soft 3s ease-in-out infinite; }
.particle-2 { top: 60%; left: 25%; animation: float-reverse 9s ease-in-out infinite, pulse-soft 4s ease-in-out infinite 1s; }
.particle-3 { top: 30%; right: 20%; animation: drift 11s ease-in-out infinite, pulse-soft 5s ease-in-out infinite 0.5s; }
.particle-4 { top: 70%; right: 15%; animation: drift-reverse 8s ease-in-out infinite, pulse-soft 4s ease-in-out infinite 1.5s; }
.particle-5 { top: 45%; left: 50%; animation: float 10s ease-in-out infinite, pulse-soft 6s ease-in-out infinite 2s; }
.particle-6 { top: 85%; left: 40%; animation: drift 13s ease-in-out infinite, pulse-soft 5s ease-in-out infinite; }

/* Rotating shapes */
.rotating-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.2;
    z-index: 1;
}

.rotating-square {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(245, 197, 24, 0.4);
    animation: rotate-slow 30s linear infinite;
}

.rotating-square-2 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    animation: rotate-slow 40s linear infinite reverse;
}

/* Animated gradient */
.animated-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 197, 24, 0.08) 0%,
        transparent 25%,
        rgba(245, 197, 24, 0.05) 50%,
        transparent 75%,
        rgba(245, 197, 24, 0.08) 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    pointer-events: none;
    z-index: 1;
}

/* Phone pulse */
.phone-pulse {
    position: relative;
}

.phone-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #F5C518;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

/* Scroll indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Service card hover */
.service-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 197, 24, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Destination tag */
.destination-tag {
    transition: all 0.3s ease;
}

.destination-tag:hover {
    background: rgba(245, 197, 24, 0.2);
    border-color: #F5C518;
}

/* Breadcrumb */
.breadcrumb a {
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #F5C518;
}

/* ============================================
   MINI HERO (Pages internes)
============================================= */
.mini-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
}

.mini-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-clermont63.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mini-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

/* ============================================
   FADE IN ANIMATION CLASSES
============================================= */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ============================================
   FLOATING CTA WIDGET
============================================= */

/* Overlay flou */
.floating-cta-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-cta-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container du widget */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (max-width: 640px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
}

/* Boutons secondaires (WhatsApp & Appel) */
.floating-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cta-buttons.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Bouton WhatsApp */
.floating-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.floating-cta-buttons.active .floating-btn-whatsapp {
    opacity: 1;
}

.floating-btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.floating-btn-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Bouton Appel */
.floating-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #F5C518;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
}

.floating-cta-buttons.active .floating-btn-call {
    opacity: 1;
}

.floating-btn-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(245, 197, 24, 0.5);
}

.floating-btn-call svg {
    width: 26px;
    height: 26px;
    color: #0a0a0a;
}

/* Bouton principal */
.floating-btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #F5C518, #D4A817);
    border-radius: 50%;
    box-shadow: 0 6px 30px rgba(245, 197, 24, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.floating-btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 35px rgba(245, 197, 24, 0.6);
}

.floating-btn-main::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(245, 197, 24, 0.4);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.floating-btn-main.active::before {
    animation: none;
    opacity: 0;
}

/* Icônes du bouton principal */
.floating-btn-main .icon-phone,
.floating-btn-main .icon-close {
    position: absolute;
    width: 28px;
    height: 28px;
    color: #0a0a0a;
    transition: all 0.3s ease;
}

.floating-btn-main .icon-phone {
    opacity: 1;
    transform: rotate(0deg);
}

.floating-btn-main .icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.floating-btn-main.active .icon-phone {
    opacity: 0;
    transform: rotate(90deg);
}

.floating-btn-main.active .icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

/* Labels au survol */
.floating-btn-whatsapp::before,
.floating-btn-call::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    white-space: nowrap;
    background: #1a1a1a;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn-whatsapp:hover::before,
.floating-btn-call:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Animation pulse pour le bouton principal */
@keyframes floating-pulse {
    0%, 100% {
        box-shadow: 0 6px 30px rgba(245, 197, 24, 0.5);
    }
    50% {
        box-shadow: 0 6px 40px rgba(245, 197, 24, 0.7);
    }
}

.floating-btn-main:not(.active) {
    animation: floating-pulse 3s ease-in-out infinite;
}

.floating-btn-main.active {
    animation: none;
    background: #1a1a1a;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.floating-btn-main.active:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.6);
}
