/* ==========================================================================
   Variables & Reset
   ========================================================================== */
   :root {
    --bg-base: #110217;
    --text-light: #ffffff;
    --text-muted: #d1d5db;
    --brand-gold: #c29d59;
    --brand-pink: #ec008c;
    --brand-purple: #6a0d83;
    
    --gradient-primary: linear-gradient(90deg, #f20089 0%, #8900e1 100%);
    --gradient-bg: radial-gradient(circle at 80% 20%, rgba(85, 12, 102, 0.4) 0%, transparent 50%),
                   radial-gradient(circle at 20% 80%, rgba(47, 4, 69, 0.5) 0%, transparent 50%);
    --section-spacing: 120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-pink);
    border-radius: 10px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: #ff0095;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-pink) var(--bg-base);
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.section-spacing { padding-top: var(--section-spacing); }
.pb-large { padding-bottom: var(--section-spacing); }

/* ==========================================================================
   Tags Typographiques Communs
   ========================================================================== */
.section-title { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 2rem; letter-spacing: -0.02em; }
.text-blocks p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 1.5rem; max-width: 550px; }

.underline-gradient { position: relative; display: inline-block; }
.underline-gradient::after {
    content: ''; position: absolute; left: 0; bottom: 5px; height: 4px; width: 100%;
    background: var(--gradient-primary); border-radius: 2px; z-index: -1;
}

.short-underline { height: 4px; width: 60px; background: var(--gradient-primary); border-radius: 2px; margin-bottom: 3rem; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.feature-number {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: var(--gradient-primary); border-radius: 50%; font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}

/* ==========================================================================
   Navigation & Boutons
   ========================================================================== */
header { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.25rem 5%; 
    width: 100%;
    background: transparent; 
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
header.scrolled {
    background: rgba(17, 2, 23, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo { display: flex; align-items: center; }
.header-logo { height: 50px; width: auto; object-fit: contain; transform: scale(2.5); transform-origin: left center; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 0.95rem; font-weight: 400; transition: opacity 0.3s ease; }
.nav-links a:hover { opacity: 0.7; }
.menu-icon { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.menu-icon span { display: block; width: 28px; height: 2px; background: var(--gradient-primary); }

.btn-gradient {
    display: inline-block; background: var(--gradient-primary); color: white; text-decoration: none;
    padding: 1.25rem 2.5rem; border-radius: 50px; font-weight: 600; font-size: 1rem; letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: none; cursor: pointer;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(236, 0, 140, 0.3); }

/* ==========================================================================
   Création des Mockups CSS (Appareils)
   ========================================================================== */
.mockup-iphone {
    position: relative;
    width: 290px;
    height: 590px;
    border: 10px solid #1a1a24;
    border-radius: 38px;
    background-color: #0b0c10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 0 0 4px #2a2a3a;
    overflow: hidden;
    flex-shrink: 0;
}
.mockup-iphone::before {
    content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 26px; background-color: #000000;
    border-radius: 13px; z-index: 2;
}
.mockup-screen {
    width: 100%; height: 100%; object-fit: cover; display: block;
    background-color: #111; /* En attendant le chargement */
}

/* Le support du moniteur */
.mockup-monitor {
    position: relative;
    width: 600px;
    height: 380px;
    border: 12px solid #1a1a24;
    border-bottom: 25px solid #1a1a24;
    border-radius: 20px;
    background-color: #0b0c10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 0 0 4px #2a2a3a;
    z-index: 1;
}
.mockup-monitor::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 35px; background: #1a1a24;
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%);
    z-index: -1;
}
/* Base du pied de moniteur */
.mockup-monitor::before {
    content: '';
    position: absolute;
    bottom: -65px; left: 50%; transform: translateX(-50%);
    width: 180px; height: 5px; background: #2a2a3a;
    border-radius: 10px; z-index: 0;
}

.center { margin: 0 auto; }
.right { margin-left: auto; }

/* Composition Hero */
.mockup-composite { position: relative; width: 600px; height: 420px; margin: 0 auto; }
.overlay-iphone {
    position: absolute; bottom: -40px; right: -20px;
    width: 200px; height: 410px; border-width: 6px; border-radius: 25px; z-index: 10;
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.7);
}
.overlay-iphone::before { width: 60px; height: 18px; top: 8px; border-radius: 9px; }

/* Cascade Portefeuilles */
.mockups-cascade { position: relative; width: 500px; height: 600px; margin: 0 auto; }
.cascade-1 { position: absolute; left: 0; z-index: 1; transform: scale(0.85) translateY(60px); opacity: 0.6; filter: blur(1px); }
.cascade-2 { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; }
.cascade-3 { position: absolute; right: 0; z-index: 2; transform: scale(0.85) translateY(40px); opacity: 0.8; }

/* Galerie de téléphones */
.gallery { 
    overflow: hidden; 
    padding: 400px 0 100px 0; 
}

.gallery-rows {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.phones-gallery { 
    display: flex; 
    gap: 3rem; 
    padding: 1rem 0;
    width: max-content;
}

/* Hover pause removed */

.ticker-left {
    animation: ticker-left 60s linear infinite;
}

.ticker-right {
    animation: ticker-right 60s linear infinite;
}

@keyframes ticker-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes ticker-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.gallery-phone { 
    flex-shrink: 0; 
    width: 150px; 
    height: 305px;
    border-radius: 20px;
    border-width: 6px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s, z-index 0.3s; 
    filter: opacity(0.6); 
    position: relative;
    background: #0d1117;
}
.gallery-phone::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 12px;
    background-color: #000;
    border-radius: 6px;
    z-index: 2;
}
.gallery-phone:hover { filter: opacity(1); z-index: 10 !important; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes float-slow { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.floating { animation: float 6s ease-in-out infinite; }
.floating-slow { animation: float-slow 8s ease-in-out infinite; }
.animated-delay-1 { animation: float 6s ease-in-out 0s infinite; }
.animated-delay-2 { animation: float 6s ease-in-out 1.2s infinite; }
.animated-delay-3 { animation: float 6s ease-in-out 2.4s infinite; }
.animated-delay-4 { animation: float 6s ease-in-out 3.6s infinite; }
.animated-delay-5 { animation: float 6s ease-in-out 4.8s infinite; }

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

/* Fallback si JS est désactivé */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


.reveal.reveal-up {
    transform: translateY(50px);
}

.reveal.reveal-left {
    transform: translateX(-50px);
}

.reveal.reveal-right {
    transform: translateX(50px);
}

.reveal.reveal-scale {
    transform: scale(0.9);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delay Utilitaires */
.active.delay-1 { transition-delay: 0.1s; }
.active.delay-2 { transition-delay: 0.2s; }
.active.delay-3 { transition-delay: 0.3s; }
.active.delay-4 { transition-delay: 0.4s; }
.active.delay-5 { transition-delay: 0.5s; }


/* ==========================================================================
   Structure & Grilles
   ========================================================================== */
.hero { position: relative; }
.hero-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; min-height: 80vh; }
.hero.section-spacing { padding-top: 20px; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.scroll-indicator.active {
    opacity: 0.6;
    transform: translateX(-50%) translateY(0);
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.mouse {
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}

.scroll-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    font-weight: 700;
}
.hero-title { font-size: 6rem; font-weight: 800; line-height: 1; margin-bottom: 3rem; }

.intro-container { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.avantages-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
#avantages { padding-bottom: 450px !important; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
.feature-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.feature-item p { margin: 0; font-size: 0.95rem; }

.portefeuilles-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 3rem;
}

.portefeuilles-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.portefeuilles-features .feature-row {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1.8rem 0.6rem 0.6rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: fit-content;
    transition: all 0.3s ease;
}

.portefeuilles-features .feature-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.feature-row p { 
    margin: 0; 
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Trust Band */
.trust-band {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0;
    z-index: 5;
    position: relative;
    backdrop-filter: blur(8px);
}
.trust-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(242, 0, 137, 0.1);
    color: var(--brand-pink);
    border-radius: 50%;
    flex-shrink: 0;
}
.trust-text {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-light);
    text-transform: uppercase;
}
.trust-separator {
    height: 35px;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}
@media screen and (max-width: 768px) {
    .trust-separator { display: none; }
    .trust-container { justify-content: center; gap: 3rem; }
}

/* ==========================================================================
   Sticky Scroll Section (Portefeuilles)
   ========================================================================== */
.portefeuilles-sticky {
    position: relative;
    height: 800vh;
    display: flex;
    align-items: flex-start;
    padding-top: 300px;
}

.portefeuilles-header-container {
    width: 50%;
    position: sticky;
    top: 150px;
    z-index: 5;
}

.sticky-wrapper {
    width: 50%;
    position: sticky;
    top: 150px;
    z-index: 10;
    height: calc(100vh - 150px);
    display: flex;
    align-items: center;
}

.sticky-container {
    width: 100%;
    padding: 0;
}

@media screen and (max-width: 768px) {
    .portefeuilles-sticky { flex-direction: column; }
    .portefeuilles-header-container { width: 100%; position: relative; top: auto; }
    .sticky-wrapper { width: 100%; top: 110px; }
}

.desktop-only { display: block; }
.mobile-only { display: none; }

.asset-name-display {
    margin-top: 2rem;
    font-size: 3.2rem;
    font-weight: 800;
    min-height: 1.22em;
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.6s ease;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    white-space: nowrap;
}


.sticky-right {
    position: relative;
    height: 850px; /* Augmenté pour accommoder la pile d'iPhones avec de la marge */
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-stack {
    position: relative;
    width: 290px;
    height: 590px;
}

.iphone-stack .mockup-iphone {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(80vh) rotate(5deg);
    transition: all 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    z-index: calc(10 + var(--stack-index, 0));
}

/* État actif et passé (empilés) */
.iphone-stack .mockup-iphone.active,
.iphone-stack .mockup-iphone.past {
    opacity: 1;
    /* On utilise une variable CSS calculée en JS pour l'index */
    transform: translateY(calc(var(--stack-index, 0) * 20px)) scale(1) rotate(0deg);
    z-index: calc(10 + var(--stack-index, 0));
}

.iphone-stack .mockup-iphone.active {
    filter: brightness(1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.9);
}

.iphone-stack .mockup-iphone.past {
    filter: brightness(0.7) blur(1px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}


/* ==========================================================================
   Nouvelles Sections (Project, Sécurité, Budget, Téléchargement)
   ========================================================================== */
.project { 
    height: 500vh; 
    position: relative; 
}
.project-container { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 6rem; 
    align-items: flex-start; 
}
.project-sticky-left {
    position: sticky;
    top: 120px;
    height: fit-content;
}
.project .feature-row {
    position: sticky;
    top: 260px;
    height: 280px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 500px;
    background: rgba(13, 1, 21, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 10;
}
.project .feature-row:last-child { margin-bottom: 0; }

.securite { padding-top: 60px !important; }
.securite-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.mockups-overlap { position: relative; width: 450px; height: 600px; margin: 0 auto; }
.overlap-back { position: absolute; left: 0; top: 0; transform: scale(0.85); z-index: 1; }
.overlap-front { position: absolute; right: -20px; top: 100px; z-index: 2; transform: scale(0.95); }

.securite-badges { display: flex; gap: 2rem; margin-top: 2rem; margin-bottom: 2rem; }
.badge-circle { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.ring {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.ring .bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.ring .progress {
    stroke: var(--brand-gold);
    stroke-dasharray: 283; /* 2 * PI * 45 */
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.securite.active .ring .progress {
    stroke-dashoffset: 0;
}

.ring-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-light);
    z-index: 1;
}
.badge-text { font-size: 1rem; font-weight: 600; }
.securite-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

.budget-sticky {
    position: relative;
    height: 350vh;
    margin-top: 50px; /* Réduit pour rapprocher de la section Sécurité */
    margin-bottom: 450px;
}

.budget-sticky-wrapper {
    position: sticky;
    top: 150px;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
    background-color: transparent;
}

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

.budget-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.budget-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.budget-col:nth-child(2) { margin-top: 40px; }
.budget-col:nth-child(3) { margin-top: 80px; }
.budget-col:nth-child(4) { margin-top: 120px; }

.budget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.budget-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.budget-col p { font-size: 0.9rem; color: var(--text-muted); min-height: 120px; padding: 0 10px; }

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

.download-visual {
    padding-left: 2rem;
}

.download-visual .mockup-composite {
    transform: scale(0.9);
    transform-origin: left center;
}

.download-content {
    text-align: right;
}

.download-content h2 { 
    font-size: 4.5rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 2rem; 
}

.download-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 450px;
    margin-left: auto;
}

/* ==========================================================================
   Pages Secondaires (Gestion Privée, A Propos, etc.)
   ========================================================================== */
.subpage-hero {
    min-height: calc(100vh - 100px); 
    display: flex;
    align-items: center;
    padding-left: 5%;
}
.subpage-content {
    max-width: 100%;
}
.subpage-title {
    font-size: 11vw;
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 3.5rem;
    letter-spacing: -3px;
    margin-left: -5px;
}
.wide-btn {
    padding: 1.5rem 5rem; 
    font-size: 1rem;
    letter-spacing: 4px;
    border-radius: 50px;
    text-transform: uppercase;
}

/* ==========================================================================
   Section Détails À Propos
   ========================================================================== */
.propos-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}
.propos-text-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
}
.propos-text-content p:last-child { margin-bottom: 0; }

.glass-text-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 3.5rem;
    margin-top: 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.propos-badges-visual {
    display: flex;
    justify-content: center;
}
.badges-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}
.amf-logo-box {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -4px;
    font-family: 'Inter', sans-serif;
}
.certification-grid {
    display: flex;
    gap: 1.5rem;
}
.cert-badge {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}
.cert-badge::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
}

.cert-badge.cif { color: #fbc02d; border-color: #fbc02d; }
.cert-badge.ias { color: #0288d1; border-color: #0288d1; }
.cert-badge.iobsp { color: #2e7d32; border-color: #2e7d32; }

/* Grille logos réglementation (vrais logos) */
.regulation-logos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}
.regulation-logo-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}
.regulation-logo-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}
.regulation-logo-item img {
    width: 100%;
    max-width: 140px;
    height: auto;
    object-fit: contain;
    filter: brightness(1.1);
}


/* ==========================================================================
   Section Cabinet (Photos)
   ========================================================================== */
.centered-title {
    text-align: center;
}
.short-underline.centered {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}
.cabinet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.cabinet-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cabinet-indicators {
    display: flex;
    gap: 6px;
    padding-left: 10px;
}
.cabinet-indicators span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}
.cabinet-indicators span.active {
    background: #fff;
}
.cabinet-photo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.25; /* Format vertical comme sur la maquette */
    border-radius: 1.5rem;
    overflow: hidden;
    background: #111;
}
.cabinet-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cabinet-photo:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Page Contact
   ========================================================================== */
.contact-hero .subpage-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.contact-title {
    margin-bottom: 1.5rem;
}
.social-icons-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}
.social-icon-link {
    text-decoration: none;
}
.social-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    cursor: pointer;
}
.social-icon svg {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}
.social-icon:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 16px 35px rgba(0,0,0,0.5);
}
.social-icon.instagram { box-shadow: 0 8px 25px rgba(255, 0, 105, 0.4); }
.social-icon.instagram:hover { box-shadow: 0 16px 35px rgba(255, 0, 105, 0.6); }
.social-icon.youtube { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4); }
.social-icon.youtube:hover { box-shadow: 0 16px 35px rgba(255, 0, 0, 0.6); }
.social-icon.tiktok { box-shadow: 0 8px 25px rgba(0, 242, 234, 0.3); }
.social-icon.tiktok:hover { box-shadow: 0 16px 35px rgba(0, 242, 234, 0.5); }
.social-icon.facebook { box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4); }
.social-icon.facebook:hover { box-shadow: 0 16px 35px rgba(0, 119, 181, 0.6); }
.social-icon.linkedin { box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4); }
.social-icon.linkedin:hover { box-shadow: 0 16px 35px rgba(0, 119, 181, 0.6); }

/* ==========================================================================
   Section Détails Contact
   ========================================================================== */
.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}
.contact-info-col .section-title {
    margin-bottom: 0.5rem;
}
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.05rem;
    color: var(--text-light);
}
.contact-icon-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon-bubble svg { width: 18px; height: 18px; }
.contact-icon-bubble.pink { background: var(--brand-pink, #e91e8c); }
.contact-icon-bubble.purple { background: #7c3aed; }
.contact-icon-bubble.red { background: #e53935; }

.social-icons-row.compact .social-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}
.contact-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 380px;
    margin-top: 2rem;
}

/* Contact Phones Composition */
.contact-phones-col {
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-mockups-wrap {
    position: relative;
    width: 460px;
    height: 520px;
}
.contact-phone { position: absolute; }

/* Back-left: smaller, tilted slightly */
.contact-phone.back-left {
    left: 0;
    top: 40px;
    z-index: 1;
    transform: rotate(-5deg);
    opacity: 0.85;
}
.contact-phone.back-left .phone-frame {
    width: 170px;
    border-radius: 28px;
    background: #111827;
    border: 2px solid rgba(255,255,255,0.15);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.contact-phone.back-left .phone-frame .phone-screen {
    height: 300px;
}

/* Center-main: large, upright */
.contact-phone.center-main {
    left: 130px;
    top: 0;
    z-index: 3;
}
.contact-phone.center-main .phone-frame {
    width: 200px;
    border-radius: 32px;
    background: #0d1117;
    border: 2px solid rgba(255,255,255,0.2);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.7), 0 0 40px rgba(233,30,140,0.15);
}
.contact-phone.center-main .phone-frame .phone-screen {
    height: 360px;
}

/* Front-right: smaller, tilted opposite */
.contact-phone.front-right {
    right: 0;
    top: 60px;
    z-index: 2;
    transform: rotate(5deg);
    opacity: 0.9;
}
.contact-phone.front-right .phone-frame {
    width: 170px;
    border-radius: 28px;
    background: #111827;
    border: 2px solid rgba(255,255,255,0.15);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.contact-phone.front-right .phone-frame .phone-screen {
    height: 300px;
}

.contact-phone .phone-notch {
    width: 60px;
    height: 10px;
    background: #000;
    border-radius: 0 0 10px 10px;
    margin: 0 auto 4px;
}
.contact-phone .phone-screen {
    width: 100%;
    overflow: hidden;
}
.contact-phone .phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
    .section-title { font-size: 2.8rem; }
    
    .hero-container, .intro-container, .avantages-container, .portefeuilles-container {
        grid-template-columns: 1fr; gap: 3rem; text-align: center;
    }
    
    .intro-visual { order: 2; margin: 0 auto; }
    .intro-content { order: 1; }
    .avantages-visual { order: 2; margin: 0 auto; }
    .avantages-content { order: 1; text-align: left; }
    .portefeuilles-content { text-align: left; }

    .short-underline { margin-left: auto; margin-right: auto; }
    .avantages-content .short-underline, .portefeuilles-content .short-underline { margin-left: 0; }
    #avantages { padding-bottom: 80px !important; }
    
    /* Adaptation de la taille des mockups */
    .mockup-composite { transform: scale(0.8); }
    .mockups-cascade { transform: scale(0.8); }

    .gp-content { margin-left: 0; text-align: center; margin: 0 auto; }

    /* Project Section Responsive - Correction Alignement */
    .project-container { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 1.5rem !important;
        gap: 2rem !important;
    }
    .project { 
        height: 500vh !important; 
        position: relative;
    }
    .project-sticky-left { 
        order: 1; 
        position: sticky !important; 
        top: 110px !important; 
        width: 100%; 
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 100;
        background: transparent;
    }
    .project-header { 
        position: relative !important;
        top: 0 !important; 
        margin-bottom: 0.5rem; 
        width: 100%;
        text-align: center;
    }
    .project-visual { 
        position: relative !important;
        top: 0 !important; 
        margin: 0 auto !important; 
        display: flex !important; 
        justify-content: center !important; 
        width: 100% !important;
        min-height: 200px;
        z-index: 90;
    }
    .project-content { order: 2; width: 100%; position: relative; z-index: 80; margin-top: 300px; }

    .project .feature-row {
        position: sticky !important;
        top: 530px !important;
        background: rgba(13, 1, 21, 0.98) !important;
        backdrop-filter: blur(15px);
        padding: 1.5rem !important;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 400px !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
        text-align: left;
        display: flex !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        height: 230px !important; /* Hauteur fixe agrandie pour uniformité */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .project .feature-row:last-child { margin-bottom: 500px !important; }

    .mockup-composite { 
        transform: scale(0.45) !important; 
        transform-origin: center center !important; 
        margin: 0 auto !important; 
        left: 0 !important;
        right: 0 !important;
    }

    /* Sécurité Section Responsive */
    .securite-container { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 1.5rem !important;
        gap: 2rem !important;
    }
    .securite-content { 
        order: 1; 
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .securite-visual { 
        order: 2; 
        margin: 0 auto !important; 
        display: flex !important; 
        justify-content: center !important; 
        width: 100% !important;
        min-height: 250px;
    }
    .mockups-overlap { 
        transform: scale(0.5) !important; 
        transform-origin: center center !important; 
        margin: 0 auto !important; 
        left: 0 !important;
        right: 0 !important;
    }

    /* Subpage Hero Responsive */
    .subpage-hero {
        padding-left: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 60vh !important;
    }
    .subpage-title {
        font-size: 15vw !important;
        margin-left: 0 !important;
    }
    .wide-btn {
        padding: 1.2rem 2rem !important;
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
        width: fit-content !important;
        margin-top: 2rem !important;
    }
    .glass-text-card {
        padding: 2rem 1.5rem !important;
        border-radius: 24px !important;
        margin-top: 2rem !important;
        text-align: left !important;
    }
    .glass-text-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }
    .glass-text-card p:last-child { margin-bottom: 0 !important; }
    .securite-badges { justify-content: center !important; gap: 1rem !important; }
    .ring { width: 75px !important; height: 75px !important; }
    .ring-text { font-size: 1rem !important; }
    .badge-text { font-size: 0.7rem !important; }

    /* Download Section Responsive - Fix Centering */
    .download-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 0 1rem 4rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .download-content {
        order: 1 !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .download-content h2 {
        font-size: 2.2rem !important;
        text-align: center !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
    }
    .download-content p {
        margin: 0 auto 2rem !important;
        text-align: center !important;
        font-size: 0.95rem !important;
        max-width: 100% !important;
        line-height: 1.6 !important;
    }
    .download-visual {
        order: 2 !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 250px !important;
        position: relative !important;
    }
    .download-visual .mockup-composite {
        transform: scale(0.42) !important;
        transform-origin: center center !important;
        margin: 0 auto !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) scale(0.42) !important;
    }

    /* Sticky responsive */
    .portefeuilles-sticky { height: 800vh !important; }
    /* Budget Sticky Responsive Mobile */
    .budget-sticky { height: 400vh !important; margin-top: 50px !important; margin-bottom: 50px !important; }
    .budget-sticky-wrapper { 
        position: sticky !important; 
        top: 110px !important; 
        height: calc(100vh - 110px) !important; 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 1rem !important;
        overflow: visible !important; 
    }
    .budget-sticky-wrapper .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .budget-grid {
        position: relative !important;
        width: 100% !important;
        height: 700px !important; 
        margin-top: 2rem !important;
    }
    .budget-col {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        background: rgba(45, 15, 65, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.15);
        padding: 2rem !important;
        border-radius: 28px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(100px) scale(0.8);
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        text-align: left;
    }
    .budget-col.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(calc(var(--stack-index) * 20px)) scale(calc(1 - var(--stack-index) * 0.04)) !important;
        z-index: calc(10 + var(--stack-index));
    }
    .budget-col.past {
        opacity: 0.6 !important;
        filter: blur(2px) brightness(0.5);
    }
    .budget-col .mockup-iphone {
        width: 220px;
        height: 445px;
        margin: 1.5rem auto 0;
        transform: scale(1);
    }
    .sticky-wrapper { 
        position: sticky !important; 
        top: 100px !important; 
        height: calc(100vh - 100px) !important; 
        display: flex !important; 
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important; 
        overflow: visible !important;
        padding-top: 2rem !important;
    }
    .sticky-container { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
    .sticky-phone { height: 450px; width: 220px; }
    .asset-name-display { font-size: 2.2rem; }
}


@media screen and (max-width: 768px) {
    .header-logo { transform: scale(1.8); }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(17, 2, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 8rem 5%;
        gap: 2.5rem;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
        font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 1rem;
        width: 100%;
    }

    .menu-icon {
        display: flex;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .menu-icon.active span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }
    .menu-icon.active span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 2rem;
        width: 100%;
    }

    .scroll-indicator { 
        display: flex !important; 
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 3rem auto 0 !important;
        opacity: 0.8 !important;
    }

    .scroll-indicator .scroll-text {
        font-size: 0 !important;
    }

    .scroll-indicator .scroll-text::after {
        content: "DÉFILER";
        font-size: 0.65rem !important;
        letter-spacing: 3px;
        color: white;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .hero-title { 
        font-size: 3.2rem; 
        margin-bottom: 1.5rem; 
        width: 100%;
        text-align: center;
    }
    
    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: 260px;
        margin-top: 5rem !important;
        padding: 0;
        overflow: visible;
    }

    .mockup-composite { 
        transform: scale(0.52) !important; 
        transform-origin: top center !important; 
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
    }

    .trust-band {
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 2rem;
    }

    .trust-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 5%;
        align-items: center;
    }

    .trust-item {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.85rem 1.5rem;
        border-radius: 100px;
        width: 100%;
        max-width: 280px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start; /* Aligne le début du contenu */
        gap: 1.2rem;
    }

    .trust-icon {
        width: 35px; /* Largeur fixe pour aligner les icônes verticalement entre les pilules */
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 0.9rem;
    }

    .trust-text {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        text-align: left;
        font-weight: 700;
    }

    .btn-gradient { 
        width: fit-content; 
        margin: 0 auto; 
    }
    .features-grid { grid-template-columns: 1fr; }
    .gallery { padding-top: 350px !important; }
    .testimonials { padding-top: 120px !important; }
    .gallery-rows { gap: 1.5rem; }
    .phones-gallery { 
        flex-direction: row; 
        gap: 1.5rem; 
        padding: 1rem 0;
        animation-duration: 40s;
    }
    .gallery-phone { 
        flex: 0 0 160px; 
        height: 325px;
        border-width: 5px;
        border-radius: 20px;
    }
    .phones-gallery::-webkit-scrollbar { display: none; }
    .mockups-cascade { transform: scale(0.45) !important; transform-origin: top center !important; height: 300px; margin: 0 auto !important; }
    .mockups-overlap { transform: scale(0.38) !important; transform-origin: top center !important; height: 260px; margin: 0 auto !important; }
    
    .intro-visual .mockup-iphone { width: 220px; height: 450px; }

    .section-title { font-size: 2.4rem; margin-bottom: 1.5rem; }
    .underline-gradient::after { bottom: -8px !important; }

    .intro p, .avantages-content p, .text-blocks p, .feature-item p { 
        font-size: 0.85rem; 
        line-height: 1.6; 
        text-align: left !important; 
    }

    .feature-number { width: 36px; height: 36px; font-size: 0.9rem; }
    .portefeuilles-sticky { 
        display: block !important;
        padding-top: 0 !important; 
        height: 800vh !important;
    }

    .portefeuilles-header-container {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .sticky-wrapper {
        width: 100% !important;
        position: sticky !important;
        top: 110px !important;
        height: 450px !important;
        display: block !important;
        overflow: visible !important;
        z-index: 100;
    }

    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    .sticky-container { 
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
    }

    .asset-name-display { 
        margin: 0 !important; 
        padding: 0.5rem 0 !important;
        font-size: 2.2rem !important; 
        text-align: center;
        text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    }
    
    .sticky-right { 
        display: flex !important; 
        justify-content: center !important; 
        align-items: flex-start !important; 
        width: 100% !important; 
        height: 380px !important; 
        padding: 0 !important; 
        margin: 0 auto !important;
        text-align: center;
    }
    .iphone-stack { 
        height: 345px !important; 
        width: 170px !important; 
        margin: 0 auto !important; 
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        left: 0 !important;
        transform: none !important;
    }
    .iphone-stack .mockup-iphone {
        width: 100% !important;
        height: 100% !important;
        border-width: 4px !important;
        border-radius: 20px !important;
    }
    .iphone-stack .mockup-iphone::before {
        width: 40px !important;
        height: 10px !important;
        top: 5px !important;
    }
    .sticky-phone { 
        height: 420px !important; 
        width: 210px !important; 
        margin: 0 auto !important; 
        position: relative !important; 
        top: 0 !important; 
        left: 0 !important;
        transform: none !important;
    }

    .gp-title { font-size: 3rem; }
    .propos-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .propos-text-content .short-underline { margin-left: auto; margin-right: auto; }
    
    .cabinet-carousel-container { width: 100%; position: relative; }
    .cabinet-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        gap: 0 !important;
        padding: 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
    }
    .cabinet-grid::-webkit-scrollbar { display: none; }
    
    .cabinet-item {
        flex: 0 0 100% !important;
        scroll-snap-align: center !important;
        padding: 0 1rem !important;
        pointer-events: none; /* Disable hover/drag on images for mobile */
    }
    
    .cabinet-indicators-mobile {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 1.5rem !important;
    }
    .cabinet-indicators-mobile .dot {
        width: 8px; height: 8px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    .cabinet-indicators-mobile .dot.active {
        background: var(--brand-pink);
        transform: scale(1.2);
    }

    .contact-details-grid { grid-template-columns: 1fr; }
    .contact-mockups-wrap { width: 100%; height: 400px; }

    /* Contact Page Mobile */
    .contact-hero .subpage-content {
        align-items: center !important;
        text-align: center !important;
    }
    .contact-title {
        text-align: center !important;
        margin-left: 0 !important;
    }
    .social-icons-row {
        justify-content: center !important;
        gap: 1rem !important;
        margin-bottom: 3rem !important;
    }
    .social-icon {
        width: 54px !important;
        height: 54px !important;
        border-radius: 12px !important;
    }
    .contact-info-col { text-align: center !important; }
    .contact-info-col .short-underline { margin-left: auto !important; margin-right: auto !important; }
    .contact-cards-grid { grid-template-columns: 1fr !important; }
    .contact-card { text-align: left !important; }
    .glass-tagline-container {
        text-align: center !important;
        justify-content: center !important;
        padding: 2.5rem 1.5rem !important;
    }
    .contact-tagline { text-align: center !important; }
}

/* ==========================================================================
   Footer & Liens légaux
   ========================================================================== */
.page-footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-link:hover {
    color: #fff;
    border-color: var(--brand-pink, #e91e8c);
}

/* ==========================================================================
   Page Politique de Confidentialité
   ========================================================================== */
.legal-main {
    padding-top: 3rem;
}
.legal-content {
    max-width: 820px;
    margin: 0 auto;
}
.legal-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4rem;
}
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.2rem;
}
.legal-section p, .legal-section li {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}
.legal-section ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-section a { color: var(--brand-pink, #e91e8c); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-back {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   Spécifique Gestion Privée (GP)
   ========================================================================== */
.gp-hero { padding-top: 80px !important; }
.gp-hero-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; min-height: 70vh; }
.gp-title { font-size: 5.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 2rem; letter-spacing: -2px; }
.gp-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 3rem; }

.gp-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

/* Composition Graphique CSS/SVG */
.gp-graphical-composition {
    position: relative;
    width: 480px;
    height: 420px;
    perspective: 1000px;
}

.glass-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    position: absolute;
    padding: 2rem;
    transition: transform 0.4s ease;
}

.widget-main {
    width: 380px;
    top: 30px;
    left: 0;
    z-index: 2;
}

.widget-small {
    width: 170px;
    bottom: 30px;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.widget-header {
    display: flex;
    gap: 8px;
    margin-bottom: 2.5rem;
}

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

.growth-chart {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(194, 157, 89, 0.3));
}

.widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-value { font-size: 1.3rem; font-weight: 800; color: var(--brand-gold); }

.pie-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.pie-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
}

.widget-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

@media screen and (max-width: 600px) {
    .gp-graphical-composition {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }
    .widget-main { width: 300px; }
    .widget-small { width: 140px; }
}

/* Services Grid */
.gp-services .short-underline { margin-bottom: 2rem !important; }
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.gp-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.gp-service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.4s ease;
}
.gp-service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: var(--brand-pink);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition-delay: 0s !important;
}
.service-icon {
    width: 64px; height: 64px; background: var(--gradient-primary);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: white; margin-bottom: 2rem;
}
.gp-service-card h3 { font-size: 1.8rem; margin-bottom: 1rem; font-weight: 700; }
.gp-service-card p { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }

/* Methodology */
.methodology-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.methodology-steps { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 3rem; }
.step-item { display: flex; gap: 2rem; align-items: flex-start; }
.step-num {
    font-size: 0.9rem; font-weight: 800; color: var(--brand-pink);
    padding: 0.5rem 1rem; border: 1px solid var(--brand-pink); border-radius: 50px;
}
.step-content h4 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 700; }
.step-content p { color: var(--text-muted); font-size: 1rem; }

/* Visual Stack */
.visual-stack { position: relative; width: 100%; height: 500px; }
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.main-card { width: 400px; padding: 1.5rem; position: absolute; top: 50px; left: 0; z-index: 2; }
.card-header { display: flex; gap: 6px; margin-bottom: 1.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.6; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.chart-dummy { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-bottom: 1.5rem; padding: 0 1rem; }
.bar { flex: 1; background: var(--gradient-primary); border-radius: 4px 4px 0 0; animation: barGrow 2s ease-out forwards; transform-origin: bottom; transform: scaleY(0); }
@keyframes barGrow { to { transform: scaleY(1); } }

.floating-card {
    position: absolute; bottom: 80px; right: 20px; width: 220px; padding: 2rem;
    z-index: 3; text-align: center; animation: float 6s ease-in-out infinite;
}
.stat { font-size: 2.5rem; font-weight: 800; color: var(--brand-pink); margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* GP CTA */
.cta-box {
    background: linear-gradient(135deg, rgba(242,0,137,0.1) 0%, rgba(137,0,225,0.1) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6rem 4rem; border-radius: 40px; text-align: center;
}
.cta-box h2 { font-size: 3.5rem; margin-bottom: 1.5rem; font-weight: 800; }
.cta-box p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Responsive GP */
@media screen and (max-width: 1024px) {
    .gp-hero-container, .methodology-wrapper { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .gp-title { font-size: 4rem; }
    .gp-services-grid { 
        display: grid;
        grid-template-columns: 1fr 1fr !important; 
        gap: 0.75rem !important; 
        width: 100%;
    }
    .gp-service-card { 
        padding: 1.25rem 1rem !important; 
        border-radius: 16px; 
        min-width: 0; 
        width: 100%;
        box-sizing: border-box;
    }
    .gp-service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .gp-service-card p { font-size: 0.8rem; line-height: 1.4; }
    .service-icon { width: 50px; height: 50px; margin-bottom: 1rem; }
    .service-icon svg { width: 24px; height: 24px; }
    .gp-subtitle { margin-left: auto; margin-right: auto; }
    .methodology-text .short-underline { margin-left: auto; margin-right: auto; }
    .main-card { width: 100%; position: relative; top: 0; left: 0; margin-bottom: 2rem; }
    .floating-card { position: relative; bottom: 0; right: 0; margin: 0 auto; }
    .visual-stack { height: auto; display: flex; flex-direction: column; align-items: center; }
    .cta-box { padding: 4rem 2rem; }
    .cta-box h2 { font-size: 2.2rem !important; }
}

@media screen and (max-width: 480px) {
    .gp-hero { padding-top: 60px !important; }
    .gp-title { font-size: 2.6rem; letter-spacing: -1px; }
    .gp-subtitle { font-size: 0.95rem; line-height: 1.5; }
    
    .step-num { width: 40px; height: 40px; font-size: 1rem; }
    .step-content h4 { font-size: 1.1rem; }
    .step-content p { font-size: 0.85rem; }
    .methodology-steps { gap: 2rem; }
    .step-item { gap: 1.25rem; }

    .visual-stack { 
        height: 240px; 
        position: relative; 
        width: 280px; 
        margin: 2rem auto 0;
        display: block;
    }
    .main-card { 
        width: 240px !important; 
        position: absolute !important; 
        left: 0 !important; 
        top: 0 !important; 
        margin-bottom: 0 !important;
        padding: 1.25rem !important;
    }
    .floating-card { 
        width: 90px !important; 
        height: 90px !important;
        position: absolute !important; 
        bottom: 10px !important; 
        right: 0 !important; 
        z-index: 5;
        margin: 0 !important;
        padding: 1rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .stat { font-size: 1.4rem !important; }
    .stat-label { font-size: 0.6rem !important; }
    .chart-dummy { height: 60px !important; margin-bottom: 0.5rem !important; }
    .card-text h5 { font-size: 0.9rem !important; }
    .card-text p { font-size: 0.7rem !important; }

    /* Legal Mobile */
    .legal-title { font-size: 2.2rem; }
    .legal-date { font-size: 0.9rem; margin-bottom: 2.5rem; }
    .legal-section { margin-bottom: 2.5rem; }
    .legal-section h2 { font-size: 1.25rem; }
    .legal-section p, .legal-section li { font-size: 0.9rem; line-height: 1.6; }

    /* CTA & Footer Mobile */
    .gp-cta { padding-bottom: 2rem !important; }
    .cta-box { padding: 3rem 1.5rem; border-radius: 30px; }
    .cta-box h2 { font-size: 1.8rem !important; margin-bottom: 1rem; }
    .cta-box p { font-size: 0.95rem; margin-bottom: 2rem; }
    .page-footer { padding: 2rem 0; }
}

/* ==========================================================================
   Section Témoignages (Avis) - Style Empilé (Stack)
   ========================================================================== */
.testimonials { 
    margin-top: 180px; 
    padding: 120px 0;
    overflow: visible;
}

.testimonials-stack {
    perspective: 1200px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.testimonials-grid {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.testimonial-card {
    position: absolute;
    width: 320px;
    min-width: unset;
    background: rgba(35, 20, 50, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2.5rem;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.testimonial-author strong {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.1rem;
}
.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.card-left {
    transform: translateX(-260px) scale(0.8) rotateY(15deg);
    opacity: 0.4;
    z-index: 1;
    pointer-events: auto;
}

.card-center {
    transform: translateX(0) scale(1.1) rotateY(0);
    opacity: 1;
    z-index: 20;
    pointer-events: auto;
    border-color: var(--brand-pink);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 20px rgba(236, 0, 140, 0.2);
}

.card-right {
    transform: translateX(260px) scale(0.8) rotateY(-15deg);
    opacity: 0.4;
    z-index: 1;
    pointer-events: auto;
}

/* Effets de survol pour indiquer la cliquabilité et passer au premier plan */
.testimonial-card:hover {
    z-index: 100 !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

.card-left:hover, .card-right:hover {
    transform: translateX(var(--hover-x)) scale(0.9) rotateY(var(--hover-y));
}
.card-left:hover { --hover-x: -240px; --hover-y: 15deg; }
.card-right:hover { --hover-x: 240px; --hover-y: -15deg; }

@media screen and (max-width: 1024px) {
    .testimonials { margin-top: 150px; }
    .testimonials-stack { height: 400px; }
    .testimonial-card { width: 230px; padding: 1.5rem; }
    .card-left { transform: translateX(-160px) translateZ(-200px) rotateY(30deg); opacity: 0.3; }
    .card-right { transform: translateX(160px) translateZ(-200px) rotateY(-30deg); opacity: 0.3; }
}

@media screen and (max-width: 480px) {
    .testimonials { padding-top: 180px !important; margin-top: 220px !important; }
    .testimonials-stack { height: 350px; margin-top: 2rem; }
    .testimonial-card { 
        width: 170px; 
        padding: 1.25rem; 
        border-radius: 20px;
    }
    .testimonial-text { font-size: 0.75rem; line-height: 1.4; }
    .testimonial-author strong { font-size: 0.9rem; }
    .testimonial-author span { font-size: 0.7rem; }
    .testimonial-stars { font-size: 0.8rem; margin-bottom: 0.5rem; }
    
    .card-left { transform: translateX(-105px) scale(0.8) rotateY(15deg); opacity: 0.6; z-index: 1; }
    .card-right { transform: translateX(105px) scale(0.8) rotateY(-15deg); opacity: 0.6; z-index: 1; }
    .card-center { transform: translateX(0) scale(1.05) rotateY(0); z-index: 20; }

    .card-left:hover { --hover-x: -95px; --hover-y: 10deg; }
    .card-right:hover { --hover-x: 95px; --hover-y: -10deg; }
}

/* ==========================================================================
   Page Contact Spécifique
   ========================================================================== */
.small-btn { max-width: 250px; width: 100%; text-align: center; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}
.contact-link:hover { transform: translateX(10px); }
.contact-link:hover .contact-icon-bubble { filter: brightness(1.2); box-shadow: 0 0 15px rgba(236, 0, 140, 0.4); }

.glass-tagline-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}
.glass-tagline-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-pink);
    transform: translateY(-5px);
}
.contact-tagline { margin: 0 !important; font-size: 1.2rem; line-height: 1.8; color: var(--text-light); opacity: 0.9; }

.contact-details-right {
    display: flex;
    align-items: stretch;
}

/* Grille de cartes de contact */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--brand-pink);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.card-value {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

@media screen and (max-width: 600px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1024px) {
    .contact-details-grid { grid-template-columns: 1fr; gap: 4rem; }
    .contact-mockups-wrap { height: auto; flex-direction: column; gap: 3rem; padding: 4rem 0; }
    .contact-mockups-wrap .mockup-iphone { position: relative; transform: none !important; opacity: 1 !important; }
    .contact-mockups-wrap:hover .mockup-iphone { transform: none !important; }
}
