# 🏍️ The Great Adventure: How a Motorcycle Enthusiast Transformed His Road Safety Knowledge

Discover the story of Leo, a motorcycle enthusiast who transformed his road safety knowledge. An inspiring 6-chapter adventure.

---

import ArticleScript from '@/components/ArticleScript';
import ArticleStyle from '@/components/ArticleStyle';


{/* Hero Section Premium */}
<div className="article-container" style={{textAlign: 'center', padding: '40px 20px'}}>
    <div style={{display: 'inline-block', background: 'linear-gradient(135deg, #f59e0b 0%, #d97706 100%)', padding: '8px 20px', borderRadius: '20px', marginBottom: '20px'}}>
        <span style={{color: 'white', fontWeight: '700', fontSize: '0.9em'}}>📖 BIKER STORY</span>
    </div>
    
    <h1 style={{fontSize: '2.5em', lineHeight: '1.2', marginBottom: '20px', background: 'linear-gradient(135deg, #ffffff 0%, #94a3b8 100%)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', backgroundClip: 'text'}}>
        Leo's Story: A Biker's Transformation
    </h1>
    
    <p style={{fontSize: '1.2em', color: '#cbd5e1', maxWidth: '700px', margin: '0 auto 30px', lineHeight: '1.6'}}>
        Discover how a young enthusiast transformed his vision of road safety. <strong style={{color: '#f59e0b'}}>A 6-chapter adventure</strong> that will change your perspective on riding.
    </p>
    
    <img src="/images/articles/leo-story-hero.webp" alt="Motorcycle on winding road" style={{width: '100%', maxWidth: '800px', borderRadius: '20px', margin: '30px auto', display: 'block', boxShadow: '0 20px 60px rgba(245, 158, 11, 0.3)'}} />
    
    <div style={{display: 'flex', gap: '15px', justifyContent: 'center', flexWrap: 'wrap', marginTop: '30px'}}>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>📚</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>6 chapters</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>⏱️</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>5 min read</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>🛡️</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>True story</div>
        </div>
    </div>
    
    <button id="start-story-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', border: 'none', padding: '18px 50px', borderRadius: '50px', fontSize: '1.3em', fontWeight: '700', cursor: 'pointer', boxShadow: '0 10px 30px rgba(245, 158, 11, 0.4)', marginTop: '40px', transition: 'all 0.3s'}}>
        📖 START THE STORY
    </button>
</div>

{/* Progress Bar */}
<div id="story-progress-container-leo" style={{position: 'sticky', top: '0', zIndex: '100', background: 'rgba(2, 6, 23, 0.95)', backdropFilter: 'blur(10px)', padding: '15px 20px', borderBottom: '1px solid rgba(255,255,255,0.1)', display: 'none'}}>
    <div style={{maxWidth: '800px', margin: '0 auto'}}>
        <div style={{display: 'flex', justifyContent: 'space-between', marginBottom: '8px'}}>
            <span style={{fontSize: '0.9em', color: '#94a3b8'}} id="story-progress-text-leo">Chapter 1/6</span>
            <span style={{fontSize: '0.9em', color: '#f59e0b', fontWeight: '600'}}>📖 Leo's Story</span>
        </div>
        <div style={{height: '6px', background: 'rgba(255,255,255,0.1)', borderRadius: '10px', overflow: 'hidden'}}>
            <div id="story-progress-bar-leo" style={{height: '100%', width: '16.66%', background: 'linear-gradient(90deg, #f59e0b, #d97706)', transition: 'width 0.3s ease', borderRadius: '10px'}}></div>
        </div>
    </div>
</div>

{/* Story Container */}
<div id="story-container-leo" style={{display: 'none', maxWidth: '800px', margin: '40px auto', padding: '0 20px'}}>
    <div style={{background: 'rgba(255,255,255,0.02)', border: '1px solid rgba(255,255,255,0.1)', borderRadius: '20px', padding: '40px', marginBottom: '20px'}}>
        <div style={{display: 'flex', alignItems: 'center', gap: '15px', marginBottom: '15px'}}>
            <div id="story-badge-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', minWidth: '50px', height: '50px', borderRadius: '12px', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '1.5em', fontWeight: '800', color: 'white', flexShrink: '0'}}>1</div>
            <div id="story-category-leo" style={{textTransform: 'uppercase', fontSize: '0.85em', letterSpacing: '1.5px', color: '#f59e0b', background: 'rgba(245, 158, 11, 0.1)', padding: '6px 15px', borderRadius: '20px'}}>INTRODUCTION</div>
        </div>
        
        <h3 id="story-title-leo" style={{fontSize: '1.8em', margin: '25px 0', lineHeight: '1.4', color: '#e2e8f0'}}></h3>
        
        <img id="story-image-leo" src="" alt="" style={{width: '100%', borderRadius: '15px', margin: '25px 0', display: 'none'}} />
        
        <div id="story-content-leo" style={{fontSize: '1.1em', lineHeight: '1.8', color: '#cbd5e1', marginTop: '30px'}}></div>
        
        <div style={{display: 'flex', justifyContent: 'space-between', marginTop: '40px', gap: '15px', flexWrap: 'wrap'}}>
            <button id="prev-story-leo" style={{background: 'rgba(255,255,255,0.05)', color: '#cbd5e1', border: '2px solid rgba(255,255,255,0.2)', padding: '15px 30px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', cursor: 'pointer', display: 'none'}}>← Previous</button>
            <button id="next-story-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', border: 'none', padding: '15px 40px', borderRadius: '12px', fontSize: '1.1em', fontWeight: '700', cursor: 'pointer', marginLeft: 'auto'}}>Next →</button>
        </div>
    </div>
</div>

{/* End Screen */}
<div id="story-end-leo" style={{display: 'none', maxWidth: '800px', margin: '60px auto', padding: '0 20px'}}>
    <div style={{background: 'linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1))', border: '2px solid rgba(245, 158, 11, 0.3)', borderRadius: '24px', padding: '50px 40px', textAlign: 'center'}}>
        <div style={{fontSize: '4em', marginBottom: '20px'}}>🏆</div>
        <h2 style={{fontSize: '2.2em', marginBottom: '15px'}}>The End</h2>
        <p style={{fontSize: '1.2em', color: '#cbd5e1', marginBottom: '30px'}}>Thank you for following Leo's journey! Like him, transform your approach to motorcycle safety.</p>

        <a href="/2025/01/05/testez-vos-connaissances-sur-la-securite-les-equipements-et-la-conduite-a-moto/" style={{display: 'inline-block', background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', padding: '18px 40px', borderRadius: '12px', fontSize: '1.2em', fontWeight: '700', textDecoration: 'none', marginBottom: '20px'}}>
            🎯 Test Your Knowledge
        </a>

        <div style={{display: 'flex', gap: '15px', justifyContent: 'center', marginTop: '30px', flexWrap: 'wrap'}}>
            <button id="restart-story-leo" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', cursor: 'pointer'}}>
                🔄 Read Again
            </button>
            <a href="/dashboard" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', textDecoration: 'none', display: 'inline-block'}}>
                📊 View My Profile
            </a>
        </div>
    </div>
</div>

{/* Social Sharing */}
<div className="action-buttons-grid" style={{maxWidth: '800px', margin: '40px auto', padding: '0 20px'}}>
    <a href="#" id="share-whatsapp-leo" className="btn-share-whatsapp" style={{background: 'linear-gradient(135deg, #25D366, #128C7E)', color: 'white', padding: '20px', borderRadius: '16px', textDecoration: 'none', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', fontWeight: '700', fontSize: '1.1em', transition: 'transform 0.2s'}}>
        📱 Share this story
    </a>
</div>


<ArticleStyle content={`

/* Fix text overflow */
#story-end-leo,
#story-end-leo p,
h3, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container { padding: 20px 10px; }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    p { font-size: 1em; }

    button, a, #start-story-leo {
        width: 100%;
        padding: 18px 20px;
        box-sizing: border-box;
        margin-bottom: 10px;
        display: block;
        text-align: center;
        white-space: normal;
    }
}

`} />

<ArticleScript content={`
window.initStoryLeo = function() {
    if (window.initStoryLeoDone) return;
    const startBtn = document.getElementById('start-story-leo');
    if (!startBtn) return;
    
    window.initStoryLeoDone = true;

    const chaptersLeo = [
        {
            category: 'INTRODUCTION',
            title: 'The Beginning of an Adventure',
            image: '/images/articles/leo-story-hero.webp',
            content: 'Imagine a rider, young and passionate, who rides winding roads with the adrenaline of the wind in his hair. He knows every curve, every bump in the road, and every sound of his engine. But, like many riders, he often takes safety lightly, believing that experience is enough. However, an unexpected situation pushes him to question everything he thought he knew. This is the story of Leo, a rider like so many others, and his realization of the importance of good preparation and road safety knowledge.'
        },
        {
            category: 'CHAPTER 1',
            title: 'The First Incident',
            image: '/images/articles/leo-story-wet-curve.webp',
            content: 'Leo had always been a confident rider. On every ride, he felt he had everything under control. But one day, during a ride with friends, an unforeseen situation occurs. A sharp turn, wet pavement, and a slight loss of grip. Leo remembers the gut feeling, a moment of panic he had never had before. It didn\\'t end in a fall, but he had a revelation: safety is not to be taken lightly. He realized there was still so much to learn.'
        },
        {
            category: 'CHAPTER 2',
            title: 'Searching for Information',
            image: '/images/articles/leo-story-studying.webp',
            content: 'Back home, Leo begins to research. He explores forums, watches motorcycle safety videos, and talks to experts. But he quickly realizes that the amount of information is huge, and he doesn\\'t know where to start. That\\'s when he finds a simple and direct site: 2roue.com, a site dedicated to riders, where he discovers an online quiz. This quiz doesn\\'t just talk about safety rules, but also about advanced techniques, equipment choices, and mistakes to avoid.'
        },
        {
            category: 'CHAPTER 3',
            title: 'The Realization',
            image: '/images/articles/leo-story-reflection.webp',
            content: 'After finishing the quiz, Leo realizes how much danger he could have been in without certain information he just discovered. He had neglected the importance of preparation and regularly reviewing safety rules. Good reflexes and responsible riding make the difference between an experienced rider and one who takes unnecessary risks.'
        },
        {
            category: 'CHAPTER 4',
            title: 'Leo\\'s Evolution',
            image: '/images/articles/leo-story-safety-check.webp',
            content: 'Motivated by this realization, Leo begins to apply the new information he has learned. During his rides, he systematically checks his equipment, adjusts his speed according to weather and road conditions, and scrupulously respects safety rules. He immediately notices a difference in his comfort and confidence while riding.'
        },
        {
            category: 'CHAPTER 5',
            title: 'Leo\\'s Message',
            image: '/images/articles/leo-story-quiz-interface.webp',
            content: 'Leo has transformed his approach to motorcycling, and he now knows that safety is not limited to equipment. It is also a question of know-how, knowledge, and vigilance. If you too want to test your knowledge, learn valuable tips, and prepare to ride safely, take the quiz available on 2roue.com. Like Leo, turn your passion into expertise!'
        }
    ];

    let currentChapterLeo = 0;
    
    function startStoryLeo() {
        const startBtn = document.getElementById('start-story-leo');
        const storyContainer = document.getElementById('story-container-leo');
        
        if (startBtn) startBtn.style.display = 'none';
        if (storyContainer) storyContainer.style.display = 'block';
        
        currentChapterLeo = 0;
        showChapterLeo();
        
        storyContainer.scrollIntoView({ behavior: 'smooth' });
    }
    
    function showChapterLeo() {
        const chapter = chaptersLeo[currentChapterLeo];
        const categoryEl = document.getElementById('story-category-leo');
        const titleEl = document.getElementById('story-title-leo');
        const imageEl = document.getElementById('story-image-leo');
        const contentEl = document.getElementById('story-content-leo');
        const badgeEl = document.getElementById('story-badge-leo');
        const prevBtn = document.getElementById('prev-story-leo');
        const nextBtn = document.getElementById('next-story-leo');
        const progressText = document.getElementById('story-progress-text-leo');
        const progressBar = document.getElementById('story-progress-bar-leo');
        const progressContainer = document.getElementById('story-progress-container-leo');
        
        if (categoryEl) categoryEl.textContent = chapter.category;
        if (titleEl) titleEl.textContent = chapter.title;
        if (contentEl) contentEl.textContent = chapter.content;
        if (badgeEl) badgeEl.textContent = (currentChapterLeo + 1);
        
        if (imageEl && chapter.image) {
            imageEl.src = chapter.image;
            imageEl.alt = chapter.title;
            imageEl.style.display = 'block';
        }
        
        // Navigation buttons
        if (prevBtn) {
            prevBtn.style.display = currentChapterLeo > 0 ? 'inline-block' : 'none';
            prevBtn.onclick = prevChapterLeo;
        }
        if (nextBtn) {
            nextBtn.onclick = nextChapterLeo;
            if (currentChapterLeo === chaptersLeo.length - 1) {
                nextBtn.textContent = '✅ Finish';
                nextBtn.style.background = 'linear-gradient(135deg, #22c55e, #16a34a)';
            } else {
                nextBtn.textContent = 'Next →';
                nextBtn.style.background = 'linear-gradient(135deg, #f59e0b, #d97706)';
            }
        }
        
        // Progress
        if (progressText) progressText.textContent = 'Chapter ' + (currentChapterLeo + 1) + '/6';
        if (progressBar) progressBar.style.width = ((currentChapterLeo + 1) / 6 * 100) + '%';
        if (progressContainer) progressContainer.style.display = 'block';
    }
    
    function nextChapterLeo() {
        if (currentChapterLeo < chaptersLeo.length - 1) {
            currentChapterLeo++;
            showChapterLeo();
            const storyContainer = document.getElementById('story-container-leo');
            if (storyContainer) storyContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
        } else {
            endStoryLeo();
        }
    }
    
    function prevChapterLeo() {
        if (currentChapterLeo > 0) {
            currentChapterLeo--;
            showChapterLeo();
            const storyContainer = document.getElementById('story-container-leo');
            if (storyContainer) storyContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
        }
    }
    
    function endStoryLeo() {
        const storyContainer = document.getElementById('story-container-leo');
        const endScreen = document.getElementById('story-end-leo');
        const progressContainer = document.getElementById('story-progress-container-leo');
        
        if (storyContainer) storyContainer.style.display = 'none';
        if (progressContainer) progressContainer.style.display = 'none';
        if (endScreen) {
            endScreen.style.display = 'block';
            endScreen.scrollIntoView({ behavior: 'smooth', block: 'center' });
        }
        
        // Update share link
        const shareBtn = document.getElementById('share-whatsapp-leo');
        if (shareBtn) {
            const shareText = encodeURIComponent('I read Leo\\'s inspiring story on 2roue.com! 🏍️ Discover how he transformed his motorcycle safety vision.');
            shareBtn.href = 'https://wa.me/?text=' + shareText;
        }
    }
    
    if (startBtn) startBtn.onclick = startStoryLeo;
    
    const restartBtn = document.getElementById('restart-story-leo');
    if (restartBtn) {
        restartBtn.onclick = function() {
            document.getElementById('story-end-leo').style.display = 'none';
            document.getElementById('start-story-leo').style.display = 'inline-block';
            window.scrollTo({ top: 0, behavior: 'smooth' });
        };
    }
};

if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', window.initStoryLeo);
} else {
    window.initStoryLeo();
}

setTimeout(function() {
    if(!window.initStoryLeoDone && window.initStoryLeo) window.initStoryLeo();
}, 500);

window.startStoryLeo = function() {}; // Fallback
window.restartStoryLeo = function() {}; // Fallback
`} />

