/**
 * Institut Evolution - Landing Page Styles
 * Style: Light/Dark mode avec switch
 * Mobile-first approach
 */

/* ==========================================================================
   Variables CSS - Couleurs de base
   ========================================================================== */
:root {
    /* Couleurs de marque */
    --red: #f51462;
    --red-dark: #c91050;
    --red-light: #FDE7EF;
    --red-glow: rgba(245, 20, 98, 0.15);
    --green-whatsapp: #25D366;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Theme Light (defaut)
   ========================================================================== */
:root,
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #F5F5F5;
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.95);

    --text-primary: #212121;
    --text-secondary: #757575;
    --text-tertiary: #9E9E9E;

    --border-color: #EEEEEE;
    --border-light: #E0E0E0;

    --tag-bg: #FDE7EF;
    --tag-text: #c91050;

    --card-hover: #F5F5F5;
    --icon-bg: #FDE7EF;
    --icon-fill: #f51462;

    --footer-bg: #212121;
    --footer-text: #9E9E9E;
}

/* ==========================================================================
   Theme Dark
   ========================================================================== */
[data-theme="dark"] {
    --bg-primary: #0D0D0D;
    --bg-secondary: #111111;
    --bg-tertiary: #1A1A1A;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-header: rgba(13, 13, 13, 0.95);

    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-tertiary: #808080;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);

    --tag-bg: rgba(245, 20, 98, 0.15);
    --tag-text: #FF5B8A;

    --card-hover: rgba(255, 255, 255, 0.1);
    --icon-bg: linear-gradient(135deg, var(--red), #FF5B8A);
    --icon-fill: #FFFFFF;

    --footer-bg: #0D0D0D;
    --footer-text: #808080;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    --red-glow: rgba(245, 20, 98, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Logo switching based on theme */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

[data-theme="dark"] .logo-light {
    display: none;
}

/* Theme Toggle Switch */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--card-hover);
    border-color: var(--border-light);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
    transition: fill 0.3s ease;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: #FFFFFF;
    padding: 0.6rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.header-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Header Language Selector */
.header-lang-selector {
    display: flex;
    gap: 0.25rem;
}

.header-lang-selector .lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-lang-selector .lang-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.header-lang-selector .lang-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #FFFFFF;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-item {
    display: flex;
    justify-content: center;
}

.mobile-theme-toggle {
    width: auto;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.mobile-theme-toggle span {
    display: inline;
}

.mobile-cta {
    width: 100%;
    justify-content: center;
}

/* Mobile: show hamburger, hide desktop actions */
@media (max-width: 767px) {
    .header-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 32px;
    }
}

/* Desktop: hide hamburger */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }

    .hamburger {
        display: none !important;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: url('../assets/images/hero.avif') center center / cover no-repeat;
    transition: background-color 0.3s ease;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 0;
}

[data-theme="dark"] .hero-bg {
    background: rgba(13, 13, 13, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    width: 100%;
}

.hero h1 {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .hero h1 {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .hero-subtitle {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--tag-bg);
    border: 1px solid rgba(245, 20, 98, 0.2);
    padding: 0.7rem 1.2rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--tag-text);
    width: fit-content;
    animation: fadeInUp 0.8s ease both;
    transition: background 0.3s ease, color 0.3s ease;
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    background: #22C55E;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

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

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
    color: var(--red);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Qualiopi Links */
.qualiopi-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--red);
    transition: all 0.2s ease;
}

.qualiopi-link:hover {
    border-bottom-style: solid;
    opacity: 0.8;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--red);
    color: #FFFFFF;
    box-shadow: var(--shadow-md), 0 0 0 0 var(--red-glow);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--red-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--text-tertiary);
    background: var(--card-hover);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Social Proof
   ========================================================================== */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.avatars {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border: 2px solid var(--bg-primary);
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.avatar:first-child {
    margin-left: 0;
}

.social-proof-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.social-proof-text strong {
    color: var(--text-primary);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 4rem 1.5rem;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.features-grid {
    display: grid;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--icon-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--icon-fill);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
    padding: 4rem 1.5rem;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.process-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.process-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.process-icon {
    width: 64px;
    height: 64px;
    background: var(--icon-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem auto 1rem;
}

.process-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--icon-fill);
}

.process-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.process-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (min-width: 768px) {
    .process-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    padding: 4rem 1.5rem;
    background: var(--bg-primary);
    transition: background 0.3s ease;
    text-align: center;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #FBBF24;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.testimonial-info span {
    display: block;
}

.testimonial-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Trust Section
   ========================================================================== */
.trust {
    padding: 3rem 1.5rem;
    background: var(--bg-secondary);
    text-align: center;
    transition: background 0.3s ease;
}

/* Qualiopi Badge - Conforme réglementation */
.qualiopi-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
}

.qualiopi-badge:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.qualiopi-logo-container {
    background: #FFFFFF;
    padding: 1rem;
    border-radius: 12px;
}

.qualiopi-logo-container img {
    height: 80px;
    width: auto;
    display: block;
}

.qualiopi-text {
    text-align: center;
}

.qualiopi-text strong {
    display: block;
    color: #212121;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.qualiopi-legal {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.qualiopi-legal strong {
    display: inline;
    font-size: inherit;
    color: #333333;
}

/* ==========================================================================
   Location Section - with Google Maps
   ========================================================================== */
.location {
    padding: 4rem 1.5rem;
    background: var(--bg-secondary);
    text-align: center;
    transition: background 0.3s ease;
}

.location-address-main {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.location-map {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 350px;
}

@media (min-width: 768px) {
    .location-map iframe {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .location-map iframe {
        height: 450px;
    }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 4rem 1.5rem;
    background: var(--bg-primary);
    text-align: center;
    transition: background 0.3s ease;
}

.cta-card {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    color: #FFFFFF;
}

.cta-card p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    color: #FFFFFF;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.cta-card .btn-cta-phone {
    background: #FFFFFF;
    color: var(--red);
    box-shadow: var(--shadow-lg);
}

.cta-card .btn-cta-phone:hover {
    background: #1A1A1A;
    color: #FFFFFF;
}

.cta-card .btn-cta-calendar {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.cta-card .btn-cta-calendar:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 2rem 1.5rem;
    background: var(--footer-bg);
    text-align: center;
    transition: background 0.3s ease;
}

.footer-address {
    font-size: 1.05rem;
    color: var(--footer-text);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-copyright {
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Floating CTA
   ========================================================================== */
.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-cta .btn {
    width: 100%;
    box-shadow: var(--shadow-xl), 0 0 30px var(--red-glow);
}

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

/* ==========================================================================
   Responsive - Tablet & Desktop
   ========================================================================== */
@media (min-width: 768px) {
    .header {
        padding: 1rem 3rem;
    }

    .hero {
        padding: 120px 3rem 4rem;
    }

    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }

    .features {
        padding: 5rem 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .process,
    .testimonials,
    .cta-section {
        padding: 5rem 3rem;
    }

    .testimonial-card {
        max-width: 600px;
        margin: 0 auto 1.5rem;
        padding: 2rem;
    }

    .cta-card {
        padding: 4rem 3rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .floating-cta {
        left: auto;
        right: 2rem;
        width: auto;
    }

    .floating-cta .btn {
        width: auto;
        padding: 1rem 2rem;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        padding: 140px 4rem 5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
   Mobile Optimizations
   ========================================================================== */
@media (max-width: 767px) {
    /* Bigger touch targets */
    .btn {
        min-height: 52px;
        padding: 1rem 1.5rem;
    }

    .header-cta {
        padding: 0.7rem 1rem;
    }

    /* Better spacing */
    .feature-card {
        padding: 1.25rem;
    }

    /* Full width buttons on mobile */
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    /* Prevent horizontal scroll */
    .testimonials,
    .features,
    .process {
        overflow-x: hidden;
    }

    /* Safe area for iPhone notch */
    .floating-cta {
        bottom: max(1.5rem, env(safe-area-inset-bottom));
        left: 1rem;
        right: 1rem;
    }
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    :root {
        --grey-600: #555;
        --grey-700: #444;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   WhatsApp Widget
   ========================================================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 98;
}

/* WhatsApp Button */
.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

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

.whatsapp-button svg {
    fill: white;
}

.whatsapp-button-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.whatsapp-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
    background: #075E54;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.whatsapp-popup-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-popup-avatar svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.whatsapp-popup-info {
    flex: 1;
}

.whatsapp-popup-name {
    display: block;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.whatsapp-popup-status {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.whatsapp-popup-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.whatsapp-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.whatsapp-popup-close svg {
    fill: white;
}

.whatsapp-popup-body {
    padding: 1rem;
    background: #E5DDD5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.whatsapp-message {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 90%;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent white transparent transparent;
}

.whatsapp-message p {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--grey-800);
    line-height: 1.4;
}

.whatsapp-message p:last-of-type {
    margin-bottom: 0.5rem;
}

.whatsapp-message-time {
    font-size: 0.7rem;
    color: var(--grey-500);
    float: right;
}

.whatsapp-popup-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.whatsapp-popup-cta:hover {
    background: #128C7E;
}

.whatsapp-popup-cta svg {
    fill: white;
}

/* Mobile adjustments for WhatsApp */
@media (max-width: 767px) {
    .whatsapp-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-button {
        width: 56px;
        height: 56px;
    }

    .whatsapp-popup {
        width: calc(100vw - 2rem);
        max-width: 320px;
        bottom: 70px;
    }

    /* Adjust floating CTA position to not overlap */
    .floating-cta {
        bottom: 5rem;
    }
}

/* Desktop WhatsApp popup */
@media (min-width: 768px) {
    .whatsapp-popup {
        right: 0;
    }
}

/* ==========================================================================
   RTL Support (Arabic)
   ========================================================================== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .header {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero {
    text-align: center;
}

[dir="rtl"] .hero-tag {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-ctas {
    flex-direction: column;
}

[dir="rtl"] .btn svg {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Keep phone numbers in LTR even in RTL mode */
[dir="rtl"] .btn-cta-phone,
[dir="rtl"] .header-cta,
[dir="rtl"] a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: embed;
}

[dir="rtl"] .feature-card,
[dir="rtl"] .process-card,
[dir="rtl"] .testimonial-card {
    text-align: center;
}

[dir="rtl"] .social-proof {
    flex-direction: row-reverse;
}

[dir="rtl"] .avatars {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-info {
    text-align: right;
}

[dir="rtl"] .whatsapp-widget {
    right: auto;
    left: 1.5rem;
}

[dir="rtl"] .whatsapp-popup {
    right: auto;
    left: 0;
}

[dir="rtl"] .whatsapp-popup-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .whatsapp-popup-close {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .whatsapp-message {
    border-radius: 12px 0 12px 12px;
}

[dir="rtl"] .whatsapp-message::before {
    left: auto;
    right: -8px;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent transparent white;
}

[dir="rtl"] .whatsapp-message-time {
    float: left;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .qualiopi-badge {
    flex-direction: column;
}

[dir="rtl"] .cta-buttons {
    flex-direction: column;
}

@media (min-width: 768px) {
    [dir="rtl"] .hero-ctas {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .cta-buttons {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .whatsapp-widget {
        left: 1.5rem;
        right: auto;
    }
}
