/* ============================================================
   TicketExpress — style.css (design v2 — fluid & modern)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
}

:root {
    /* Colors */
    --primary:        #2E7D32;
    --primary-mid:    #3D8B42;
    --primary-light:  #4CAF50;
    --primary-pale:   #E8F5E9;
    --primary-dark:   #1B5E20;
    --accent:         #00C853;
    --text-dark:      #111827;
    --text-mid:       #374151;
    --text-light:     #6B7280;
    --white:          #FFFFFF;
    --bg-soft:        #F6FAF6;
    --bg-card:        #FFFFFF;

    /* Shadows */
    --shadow-xs:      0 1px 4px rgba(0,0,0,.05);
    --shadow-sm:      0 2px 10px rgba(0,0,0,.07);
    --shadow-md:      0 6px 22px rgba(0,0,0,.09);
    --shadow-lg:      0 16px 44px rgba(0,0,0,.12);
    --shadow-green:   0 8px 28px rgba(46,125,50,.20);
    --shadow-green-lg:0 20px 52px rgba(46,125,50,.26);

    /* Borders */
    --border:         rgba(46,125,50,.08);
    --border-mid:     rgba(46,125,50,.16);
    --border-strong:  rgba(46,125,50,.26);

    /* Radius */
    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-2xl:  40px;
    --r-full: 9999px;

    /* Transitions */
    --ease:   cubic-bezier(.4,0,.2,1);
    --t-fast: all .18s var(--ease);
    --t-base: all .32s var(--ease);
    --t-slow: all .52s var(--ease);
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; }

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,.75);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--t-base);
}

header.scrolled {
    background: rgba(255,255,255,.95);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 52px;
    width: auto;
    max-width: 180px;
}

.nav-links {
    display: flex;
    gap: 32px;
    transition: var(--t-base);
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-mid);
    transition: var(--t-fast);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width .26s var(--ease);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Mobile nav dropdown */
.nav-links.active {
    position: absolute;
    top: 72px;
    right: 20px;
    background: var(--white);
    padding: 16px 22px;
    flex-direction: column;
    gap: 10px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 210px;
}

.nav-links.active a { padding: 6px 4px; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
    transition: var(--t-fast);
    padding: 4px;
}

.mobile-menu-btn:hover { color: var(--primary-dark); }

/* ---------- Entrance animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

.hero h1           { will-change: opacity, transform; animation: fadeInUp  .7s  var(--ease) both; }
.hero-description  { will-change: opacity, transform; animation: fadeInUp  .7s  .14s var(--ease) both; }
.cta-buttons       { will-change: opacity, transform; animation: fadeInUp  .7s  .26s var(--ease) both; }
.hero-features     { will-change: opacity, transform; animation: fadeInUp  .7s  .38s var(--ease) both; }
/* mockup: fade-in only (opacity) so it doesn't conflict with the float transform */
.hero-right .mockup{ will-change: transform;
                     animation: fadeIn  .9s .18s var(--ease) both,
                                float  5.5s 1s  ease-in-out  infinite; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 148px 0 0;
    min-height: 660px;
    overflow: hidden;
    /* subtle radial light burst behind title */
    background:
        radial-gradient(ellipse 65% 55% at 18% 45%, rgba(76,175,80,.11) 0%, transparent 70%),
        radial-gradient(ellipse 50% 45% at 78% 30%, rgba(0,200,83,.07)  0%, transparent 65%),
        linear-gradient(170deg, rgba(232,245,233,.68) 0%, #ffffff 48%, rgba(232,245,233,.28) 100%);
}

#neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* let mouse events pass through for hero hover */
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    padding-top: 16px;
}

.hero-left {
    flex: 1.1;
    padding-bottom: 90px;
}

.hero-right {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.06;
    margin-bottom: 22px;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 530px;
    line-height: 1.72;
}

/* Feature tags */
.hero-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hero-features .feature {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    background: var(--primary-pale);
    border: 1px solid rgba(46,125,50,.12);
    border-radius: var(--r-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
}

/* Phone mockup — ancré au bas de la hero */
.mockup {
    width: 520px;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    animation: float 5.5s ease-in-out infinite;
    will-change: transform;
    margin-bottom: -4px; /* colle exactement au bord bas */
}

.mockup img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(-8px 0 32px rgba(46,125,50,.14));
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    text-decoration: none;
    transition: var(--t-base);
    border: none;
    cursor: pointer;
    letter-spacing: .01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-green-lg);
    filter: brightness(1.06);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border-mid);
    padding: 12px 24px;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-pale);
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Sections commons ---------- */
section { padding: 112px 0; }

.section-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 14px;
    color: var(--primary-dark);
    letter-spacing: -0.025em;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 4px;
    margin: 14px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 66px;
    font-size: 17px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.72;
}

/* ---------- Avantages ---------- */
.avantages { background: var(--bg-soft); }

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 44px;
}

.avantage-card {
    background: var(--white);
    padding: 24px 22px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.avantage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, var(--primary-pale), transparent 60%);
    opacity: 0;
    transition: opacity .32s var(--ease);
    border-radius: inherit;
    pointer-events: none;
}

.avantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-green);
    border-color: var(--border-strong);
}

.avantage-card:hover::before { opacity: 1; }

.avantage-icon {
    position: relative;
    font-size: 20px;
    color: var(--primary);
    margin: 0 auto 16px;
    height: 58px;
    width: 58px;
    background: var(--primary-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(46,125,50,.10);
    transition: var(--t-base);
}

.avantage-card:hover .avantage-icon {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-green);
    transform: scale(1.05);
}

.avantage-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text-dark);
    position: relative;
}

.avantage-card p {
    color: var(--text-light);
    line-height: 1.55;
    font-size: 13.5px;
    position: relative;
}

/* ---------- Fonctionnalités ---------- */
.fonctionnalites-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.fonctionnalite-item {
    display: flex;
    flex-direction: column;
    background: var(--primary-pale);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .30s var(--ease), box-shadow .30s var(--ease);
    margin-bottom: 0;
}

.fonctionnalite-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-green);
}

.fonctionnalite-item.reverse { flex-direction: column; }

.fonctionnalite-image { flex: none; }

.fonctionnalite-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
    transition: transform .35s var(--ease);
}

.fonctionnalite-item:hover .fonctionnalite-image img {
    transform: scale(1.04);
}

.fonctionnalite-text {
    flex: 1;
    padding: 24px 22px;
}

.fonctionnalite-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.fonctionnalite-text p {
    font-size: 14.5px;
    margin-bottom: 18px;
    color: var(--text-light);
    line-height: 1.65;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-mid);
}

.feature-list i {
    color: var(--primary-light);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ---------- Téléchargement ---------- */
.telechargement {
    background: linear-gradient(135deg, #2E7D32 0%, #145214 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Canvas neuronale sur fond vert */
.dl-neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.telechargement-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 64px;
}

.telechargement-text { flex: 1; }

/* Badge "Disponible maintenant" */
.dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 18px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.telechargement-text h2 {
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.telechargement-text p {
    font-size: 17px;
    margin-bottom: 28px;
    opacity: .85;
    line-height: 1.7;
    max-width: 480px;
}

/* Stats row */
.dl-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-md);
    overflow: hidden;
    width: fit-content;
}

.dl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 24px;
}

.dl-stat-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    letter-spacing: -0.02em;
}

.dl-stat-label {
    font-size: 11px;
    opacity: .68;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dl-stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.15);
    flex-shrink: 0;
}

/* Phone wrap with glow ring */
.telechargement-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dl-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dl-glow-ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    border: 1px solid rgba(255,255,255,.10);
    animation: dlRingPulse 3.5s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes dlRingPulse {
    0%, 100% { transform: scale(1);    opacity: .7; }
    50%       { transform: scale(1.08); opacity: 1;  }
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: var(--r-md);
    background: rgba(255,255,255,.10);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.20);
    transition: var(--t-base);
    min-width: 188px;
}

.store-btn:hover {
    background: rgba(255,255,255,.20);
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
    border-color: rgba(255,255,255,.36);
}

.store-icon { font-size: 28px; }

.store-text {
    display: flex;
    flex-direction: column;
}

.store-label {
    font-size: 11px;
    opacity: .72;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.store-name {
    font-size: 17px;
    font-weight: 700;
}

.play-store .store-icon { color: #A8E6A3; }
.app-store .store-icon  { color: var(--white); }

.qr-code-container { margin-top: 32px; }

.qr-code {
    width: 148px;
    height: 148px;
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.qr-placeholder {
    width: 100%;
    height: 100%;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qr-text {
    font-size: 13px;
    opacity: .75;
    margin: 0;
}

.telechargement-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 268px;
    height: 528px;
    background: linear-gradient(145deg, #2c2c2c, #111);
    border-radius: var(--r-2xl);
    padding: 14px;
    box-shadow: 0 30px 68px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 26px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- À propos ---------- */
.apropos { background: var(--bg-soft); }

/* Stats banner */
.apropos-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 64px;
    overflow: hidden;
}

.ap-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 40px;
    flex: 1;
}

.ap-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.ap-stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: 6px;
}

.ap-stat-sep {
    width: 1px;
    height: 48px;
    background: var(--border);
    flex-shrink: 0;
}

/* Main 2-col */
.apropos-content {
    display: flex;
    align-items: flex-start;
    gap: 52px;
}

.apropos-text { flex: 1; }

.about-description {
    font-size: 16.5px;
    color: var(--text-light);
    line-height: 1.78;
    margin-bottom: 28px;
}

/* Mission / Vision cards */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0 0 28px;
}

.mission-vision > div {
    background: var(--white);
    padding: 22px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: var(--t-base);
}

.mission-vision > div:hover {
    transform: translateY(-6px);
    border-color: var(--border-mid);
    box-shadow: var(--shadow-green);
}

.mission-vision h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.mission-vision h3 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-pale);
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
}

.mission-vision p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

/* Team */
.team-highlight {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin-bottom: 0;
}

.team-highlight h3 {
    font-size: 17px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.team-highlight h3 i { color: var(--primary); }

.team-highlight p {
    color: var(--text-light);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
}

/* Image + contact card */
.apropos-right {
    flex: 1;
    position: relative;
}

.apropos-img-wrap {
    position: relative;
}

.apropos-img-wrap > img {
    width: 100%;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
    max-height: 420px;
}

/* Contact card — sous l'image, flux normal */
.apropos-contact-card {
    margin-top: 18px;
    background: var(--white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 20px 24px;
}

.apropos-contact-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apropos-contact-card h4 i { color: var(--primary); }

.ap-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-mid);
    margin-bottom: 8px;
    text-decoration: none;
    transition: var(--t-fast);
}

.ap-contact-row:last-child { margin-bottom: 0; }

.ap-contact-row:hover { color: var(--primary); }

.ap-contact-row i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}


/* ---------- Footer ---------- */
footer {
    background: linear-gradient(148deg, #1B5E20 0%, #0D3B11 100%);
    color: var(--white);
    padding: 80px 0 36px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}

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

.footer-logo .logo img {
    height: 44px;
    margin-bottom: 18px;
}

.footer-description {
    margin-bottom: 28px;
    opacity: .76;
    max-width: 280px;
    line-height: 1.72;
    font-size: 14.5px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    font-size: 15px;
    transition: var(--t-base);
}

.social-icons a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76,175,80,.34);
}

.footer-links h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .86;
}

.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a {
    opacity: .68;
    font-size: 14.5px;
    transition: var(--t-fast);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: #A8E6A3;
    padding-left: 4px;
}

.footer-newsletter h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .86;
}

.footer-newsletter p {
    opacity: .68;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.62;
}

.newsletter-form {
    display: flex;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-full);
    overflow: hidden;
    transition: var(--t-fast);
}

.newsletter-form:focus-within {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.28);
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--white);
    outline: none;
    font-size: 14px;
    font-family: inherit;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.48); }

.newsletter-form button {
    padding: 0 22px;
    background: var(--primary-light);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 15px;
    transition: var(--t-fast);
}

.newsletter-form button:hover { background: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    opacity: .58;
    font-size: 13px;
    margin: 0;
}

.footer-app-links {
    display: flex;
    gap: 18px;
}

.footer-app-links a {
    font-size: 22px;
    opacity: .52;
    transition: var(--t-fast);
}

.footer-app-links a:hover {
    opacity: 1;
    color: #A8E6A3;
}

/* ---------- Scroll-to-top ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--t-base);
    box-shadow: var(--shadow-green);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-green-lg);
    filter: brightness(1.08);
}

/* ==========================================================
   SCROLL REVEAL — animations d'apparition au scroll
   ========================================================== */

/* État initial : caché */
.reveal {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* Variantes de direction */
.reveal-up    { transform: translateY(36px); }
.reveal-down  { transform: translateY(-24px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(.93); }

/* État visible : déclenché par JS */
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Délais en cascade */
.reveal-d1 { transition-delay: .10s; }
.reveal-d2 { transition-delay: .20s; }
.reveal-d3 { transition-delay: .30s; }
.reveal-d4 { transition-delay: .40s; }
.reveal-d5 { transition-delay: .50s; }
.reveal-d6 { transition-delay: .60s; }

/* ==========================================================
   RESPONSIVE — mobile-first breakpoints
   ========================================================== */

/* ---- Tablette paysage / petit desktop (≤ 992px) ---- */
@media (max-width: 992px) {

    /* Navigation mobile */
    .mobile-menu-btn { display: block; }
    .nav-links { display: none; }
    .nav-links.active { display: flex; }

    /* Hero */
    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 40px;
    }
    .hero-left { padding-bottom: 0; order: 1; }
    .hero-right { order: 0; }
    .hero-left h2 { text-align: center; }
    .cta-buttons, .hero-features { justify-content: center; }
    .mockup { width: 280px; margin-bottom: 16px; }

    /* Avantages */
    .avantages-grid { grid-template-columns: repeat(2, 1fr); }

    /* Fonctionnalités */
    .fonctionnalites-content { grid-template-columns: 1fr; }
    .fonctionnalite-item,
    .fonctionnalite-item.reverse { flex-direction: column; }
    .feature-list li { justify-content: flex-start; }

    /* Téléchargement */
    .telechargement-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .telechargement-image { order: -1; }
    .download-buttons { justify-content: center; }
    .dl-stats { margin: 0 auto 28px; }
    .qr-code-container { display: flex; flex-direction: column; align-items: center; }

    /* À propos */
    .apropos-content {
        flex-direction: column;
        gap: 36px;
    }
    .apropos-right { order: -1; width: 100%; }
    .apropos-img-wrap > img { max-height: 320px; width: 100%; }
    .apropos-stats { flex-wrap: wrap; border-radius: var(--r-md); }
    .ap-stat { flex: 1 1 40%; padding: 18px 20px; }
    .ap-stat-sep { display: none; }
    .mission-vision { grid-template-columns: 1fr; }
}

/* ---- Tablette portrait (≤ 768px) ---- */
@media (max-width: 768px) {

    /* Nav menu plein écran */
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--t-base);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Typographie */
    .hero h1   { font-size: 34px; }
    .hero h2   { font-size: 20px; }
    .section-title { font-size: 28px; }
    .telechargement-text h2 { font-size: 30px; }

    /* Avantages — 1 colonne */
    .avantages-grid { grid-template-columns: 1fr; }

    /* Boutons store */
    .store-btn { min-width: unset; width: 100%; }
    .download-buttons { flex-direction: column; align-items: center; }

    /* Stats téléchargement */
    .dl-stats { width: 100%; }
    .dl-stat  { flex: 1; padding: 14px 10px; }

    /* Stats à propos */
    .ap-stat { flex: 1 1 45%; }
    .ap-stat-num { font-size: 22px; }

    /* Phone mockup section téléchargement */
    .phone-mockup {
        width: 220px;
        height: 430px;
    }

    /* Contact card */
    .apropos-contact-card { padding: 16px 18px; }
    .ap-contact-row { font-size: 13px; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom  { flex-direction: column; text-align: center; gap: 12px; }
}

/* ---- Mobile (≤ 576px) ---- */
@media (max-width: 576px) {

    /* Sections */
    section { padding: 64px 0; }
    .hero   { padding: 120px 0 0; }

    /* Typographie */
    .hero h1        { font-size: 28px; }
    .hero h2        { font-size: 18px; }
    .hero-description { font-size: 15px; }
    .section-title  { font-size: 24px; }
    .section-subtitle { font-size: 15px; margin-bottom: 36px; }
    .telechargement-text h2 { font-size: 26px; }

    /* Boutons */
    .btn { padding: 12px 20px; font-size: 14px; }
    .cta-buttons { flex-direction: column; align-items: stretch; width: 100%; }
    .btn-primary, .btn-outline { text-align: center; justify-content: center; }

    /* Hero features — colonne */
    .hero-features { flex-direction: column; align-items: center; gap: 8px; }

    /* Mockup hero */
    .mockup { width: 220px; }

    /* Avantages */
    .avantage-card { padding: 20px 16px; }

    /* Stats à propos — 2 par ligne */
    .ap-stat { flex: 1 1 45%; padding: 14px 12px; }
    .apropos-stats { border-radius: var(--r-sm); }

    /* Stats download */
    .dl-stats { flex-wrap: wrap; border-radius: var(--r-sm); }
    .dl-stat  { flex: 1 1 45%; }
    .dl-stat-sep { display: none; }

    /* Phone */
    .phone-mockup { width: 190px; height: 380px; }
    .dl-glow-ring { width: 260px; height: 260px; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-description { max-width: 100%; }
    .newsletter-form input { font-size: 13px; }

    /* Contact card */
    .apropos-contact-card { padding: 14px 16px; }
    .apropos-img-wrap > img { max-height: 240px; }
}
