/* ==========================================================================
   RESERVILI.DZ — DESIGN SYSTEM & FEUILLE DE STYLE CSS
   Style Visuel: Glassmorphism Mixte Sombre/Clair + Touches Émeraude DZ
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES ET SYSTEME DE DESIGN
   -------------------------------------------------------------------------- */
:root {
    /* Palette de Couleurs Principale */
    --color-bg-dark: #0b0f19;
    --color-bg-dark-alt: #111827;
    --color-bg-light: #f8fafc;
    --color-surface-white: #ffffff;
    --color-surface-card: rgba(255, 255, 255, 0.85);
    
    /* Textes */
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-text-light: #94a3b8;
    --color-text-on-dark: #f8fafc;
    
    /* Accents & Boutons */
    --color-emerald: #10b981;
    --color-emerald-dark: #059669;
    --color-emerald-light: #34d399;
    --color-emerald-glow: rgba(16, 185, 129, 0.35);
    
    --color-blue: #0284c7;
    --color-blue-light: #38bdf8;
    --color-purple: #8b5cf6;
    --color-yellow: #eab308;
    --color-red: #f43f5e;
    
    /* Effets de Verre (Glassmorphism) */
    --glass-hero-bg: rgba(255, 255, 255, 0.12);
    --glass-hero-border: rgba(255, 255, 255, 0.25);
    --glass-blur: blur(20px);
    
    --glass-card-bg: rgba(255, 255, 255, 0.7);
    --glass-card-border: rgba(255, 255, 255, 0.5);
    --glass-card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);

    /* Typographies */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Variables de mise en page */
    --navbar-height: 80px;
    --container-max-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. REINITIALISATION & BASE (ANTI-OVERFLOW MOBILE)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-main);
}

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

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.section {
    padding: 6rem 0;
    position: relative;
}

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

/* Header de Section commun */
.section-header {
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-emerald-dark);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.section-title {
    font-size: 2.25rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   3. BOUTONS & COMPOSANTS INTERACTIFS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-height: 44px; /* Hauteur tactile mobile */
}

.btn-emerald {
    background: linear-gradient(135deg, var(--color-emerald), var(--color-emerald-dark));
    color: #ffffff;
    box-shadow: 0 8px 20px -4px var(--color-emerald-glow);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -2px var(--color-emerald-glow);
    background: linear-gradient(135deg, var(--color-emerald-light), var(--color-emerald));
}

.btn-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-emerald);
    color: var(--color-emerald-dark);
    background: rgba(16, 185, 129, 0.05);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   4. NAVBAR STICKY
   -------------------------------------------------------------------------- */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: all var(--transition-normal);
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-header.scrolled {
    height: 68px;
    background: rgba(11, 15, 25, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.logo-dot {
    color: var(--color-emerald-light);
}

.dz-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    color: var(--color-emerald-light);
    font-weight: 500;
    margin-left: 0.3rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-emerald-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-cta-wrapper {
    display: none;
}

.burger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger-bar {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. SECTION HERO
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding-top: calc(var(--navbar-height) + 4rem);
    padding-bottom: 6rem;
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    overflow: hidden;
}

.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: floatBlob 12s ease-in-out infinite alternate;
}

.blob-1 {
    top: -10%;
    left: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, rgba(2, 132, 199, 0.2) 70%);
}

.blob-2 {
    bottom: -15%;
    right: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.15) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 35%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.9) 0%, rgba(56, 189, 248, 0.25) 70%);
    animation-delay: -8s;
}

.blob-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.08); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    color: var(--color-emerald-light);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background-color: var(--color-emerald-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-emerald-light);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--color-emerald-light) 70%, var(--color-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}

.hero-trust-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   6. MOCKUP 3D GLASS DASHBOARD CARD
   -------------------------------------------------------------------------- */
.hero-mockup-wrapper {
    position: relative;
    width: 100%;
}

.perspective-container {
    perspective: 1200px;
    width: 100%;
}

.glass-dashboard {
    position: relative;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45),
                0 18px 36px -18px rgba(16, 185, 129, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: rotateX(7deg) rotateY(-8deg) rotateZ(1deg);
    transition: transform var(--transition-bounce), box-shadow var(--transition-normal);
}

.glass-dashboard:hover {
    transform: rotateX(2deg) rotateY(-2deg) rotateZ(0deg) scale(1.02);
}

.floating-pill-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-emerald-light), var(--color-emerald-dark));
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
    backdrop-filter: blur(10px);
    animation: floatPill 3.5s ease-in-out infinite alternate;
}

@keyframes floatPill {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

.pill-pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-emerald-light);
    opacity: 0;
    animation: ringPulse 2.5s infinite;
}

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 0; }
}

.mockup-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.2rem;
    background: rgba(15, 23, 42, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.mac-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-url-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.mockup-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tz-tag {
    font-size: 0.68rem;
    color: var(--color-emerald-light);
    background: rgba(16, 185, 129, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-emerald-dark);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-body {
    display: grid;
    grid-template-columns: 170px 1fr;
    min-height: 380px;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    overflow: hidden;
}

.mockup-sidebar {
    background: rgba(15, 23, 42, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mini-logo {
    width: 22px;
    height: 22px;
    background: var(--color-emerald);
    color: white;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-left: 3px solid var(--color-emerald-light);
}

.sidebar-footer-stat {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 0.3rem 0;
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    background: var(--color-emerald-light);
}

.mockup-main {
    padding: 1.2rem;
    background: rgba(11, 15, 25, 0.15);
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cal-title-wrap h4 { color: white; font-size: 1rem; }
.cal-subtitle { color: rgba(255, 255, 255, 0.55); font-size: 0.72rem; }

.cal-controls {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 6px;
}

.view-btn {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.grid-head {
    display: grid;
    grid-template-columns: 45px repeat(4, 1fr);
    gap: 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.4rem;
}

.time-col-head { font-size: 0.68rem; color: rgba(255, 255, 255, 0.4); }
.day-col-head { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.active-day { color: var(--color-emerald-light); font-weight: 700; }

.grid-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grid-row {
    display: grid;
    grid-template-columns: 45px repeat(4, 1fr);
    gap: 0.5rem;
    min-height: 72px;
}

.time-label { font-size: 0.68rem; color: rgba(255, 255, 255, 0.45); padding-top: 0.2rem; }
.grid-cell { position: relative; border-radius: 6px; background: rgba(255, 255, 255, 0.03); }

.event-card {
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    font-size: 0.68rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.event-time { font-size: 0.62rem; opacity: 0.85; }
.event-title { font-size: 0.7rem; font-weight: 600; line-height: 1.2; }
.event-badge { font-size: 0.58rem; padding: 0.1rem 0.3rem; border-radius: 4px; background: rgba(255, 255, 255, 0.25); width: fit-content; }
.sms-sent { background: rgba(16, 185, 129, 0.3); color: #ffffff; }

.event-blue { background: linear-gradient(135deg, rgba(2, 132, 199, 0.85), rgba(56, 189, 248, 0.75)); color: #fff; }
.event-emerald { background: linear-gradient(135deg, rgba(5, 150, 105, 0.85), rgba(52, 211, 153, 0.75)); color: #fff; }
.event-violet { background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(167, 139, 250, 0.75)); color: #fff; }
.event-yellow { background: linear-gradient(135deg, rgba(202, 138, 4, 0.85), rgba(250, 204, 21, 0.75)); color: #0f172a; }
.event-red { background: linear-gradient(135deg, rgba(225, 29, 72, 0.85), rgba(251, 113, 133, 0.75)); color: #fff; }

/* --------------------------------------------------------------------------
   7. FONCTIONNALITÉS
   -------------------------------------------------------------------------- */
.features-section { background-color: var(--color-bg-light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

.feature-card {
    background: var(--color-surface-white);
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    transition: all var(--transition-normal);
}

.feature-card:hover { transform: translateY(-6px); border-color: rgba(16, 185, 129, 0.3); }

.feature-icon-wrapper {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem;
}

.icon-blue { background: rgba(2, 132, 199, 0.1); color: var(--color-blue); }
.icon-emerald { background: rgba(16, 185, 129, 0.1); color: var(--color-emerald-dark); }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: var(--color-purple); }
.icon-amber { background: rgba(234, 179, 8, 0.1); color: var(--color-yellow); }

.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 1.2rem; }
.feature-bullets { display: flex; flex-direction: column; gap: 0.4rem; }
.feature-bullets li { font-size: 0.85rem; color: var(--color-text-main); display: flex; align-items: center; gap: 0.4rem; }
.feature-bullets li::before { content: "✓"; color: var(--color-emerald-dark); font-weight: 700; }

/* --------------------------------------------------------------------------
   8. COMMENT ÇA MARCHE & SECTEURS
   -------------------------------------------------------------------------- */
.how-section { background: #ffffff; }

.steps-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.steps-connector-line {
    position: absolute;
    top: 90px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-emerald-light), var(--color-blue-light), var(--color-purple));
    z-index: 1;
}

.step-card {
    position: relative;
    z-index: 2;
    background: var(--color-bg-light);
    padding: 2.5rem 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.step-number-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-text-main);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    margin: 1rem auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.step-card p { font-size: 0.92rem; color: var(--color-text-muted); }
.step-card code { background: rgba(16, 185, 129, 0.1); color: var(--color-emerald-dark); padding: 0.15rem 0.4rem; border-radius: 4px; }

.target-sectors-section { padding: 2rem 0 4rem 0; }

.sectors-box {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: white;
    text-align: center;
}

.sectors-box h3 { color: white; font-size: 1.4rem; margin-bottom: 1.5rem; }

.sectors-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.sector-pill { padding: 0.6rem 1.2rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-pill); font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------------------
   9. TARIFS & PAIEMENT LOCAL
   -------------------------------------------------------------------------- */
.pricing-section { background-color: var(--color-bg-light); }

.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.toggle-label { font-size: 0.95rem; font-weight: 600; color: var(--color-text-muted); }
.discount-badge { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald-dark); font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); }

.switch { position: relative; display: inline-block; width: 54px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: #cbd5e1; transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: var(--color-emerald); }
input:checked + .slider:before { transform: translateX(26px); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-plan { border: 2px solid var(--color-emerald); }

.popular-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-emerald);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 1.2rem;
    border-radius: var(--radius-pill);
}

.plan-name { font-size: 1.4rem; margin-bottom: 0.4rem; }
.plan-desc { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 1.5rem; min-height: 40px; }

.plan-price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 1.8rem; padding-bottom: 1.5rem; border-bottom: 1px solid #f1f5f9; }
.price-amount { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.price-currency { font-size: 1.1rem; font-weight: 700; color: var(--color-emerald-dark); }
.price-period { font-size: 0.88rem; color: var(--color-text-muted); }

.plan-features { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; }
.plan-features li.disabled { color: var(--color-text-light); text-decoration: line-through; }

.local-payment-box {
    margin-top: 3.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.8rem;
    text-align: center;
}

.payment-icons-group { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }

.pay-badge {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
}

.pay-dot { width: 8px; height: 8px; border-radius: 50%; }
.pay-dot.gold { background: #eab308; }
.pay-dot.blue { background: #0284c7; }
.pay-dot.green { background: #10b981; }

.payment-note { font-size: 0.92rem; color: var(--color-text-muted); max-width: 800px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   10. CONTACT & FORM
   -------------------------------------------------------------------------- */
.contact-section { background: var(--color-bg-dark-alt); }

.contact-card-glass {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    color: white;
}

.contact-info h2 { color: white; font-size: 2rem; margin-top: 0.5rem; margin-bottom: 1rem; }
.contact-info p { color: rgba(255, 255, 255, 0.7); margin-bottom: 2.2rem; }
.contact-direct-items { display: flex; flex-direction: column; gap: 1.2rem; }

.c-item { display: flex; align-items: center; gap: 1rem; }
.c-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(16, 185, 129, 0.15); color: var(--color-emerald-light); display: flex; align-items: center; justify-content: center; }
.c-item strong { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.c-item span { font-size: 0.95rem; color: white; }

.contact-form { background: #ffffff; border-radius: var(--radius-md); padding: 2.2rem; color: var(--color-text-main); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input, .form-group select {
    width: 100%; min-height: 44px; padding: 0.75rem 1rem; border-radius: 8px; border: 1.5px solid #cbd5e1; font-family: var(--font-body); font-size: 0.92rem; box-sizing: border-color var(--transition-fast);
}

.form-toast { margin-top: 1rem; padding: 0.75rem; border-radius: 8px; font-size: 0.88rem; display: none; text-align: center; }
.form-toast.success { display: block; background: rgba(16, 185, 129, 0.15); color: var(--color-emerald-dark); border: 1px solid var(--color-emerald); }

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: #070a12; color: rgba(255, 255, 255, 0.7); padding-top: 4.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-container { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3.5rem; }
.footer-desc { font-size: 0.9rem; margin: 1.2rem 0; max-width: 320px; color: rgba(255, 255, 255, 0.55); }
.footer-socials { display: flex; gap: 0.8rem; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; color: white; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.5rem 0; font-size: 0.82rem; }
.footer-bottom-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.tz-footer-info { color: var(--color-emerald-light); font-weight: 500; }

/* --------------------------------------------------------------------------
   12. ANIMATIONS AU SCROLL
   -------------------------------------------------------------------------- */
.fade-in-element { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in-element.visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   13. ADAPTATION RESPONSIVE MOBILE COMPLÈTE & OPTIMISÉE (SMARTPHONES)
   -------------------------------------------------------------------------- */

/* Tablette & petits écrans (<= 1024px) */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta-group, .hero-trust-list { justify-content: center; }
    .glass-dashboard { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .contact-card-glass { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

/* Smartphones standard & grands smartphones (<= 768px) */
@media (max-width: 768px) {
    .container { padding: 0 1.2rem; }
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .section-title { font-size: 1.75rem; }
    .section-subtitle { font-size: 0.98rem; }

    /* Navbar Mobile Drawer */
    .burger-btn { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(20px);
        padding: 5.5rem 1.5rem 2rem 1.5rem;
        flex-direction: column;
        justify-content: space-between;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .nav-menu.open { right: 0; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }

    .mobile-cta-wrapper {
        display: block;
        width: 100%;
        margin-top: 1.5rem;
    }

    .btn-nav { display: none; }

    .burger-btn.active .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger-btn.active .burger-bar:nth-child(2) { opacity: 0; }
    .burger-btn.active .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Hero Responsive */
    .hero-section {
        padding-top: calc(var(--navbar-height) + 1.5rem);
        padding-bottom: 3.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .hero-trust-list {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Mockup Glass Card Mobile Adaptation */
    .hero-mockup-wrapper {
        margin-top: 1rem;
    }

    .floating-pill-btn {
        top: -14px;
        right: 10px;
        font-size: 0.76rem;
        padding: 0.45rem 0.9rem;
    }

    .mockup-topbar {
        padding: 0.6rem 0.8rem;
    }

    .mockup-url-bar {
        display: none; /* Masquer la barre d'adresse du mockup sur smartphone */
    }

    .mockup-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .mockup-sidebar {
        display: none; /* Masquer la sidebar du mockup sur mobile */
    }

    .mockup-main {
        padding: 0.85rem;
    }

    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .grid-head {
        grid-template-columns: 35px repeat(3, 1fr);
        font-size: 0.68rem;
    }

    .grid-row {
        grid-template-columns: 35px repeat(3, 1fr);
        min-height: 60px;
    }

    /* Masquer le 4ème jour du mockup sur mobile très étroit */
    .day-col-head:nth-child(5),
    .grid-row .grid-cell:nth-child(5) {
        display: none;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.6rem 1.25rem;
    }

    /* Steps Wrapper */
    .steps-wrapper {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .steps-connector-line { display: none; }
    .step-card { padding: 2rem 1.25rem; }

    /* Secteurs */
    .sectors-box { padding: 1.8rem 1rem; }
    .sectors-box h3 { font-size: 1.2rem; }
    .sectors-pills { gap: 0.5rem; }
    .sector-pill { font-size: 0.8rem; padding: 0.45rem 0.85rem; }

    /* Pricing & Toggle */
    .pricing-toggle-wrapper {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .pricing-card {
        padding: 2rem 1.25rem;
    }

    .payment-icons-group {
        flex-direction: column;
        align-items: stretch;
    }

    .pay-badge {
        justify-content: center;
    }

    /* Contact Form */
    .contact-card-glass {
        padding: 1.8rem 1.2rem;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 1.5rem 1.1rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Smartphones très étroits (<= 480px / iPhone SE / Android 360px) */
@media (max-width: 480px) {
    .logo-text { font-size: 1.25rem; }
    .dz-badge { font-size: 0.65rem; padding: 0.1rem 0.4rem; }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .price-amount {
        font-size: 2.1rem;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 0.85rem 1.2rem;
    }
}
