/* ============================================
   Taxi Lyon Service - CSS Principal
   Design: Bleu Blanc Rouge (France)
   Mobile-First PWA
============================================ */

/* ============================================
   Variables CSS
============================================ */
:root {
    /* Couleurs France */
    --bleu-france: #0055A4;
    --bleu-dark: #003d7a;
    --bleu-light: #e8f0f8;
    --rouge-france: #EF4135;
    --rouge-dark: #d63429;
    --blanc: #FFFFFF;
    
    /* Gris */
    --gris-50: #f8fafc;
    --gris-100: #f1f5f9;
    --gris-200: #e2e8f0;
    --gris-400: #94a3b8;
    --gris-600: #475569;
    --gris-800: #1e293b;
    --gris-900: #0f172a;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
    --shadow-tab: 0 -4px 20px rgba(0,0,0,0.1);
    
    /* Rayons */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Layout */
    --tab-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --max-width: 600px;
}

/* ============================================
   Reset & Base
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--gris-50);
    color: var(--gris-800);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 16px);
    padding-top: calc(72px + env(safe-area-inset-top, 0px)); /* 4px tricolore + 68px header */
    overflow-x: hidden;
    overscroll-behavior-x: none;
    position: relative;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Désactiver la sélection accidentelle sur mobile */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Permettre la sélection sur les inputs */
input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

/* ============================================
   Blocage du scroll horizontal
============================================ */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Wrapper principal pour éviter tout débordement */
.tricolore-bar,
.header,
.hero,
.page-hero,
.section,
.footer,
.tab-bar,
.quick-actions,
.tarif-section,
.cta-section,
.availability-banner,
.guarantee-badge,
.trust-counter {
    max-width: 100%;
    overflow-x: hidden;
}

/* Éviter le bounce scroll sur iOS */
@supports (-webkit-touch-callout: none) {
    body {
        overscroll-behavior-y: none;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Barre Tricolore
============================================ */
.tricolore-bar {
    display: flex;
    height: 4px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
}

.tricolore-bar span {
    flex: 1;
}

.tricolore-bar span:nth-child(1) { background: var(--bleu-france); }
.tricolore-bar span:nth-child(2) { background: var(--blanc); }
.tricolore-bar span:nth-child(3) { background: var(--rouge-france); }

/* ============================================
   Header
============================================ */
.header {
    background: var(--blanc);
    padding: 12px 16px;
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Spacer pour compenser le header fixed */
.header-spacer {
    height: 72px; /* 4px tricolore + 68px header */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bleu-france) 0%, var(--bleu-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    font-weight: 800;
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--gris-900);
}

.logo-subtitle {
    font-size: 11px;
    color: var(--gris-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header avec retour */
.header-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gris-800);
}

.header-back svg {
    color: var(--bleu-france);
}

/* Bouton téléphone header */
.header-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bleu-light);
    border-radius: var(--radius-full);
    color: var(--bleu-france);
    transition: all 0.2s ease;
}

.header-phone:active {
    transform: scale(0.95);
    background: var(--bleu-france);
    color: var(--blanc);
}

/* ============================================
   Header Actions (Phone CTA + Burger)
============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bleu-france);
    color: var(--blanc);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.header-phone-cta:hover {
    background: var(--bleu-dark);
    transform: scale(1.05);
}

.header-phone-cta:active {
    transform: scale(0.95);
}

.header-phone-cta svg {
    stroke: currentColor;
}

/* ============================================
   Bouton Langue
============================================ */
.header-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid var(--gris-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    overflow: hidden;
}

.header-lang-btn:hover {
    border-color: var(--bleu-france);
    transform: scale(1.05);
}

.header-lang-btn:active {
    transform: scale(0.95);
}

.lang-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

/* Drapeau anglais (Union Jack) */
.lang-flag.flag-en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23b)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Drapeau français */
.lang-flag.flag-fr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%230055A4'/%3E%3Crect width='1' height='2' x='1' fill='%23fff'/%3E%3Crect width='1' height='2' x='2' fill='%23EF4135'/%3E%3C/svg%3E");
}

/* ============================================
   Menu Burger
============================================ */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--bleu-light);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s ease;
}

.burger-btn:active {
    transform: scale(0.95);
}

.burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--bleu-france);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger-btn.active {
    background: var(--bleu-france);
}

.burger-btn.active .burger-line {
    background: var(--blanc);
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: var(--blanc);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

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

/* Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gris-100);
    background: linear-gradient(135deg, var(--bleu-france) 0%, var(--bleu-dark) 100%);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blanc);
}

.mobile-menu-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.mobile-menu-logo span {
    font-size: 18px;
    font-weight: 700;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--blanc);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-close:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

/* Menu Content */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-section {
    margin-bottom: 8px;
}

.mobile-menu-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gris-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    margin: 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--gris-800);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bleu-france);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.mobile-menu-item:active {
    background: var(--bleu-light);
}

.mobile-menu-item:active::after {
    transform: scaleY(1);
}

.mobile-menu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bleu-light);
    border-radius: var(--radius-sm);
    color: var(--bleu-france);
    flex-shrink: 0;
}

/* Animation staggered pour les items */
.mobile-menu.open .mobile-menu-item {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
}

.mobile-menu.open .mobile-menu-section:nth-child(1) .mobile-menu-item:nth-child(2) { animation-delay: 0.05s; }
.mobile-menu.open .mobile-menu-section:nth-child(1) .mobile-menu-item:nth-child(3) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-menu-section:nth-child(2) .mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.open .mobile-menu-section:nth-child(2) .mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.open .mobile-menu-section:nth-child(2) .mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.open .mobile-menu-section:nth-child(2) .mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu.open .mobile-menu-section:nth-child(2) .mobile-menu-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu.open .mobile-menu-section:nth-child(2) .mobile-menu-item:nth-child(7) { animation-delay: 0.4s; }
.mobile-menu.open .mobile-menu-section:nth-child(3) .mobile-menu-item:nth-child(2) { animation-delay: 0.45s; }
.mobile-menu.open .mobile-menu-section:nth-child(3) .mobile-menu-item:nth-child(3) { animation-delay: 0.5s; }
.mobile-menu.open .mobile-menu-section:nth-child(3) .mobile-menu-item:nth-child(4) { animation-delay: 0.55s; }
.mobile-menu.open .mobile-menu-section:nth-child(3) .mobile-menu-item:nth-child(5) { animation-delay: 0.6s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu Footer */
.mobile-menu-footer {
    padding: 12px 16px;
    padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 8px);
    border-top: 1px solid var(--gris-100);
    background: var(--gris-50);
    display: flex;
    gap: 10px;
}

.mobile-menu-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-cta.phone {
    background: var(--bleu-france);
    color: var(--blanc);
}

.mobile-menu-cta.whatsapp {
    background: #25D366;
    color: var(--blanc);
}

.mobile-menu-cta:active {
    transform: scale(0.98);
}

/* ============================================
   Hero Section (Accueil)
============================================ */
.hero {
    background: linear-gradient(135deg, var(--bleu-france) 0%, var(--bleu-dark) 100%);
    padding: 32px 16px 48px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--gris-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--blanc);
    margin-bottom: 16px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--blanc);
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* ============================================
   Page Hero (Pages intérieures)
============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--bleu-france) 0%, var(--bleu-dark) 100%);
    padding: 24px 16px 48px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--gris-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.page-hero-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 60px;
    opacity: 0.15;
    pointer-events: none;
}

.page-hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--blanc);
    line-height: 1.2;
    margin-bottom: 8px;
}

.page-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

/* ============================================
   Quick Actions
============================================ */
.quick-actions {
    padding: 0 16px;
    margin-top: -12px;
    position: relative;
    z-index: 10;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--blanc);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.quick-action:active {
    transform: scale(0.96);
    box-shadow: var(--shadow-sm);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 20px;
}

.quick-action-icon.blue {
    background: var(--bleu-light);
    color: var(--bleu-france);
}

.quick-action-icon.red {
    background: #fef2f2;
    color: var(--rouge-france);
}

.quick-action span {
    font-size: 11px;
    font-weight: 600;
    color: var(--gris-600);
    text-align: center;
    line-height: 1.3;
}

/* ============================================
   Sections
============================================ */
.section {
    padding: 32px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section.no-padding-top {
    padding-top: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gris-900);
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--bleu-france);
}

/* ============================================
   Service Cards
============================================ */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--blanc);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid var(--gris-100);
}

.service-card:active {
    transform: scale(0.98);
    border-color: var(--bleu-france);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bleu-light);
    border-radius: var(--radius-md);
    font-size: 24px;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
    min-width: 0;
}

.service-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gris-900);
    margin-bottom: 2px;
}

.service-desc {
    font-size: 13px;
    color: var(--gris-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-arrow {
    color: var(--gris-400);
    flex-shrink: 0;
}

/* ============================================
   Tarif Cards
============================================ */
.tarif-section {
    padding: 0 16px;
    margin-top: -12px;
    position: relative;
    z-index: 10;
}

.tarif-card {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--blanc);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tarif-header {
    background: linear-gradient(135deg, var(--gris-900) 0%, var(--gris-800) 100%);
    padding: 16px 20px;
    color: var(--blanc);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarif-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.tarif-badge {
    background: var(--rouge-france);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.tarif-list {
    padding: 12px 0;
}

.tarif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gris-100);
}

.tarif-item:last-child {
    border-bottom: none;
}

.tarif-destination {
    font-size: 14px;
    font-weight: 600;
    color: var(--gris-800);
}

.tarif-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--bleu-france);
}

.tarif-price span {
    font-size: 12px;
    font-weight: 500;
    color: var(--gris-400);
}

/* ============================================
   Info Card
============================================ */
.info-card {
    background: linear-gradient(135deg, var(--gris-900) 0%, var(--gris-800) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--blanc);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--rouge-france) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 0 var(--radius-lg) 0 100%;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.info-card p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
    position: relative;
}

.info-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    position: relative;
}

.info-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   Feature Grid
============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-card {
    background: var(--blanc);
    padding: 20px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gris-100);
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bleu-light);
    border-radius: var(--radius-md);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gris-900);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 12px;
    color: var(--gris-400);
}

/* ============================================
   Content Text
============================================ */
.content-text {
    background: var(--blanc);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gris-100);
}

.content-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gris-900);
    margin-bottom: 12px;
}

.content-text p {
    font-size: 14px;
    color: var(--gris-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-text ul {
    list-style: none;
    margin-bottom: 16px;
}

.content-text ul li {
    font-size: 14px;
    color: var(--gris-600);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.content-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bleu-france);
    font-weight: 700;
}

/* ============================================
   CTA Button
============================================ */
.cta-section {
    padding: 0 16px 32px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--rouge-france) 0%, var(--rouge-dark) 100%);
    color: var(--blanc);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(239, 65, 53, 0.35);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button.secondary {
    background: var(--blanc);
    color: var(--bleu-france);
    border: 2px solid var(--bleu-france);
    box-shadow: none;
}

/* ============================================
   Forms
============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gris-800);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--gris-200);
    border-radius: var(--radius-md);
    background: var(--blanc);
    color: var(--gris-800);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--bleu-france);
    box-shadow: 0 0 0 4px var(--bleu-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============================================
   Footer
============================================ */
.footer {
    background: var(--gris-50);
    padding: 32px 16px 24px;
    border-top: 1px solid var(--gris-100);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 24px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--bleu-france);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.footer-services a {
    font-size: 13px;
    color: var(--gris-600);
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-services a:hover {
    color: var(--bleu-france);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    font-size: 13px;
    color: var(--gris-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-phone {
    font-weight: 600;
    color: var(--bleu-france) !important;
}

.footer-whatsapp {
    color: #25D366 !important;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--gris-200);
    padding-top: 16px;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 12px;
    color: var(--gris-500);
}

.footer-links a:hover {
    color: var(--bleu-france);
}

.footer-copy {
    font-size: 11px;
    color: var(--gris-400);
    text-align: center;
}

/* ============================================
   Tab Bar
============================================ */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--tab-height) + var(--safe-bottom));
    background: var(--blanc);
    box-shadow: var(--shadow-tab);
    z-index: 1000;
    padding-bottom: var(--safe-bottom);
}

.tab-bar-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: var(--tab-height);
    max-width: var(--max-width);
    margin: 0 auto;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gris-400);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.tab-item.active {
    color: var(--bleu-france);
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--bleu-france);
    border-radius: 0 0 3px 3px;
}

.tab-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* CTA Tab Special */
.tab-item.cta {
    color: var(--blanc);
}

.tab-item.cta .tab-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rouge-france) 0%, var(--rouge-dark) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(239, 65, 53, 0.4);
    margin-top: -16px;
}

.tab-item.cta span:last-child {
    color: var(--rouge-france);
}

/* ============================================
   Utilities
============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.hidden { display: none; }

/* ============================================
   Animations
============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   Media Queries (Tablette+)
============================================ */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .quick-actions-grid {
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Bouton WhatsApp Flottant
============================================ */
.whatsapp-float {
    position: fixed;
    bottom: calc(var(--tab-height) + var(--safe-bottom) + 20px);
    right: 16px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

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

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   Micro-animations & Pulsing
============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(239, 65, 53, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(239, 65, 53, 0.6); }
}

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

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Bouton CTA pulsant */
.cta-button {
    animation: pulseGlow 2s ease-in-out infinite;
}

.cta-button:hover {
    animation: none;
}

/* Icônes flottantes */
.service-icon,
.feature-icon,
.quick-action-icon {
    animation: float 3s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon,
.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) .service-icon,
.feature-card:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

.service-card:nth-child(4) .service-icon,
.feature-card:nth-child(4) .feature-icon {
    animation-delay: 1.5s;
}

/* Hero badge pulsant */
.hero-badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Tab bar CTA pulsant */
.tab-item.cta .tab-icon {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* WhatsApp shake au hover */
.whatsapp-float:hover svg {
    animation: shake 0.5s ease-in-out;
}

/* ============================================
   Animations d'entrée au scroll (AOS-like)
============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Slide from left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================================
   Skeleton Loading
============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gris-100) 25%, var(--gris-50) 50%, var(--gris-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-title { height: 24px; width: 70%; margin-bottom: 12px; }
.skeleton-card { height: 80px; margin-bottom: 12px; }

/* ============================================
   Pop-up de sortie
============================================ */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.exit-popup {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.exit-popup-overlay.show .exit-popup {
    transform: scale(1) translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gris-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gris-600);
}

.exit-popup-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.exit-popup h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gris-900);
    margin-bottom: 8px;
}

.exit-popup-discount {
    font-size: 42px;
    font-weight: 800;
    color: var(--rouge-france);
    margin: 16px 0;
}

.exit-popup p {
    font-size: 14px;
    color: var(--gris-600);
    margin-bottom: 20px;
}

.exit-popup .cta-button {
    width: 100%;
}

/* ============================================
   Indicateur d'urgence / Disponibilité
============================================ */
.availability-banner {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #86efac;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin: 0 16px 16px;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pulse 3s ease-in-out infinite;
}

@media (min-width: 632px) {
    .availability-banner {
        margin-left: auto;
        margin-right: auto;
    }
}

.availability-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.availability-text {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

.availability-text strong {
    color: #15803d;
}

/* ============================================
   Garantie Badge
============================================ */
.guarantee-badge {
    background: linear-gradient(135deg, var(--bleu-light) 0%, #dbeafe 100%);
    border: 1px solid var(--bleu-france);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 632px) {
    .guarantee-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

.guarantee-icon {
    width: 48px;
    height: 48px;
    background: var(--bleu-france);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.guarantee-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--bleu-dark);
    margin-bottom: 2px;
}

.guarantee-content p {
    font-size: 12px;
    color: var(--gris-600);
    margin: 0;
}

/* ============================================
   Prix barrés
============================================ */
.tarif-price-old {
    font-size: 14px;
    color: var(--gris-400);
    text-decoration: line-through;
    margin-right: 8px;
}

.tarif-price.promo {
    color: var(--rouge-france);
}

.tarif-badge.promo {
    background: var(--rouge-france);
    color: var(--blanc);
}

/* ============================================
   Compteur de confiance
============================================ */
.trust-counter {
    background: var(--gris-50);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px;
    text-align: center;
}

.trust-counter-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--bleu-france);
    display: block;
}

.trust-counter-label {
    font-size: 13px;
    color: var(--gris-600);
}

/* ============================================
   Badge promo flottant
============================================ */
.promo-ribbon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--rouge-france);
    color: var(--blanc);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transform: rotate(12deg);
    box-shadow: 0 2px 8px rgba(239, 65, 53, 0.3);
}

/* Tarif card relative pour le ribbon */
.tarif-card {
    position: relative;
    overflow: visible;
}

/* ============================================
   FAQ Section
============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--blanc);
    border-radius: var(--radius-md);
    border: 1px solid var(--gris-100);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: var(--bleu-france);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gris-900);
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gris-600);
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--bleu-france);
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}