/* ==========================================================================
   DG LIB — DESIGN SYSTEM & FEUILLE DE STYLE MODERNE
   ========================================================================== */

:root {
    --bg-main: #0B0F19;
    --bg-secondary: #0F172A;
    --surface: #151F33;
    --surface-hover: #1A2740;
    --surface-card: #131C2E;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
    
    --color-movies: #F43F5E;
    --color-movies-glow: rgba(244, 63, 94, 0.25);
    --color-games: #A855F7;
    --color-games-glow: rgba(168, 85, 247, 0.25);
    --color-books: #10B981;
    --color-books-glow: rgba(16, 185, 129, 0.25);
    --color-boardgames: #F59E0B;
    --color-boardgames-glow: rgba(245, 158, 11, 0.25);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px -10px var(--primary-glow);
}

/* RESET ET BASES */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

/* TYPOGRAPHIE & EFFETS */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary-light);
}

.version-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-cta {
    padding: 10px 22px;
    font-size: 14px;
}

/* BOUTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-app {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-app:hover {
    background: #1F2937;
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-app-icon {
    font-size: 24px;
}

.btn-app-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.btn-app-sub {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.btn-app-title {
    font-size: 15px;
    font-weight: 700;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 90px 0 120px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(11, 15, 25, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.proof-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

/* SMARTPHONE MOCKUP */
.hero-mockup-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #000000;
    border-radius: 44px;
    border: 8px solid #1E293B;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.25);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #111;
    border-radius: 20px;
    z-index: 100;
}

.phone-screen {
    flex: 1;
    background: #0B0F19;
    padding: 44px 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.mockup-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.mockup-app-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.mockup-badge {
    font-size: 9px;
    padding: 2px 6px;
    background: var(--color-movies);
    color: white;
    border-radius: 4px;
    font-weight: 700;
}

.mockup-hero-media {
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.15) 0%, rgba(21, 31, 51, 0.8) 100%);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    gap: 10px;
}

.mockup-poster {
    width: 55px;
    height: 80px;
    border-radius: 6px;
    background: #334155;
    background-size: cover;
    background-position: center;
}

.mockup-media-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.mockup-media-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.mockup-media-meta {
    font-size: 10px;
    color: var(--text-secondary);
}

.mockup-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #FBBF24;
    font-weight: 700;
}

.mockup-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mockup-card-item {
    aspect-ratio: 2/3;
    border-radius: 6px;
    background: #1E293B;
    position: relative;
    overflow: hidden;
}

.mockup-card-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.mockup-floating-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: rgba(21, 31, 51, 0.95);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
}

.mockup-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #10B981;
}

.mockup-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
}

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

/* SECTION TITLES */
.section {
    padding: 90px 0;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 38px;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* LES 4 UNIVERS */
.universes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.universe-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.universe-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-accent);
    box-shadow: 0 15px 35px -10px var(--card-glow);
}

.universe-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.universe-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.universe-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.universe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.u-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

/* SECTION MIGRATION */
.migration-box {
    background: linear-gradient(145deg, #10172A 0%, #151F33 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 50px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.migration-info h3 {
    font-size: 32px;
    margin-bottom: 14px;
}

.migration-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.migration-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.importer-tile {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
}

.importer-tile:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.importer-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.importer-meta h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.importer-meta span {
    font-size: 11px;
    color: var(--text-muted);
}

/* SECTION FONCTIONNALITÉS CULTES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.feature-icon-badge {
    font-size: 26px;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* SECTION TÉLÉCHARGEMENT FINAL */
.download-cta-section {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    text-align: center;
    padding: 100px 0;
}

.download-cta-card {
    background: linear-gradient(180deg, #151F33 0%, #0F172A 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 32px;
    padding: 60px 40px;
    box-shadow: var(--shadow-glow);
    max-width: 900px;
    margin: 0 auto;
}

.download-cta-card h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.download-cta-card p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 36px auto;
}

.download-buttons-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

/* FOOTER */
.footer {
    background-color: #070A12;
    border-top: 1px solid var(--border);
    padding: 70px 0 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 360px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.footer-col-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* PAGES LÉGALES & CONTACT */
.legal-page {
    padding: 60px 0 100px 0;
}

.legal-header {
    margin-bottom: 40px;
    text-align: center;
}

.legal-title {
    font-size: 38px;
    margin-bottom: 12px;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 860px;
    margin: 0 auto;
}

.legal-card h2 {
    font-size: 22px;
    margin: 30px 0 12px 0;
    color: var(--primary-light);
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card p, .legal-card ul {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-card ul {
    padding-left: 24px;
}

.legal-card li {
    margin-bottom: 8px;
}

/* FAQ ACCORDIONS / ITEMS */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question::before {
    content: '✦';
    color: var(--primary-light);
    font-size: 14px;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ALERTS */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
}

/* FORMULAIRE DE CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input, .form-textarea {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-light);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

/* BURGER MENU RESPONSIVE */
.nav-toggle {
    display: none !important;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text-primary);
    height: 2px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

.nav-backdrop {
    display: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .nav-toggle-label {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: #0F172A;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 22px;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        border-left: 1px solid var(--border);
        z-index: 1050;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-toggle:checked ~ .nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1040;
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        bottom: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-proof {
        justify-content: center;
    }

    .migration-box {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0 80px 0;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }

    .btn-app {
        width: 100%;
        max-width: 280px;
    }

    .hero-proof {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .phone-mockup {
        width: 270px;
        height: 520px;
        max-width: 90vw;
    }

    .mockup-floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        width: 90%;
        max-width: 260px;
        animation: none;
        padding: 10px 14px;
    }

    .mockup-floating-card .mockup-stat-num {
        font-size: 17px;
    }

    .mockup-floating-card .mockup-stat-label {
        font-size: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .universes-grid {
        grid-template-columns: 1fr;
    }

    .migration-box {
        padding: 28px 18px;
    }

    .migration-logos-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-cta-card {
        padding: 36px 18px;
    }

    .download-cta-card h2 {
        font-size: 28px;
    }

    .download-buttons-row {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   PAGE PROCÉDURE EXTENSION NAVIGATEUR & BANC D'ESSAI
   ========================================================================== */
.ext-guide-hero {
    text-align: center;
    padding: 40px 0 30px 0;
    max-width: 860px;
    margin: 0 auto;
}

.ext-guide-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #818CF8;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.ext-guide-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.ext-guide-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* TABS NAV */
.ext-tabs-container {
    max-width: 960px;
    margin: 0 auto 50px auto;
}

.ext-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ext-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ext-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.4);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.ext-tab-btn.active {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 20px -4px rgba(99, 102, 241, 0.5);
}

.ext-tab-btn .tab-icon {
    font-size: 18px;
}

.ext-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ext-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* STEP CARDS */
.ext-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ext-step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    position: relative;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.ext-step-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.ext-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ext-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.ext-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.ext-step-body {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    padding-left: 54px;
}

.ext-step-body p {
    margin-bottom: 12px;
}

.ext-step-body p:last-child {
    margin-bottom: 0;
}

kbd {
    display: inline-block;
    padding: 2px 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #E2E8F0;
    background-color: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    vertical-align: middle;
}

/* CODE BOXES WITH COPY BUTTON */
.code-box-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: #A5B4FC;
}

.code-box-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #060911;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin: 12px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    color: #E0E7FF;
    overflow-x: auto;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: transparent;
}

/* PLATFORMS BADGES */
.platforms-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.platforms-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.platforms-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.platforms-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.platform-pill:hover {
    transform: translateY(-2px);
}

.platform-pill.netflix { border-color: rgba(229, 9, 20, 0.4); color: #FF5A5F; }
.platform-pill.prime { border-color: rgba(0, 168, 225, 0.4); color: #00A8E1; }
.platform-pill.disney { border-color: rgba(17, 60, 207, 0.4); color: #4384F5; }
.platform-pill.apple { border-color: rgba(255, 255, 255, 0.3); color: #E2E8F0; }
.platform-pill.canal { border-color: rgba(255, 215, 0, 0.4); color: #F59E0B; }
.platform-pill.crunchyroll { border-color: rgba(244, 117, 33, 0.4); color: #F97316; }

/* API TESTER SANDBOX */
.api-tester-card {
    background: #080D1A;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
    margin-top: 40px;
}

.api-tester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.api-tester-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-tester-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tester-btn {
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tester-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #FFFFFF;
}

.api-console-view {
    background: #030509;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: #94A3B8;
    min-height: 120px;
    max-height: 320px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.5;
}

.api-console-view.success {
    color: #34D399;
}

.api-console-view.error {
    color: #F87171;
}

@media (max-width: 768px) {
    .ext-guide-hero h1 {
        font-size: 30px;
    }
    .ext-step-card {
        padding: 20px;
    }
    .ext-step-body {
        padding-left: 0;
        margin-top: 12px;
    }
    .code-box-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .copy-btn {
        width: 100%;
        text-align: center;
    }
}