/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container principal */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Titre principal */
.main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
    line-height: 1.1;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.main-title:hover::after {
    width: 100px;
}

/* Sous-titre */
.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenu principal */
.content {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
}

/* Ligne de séparation décorative */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #cccccc, transparent);
    margin: 2rem 0;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

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

/* Media queries pour la responsivité */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-title {
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .main-title {
        letter-spacing: -0.01em;
    }
    
    .subtitle {
        letter-spacing: 0.02em;
    }
}

/* Effet de survol léger */
@media (hover: hover) {
    .main-title:hover {
        transform: translateY(-2px);
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Animation d'entrée pour le titre */
.main-title {
    opacity: 0;
    animation: slideInDown 0.8s ease forwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.explore-btn {
    color: #666666;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: lowercase;
    opacity: 0.7;
}

.explore-btn:hover {
    color: #000000;
    opacity: 1;
    transform: translateX(3px);
}

/* Pages */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
}

.page.active {
    transform: translateX(0);
}

/* Navigation du haut */
.top-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 20;
}

.back-link {
    color: #666666;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #000000;
}

/* Story styles */
.story {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.story-header {
    text-align: center;
    margin-bottom: 4rem;
}

.story-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.story-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: #666666;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.story-content {
    line-height: 1.8;
}

.story-intro {
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: #333333;
    text-align: center;
    font-style: italic;
    border-left: 3px solid #000000;
    padding-left: 1.5rem;
    margin: 0 auto;
    max-width: 600px;
}

.story-section {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #000000;
}

.story-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333333;
}

.story-section em {
    font-style: italic;
    color: #000000;
}

/* Citation */
.story-quote {
    margin: 4rem 0;
    text-align: center;
}

.story-quote blockquote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #000000;
    margin: 0;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
}

.story-quote cite {
    display: block;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-style: normal;
    color: #666666;
    font-weight: 500;
}

/* Statistiques */
.story-stats {
    margin: 3rem 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #000000;
    line-height: 1;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* Texte en surbrillance */
.highlight-text {
    background-color: #f8f8f8;
    border-left: 4px solid #000000;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

/* Liste des achievements */
.achievements-list {
    margin: 2rem 0;
}

.achievement {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.achievement h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 0.8rem;
}

.achievement p {
    color: #333333;
    line-height: 1.7;
    margin: 0;
}

/* Texte de conclusion */
.closing-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 2rem;
}

.closing-text:last-child {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #000000;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Responsivité pour les pages */
@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .explore-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .story {
        padding: 5rem 1rem 3rem;
    }
    
    .top-nav {
        top: 1rem;
        left: 1rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
        padding-left: 1rem;
    }
    
    .story-section p {
        font-size: 1rem;
    }
    
    .story-quote blockquote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}
