@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Palette de couleurs - Mode Clair */
    --primary: #2353a2;
    --secondary: #facd16;
    --accent: #ad5094;
    --background: #ffffff;
    --surface: #f8f9fa;
    --text: #333333;
    --text-secondary: #7a8e9b;
    --border: #e0e0e1;
    --success: #396fad;
    --warning: #e1bd2b;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #2c3e50;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #ffd43b 100%);
}

[data-theme="dark"] {
    /* Palette de couleurs - Mode Sombre */
    --primary: #396fad;
    --secondary: #e1bd2b;
    --accent: #d6c561;
    --background: #1a1a2e;
    --surface: #16213e;
    --text: #e0e0e1;
    --text-secondary: #b8c2cc;
    --border: #2d3748;
    --success: #4facfe;
    --warning: #f4e7aa;
    --card-bg: #16213e;
    --header-bg: rgba(26, 26, 46, 0.95);
    --footer-bg: #0f1419;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #6a3093 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #ffd43b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.section-title h2,
.mission-card h3,
.vision-text h2,
.engagement-card h3,
nav a,
.logo {
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.hero-benefits {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.hero-benefits li {
    padding: 6px 0;
    font-weight: 600;
    position: relative;
    padding-left: 30px;
}

.hero-benefits li::before {
    content: "\f0a4";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--secondary);
}

.download-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--secondary);
    color: #333;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* CTA buttons: shimmering gradient + breathing glow for higher visibility */
#btn-commencer {
    background-image: linear-gradient(120deg, #ffe066 0%, #ffc94d 50%, #ffe066 100%);
    background-size: 220% 220%;
    animation: heroButtonGradient 4s linear infinite, heroButtonPulse 2.8s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(250, 205, 22, 0.55), 0 0 18px rgba(255, 255, 255, 0.35);
}

#btn-commencer::after {
    content: '';
    position: absolute;
    inset: -30% 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%);
    transform: translateX(-130%) rotate(12deg);
    animation: heroButtonShine 2.1s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.85;
}

#cta-commencer {
    box-shadow:
        0 12px 28px var(--shadow, rgba(0, 0, 0, 0.35)),
        0 0 30px rgba(250, 205, 22, 0.35),
        0 15px 40px rgba(35, 83, 162, 0.25);
}

#cta-commencer::after {
    content: '';
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(250, 205, 22, 0.35), transparent 60%),
        radial-gradient(circle at 45% 80%, rgba(173, 80, 148, 0.35), transparent 65%);
    animation: ctaSparkles 6s linear infinite;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: screen;
}

#cta-commencer .cta-title {
    animation: textGlow 3.2s ease-in-out infinite;
}

@keyframes heroButtonGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes heroButtonPulse {
    0% {
        box-shadow: 0 12px 24px rgba(250, 205, 22, 0.35), 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 18px 40px rgba(250, 205, 22, 0.65), 0 0 26px rgba(255, 255, 255, 0.45);
    }
    100% {
        box-shadow: 0 12px 24px rgba(250, 205, 22, 0.35), 0 0 10px rgba(255, 255, 255, 0.2);
    }
}

@keyframes heroButtonShine {
    0% {
        transform: translateX(-140%) rotate(12deg);
    }
    60% {
        transform: translateX(140%) rotate(12deg);
    }
    100% {
        transform: translateX(140%) rotate(12deg);
    }
}

@keyframes ctaSparkles {
    0% {
        transform: translate3d(-4%, -4%, 0) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translate3d(4%, 4%, 0) scale(1.05);
        opacity: 0.85;
    }
    100% {
        transform: translate3d(-4%, -4%, 0) scale(1);
        opacity: 0.55;
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
    }
    100% {
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    }
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hero-mockup::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: var(--secondary);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform: translateX(-130%) rotate(0deg);
    transform-origin: center;
    /* triangle should be behind the next section */
    z-index: -1;
    filter: blur(0.8px);
    animation: triangle-slide 1.8s ease-out forwards;
    transition: transform 0.8s ease 0.1s;
}

body.features-transition .hero-mockup::before {
    transform: translate(15%, 220%) rotate(90deg);
}

/* Phone Mockup */
.phone-frame {
    width: 100%;
    max-width: 320px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 1;
    opacity: 0;
    transform: translateX(-60px);
    animation: mockup-slide 1.2s ease-out forwards;
    animation-delay: 1.2s;
}

.phone-body {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 2;
}

.phone-screen {
    background: #0f172a;
    border-radius: 30px;
    overflow: hidden;
    height: 600px;
    position: relative;
    z-index: 1;
    border: 2px solid #2a2a2a;
    background-color: #0f172a;
}

.phone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.phone-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-shadow {
    width: 120%;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 30px auto 0;
    filter: blur(15px);
    position: relative;
    left: -10%;
}

/* Uiverse-style KPI card (adapted to Alodispo colors) */
.uiverse-outer {
    width: 220px;
    height: 170px;
    border-radius: 12px;
    padding: 2px;
    position: absolute; /* positioned inside .hero-layout */
    right: 5%; /* place on the right side near the text */
    /* position higher so the card sits above hero text */
    top: 8%;
    z-index: 6;
    display: grid;
    place-items: center;
    background: radial-gradient(circle 220px at 0% 0%, rgba(255,255,255,0.03), rgba(0,0,0,0.22));
    /* stronger upward translation to lift above the headline */
    transform: rotate(-6deg) translateY(-70%);
    box-shadow: 0 12px 36px rgba(0,0,0,0.42);
}

.uiverse-dot {
    width: 8px;
    aspect-ratio: 1;
    position: absolute;
    background-color: var(--secondary);
    box-shadow: 0 0 14px var(--secondary);
    border-radius: 999px;
    z-index: 10;
    right: 12%;
    top: 12%;
    animation: uiverse-moveDot 6s linear infinite;
}

@keyframes uiverse-moveDot {
  0%, 100% { top: 12%; right: 12%; }
  25%     { top: 12%; right: calc(100% - 45px); }
  50%     { top: calc(100% - 36px); right: calc(100% - 45px); }
  75%     { top: calc(100% - 36px); right: 12%; }
}

.uiverse-card {
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: radial-gradient(circle 260px at 0% 0%, rgba(35,83,162,0.9), rgba(173,80,148,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    color: white;
    overflow: hidden;
}

.uiverse-ray {
    width: 220px;
    height: 45px;
    border-radius: 100px;
    position: absolute;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
    opacity: 0.6;
    box-shadow: 0 0 40px rgba(255,255,255,0.08);
    filter: blur(8px);
    transform-origin: 10%;
    top: 0%;
    left: -10%;
    transform: rotate(30deg);
}

.uiverse-card .uiverse-text {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(90deg, var(--secondary), rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 3px 18px rgba(0,0,0,0.5);
}

.uiverse-card .uiverse-sub {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.92);
    margin-bottom: 8px;
}

.uiverse-line {
    width: 100%;
    height: 1px;
    position: absolute;
    background-color: rgba(255,255,255,0.05);
}
.uiverse-line.topl { top: 10%; background: linear-gradient(90deg, rgba(255,255,255,0.28) 30%, rgba(255,255,255,0.02) 80%); }
.uiverse-line.bottoml { bottom: 10%; }
.uiverse-line.leftl { left: 10%; width: 1px; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,0.22) 20%, rgba(255,255,255,0.02) 80%); }
.uiverse-line.rightl { right: 10%; width: 1px; height: 100%; }

/* small visual animation to subtly bounce / glow the card */
.uiverse-card {
    animation: uiverse-cardFloat 6s ease-in-out infinite;
}
@keyframes uiverse-cardFloat {
    0% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-6px) rotate(-6.2deg); }
    100% { transform: translateY(0) rotate(-6deg); }
}

/* Responsive placement: hide or reposition on small screens */
@media (max-width: 900px) {
    .uiverse-outer { display: none; }
}

/* Medium screens: keep KPI visible but reduce size and lift a bit less */
@media (min-width: 900px) and (max-width: 1200px) {
    .uiverse-outer {
        width: 200px;
        height: 150px;
        right: 3%;
        top: 6%;
        transform: rotate(-6deg) translateY(-65%);
    }
    .uiverse-card .uiverse-text { font-size: 2.6rem; }
}

.phone-body::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%);
    z-index: 3;
    border-radius: 10px;
}

@keyframes triangle-slide {
    0% {
        transform: translateX(-130%) rotate(0deg);
        opacity: 0;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes mockup-slide {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections communes */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Features Preview */
.features-preview {
    background-color: var(--surface);
}

/* ensure the next section paints above the hero triangle */
.features-preview {
    position: relative;
    z-index: 3;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.preview-card {
    background-color: transparent;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s ease, opacity 0.4s ease;
    display: flex;
    justify-content: center;
}

.preview-card:hover {
    transform: none;
}

.animations-ready .preview-card {
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
}

body.features-transition .preview-card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body.features-transition .preview-card:nth-child(2) {
    transition-delay: 0.15s;
}

body.features-transition .preview-card:nth-child(3) {
    transition-delay: 0.3s;
}

.preview-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.preview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: gap 0.3s;
}

.preview-link:hover {
    gap: 10px;
}

.home-mission {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.home-mission::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(253, 254, 255, 0.336)),
        url('../assets/images/bg4.png') center/cover fixed;
    z-index: 0;
}

.home-mission .container {
    position: relative;
    z-index: 1;
}

.home-mission .section-title h2,
.home-mission .section-title p {
    color: white;
}

.home-mission .section-title h2 {
    color: var(--primary);
}
/* === CTA lumineux "Notre Engagement" === */
/* Pourquoi: réutilise vos variables; gros contraste + animations douces, accessibilité focus. */
.engagement-cta {
  width: 85%;
  margin: 48px auto 0;
}

.cta-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: .5rem;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 18px;
  text-decoration: none;
  background: var(--surface, #0c0d0d);
  border: 1px solid var(--border, #202222);
  box-shadow: 0 12px 28px var(--shadow, rgba(0,0,0,.35));
  overflow: hidden; /* masque les halos */
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cta-title{
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .3px;
  background: var(--gradient-primary, linear-gradient(90deg,#fff 0%, #5de0e6 50%, #004aad 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* why: utiliser le gradient comme couleur de texte */
  text-align: center;
}

.cta-sub{
  font-size: clamp(.95rem, 1.6vw, 1.125rem);
  color: var(--muted-foreground, #b7c0c9);
  text-align: center;
}

/* Lueur périphérique + bordure dégradée */
.cta-glow{
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.10), transparent 40%),
    radial-gradient(120% 140% at 100% 0%, rgba(93,224,230,.15), transparent 45%),
    radial-gradient(140% 160% at 100% 100%, rgba(0,74,173,.18), transparent 50%);
}
.cta-card::before{
  content:"";
  position:absolute; inset:-2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    rgba(111, 110, 110, 0) 0deg,
    rgba(93,224,230,.35) 120deg,
    rgba(66, 76, 90, 0.35) 240deg,
    rgba(255,255,255,.0) 360deg);
  filter: blur(18px);
  opacity:.35; pointer-events:none;
}

/* Orb lumineux (adapté du snippet Uiverse) */
.cta-orb{
  position:absolute;
  width:8px; aspect-ratio:1/1;
  right:10%; top:10%;
  background:#fff;
  border-radius:999px;
  box-shadow:0 0 16px 6px rgba(255,255,255,.55);
  animation: cta-orb-move 6s linear infinite;
}
@keyframes cta-orb-move{
  0%,100%{ top:10%; right:10%; }
  25%    { top:10%; right:calc(100% - 36px); }
  50%    { top:calc(100% - 36px); right:calc(100% - 36px); }
  75%    { top:calc(100% - 36px); right:10%; }
}

/* Rayon doux */
.cta-ray{
  position:absolute; left:-10%; top:-20%;
  width:260px; height:56px;
  border-radius:120px;
  background: rgba(255,255,255,.55);
  filter: blur(14px);
  box-shadow:0 0 60px rgba(255,255,255,.85);
  transform-origin: 10% 50%;
  animation: cta-ray-spin 9s linear infinite;
  opacity:.35;
}
@keyframes cta-ray-spin{
  0%   { transform: rotate(20deg); }
  50%  { transform: rotate(200deg); }
  100% { transform: rotate(380deg); }
}

/* Lignes décoratives fines (inspiré du snippet) */
.cta-line{
  position:absolute; background: #2c2c2c; pointer-events:none;
  opacity:.6;
}
.cta-line--top    { top:10%; left:8%; right:8%; height:1px; background: linear-gradient(90deg,#888 25%,#1d1f1f 75%); }
.cta-line--bottom { bottom:10%; left:8%; right:8%; height:1px; background: linear-gradient(90deg,#1d1f1f 25%,#888 75%); }
.cta-line--left   { top:8%; bottom:8%; left:8%; width:1px; background: linear-gradient(180deg,#747474 30%,#222424 70%); }
.cta-line--right  { top:8%; bottom:8%; right:8%; width:1px; background: linear-gradient(180deg,#222424 30%,#747474 70%); }

/* Hover / Focus: accent de lueur & élévation */
.cta-card:hover,
.cta-card:focus-visible{
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--primary,#5de0e6) 60%, transparent);
  box-shadow: 0 18px 44px color-mix(in oklab, #004aad 25%, black 75%);
}
.cta-card:focus-visible{ outline: 2px solid color-mix(in oklab, var(--primary,#5de0e6) 70%, transparent); outline-offset:2px; }

/* Respecte les préférences de mouvement */
@media (prefers-reduced-motion: reduce){
  .cta-card, .cta-ray, .cta-orb{ animation: none !important; transition: none !important; }
  #btn-commencer,
  #cta-commencer .cta-title{ animation: none !important; }
  #btn-commencer::after,
  #cta-commencer::after{ animation: none !important; }
}

/* Petits écrans: occuper plus la largeur */
@media (max-width: 640px){
  .engagement-cta{ width: 95%; }
}

/* Styles pour l'effet 3D des cartes de mission */
        .mission-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.5rem;
            perspective: 1000px;
        }

        .mission-card {
            background: linear-gradient(145deg, #ffffff, #f8fafc);
            border-radius: 20px;
            padding: 2.5rem 2rem;
            text-align: center;
            box-shadow: 
                0 10px 25px rgba(0,0,0,0.1),
                0 6px 10px rgba(0,0,0,0.08);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.5);
            
            /* Inclinaison initiale réduite */
            transform: rotateX(15deg) rotateY(0deg) rotateZ(-5deg) translateZ(0);
        }

        .mission-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .mission-card:hover::before {
            transform: scaleX(1);
        }

        .mission-icon {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            color: #fff;
            transition: all 0.4s ease;
            background: var(--secondary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 90px;
            height: 90px;
            border-radius: 24px;
            border: 3px solid var(--secondary);
            transform: translateZ(20px);
        }

        .mission-card h3 {
            font-size: 1.7rem;
            margin-bottom: 1.2rem;
            color: #1f2937;
            transition: all 0.3s ease;
            transform: translateZ(15px);
        }

        .mission-card p {
            color: #6b7280;
            line-height: 1.7;
            transition: all 0.3s ease;
            font-size: 1.05rem;
            transform: translateZ(10px);
        }

        /* Effet 3D au survol - inclinaison réduite */
        .mission-card:hover {
            transform: 
                rotateX(10deg) 
                rotateY(8deg) 
                rotateZ(-2deg)
                translateZ(25px) 
                translateY(-12px);
            box-shadow: 
                0 20px 40px rgba(0,0,0,0.15),
                0 15px 15px rgba(0,0,0,0.1),
                0 0 35px rgba(79, 70, 229, 0.25),
                inset 0 1px 0 rgba(255,255,255,0.6);
        }

        .mission-card:hover .mission-icon {
            transform: scale(1.05) translateZ(30px) translateY(-3px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        .mission-card:hover h3 {
            color: #4f46e5;
            transform: translateZ(20px);
        }

        .mission-card:hover p {
            color: #4b5563;
            transform: translateZ(15px);
        }

        /* Effet de lumière au survol */
        .mission-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(
                circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(124, 58, 237, 0.12) 0%, 
                transparent 50%
            );
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            z-index: 1;
        }

        .mission-card:hover::after {
            opacity: 1;
        }

        /* Effet de brillance supplémentaire */
        .mission-card .shine {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                135deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0.2) 50%,
                rgba(255,255,255,0) 100%
            );
            transform: translateX(-100%) rotate(25deg);
            transition: transform 0.6s ease;
            z-index: 2;
        }

        .mission-card:hover .shine {
            transform: translateX(100%) rotate(25deg);
        }

        .mission-card.no-tilt,
        .mission-card.no-tilt:hover {
            transform: none;
            box-shadow: 
                0 10px 25px rgba(0,0,0,0.1),
                0 6px 10px rgba(0,0,0,0.08);
            cursor: default;
        }

        .mission-card.no-tilt {
            animation: none;
            opacity: 1;
        }

        .mission-card.no-tilt::before,
        .mission-card.no-tilt::after,
        .mission-card.no-tilt .shine {
            opacity: 0;
            transform: none;
        }

        .mission-card.no-tilt .mission-icon,
        .mission-card.no-tilt h3,
        .mission-card.no-tilt p {
            transform: none;
        }

        /* Adaptation pour mobile */
        @media (max-width: 768px) {
            .mission-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .mission-card {
                padding: 2rem 1.5rem;
                transform: rotateX(10deg) rotateY(0deg) rotateZ(-3deg) translateZ(0);
            }
            
            .mission-card:hover {
                transform: 
                    rotateX(5deg) 
                    rotateY(4deg) 
                    rotateZ(-1deg)
                    translateZ(15px) 
                    translateY(-8px);
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
        }

        /* Style pour le header */
        header {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            padding: 1rem 0;
            margin-bottom: 3rem;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            width: 100%;
            left: 0;
            transform: translateX(0);
            transition:
                width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                padding 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        body.nav-shrink header {
            width: 85%;
            left: 50%;
            transform: translateX(-50%);
            padding: 0.7rem 0;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 1.5rem;
        }

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

        .logo-img {
            display: block;
            width: 120px;
            height: 80px;
        }

        nav ul {
            display: flex;
            list-style: none;
            padding-top: 0px;
            transition: padding 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        nav li {
            margin-left: 1.2rem;
        }

        nav a {
            text-decoration: none;
            color: #4b5563;
            font-weight: 500;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #4f46e5;
        }

        body.nav-shrink nav ul {
            padding-top: 0.4rem;
        }

        @media (max-width: 768px) {
            body.nav-shrink header {
                width: 100%;
                left: 0;
                transform: translateX(0);
                padding: 0.8rem 0;
            }

            body.nav-shrink nav ul {
                padding-top: 0;
            }

            .header-actions .theme-toggle {
                display: none;
            }

            nav ul {
                display: none;
                flex-direction: column;
                width: 100%;
                background: rgba(255, 255, 255, 0.95);
                border-radius: 12px;
                margin-top: 0.5rem;
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
                padding: 1.5rem 1.2rem;
            }

            nav ul.active {
                display: flex;
            }

            nav li {
                margin: 0 0 1rem 0;
            }

            nav li:last-child {
                margin-bottom: 0;
            }
        }

        /* Style pour le footer */
        footer {
            margin-top: 4rem;
            text-align: center;
            padding: 2rem 0;
            color: #6b7280;
            border-top: 1px solid rgba(0,0,0,0.05);
        }

        /* Animation d'entrée pour les cartes */
        @keyframes cardEntrance {
            from {
                opacity: 0;
                transform: rotateX(25deg) rotateZ(-8deg) translateZ(-50px);
            }
            to {
                opacity: 1;
                transform: rotateX(15deg) rotateZ(-5deg) translateZ(0);
            }
        }

        .mission-card {
            animation: cardEntrance 0.7s ease-out forwards;
            animation-delay: calc(var(--card-index) * 0.15s);
            opacity: 0;
        }

        .mission-card:nth-child(1) { --card-index: 1; }
        .mission-card:nth-child(2) { --card-index: 2; }
        .mission-card:nth-child(3) { --card-index: 3; }

.partners-carousel {
    margin-top: 50px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.6);
}

.partners-track {
    display: flex;
    gap: 40px;
    padding: 25px 40px;
    animation: none;
}

.partners-track img {
    width: 120px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
}

.partners-track img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.home-vision {
  padding: clamp(3rem, 9vw, 6rem) 0;
  background: linear-gradient(135deg, rgba(240, 243, 255, 0.95), rgba(255, 240, 251, 0.9));
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .vision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vision-duo {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  box-shadow: 0 25px 65px rgba(49, 52, 110, 0.1);
  border: 1px solid rgba(120, 139, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.vision-duo-head {
  text-align: center;
}

.vision-duo-head span {
  display: inline-flex;
  padding: .35rem 1rem;
  border-radius: 999px;
  background: rgba(108, 126, 255, 0.12);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}

.vision-duo-head h2 {
  margin: .8rem 0 .4rem;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  color: #21244d;
}

.vision-duo-head p {
  margin: 0;
  color: #5b5e82;
}

.vision-duo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.2rem);
}

.vision-card {
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.vision-badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(237, 250, 0, 0.934);
  color: var(--secondary);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}

.vision-intro h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #232750;
}

.vision-intro p {
  margin-bottom: 1rem;
  color: #4d4f6c;
}

.vision-pillars {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.vision-pillars li {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: linear-gradient(90deg, rgba(99, 139, 255, 0.12), transparent 80%);
  border-radius: 12px;
  padding: .7rem .9rem;
  font-weight: 600;
  color: #353966;
}

.vision-pillars i {
  color: var(--primary);
}

.vision-metrics {
  border: none;
  background: linear-gradient(145deg, #101339, #18204b);
  color: white;
}

.vision-circles {
  position: relative;
  width: 130px;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  animation: pulse 8s linear infinite;
}

.vision-ring.ring-one { inset: 0; }
.vision-ring.ring-two { inset: 10px; animation-delay: 1s; }
.vision-ring.ring-three { inset: 20px; animation-delay: 2s; }

.vision-circles i {
  font-size: 2rem;
  color: #8cd3ff;
}

.vision-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.vision-stat {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 1rem;
  border-radius: 16px;
  text-align: left;
}

.vision-stat h3 {
  color: white;
  font-size: 1.4rem;
}

.vision-stat p {
  margin: 0.35rem 0 0;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}





















@media (max-width: 768px) {
  

  
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 0; }
}

.home-engagement {
    padding: 80px 0;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.engagement-card {
    padding: 30px;
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: 0 10px 25px var(--shadow);
    text-align: center;
}

.engagement-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.engagement-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.engagement-card p {
    color: var(--text-secondary);
}

.feature-card-wrapper {
    width: 100%;
    max-width: 320px;
    perspective: 1000px;
}

.feature-card {
    position: relative;
    height: 100%;
    min-height: 320px;
    border-radius: 40px;
    background: var(--gradient-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease-in-out;
    transform-style: preserve-3d;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.feature-glass {
    position: absolute;
    inset: 8px;
    border-radius: 45px;
    border-top-right-radius: 100%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.9) 80%);
    transform: translateZ(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.5s ease-in-out;
}

.feature-content {
    padding: 100px 40px 0 30px;
    transform: translateZ(26px);
    text-align: left;
}

.feature-title {
    display: block;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.feature-text {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 15px;
}

.feature-bottom {
    padding: 0 20px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateZ(26px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-view-more {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease-in-out;
}

.feature-view-more-button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

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

.feature-social-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--background);
    display: grid;
    place-items: center;
    box-shadow: rgba(5, 71, 17, 0.5) 0 7px 5px -5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-social-button:hover {
    background: var(--primary);
}

.feature-social-button:hover .feature-svg {
    fill: #fff;
}

.feature-social-button:active {
    background: var(--secondary);
}

.feature-social-button:active .feature-svg {
    fill: #333;
}

.feature-svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.feature-logo {
    position: absolute;
    right: 0;
    top: 0;
}

.feature-circle {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    top: 0;
    right: 0;
    box-shadow: rgba(100, 100, 111, 0.2) -10px 10px 20px 0;
    backdrop-filter: blur(8px);
    border: 2px solid var(--secondary);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease-in-out;
}

.feature-circle.circle1 { width: 170px; top: 8px; right: 8px; transform: translateZ(20px); }
.feature-circle.circle2 { width: 140px; top: 10px; right: 10px; transform: translateZ(40px); }
.feature-circle.circle3 { width: 110px; top: 17px; right: 17px; transform: translateZ(60px); }
.feature-circle.circle4 { width: 80px; top: 23px; right: 23px; transform: translateZ(80px); }
.feature-circle.circle5 { width: 55px; top: 30px; right: 30px; transform: translateZ(100px); display: grid; place-items: center; color: #fff; }

.feature-card-wrapper:hover .feature-card {
    transform: rotate3d(1, 1, 0, 25deg);
    box-shadow: rgba(5, 71, 17, 0.3) 30px 50px 25px -40px, rgba(5, 71, 17, 0.2) 0 25px 30px 0;
}

.feature-card-wrapper:hover .feature-social-button {
    transform: translateZ(40px);
    box-shadow: rgba(5, 71, 17, 0.2) -5px 20px 10px 0;
}

.feature-card-wrapper:hover .feature-circle.circle2 { transform: translateZ(60px); }
.feature-card-wrapper:hover .feature-circle.circle3 { transform: translateZ(80px); }
.feature-card-wrapper:hover .feature-circle.circle4 { transform: translateZ(100px); }
.feature-card-wrapper:hover .feature-circle.circle5 { transform: translateZ(120px); }

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-mockup {
        width: 100%;
        order: -1;
    }

    .phone-frame {
        max-width: 280px;
    }

    .phone-screen {
        height: 500px;
    }

    .download-buttons {
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        max-width: 240px;
    }

    .phone-screen {
        height: 420px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

