/**
 * TALENTEO - E-book Reader MAGAZINE PREMIUM
 * Mobile-First Responsive Design + Touch Support
 */

/* ==============================================
   FONTS & VARIABLES
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --reader-bg: #0a1520;
    --page-cream: #fdfcf8;
    --page-cream-dark: #f5f3ed;
    --turquoise: #20B2AA;
    --turquoise-dark: #1a8f89;
    --text-dark: #1a2530;
    --text-medium: #3d4f5f;
    --text-light: #5a6b7a;
    --accent-dark: #002b36;
    
    /* Responsive font sizes */
    --title-size: clamp(1.5rem, 4vw, 2.5rem);
    --subtitle-size: clamp(1.1rem, 2.5vw, 1.5rem);
    --body-size: clamp(0.95rem, 1.8vw, 1.125rem);
    --small-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* ==============================================
   FLOATING 3D BOOK CARDS ON HOMEPAGE
   ============================================== */

.ebook-card-homepage {
    position: relative;
    background: linear-gradient(145deg, #1a2a3e 0%, #0d1829 100%);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(32, 178, 170, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.2);
    animation: ebookFloat 4s ease-in-out infinite;
}

.ebook-card-homepage::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ebook-card-homepage:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(32, 178, 170, 0.25);
    border-color: rgba(32, 178, 170, 0.4);
    animation-play-state: paused;
}

.ebook-card-homepage:hover::before { opacity: 1; }

@keyframes ebookFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.ebook-card-homepage:nth-child(2) { animation-delay: 0.5s; }
.ebook-card-homepage:nth-child(3) { animation-delay: 1s; }

/* ==============================================
   FULLSCREEN READER MODAL
   ============================================== */

.ebook-reader-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--reader-bg);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.ebook-reader-modal.show {
    display: flex;
    opacity: 1;
}

/* Zoom animation */
.ebook-reader-modal.show .book-3d-container {
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes zoomIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==============================================
   CLOSE BUTTON - Touch Friendly
   ============================================== */

.ebook-reader-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    transition: all 0.3s ease;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}

.ebook-reader-close:hover,
.ebook-reader-close:active {
    background: rgba(239, 68, 68, 0.95);
    border-color: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

/* ==============================================
   BOOK CONTAINER - Desktop (> 1024px)
   ============================================== */

.book-3d-container {
    width: 100%;
    max-width: 900px;
    height: calc(100vh - 100px);
    max-height: 750px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 90px;
}

.book-3d {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 40px 100px rgba(0, 0, 0, 0.25);
}

/* NO spine/fold effect - clean rectangle */

/* ==============================================
   BOOK PAGES - Clean Rectangle
   ============================================== */

.book-page {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--page-cream);
    border-radius: 16px;
    box-sizing: border-box;
    display: none;
    overflow: hidden;
}

.book-page.active {
    display: flex;
    flex-direction: column;
}

/* Page transitions */
.book-page.flip-out-left {
    animation: slideOutLeft 0.35s ease forwards;
}

.book-page.flip-out-right {
    animation: slideOutRight 0.35s ease forwards;
}

.book-page.flip-in-right {
    animation: slideInRight 0.35s ease forwards;
}

.book-page.flip-in-left {
    animation: slideInLeft 0.35s ease forwards;
}

@keyframes slideOutLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-40px); opacity: 0; }
}

@keyframes slideOutRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(40px); opacity: 0; }
}

@keyframes slideInRight {
    0% { transform: translateX(40px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-40px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ==============================================
   COVER PAGE
   ============================================== */

.page-cover {
    height: 100%;
    background: linear-gradient(145deg, var(--accent-dark) 0%, #073642 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.cover-decoration {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(32, 178, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(32, 178, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-cover::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px solid rgba(32, 178, 170, 0.25);
    border-radius: 12px;
    pointer-events: none;
}

.cover-logo {
    width: clamp(70px, 12vw, 100px);
    margin-bottom: clamp(25px, 5vw, 40px);
    filter: drop-shadow(0 8px 30px rgba(32, 178, 170, 0.5));
    position: relative;
    z-index: 1;
}

.cover-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: var(--title-size);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 5px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    max-width: 90%;
}

.cover-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: clamp(25px, 5vw, 45px);
    max-width: 90%;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cover-badge {
    background: rgba(32, 178, 170, 0.15);
    border: 2px solid var(--turquoise);
    color: var(--turquoise);
    padding: clamp(10px, 2vw, 16px) clamp(20px, 4vw, 40px);
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.cover-start-hint {
    position: absolute;
    bottom: clamp(30px, 5vw, 50px);
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 1.5vw, 14px);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulseHint 2.5s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.45; transform: translateX(0); }
    50% { opacity: 0.9; transform: translateX(10px); }
}

/* ==============================================
   PAGE CONTENT - Scrollable
   ============================================== */

.page-content {
    flex: 1;
    padding: clamp(30px, 5vw, 55px) clamp(25px, 5vw, 60px);
    padding-bottom: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.page-content::-webkit-scrollbar {
    width: 5px;
}

.page-content::-webkit-scrollbar-track {
    background: transparent;
}

.page-content::-webkit-scrollbar-thumb {
    background: var(--turquoise);
    border-radius: 3px;
}

/* Page Header */
.page-header-elegant {
    margin-bottom: clamp(25px, 4vw, 40px);
    padding-bottom: clamp(15px, 3vw, 25px);
    border-bottom: 2px solid rgba(32, 178, 170, 0.12);
    position: relative;
}

.page-header-elegant::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), transparent);
    border-radius: 2px;
}

.chapter-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: clamp(6px, 1vw, 10px) clamp(14px, 2vw, 22px);
    border-radius: 30px;
    margin-bottom: clamp(10px, 2vw, 18px);
}

.page-title-elegant {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: var(--subtitle-size);
    font-weight: 700;
    color: var(--turquoise);
    margin: 0;
    line-height: 1.25;
}

/* ==============================================
   SOMMAIRE
   ============================================== */

.sommaire-list {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 10px);
}

.sommaire-item {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 22px);
    padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 25px);
    background: #fff;
    border-radius: 14px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sommaire-item:hover,
.sommaire-item:active {
    background: rgba(32, 178, 170, 0.05);
    border-left-color: var(--turquoise);
    transform: translateX(8px);
}

.sommaire-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--turquoise);
    min-width: clamp(35px, 5vw, 50px);
}

.sommaire-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.sommaire-content p {
    font-size: var(--small-size);
    color: var(--text-light);
    margin: 0;
}

.sommaire-arrow {
    margin-left: auto;
    color: var(--turquoise);
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sommaire-item:hover .sommaire-arrow {
    opacity: 1;
}

/* ==============================================
   CHAPTER CONTENT
   ============================================== */

.chapter-content {
    display: flex;
    flex-direction: column;
    gap: clamp(25px, 4vw, 35px);
}

.chapter-section {
    background: #fff;
    border-radius: 18px;
    padding: clamp(22px, 4vw, 35px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--turquoise);
    margin-bottom: clamp(15px, 2.5vw, 22px);
    display: flex;
    align-items: flex-start;
}

.lettrine {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(40px, 7vw, 60px);
    font-weight: 700;
    line-height: 0.75;
    color: var(--turquoise);
    float: left;
    margin-right: clamp(10px, 2vw, 15px);
    margin-top: 8px;
    text-shadow: 3px 3px 0 rgba(32, 178, 170, 0.1);
}

.section-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    line-height: 1.9;
    color: var(--text-medium);
    text-align: justify;
    margin-bottom: clamp(14px, 2vw, 20px);
}

/* Tips List */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 16px);
}

.tip-item {
    display: flex;
    gap: clamp(14px, 2.5vw, 20px);
    padding: clamp(16px, 2.5vw, 22px);
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.04), rgba(32, 178, 170, 0.01));
    border-radius: 14px;
    border-left: 5px solid var(--turquoise);
    transition: all 0.3s ease;
}

.tip-icon {
    width: clamp(38px, 6vw, 48px);
    height: clamp(38px, 6vw, 48px);
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(16px, 2.5vw, 20px);
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(32, 178, 170, 0.3);
}

.tip-content strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.tip-content span {
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    color: var(--text-medium);
    line-height: 1.7;
}

/* Errors List */
.errors-list {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 18px);
}

.error-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.error-header {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    padding: clamp(12px, 2vw, 18px) clamp(14px, 2.5vw, 22px);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.03));
    color: #dc2626;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: var(--body-size);
}

.error-header i {
    width: clamp(24px, 4vw, 32px);
    height: clamp(24px, 4vw, 32px);
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px, 1.5vw, 14px);
    flex-shrink: 0;
}

.error-solution {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 16px);
    padding: clamp(12px, 2vw, 18px) clamp(14px, 2.5vw, 22px);
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    color: var(--text-medium);
    line-height: 1.7;
}

.error-solution i {
    color: #f59e0b;
    font-size: clamp(16px, 2vw, 20px);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Questions List */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 20px);
}

.question-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(32, 178, 170, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.question-header {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    padding: clamp(12px, 2vw, 18px) clamp(14px, 2.5vw, 22px);
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: var(--body-size);
}

.question-answer {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 16px);
    padding: clamp(14px, 2.5vw, 22px);
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    color: var(--text-medium);
    line-height: 1.8;
}

.question-answer i {
    color: var(--turquoise);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ==============================================
   CV PREVIEW
   ============================================== */

.cv-preview {
    background: #fff;
    border-radius: 8px;
    padding: clamp(20px, 4vw, 35px);
    position: relative;
    margin-top: 25px;
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.06),
        0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cv-preview::before {
    content: '';
    position: absolute;
    top: -12px;
    right: clamp(30px, 8vw, 50px);
    width: clamp(25px, 4vw, 35px);
    height: clamp(40px, 6vw, 55px);
    background: linear-gradient(135deg, #d4af37 0%, #b8952c 100%);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.cv-header-preview {
    display: flex;
    gap: clamp(15px, 3vw, 25px);
    align-items: center;
    margin-bottom: clamp(18px, 3vw, 25px);
    padding-bottom: clamp(18px, 3vw, 25px);
    border-bottom: 3px solid var(--turquoise);
    flex-wrap: wrap;
}

.cv-avatar {
    width: clamp(60px, 10vw, 85px);
    height: clamp(60px, 10vw, 85px);
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(24px, 5vw, 36px);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(32, 178, 170, 0.35);
}

.cv-identity h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.cv-titre {
    color: var(--turquoise);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: var(--small-size);
    display: block;
    margin-bottom: 8px;
}

.cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 18px);
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.5vw, 14px);
    color: var(--text-light);
}

.cv-contact i {
    margin-right: 6px;
    color: var(--turquoise);
}

.cv-resume-preview {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.06), rgba(32, 178, 170, 0.02));
    padding: clamp(14px, 2.5vw, 22px);
    border-radius: 12px;
    margin-bottom: clamp(18px, 3vw, 25px);
    border-left: 5px solid var(--turquoise);
}

.cv-resume-preview p {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    color: var(--text-medium);
    font-size: var(--small-size);
    line-height: 1.8;
    margin: 0;
}

.cv-section-preview h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: clamp(12px, 2vw, 18px);
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.cv-section-preview h4 i {
    color: var(--turquoise);
}

.cv-exp-item {
    margin-bottom: clamp(12px, 2vw, 18px);
    padding-left: clamp(14px, 2vw, 20px);
    border-left: 3px solid rgba(32, 178, 170, 0.25);
}

.cv-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-exp-header strong {
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    color: var(--text-dark);
}

.cv-exp-header span {
    font-family: 'Inter', sans-serif;
    font-size: clamp(10px, 1.2vw, 12px);
    color: var(--turquoise);
    font-weight: 700;
    background: rgba(32, 178, 170, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
}

.cv-exp-company {
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.4vw, 14px);
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
}

.cv-exp-item ul {
    margin: 0;
    padding-left: 20px;
}

.cv-exp-item li {
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.4vw, 14px);
    color: var(--text-medium);
    margin-bottom: 5px;
    line-height: 1.6;
}

.cv-exp-item li::marker {
    color: var(--turquoise);
}

.cv-skills-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(14px, 2vw, 20px);
}

.skill-tag {
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(10px, 1.4vw, 13px);
    font-weight: 600;
    padding: clamp(5px, 1vw, 8px) clamp(12px, 2vw, 18px);
    border-radius: 20px;
}

/* ==============================================
   TEMPLATE PAGE
   ============================================== */

.template-preview {
    background: #fff;
    border-radius: 18px;
    padding: clamp(25px, 4vw, 35px);
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: clamp(20px, 3vw, 30px);
}

.template-visual {
    width: clamp(140px, 25vw, 200px);
    height: clamp(200px, 35vw, 280px);
    background: linear-gradient(145deg, var(--page-cream), #fff);
    border: 2px solid rgba(32, 178, 170, 0.2);
    border-radius: 8px;
    margin: 0 auto clamp(18px, 3vw, 25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.template-visual i {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--turquoise);
    margin-bottom: 12px;
}

.template-visual span {
    font-family: 'Inter', sans-serif;
    font-size: clamp(10px, 1.4vw, 12px);
    color: var(--text-light);
}

.template-features {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 18px);
    text-align: left;
}

.template-feature {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 2.5vw, 18px);
    padding: clamp(16px, 2.5vw, 20px);
    background: rgba(32, 178, 170, 0.04);
    border-radius: 14px;
}

.template-feature > i {
    width: clamp(38px, 6vw, 45px);
    height: clamp(38px, 6vw, 45px);
    background: var(--turquoise);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 2.5vw, 20px);
    flex-shrink: 0;
}

.template-feature-content h5 {
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.template-feature-content p {
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
}

/* ==============================================
   ASTUCE PAGE
   ============================================== */

.astuce-intro {
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    line-height: 2;
    color: var(--text-medium);
    margin-bottom: clamp(25px, 4vw, 35px);
    text-align: justify;
}

.methode-star {
    background: #fff;
    border-radius: 18px;
    padding: clamp(22px, 4vw, 35px);
    margin-bottom: clamp(22px, 4vw, 35px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.methode-star h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--turquoise);
    margin-bottom: clamp(18px, 3vw, 28px);
    text-align: center;
}

.star-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 2vw, 20px);
}

.star-item {
    display: flex;
    gap: clamp(12px, 2vw, 18px);
    align-items: flex-start;
    padding: clamp(14px, 2vw, 20px);
    background: rgba(32, 178, 170, 0.03);
    border-radius: 14px;
}

.star-letter {
    width: clamp(42px, 7vw, 55px);
    height: clamp(42px, 7vw, 55px);
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.35);
}

.star-content strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    color: var(--text-dark);
    margin-bottom: 4px;
}

.star-content p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.3vw, 13px);
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
}

.fiche-suivi {
    background: #fff;
    border-radius: 18px;
    padding: clamp(20px, 3vw, 30px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.fiche-suivi h4 {
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    color: var(--text-dark);
    margin-bottom: clamp(14px, 2vw, 20px);
}

.fiche-suivi h4 i {
    color: var(--turquoise);
    margin-right: 10px;
}

.suivi-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
}

.suivi-table th {
    background: var(--turquoise);
    color: #fff;
    padding: clamp(10px, 1.5vw, 14px);
    text-align: left;
    font-weight: 700;
}

.suivi-table th:first-child { border-radius: 10px 0 0 0; }
.suivi-table th:last-child { border-radius: 0 10px 0 0; }

.suivi-table td {
    padding: clamp(10px, 1.5vw, 14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-medium);
}

/* ==============================================
   DOWNLOAD PAGE
   ============================================== */

.download-page-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: clamp(30px, 5vw, 60px) clamp(25px, 5vw, 50px);
}

.download-icon-large {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    background: linear-gradient(145deg, var(--accent-dark), #073642);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--turquoise);
    font-size: clamp(32px, 7vw, 52px);
    margin-bottom: clamp(20px, 4vw, 35px);
    box-shadow: 
        0 20px 60px rgba(0, 43, 54, 0.4),
        inset 0 -8px 25px rgba(0, 0, 0, 0.2);
    border: clamp(2px, 0.4vw, 4px) solid var(--turquoise);
}

.download-title-large {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: var(--title-size);
    font-weight: 700;
    color: var(--turquoise);
    margin-bottom: 12px;
}

.download-subtitle-large {
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    color: var(--text-medium);
    margin-bottom: clamp(25px, 5vw, 45px);
    max-width: 450px;
    line-height: 1.7;
}

.download-buttons-container {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 18px);
    width: 100%;
    max-width: 380px;
}

.btn-download-main {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 20px);
    padding: clamp(16px, 3vw, 24px) clamp(20px, 4vw, 32px);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--turquoise) 100%);
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 45px rgba(32, 178, 170, 0.4);
    -webkit-tap-highlight-color: transparent;
}

.btn-download-main:hover,
.btn-download-main:active {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(32, 178, 170, 0.5);
}

.btn-download-icon {
    width: clamp(45px, 8vw, 60px);
    height: clamp(45px, 8vw, 60px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.btn-download-icon i:first-child {
    color: #fff;
    font-size: clamp(20px, 4vw, 28px);
}

.download-arrow-anim {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: clamp(9px, 1.2vw, 12px);
    color: #fff;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.btn-download-text {
    text-align: left;
}

.btn-main-text {
    display: block;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    font-weight: 700;
}

.btn-sub-text {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    margin-top: 3px;
}

.btn-download-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(14px, 2.5vw, 18px) clamp(20px, 4vw, 32px);
    background: transparent;
    border: 2px solid var(--turquoise);
    border-radius: 14px;
    color: var(--turquoise);
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-download-secondary:hover,
.btn-download-secondary:active {
    background: rgba(32, 178, 170, 0.1);
}

.epub-notice {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 16px);
    margin-top: clamp(18px, 3vw, 28px);
    padding: clamp(14px, 2.5vw, 20px) clamp(18px, 3vw, 25px);
    background: rgba(245, 158, 11, 0.08);
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.epub-notice i {
    color: #f59e0b;
    font-size: clamp(18px, 3vw, 24px);
    flex-shrink: 0;
}

.epub-notice p {
    font-family: 'Inter', sans-serif;
    font-size: var(--small-size);
    color: var(--text-medium);
    margin: 0;
    text-align: left;
    line-height: 1.6;
}

/* ==============================================
   NAVIGATION - Desktop (Side Arrows)
   ============================================== */

.btn-nav-side {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(32, 178, 170, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(32, 178, 170, 0.4);
    z-index: 600;
    -webkit-tap-highlight-color: transparent;
}

.btn-nav-side.prev { left: 20px; }
.btn-nav-side.next { right: 20px; }

.btn-nav-side:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 12px 40px rgba(32, 178, 170, 0.5);
}

.btn-nav-side:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-nav-side:disabled:hover {
    transform: translateY(-50%);
}

/* Bottom Navigation Bar (for dots) */
.book-navigation {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 500;
}

.page-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.page-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.page-dot.active {
    background: var(--turquoise);
    width: 30px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(32, 178, 170, 0.5);
}

/* Progress & Counter */
.progress-bar-reader {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    z-index: 501;
}

.progress-fill-reader {
    height: 100%;
    background: linear-gradient(90deg, var(--turquoise), var(--turquoise-dark));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.page-counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 501;
}

/* ==============================================
   MOBILE RESPONSIVE (< 1024px)
   ============================================== */

@media (max-width: 1024px) {
    /* Full screen reader */
    .book-3d-container {
        max-width: 100%;
        width: 100%;
        height: 95vh;
        max-height: none;
        padding: 10px;
    }
    
    .book-3d {
        border-radius: 0;
        box-shadow: none;
    }
    
    .book-page {
        border-radius: 0;
    }
    
    /* Hide side arrows on mobile */
    .btn-nav-side {
        display: none;
    }
    
    /* Close button - larger and thumb-friendly */
    .ebook-reader-close {
        top: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    /* Bottom navigation bar with buttons */
    .book-navigation {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
        padding: 15px 20px 25px;
        background: linear-gradient(180deg, transparent 0%, rgba(10, 21, 32, 0.95) 30%);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    /* Show mobile nav buttons */
    .btn-nav-mobile {
        display: flex;
        width: 55px;
        height: 55px;
        background: var(--turquoise);
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        box-shadow: 0 5px 20px rgba(32, 178, 170, 0.4);
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
    }
    
    .btn-nav-mobile:disabled {
        background: rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }
    
    .page-indicator {
        flex: 1;
        justify-content: center;
    }
    
    .page-dot {
        width: 8px;
        height: 8px;
    }
    
    .page-dot.active {
        width: 24px;
    }
    
    /* Progress bar repositioned */
    .progress-bar-reader {
        bottom: 85px;
    }
    
    .page-counter {
        bottom: 92px;
    }
    
    /* Page content breathing room */
    .page-content {
        padding-bottom: 110px;
    }
    
    /* Cover adjustments */
    .page-cover {
        border-radius: 0;
        padding: 40px 25px;
    }
    
    .page-cover::before {
        top: 15px; left: 15px; right: 15px; bottom: 15px;
    }
    
    .cover-start-hint {
        bottom: 100px;
    }
    
    /* STAR grid to single column */
    .star-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-content {
        padding: 25px 18px 120px;
    }
    
    .chapter-section {
        padding: 18px 15px;
    }
    
    .tip-item,
    .error-item,
    .question-item {
        flex-direction: column;
    }
    
    .tip-item {
        text-align: center;
        align-items: center;
    }
    
    .tip-icon {
        margin-bottom: 10px;
    }
    
    .tip-content {
        text-align: left;
    }
    
    .cv-header-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .cv-contact {
        justify-content: center;
    }
    
    .cv-exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lettrine {
        float: none;
        display: block;
        text-align: center;
        margin: 0 0 10px 0;
    }
    
    .section-title {
        flex-direction: column;
        text-align: center;
    }
    
    /* Navigation buttons larger */
    .btn-nav-mobile {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .book-navigation {
        padding: 12px 15px 30px;
    }
}
