/* Reset et Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

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

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    margin-top: 70px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.5) 0%, rgba(30, 64, 175, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== SECTIONS PAGE D'ACCUEIL (après hero) ===== */
.block-title-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.75rem;
}

.block-text {
    max-width: 800px;
    margin: 0 auto;
}

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

.block-text p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.1rem;
}

.passion-block p,
.about-block p {
    font-size: 1.15rem;
}

.section-motivation {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(30, 64, 175, 0.08) 100%);
}

.motivation-block p {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

.section-title-minimal {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.social-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-block-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.social-block-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Section transmission : bien visible au scroll (au-dessus du hero) */
#transmission {
    scroll-margin-top: 80px;
}

/* Section avec image (transmission) */
.section-with-image {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
}

.section-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

.block-text-expanded {
    max-width: none;
    text-align: left;
}

.block-text-expanded p {
    margin-bottom: 1.25rem;
}

.block-text-expanded p:last-child {
    margin-bottom: 0;
}

/* Passion - intro + cartes */
.passion-intro {
    margin-bottom: 2.5rem;
}

.passion-intro p {
    font-size: 1.1rem;
}

.passion-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.passion-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.passion-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.passion-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.passion-card-label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.passion-card p {
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Section motivation avec fond image */
.section-motivation {
    position: relative;
    overflow: hidden;
}

.section-motivation-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.section-motivation-content {
    position: relative;
    z-index: 1;
}

.section-motivation .motivation-block p {
    margin-bottom: 1.25rem;
}

.section-motivation .motivation-block p:last-child {
    margin-bottom: 0;
}

/* Intro réseaux */
.social-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

/* À propos avec image */
.about-with-image {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
}

.about-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 260px;
}

.about-text-wrap {
    text-align: left;
}

.about-text-wrap p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-text-wrap p:last-of-type {
    margin-bottom: 1.5rem;
}

.btn-inline {
    margin-top: 0.5rem;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.activity-card {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.activity-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.3), rgba(30, 64, 175, 0.5));
}

.activity-icon {
    width: 80px;
    height: 80px;
    margin: -40px auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.activity-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding: 0 1.5rem;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.8;
    padding: 0 1.5rem 2rem;
}

/* Benefits */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: -35px auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding: 0 1.5rem;
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.8;
    padding: 0 1.5rem 2rem;
}

/* Sports Types */
.sports-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.sport-type-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.sport-type-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.sport-type-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sport-type-card h3 i {
    color: var(--primary-color);
}

.sport-type-card ul {
    list-style: none;
}

.sport-type-card ul li {
    padding: 0.8rem 0;
    color: var(--text-light);
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 25px;
}

.sport-type-card ul li:last-child {
    border-bottom: none;
}

.sport-type-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Marketplace */
.marketplace-notice {
    max-width: 800px;
    margin: 3rem auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.notice-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.notice-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.notice-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.marketplace-features {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
}

.marketplace-features li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.marketplace-features li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.coming-soon {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.values-list {
    list-style: none;
    margin-top: 1.5rem;
}

.values-list li {
    padding: 1rem 0;
    color: var(--text-light);
    border-bottom: 1px solid #e5e7eb;
}

.values-list li:last-child {
    border-bottom: none;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

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

    .block-title-uppercase {
        font-size: 1.4rem;
    }

    .block-text p,
    .passion-block p,
    .about-block p,
    .motivation-block p {
        font-size: 1rem;
    }

    .social-block {
        gap: 1rem;
    }

    .social-block-link {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .section-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-image-wrap {
        order: -1;
    }

    .section-image {
        min-height: 220px;
    }

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

    .passion-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .passion-card-image {
        height: 180px;
    }

    .about-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrap {
        order: -1;
    }

    .about-image {
        min-height: 220px;
    }

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

    .about-text-wrap .btn-inline {
        display: inline-block;
    }

    .activities-grid,
    .benefits-container,
    .sports-types {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ===== STYLES POUR LES NOUVELLES PAGES ===== */

/* Page Title */
.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Authentification */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 2rem;
}

.auth-box h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert i {
    margin-right: 8px;
}

/* Marketplace */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.book-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.book-author {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.book-author i {
    margin-right: 5px;
}

.book-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.book-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.no-books {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-books i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Détail du livre */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--secondary-color);
}

.book-detail-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.book-detail-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
}

.book-detail-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.book-author-detail {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.book-price-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.book-description-full {
    margin-bottom: 2rem;
}

.book-description-full h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.book-description-full p {
    color: var(--text-light);
    line-height: 1.8;
}

.book-preview {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.book-preview h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.book-preview h3 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.preview-content {
    color: var(--text-light);
    line-height: 1.8;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.purchase-status {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.purchase-status.purchased {
    background: #d1fae5;
    color: #065f46;
}

.purchase-status.login-required {
    background: #fef3c7;
    color: #92400e;
}

.purchase-status i {
    margin-right: 8px;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Page de paiement */
.purchase-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.purchase-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.purchase-box h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.purchase-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.purchase-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.purchase-author {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.purchase-price {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.payment-option {
    margin-bottom: 1rem;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-option label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.payment-option label i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.payment-info {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: #92400e;
}

.payment-info i {
    margin-right: 8px;
}

.cancel-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
}

.cancel-link:hover {
    color: var(--text-dark);
}

/* Page de succès */
.success-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.success-box > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.success-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.success-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page de lecture */
.read-header {
    text-align: center;
    margin-bottom: 3rem;
}

.read-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.read-author {
    color: var(--text-light);
    font-size: 1.1rem;
}

.read-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.read-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Profil utilisateur */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-info {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.profile-details h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.profile-details p {
    color: var(--text-light);
}

.profile-purchases {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.profile-purchases h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.profile-purchases h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.no-purchases {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-purchases i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.purchases-grid {
    display: grid;
    gap: 1.5rem;
}

.purchase-item-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.purchase-item-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.purchase-item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.purchase-item-info {
    flex: 1;
}

.purchase-item-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.purchase-item-author {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.purchase-item-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.purchase-item-date i {
    margin-right: 5px;
}

.purchase-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Page de Contact */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
}

.contact-section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-section-title i {
    color: var(--primary-color);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
}

.contact-card-icon.email {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.contact-card-icon.phone {
    background: linear-gradient(135deg, #10b981, #059669);
}

.contact-card-icon.location {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.contact-card-icon.clock {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-form-section {
    display: flex;
    align-items: flex-start;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.contact-form-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-title i {
    color: var(--primary-color);
}

.contact-form-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
    min-height: 150px;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Page Mentions Légales */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: var(--text-dark);
}

/* Page Blog */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: var(--bg-white);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-meta i {
    color: var(--primary-color);
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.blog-card-resume {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.blog-card-link:hover {
    color: var(--secondary-color);
    gap: 0.8rem;
}

/* Page Article */
.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--primary-color);
}

.article-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.article-body h3:first-child {
    margin-top: 0;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-light);
}

.article-body li {
    margin-bottom: 0.8rem;
}

.article-body strong {
    color: var(--text-dark);
}

.article-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive pour les nouvelles pages */
@media (max-width: 768px) {
    .book-detail-container {
        grid-template-columns: 1fr;
    }
    
    .book-detail-image {
        height: 250px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .purchase-item-card {
        flex-direction: column;
        text-align: center;
    }
    
    .purchase-item-actions {
        width: 100%;
        justify-content: center;
    }
    
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-body {
        padding: 2rem 1.5rem;
    }
}
