/* ================================
   Variables CSS
   ================================ */
:root {
    /* Couleurs ACHNO */
    --primary: #FF7F24;
    --accent: #FFA76A;
    --dark-accent: #E65C00;
    --background: #FFFAF5;
    --white: #FFFFFF;
    --text-primary: #333340;
    --text-secondary: #686877;
    --text-light: #9999A8;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(255, 127, 36, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 127, 36, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 127, 36, 0.2);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 6rem 0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

/* RTL / LTR Support */
html[dir="rtl"] body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    letter-spacing: 0;
}

html[dir="ltr"] body {
    font-family: 'Poppins', 'Tajawal', sans-serif;
    letter-spacing: -0.01em;
}

/* Amélioration typographie arabe */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 {
    font-weight: 700;
    line-height: 1.4;
}

html[dir="rtl"] p {
    line-height: 1.8;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ================================
   Container
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ================================
   Header avec Bannière Intégrée
   ================================ */
.header {
    position: relative;
    z-index: 1000;
}

/* Bannière Hero en haut */
.header-banner {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    overflow: hidden;
}

.header-banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
}

/* Navbar sticky */
.header-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 127, 36, 0.1);
    transition: var(--transition);
}

.header-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: var(--transition);
}

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

.header-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* Header Navigation */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 127, 36, 0.08);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(255, 127, 36, 0.12);
}

/* Header CTA Button */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 127, 36, 0.3);
    flex-shrink: 0;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 36, 0.4);
}

.header-cta svg {
    flex-shrink: 0;
}

/* ================================
   Language Switcher
   ================================ */
.lang-switch {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

html[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 1rem;
}

/* Remove margins on mobile */
@media (max-width: 968px) {
    .lang-switch {
        margin: 0 !important;
    }
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 127, 36, 0.1);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-text {
    font-weight: 600;
}

.lang-code {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Language Switch Mobile (inside nav) */
.lang-switch-mobile {
    display: none;
    flex-direction: row;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 127, 36, 0.2);
}

.lang-switch-mobile .lang-btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem;
    font-size: 1rem;
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* Header Responsive */
@media (max-width: 968px) {
    .header-container {
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .header-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        font-size: 1.25rem;
        padding: 1rem 2rem;
    }

    .header-cta {
        display: none;
    }

    /* Language switch always visible on tablet/mobile */
    .lang-switch {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2;
        flex: 0 0 auto;
        gap: 0.15rem;
        background: var(--primary);
        padding: 0.2rem;
        border-radius: 8px;
        margin: 0 !important;
    }

    html[dir="rtl"] .lang-switch {
        order: 2;
    }

    .lang-switch .lang-btn {
        padding: 0.35rem 0.5rem;
        border-radius: 6px;
        min-width: 36px;
        min-height: 32px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: white;
        border: none;
        font-size: 1.2rem;
    }

    .lang-switch .lang-btn.active {
        background: white;
        color: var(--primary);
    }

    /* Hide text, show only flags on mobile */
    .lang-switch .lang-text {
        display: none !important;
    }

    .lang-switch .lang-flag {
        font-size: 1.2rem;
        line-height: 1;
    }

    .mobile-menu-toggle {
        display: flex;
        flex: 0 0 auto;
        order: 3;
    }

    .header-logo {
        order: 1;
        flex: 1;
    }

    /* Hide lang switch inside hamburger menu */
    .lang-switch-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
    }

    .header-logo img {
        width: 36px;
        height: 36px;
    }

    .header-logo-text {
        font-size: 1.1rem;
    }

    .lang-switch {
        padding: 0.15rem !important;
        gap: 0.1rem !important;
    }

    .lang-switch .lang-btn {
        min-width: 32px !important;
        min-height: 28px !important;
        padding: 0.25rem 0.4rem !important;
    }

    .lang-switch .lang-flag {
        font-size: 1.1rem !important;
    }

    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hamburger-line {
        width: 20px;
    }
}

/* Header Banner Responsive */
@media (max-width: 768px) {
    .header-banner-image {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .header-banner-image {
        max-height: 150px;
    }
}

/* Body - pas de padding car header non-fixe */
body {
    padding-top: 0;
}

/* ================================
   Promotional Banner
   ================================ */
.promo-banner {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    overflow: hidden;
}

.promo-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-banner-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .promo-banner-image {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .promo-banner-image {
        max-height: 200px;
    }
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--background) 0%, #fff5eb 100%);
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: 180px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(var(--shadow-md));
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.title-arabic {
    color: var(--primary);
}

.title-separator {
    color: var(--text-light);
    font-weight: 300;
}

.title-french {
    color: var(--text-primary);
}

.hero-slogan {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tagline-fr {
    color: var(--primary);
}

.tagline-separator {
    color: var(--text-light);
    font-weight: 300;
}

.tagline-ar {
    color: var(--dark-accent);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-app-store,
.btn-app-store-large {
    background-color: var(--text-primary);
    color: var(--white);
}

.btn-app-store:hover,
.btn-app-store-large:hover {
    background-color: #1a1a24;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-google-play,
.btn-google-play-large {
    background-color: var(--primary);
    color: var(--white);
}

.btn-google-play:hover,
.btn-google-play-large:hover {
    background-color: var(--dark-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.btn-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ================================
   Features Section
   ================================ */
.features-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.feature-card {
    background-color: var(--background);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.feature-icon svg {
    stroke-width: 2.5;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-description .darija {
    display: block;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.feature-description em {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

/* ================================
   Download Section
   ================================ */
.download-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    color: var(--white);
    text-align: center;
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 1rem;
    opacity: 0.95;
}

.download-subtitle-ar {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-app-store-large,
.btn-google-play-large {
    padding: 1.25rem 2.5rem;
}

/* ================================
   Footer
   ================================ */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-description-ar {
    font-size: 0.9rem;
    color: rgba(255, 127, 36, 0.9);
    line-height: 1.7;
    font-weight: 500;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-links svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --section-padding: 4rem 0;
    }

    .hero-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .title-separator {
        display: none;
    }

    .cta-buttons,
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }

    .footer-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 140px;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }
}

/* ================================
   Story Sections - Parcours utilisateur
   ================================ */

/* Base pour toutes les sections story */
.story-section {
    padding: var(--section-padding);
    overflow: hidden;
}

.story-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-section.reverse .container {
    direction: ltr;
}

.story-section.reverse .story-content {
    order: 2;
}

.story-section.reverse .story-image {
    order: 1;
}

/* Contenu texte */
.story-content {
    max-width: 540px;
}

.story-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 127, 36, 0.1);
    border-radius: 20px;
}

.story-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.story-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-description .darija {
    display: block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 500;
}

/* Image bloc */
.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.story-image img:hover {
    transform: scale(1.02);
}

/* Section: Bannière principale */
.section-problem {
    background: transparent;
}

.section-problem .story-label {
    background: var(--primary);
    color: var(--white);
}

.section-problem .story-title {
    color: var(--white);
}

.section-problem .story-image img {
    box-shadow: 0 8px 32px rgba(255, 127, 36, 0.2);
}

/* Section: Vous ne savez pas qui appeler (doute) */
.section-doubt {
    background-color: var(--white);
}

.section-doubt .story-label {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.section-doubt .story-title {
    color: var(--text-primary);
}

/* Section: Un besoin en cours (action) */
.section-action {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-action .story-label {
    background: rgba(255, 127, 36, 0.15);
    color: var(--dark-accent);
}

/* Section: Trouver un artisan, sans stress (solution) */
.section-solution {
    background: linear-gradient(135deg, var(--background) 0%, #fff5eb 100%);
}

.section-solution .story-title {
    color: var(--primary);
}

.section-solution .story-image img {
    box-shadow: 0 8px 32px rgba(255, 127, 36, 0.25);
    border: 3px solid var(--primary);
}

/* Section: ACHNO en un coup d'œil (CTA final) */
.section-cta-final {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    color: var(--white);
    text-align: center;
}

.section-cta-final .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-final-image {
    max-width: 600px;
    width: 100%;
}

.cta-final-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cta-final-content {
    max-width: 700px;
}

.cta-final-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
    filter: brightness(0) invert(1);
}

.cta-final-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-final-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.cta-final-subtitle-ar {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-final-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.cta-final-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section pleine largeur pour image bannière */
.section-fullwidth {
    padding: 0;
    overflow: visible;
}

.section-fullwidth .container {
    display: block;
    max-width: 100%;
    padding: 0;
    overflow: visible;
}

.fullwidth-wrapper {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: stretch;
    overflow: visible;
}

/* Image en arrière-plan absolu */
.fullwidth-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay qui contient le contenu */
.fullwidth-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 420px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem 2rem;
    overflow: visible;
}

/* Contenu texte - s'adapte à son contenu */
.fullwidth-content {
    padding: 2rem;
    max-width: 550px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-right: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.fullwidth-content .story-label {
    background: var(--primary);
    color: var(--white);
}

.fullwidth-content .story-title {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fullwidth-content .story-description {
    color: rgba(255, 255, 255, 0.9);
}

/* ================================
   Story Sections - Responsive
   ================================ */
@media (max-width: 968px) {
    .story-section .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .story-section.reverse .story-content,
    .story-section.reverse .story-image {
        order: unset;
    }

    .story-content {
        max-width: 100%;
        text-align: center;
    }

    .story-image img {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Bannière responsive - hauteur automatique basée sur le contenu */
    .fullwidth-wrapper {
        min-height: 320px;
    }

    .fullwidth-image {
        min-height: 320px;
    }

    .fullwidth-overlay {
        min-height: 320px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.5) 100%);
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
    }

    .fullwidth-content {
        text-align: center;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 1.5rem 1rem;
        background: transparent;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .fullwidth-content .story-label {
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
        align-self: center;
    }

    .fullwidth-content .story-title {
        font-size: 1.25rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .fullwidth-content .story-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .fullwidth-content .btn-download-hero {
        align-self: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .story-section {
        padding: 3rem 0;
    }

    .story-image img {
        border-radius: 16px;
    }

    /* Bannière mobile petit écran */
    .fullwidth-wrapper,
    .fullwidth-image,
    .fullwidth-overlay {
        min-height: 280px;
    }

    .fullwidth-overlay {
        padding: 1.25rem 0.75rem;
    }

    .fullwidth-content {
        padding: 1rem 0.75rem;
    }

    .fullwidth-content .story-label {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .fullwidth-content .story-title {
        font-size: 1.1rem;
        line-height: 1.45;
        margin-bottom: 0.5rem;
    }

    .fullwidth-content .story-description {
        font-size: 0.85rem;
        line-height: 1.55;
        margin-bottom: 0.75rem;
    }

    .fullwidth-content .btn-download-hero {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .cta-final-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-final-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   Download Buttons - Smart & Prominent
   ================================ */

/* Hero Download Button */
.btn-download-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 127, 36, 0.4);
    transition: var(--transition);
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-download-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 127, 36, 0.5);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 25px rgba(255, 127, 36, 0.4); }
    50% { box-shadow: 0 8px 35px rgba(255, 127, 36, 0.6); }
}

/* Main Download Button (in sections) */
.btn-download-main {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 14px;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(255, 127, 36, 0.35);
    transition: var(--transition);
}

.btn-download-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 127, 36, 0.45);
}

/* Final Download Button */
.btn-download-final {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 16px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(255, 127, 36, 0.4);
    transition: var(--transition);
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-download-final:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 127, 36, 0.5);
}

/* Icon wrapper for platform icons */
.btn-icon-wrapper {
    display: flex;
    align-items: center;
}

.btn-icon-wrapper .icon-ios {
    display: none;
}

body.is-ios .btn-icon-wrapper .icon-android {
    display: none;
}

body.is-ios .btn-icon-wrapper .icon-ios {
    display: block;
}

/* Store Links (alternative) */
.store-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 127, 36, 0.1);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.store-link:hover {
    background: rgba(255, 127, 36, 0.2);
}

/* Floating Download Button (Mobile) */
.floating-download-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(255, 127, 36, 0.5);
    z-index: 999;
    animation: bounce-subtle 2s ease-in-out infinite;
}

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

/* Show floating button on mobile */
@media (max-width: 768px) {
    .floating-download-btn {
        display: flex;
    }

    .btn-download-hero,
    .btn-download-main,
    .btn-download-final {
        width: 100%;
        justify-content: center;
    }
}

/* Add padding to footer for floating button */
@media (max-width: 768px) {
    .footer {
        padding-bottom: 100px;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .scroll-indicator,
    .cta-buttons,
    .download-buttons,
    .floating-download-btn {
        display: none;
    }
}
