/* ================================
   RESPONSIVE - PAGE DOCUMENTATION (STYLE MODERNE)
   ================================ */

/* ================================
   TABLETTES (768px - 1024px)
   ================================ */
@media (max-width: 1024px) {
    /* Doc Hero Section */
    .doc-hero {
        min-height: 65vh !important;
        padding: 2rem 0 !important;
    }
    
    .doc-hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .doc-hero h1 {
        font-size: 3rem !important;
    }
    
    .doc-hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .doc-animation {
        height: 350px !important;
        order: -1 !important;
    }
    
    /* Documentation Layout */
    .documentation {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 2rem 0 !important;
    }
    
    .doc-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        order: 1 !important;
    }
    
    .doc-content {
        order: 2 !important;
        padding: 1.5rem !important;
    }
}

/* ================================
   MOBILES ET TABLETTES (≤768px)
   ================================ */
@media (max-width: 768px) {
    /* Doc Hero Section - Style Moderne Mobile */
    .doc-hero {
        min-height: 60vh !important;
        padding: 1.5rem 0 1rem !important;
        background: #2c3e50 !important;
    }
    
    .doc-hero-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }
    
    .doc-hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        background: linear-gradient(135deg, #1abc9c, #16a085) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        margin-bottom: 1rem !important;
    }
    
    .doc-hero-subtitle {
        font-size: 1.1rem !important;
        color: #bdc3c7 !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
    }
    
    /* Hero Features - Style Chips */
    .doc-hero-features {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .doc-feature-tag {
        background: rgba(26, 188, 156, 0.15) !important;
        border: 1px solid rgba(26, 188, 156, 0.3) !important;
        color: #1abc9c !important;
        padding: 0.6rem 1rem !important;
        border-radius: 25px !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .doc-feature-tag i {
        font-size: 0.8rem !important;
    }
    
    /* Hero Buttons - Style Moderne */
    .doc-hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .doc-cta-button {
        width: 100% !important;
        max-width: 320px !important;
        padding: 1rem 1.5rem !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        transition: all 0.3s ease !important;
    }
    
    .doc-cta-button.primary {
        background: linear-gradient(135deg, #3498db, #2980b9) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
    }
    
    .doc-cta-button.secondary {
        background: rgba(149, 165, 166, 0.8) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(149, 165, 166, 0.2) !important;
    }
    
    .doc-cta-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4) !important;
    }
    
    /* Animation simplifiée sur mobile */
    .doc-animation {
        height: 250px !important;
        order: -1 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Documentation Layout Mobile */
    .documentation {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #f8f9fa !important;
    }
    
    .doc-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        order: 1 !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    
    .doc-content {
        order: 2 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    /* Table des matières - Style Chips Mobile */
    .doc-nav {
        background: white !important;
        padding: 1.5rem 1rem !important;
        border-radius: 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 1rem !important;
    }
    
    .doc-nav h3 {
        font-size: 1.3rem !important;
        color: #3498db !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        font-weight: 600 !important;
    }
    
    .doc-nav ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.8rem !important;
        justify-content: center !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .doc-nav ul li {
        margin: 0 !important;
        display: block !important;
    }
    
    .doc-nav ul li a {
        display: inline-block !important;
        background: #f8f9fa !important;
        color: #2c3e50 !important;
        padding: 0.8rem 1.2rem !important;
        border-radius: 25px !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border: 1px solid #e9ecef !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 150px !important;
    }
    
    .doc-nav ul li a:hover,
    .doc-nav ul li a.active {
        background: #3498db !important;
        color: white !important;
        border-color: #3498db !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3) !important;
    }
    
    .doc-nav ul li.doc-section {
        width: 100% !important;
        text-align: center !important;
        margin: 1rem 0 0.5rem !important;
        color: #7f8c8d !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
    }
    
    /* Bouton télécharger en bas de la nav */
    .doc-nav::after {
        content: "" !important;
        display: block !important;
        margin-top: 1.5rem !important;
        text-align: center !important;
    }
    
    /* Doc Section Content - Style Cards */
    .doc-section-content {
        background: white !important;
        margin: 0 1rem 1rem !important;
        padding: 1.5rem !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
        scroll-margin-top: 80px !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .doc-section-header {
        margin-bottom: 1.5rem !important;
        position: relative !important;
        padding-left: 1rem !important;
    }
    
    .doc-section-header::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 4px !important;
        border-radius: 2px !important;
        background: linear-gradient(135deg, #1abc9c, #16a085) !important;
    }
    
    .doc-section-header.router::before {
        background: linear-gradient(135deg, #3498db, #2980b9) !important;
    }
    
    .doc-section-header.portal::before {
        background: linear-gradient(135deg, #1abc9c, #16a085) !important;
    }
    
    .doc-section-header.config::before {
        background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    }
    
    .doc-section-header h2 {
        font-size: 1.5rem !important;
        color: #2c3e50 !important;
        margin-bottom: 0.5rem !important;
        font-weight: 700 !important;
    }
    
    .doc-section-header p {
        color: #7f8c8d !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Steps - Style Cards avec numéros colorés */
    .step-container {
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .step {
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        border-radius: 12px !important;
        padding: 1.5rem !important;
        margin-bottom: 1.2rem !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .step:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        transform: translateY(-2px) !important;
    }
    
    .step-header {
        display: flex !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    .step-number {
        width: 35px !important;
        height: 35px !important;
        background: linear-gradient(135deg, #3498db, #2980b9) !important;
        color: white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
        box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3) !important;
    }
    
    .router .step-number {
        background: linear-gradient(135deg, #3498db, #2980b9) !important;
    }
    
    .portal .step-number {
        background: linear-gradient(135deg, #1abc9c, #16a085) !important;
    }
    
    .config .step-number {
        background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    }
    
    .step h3 {
        font-size: 1.1rem !important;
        color: #2c3e50 !important;
        margin: 0 !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        flex: 1 !important;
        word-wrap: break-word !important;
    }
    
    .step-content {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .step-text {
        min-width: 100% !important;
        order: 2 !important;
        width: 100% !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
    }
    
    .step-text p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: #34495e !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word !important;
    }
    
    .step-text ul,
    .step-text ol {
        margin: 1rem 0 !important;
        padding-left: 1.2rem !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .step-text li {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
        color: #34495e !important;
        word-wrap: break-word !important;
    }
    
    .step-text li strong {
        color: #2c3e50 !important;
        font-weight: 600 !important;
    }
    
    /* Code blocks dans les steps */
    .step-text pre {
        background: #2c3e50 !important;
        color: #ecf0f1 !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        margin: 1rem 0 !important;
        overflow-x: auto !important;
        font-family: 'Courier New', monospace !important;
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .step-text pre code {
        color: #ecf0f1 !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        font-size: inherit !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }
    
    .step-text code {
        background: rgba(52, 152, 219, 0.1) !important;
        color: #2c3e50 !important;
        padding: 0.2rem 0.4rem !important;
        border-radius: 4px !important;
        font-family: 'Courier New', monospace !important;
        font-size: 0.8rem !important;
        border: 1px solid rgba(52, 152, 219, 0.2) !important;
        word-wrap: break-word !important;
        white-space: pre-wrap !important;
    }
    
    .step-image {
        min-width: 100% !important;
        order: 1 !important;
        margin-bottom: 1rem !important;
        background: white !important;
        border-radius: 8px !important;
        padding: 0.5rem !important;
        border: 1px solid #e9ecef !important;
        overflow: hidden !important;
    }
    
    .step-image img {
        width: 100% !important;
        height: auto !important;
        border-radius: 6px !important;
        max-height: 200px !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Tips and Warnings - Style Cards */
    .tip,
    .warning {
        background: white !important;
        border-radius: 10px !important;
        padding: 1.2rem !important;
        margin: 1.5rem 0 !important;
        border-left: 4px solid !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
    }
    
    .tip {
        border-left-color: #3498db !important;
        background: linear-gradient(90deg, rgba(52, 152, 219, 0.05), white) !important;
    }
    
    .warning {
        border-left-color: #f39c12 !important;
        background: linear-gradient(90deg, rgba(243, 156, 18, 0.05), white) !important;
    }
    
    .tip h4,
    .warning h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        color: #2c3e50 !important;
        font-weight: 600 !important;
        word-wrap: break-word !important;
    }
    
    .tip h4 i {
        color: #3498db !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
    }
    
    .warning h4 i {
        color: #f39c12 !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
    }
    
    .tip p,
    .warning p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: #34495e !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
    }
    
    /* Code blocks globaux */
    .doc-section-content pre {
        background: #2c3e50 !important;
        color: #ecf0f1 !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        margin: 1rem 0 !important;
        overflow-x: auto !important;
        font-family: 'Courier New', monospace !important;
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .doc-section-content code {
        background: rgba(52, 152, 219, 0.1) !important;
        color: #2c3e50 !important;
        padding: 0.2rem 0.4rem !important;
        border-radius: 4px !important;
        font-family: 'Courier New', monospace !important;
        font-size: 0.8rem !important;
        border: 1px solid rgba(52, 152, 219, 0.2) !important;
        word-wrap: break-word !important;
        white-space: pre-wrap !important;
    }
    
    .doc-section-content pre code {
        color: #ecf0f1 !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        font-size: inherit !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }
    
    /* Listes et paragraphes globaux */
    .doc-section-content p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: #34495e !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word !important;
    }
    
    .doc-section-content ul,
    .doc-section-content ol {
        margin: 1rem 0 !important;
        padding-left: 1.2rem !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .doc-section-content li {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
        color: #34495e !important;
        word-wrap: break-word !important;
    }
    
    .doc-section-content li strong {
        color: #2c3e50 !important;
        font-weight: 600 !important;
    }
    
    /* Tables responsive */
    .doc-section-content table {
        width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
        white-space: nowrap !important;
        border-collapse: collapse !important;
        margin: 1rem 0 !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }
    
    .doc-section-content table thead,
    .doc-section-content table tbody,
    .doc-section-content table tr {
        display: table !important;
        width: 100% !important;
    }
    
    .doc-section-content table th,
    .doc-section-content table td {
        padding: 0.8rem !important;
        border-bottom: 1px solid #e9ecef !important;
        text-align: left !important;
        font-size: 0.85rem !important;
        word-wrap: break-word !important;
    }
    
    .doc-section-content table th {
        background: #f8f9fa !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
    }
    
    /* Download Section - Style Cards Modernes */
    .download-section {
        margin-top: 0 !important;
    }
    
    .download-intro {
        background: linear-gradient(135deg, #ecf0f1, #bdc3c7) !important;
        border: none !important;
        border-left: 4px solid #1abc9c !important;
        border-radius: 10px !important;
        padding: 1.5rem !important;
        margin: 0 1rem 1.5rem !important;
    }
    
    .download-intro p {
        color: #2c3e50 !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }
    
    .template-options {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 0 1rem 2rem !important;
    }
    
    .template-card {
        background: white !important;
        border: 2px solid #e9ecef !important;
        border-radius: 15px !important;
        padding: 1.5rem !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .template-card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        background: linear-gradient(90deg, #1abc9c, #3498db) !important;
    }
    
    .template-card:hover {
        border-color: #1abc9c !important;
        box-shadow: 0 8px 25px rgba(26, 188, 156, 0.15) !important;
        transform: translateY(-3px) !important;
    }
    
    .template-icon {
        width: 70px !important;
        height: 70px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 1.2rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
    
    .template-icon.voucher {
        background: linear-gradient(135deg, #1abc9c, #16a085) !important;
    }
    
    .template-icon.non-voucher {
        background: linear-gradient(135deg, #3498db, #2980b9) !important;
    }
    
    .template-icon i {
        font-size: 1.8rem !important;
        color: white !important;
    }
    
    .template-card h3 {
        font-size: 1.3rem !important;
        color: #2c3e50 !important;
        margin-bottom: 1rem !important;
        font-weight: 700 !important;
    }
    
    .template-card p {
        color: #7f8c8d !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.2rem !important;
    }
    
    .template-features {
        list-style: none !important;
        text-align: left !important;
        margin: 1.2rem 0 !important;
        padding: 0 !important;
    }
    
    .template-features li {
        display: flex !important;
        align-items: center !important;
        gap: 0.8rem !important;
        margin-bottom: 0.8rem !important;
        font-size: 0.85rem !important;
        color: #34495e !important;
    }
    
    .template-features li i {
        color: #1abc9c !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }
    
    .btn-download {
        background: linear-gradient(135deg, #1abc9c, #16a085) !important;
        color: white !important;
        text-decoration: none !important;
        padding: 1rem 1.5rem !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        transition: all 0.3s ease !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3) !important;
    }
    
    .btn-download:hover {
        background: linear-gradient(135deg, #16a085, #138f7a) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4) !important;
        color: white !important;
        text-decoration: none !important;
    }
    
    /* Installation Guide - Style Cards */
    .installation-guide {
        background: white !important;
        border-radius: 15px !important;
        padding: 1.5rem !important;
        margin: 0 1rem 2rem !important;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
    }
    
    .guide-header {
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    .guide-header h3 {
        color: #3498db !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
    }
    
    .guide-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .step-mini {
        display: flex !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1rem !important;
        background: #f8f9fa !important;
        border-radius: 10px !important;
        border: 1px solid #e9ecef !important;
        transition: all 0.3s ease !important;
    }
    
    .step-mini:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
        transform: translateY(-1px) !important;
    }
    
    .step-mini-number {
        width: 30px !important;
        height: 30px !important;
        background: linear-gradient(135deg, #3498db, #2980b9) !important;
        color: white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
    }
    
    .step-mini-content {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        color: #34495e !important;
    }
    
    .step-mini-content strong {
        color: #2c3e50 !important;
        font-weight: 600 !important;
    }
    
    /* Important Info - Style Cards */
    .important-info {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 0 1rem 2rem !important;
    }
    
    .info-box {
        background: white !important;
        padding: 1.2rem !important;
        border-radius: 10px !important;
        border-left: 4px solid !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
    
    .info-box.warning {
        border-left-color: #f39c12 !important;
        background: linear-gradient(90deg, rgba(243, 156, 18, 0.05), white) !important;
    }
    
    .info-box.tip {
        border-left-color: #3498db !important;
        background: linear-gradient(90deg, rgba(52, 152, 219, 0.05), white) !important;
    }
    
    .info-box h4 {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
        font-size: 1rem !important;
        color: #2c3e50 !important;
        font-weight: 600 !important;
    }
    
    .info-box.warning h4 i {
        color: #f39c12 !important;
    }
    
    .info-box.tip h4 i {
        color: #3498db !important;
    }
    
    .info-box p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        color: #34495e !important;
        margin-bottom: 0.5rem !important;
    }
    
    .info-box code {
        background: rgba(52, 152, 219, 0.1) !important;
        color: #2c3e50 !important;
        padding: 0.3rem 0.6rem !important;
        border-radius: 6px !important;
        font-family: monospace !important;
        font-size: 0.8rem !important;
        display: block !important;
        margin: 0.8rem 0 !important;
        word-break: break-all !important;
        border: 1px solid rgba(52, 152, 219, 0.2) !important;
    }
    
    .info-box a {
        color: #3498db !important;
        font-weight: 500 !important;
        text-decoration: none !important;
    }
    
    .info-box a:hover {
        text-decoration: underline !important;
    }
}

/* ================================
   TRÈS PETITS ÉCRANS (≤480px)
   ================================ */
@media (max-width: 480px) {
    /* Doc Hero */
    .doc-hero {
        min-height: 55vh !important;
        padding: 1rem 0 0.8rem !important;
    }
    
    .doc-hero h1 {
        font-size: 2rem !important;
    }
    
    .doc-hero-subtitle {
        font-size: 1rem !important;
    }
    
    .doc-feature-tag {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.8rem !important;
    }
    
    .doc-cta-button {
        padding: 0.9rem 1.2rem !important;
        font-size: 0.9rem !important;
        max-width: 280px !important;
    }
    
    /* Navigation chips plus petites */
    .doc-nav {
        padding: 1rem 0.8rem !important;
    }
    
    .doc-nav h3 {
        font-size: 1.2rem !important;
    }
    
    .doc-nav ul li a {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        max-width: 120px !important;
    }
    
    /* Sections plus compactes */
    .doc-section-content {
        margin: 0 0.8rem 1rem !important;
        padding: 1.2rem !important;
    }
    
    .doc-section-header h2 {
        font-size: 1.3rem !important;
    }
    
    .step {
        padding: 1.2rem !important;
    }
    
    .step-number {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
    
    .step h3 {
        font-size: 1rem !important;
    }
    
    /* Download section */
    .download-intro {
        margin: 0 0.8rem 1.2rem !important;
        padding: 1.2rem !important;
    }
    
    .template-options {
        margin: 0 0.8rem 1.5rem !important;
    }
    
    .template-card {
        padding: 1.2rem !important;
    }
    
    .template-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .template-icon i {
        font-size: 1.5rem !important;
    }
    
    .template-card h3 {
        font-size: 1.2rem !important;
    }
    
    .btn-download {
        padding: 0.9rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Installation guide */
    .installation-guide {
        margin: 0 0.8rem 1.5rem !important;
        padding: 1.2rem !important;
    }
    
    .step-mini {
        padding: 0.8rem !important;
    }
    
    .step-mini-number {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.8rem !important;
    }
    
    .step-mini-content {
        font-size: 0.8rem !important;
    }
    
    /* Info boxes */
    .important-info {
        margin: 0 0.8rem 1.5rem !important;
    }
    
    .info-box {
        padding: 1rem !important;
    }
    
    .info-box h4 {
        font-size: 0.9rem !important;
    }
    
    .info-box p {
        font-size: 0.8rem !important;
    }
    
    .info-box code {
        font-size: 0.75rem !important;
    }
}

/* ================================
   ANIMATIONS OPTIMISÉES MOBILE
   ================================ */
@media (max-width: 768px) {
    /* Simplifier les animations */
    .doc-particle {
        animation-duration: 8s !important;
        opacity: 0.3 !important;
    }
    
    .floating-page,
    .tech-icon,
    .connection-line {
        display: none !important;
    }
    
    .book {
        animation: bookFloat 4s ease-in-out infinite !important;
    }
    
    .doc-feature-tag {
        animation: none !important;
    }
    
    /* Hover effects adaptés */
    .template-card:hover,
    .step:hover,
    .step-mini:hover {
        transform: translateY(-1px) !important;
    }
}

/* ================================
   AMÉLIORATION TOUCH MOBILE
   ================================ */
@media (max-width: 768px) {
    /* Zones de touch 44px minimum */
    .doc-cta-button,
    .btn-download,
    .doc-nav ul li a {
        min-height: 44px !important;
        touch-action: manipulation !important;
    }
    
    /* Scroll optimisé */
    .doc-nav {
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Désactiver le zoom sur double-tap */
    .doc-hero-features,
    .doc-hero-buttons,
    .template-options,
    .guide-content {
        touch-action: manipulation !important;
    }
}

/* ================================
   DOC HERO SECTION - HAUTEUR TRÈS RÉDUITE
   ================================ */

/* Desktop - Hauteur réduite */
.doc-hero {
    min-height: 75vh !important; /* Réduit de 85vh à 75vh */
    padding: 3rem 0 !important;
}

/* Large tablets et petits laptops */
@media (max-width: 1200px) {
    .doc-hero {
        min-height: 65vh !important; /* Réduit encore plus */
        padding: 2rem 0 !important;
    }
    
    .doc-hero-content {
        gap: 2rem !important; /* Réduit l'espace entre les colonnes */
    }
    
    .doc-hero h1 {
        font-size: 3rem !important; /* Réduction de la taille du titre */
        margin-bottom: 1.2rem !important;
    }
    
    .doc-hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Tablettes */
@media (max-width: 1024px) {
    .doc-hero {
        min-height: 60vh !important; /* Encore plus compact */
        padding: 1.8rem 0 !important;
    }
    
    .doc-hero-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .doc-hero h1 {
        font-size: 2.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .doc-hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .doc-hero-features {
        margin: 1.2rem 0 !important; /* Réduction des marges */
        gap: 0.8rem !important;
    }
    
    .doc-hero-buttons {
        margin-top: 1.5rem !important;
    }
    
    .doc-animation {
        height: 300px !important; /* Réduction de l'animation */
        order: -1 !important;
    }
}

/* Mobile large */
@media (max-width: 768px) {
    .doc-hero {
        min-height: 55vh !important; /* Hauteur très réduite sur mobile */
        padding: 1.5rem 0 1rem !important;
    }
    
    .doc-hero-content {
        gap: 1.2rem !important;
        padding: 0 1rem !important;
    }
    
    .doc-hero h1 {
        font-size: 2.2rem !important; /* Titre plus compact */
        margin-bottom: 0.8rem !important;
        line-height: 1.1 !important;
    }
    
    .doc-hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .doc-hero-features {
        margin: 1rem 0 !important;
        gap: 0.6rem !important;
        justify-content: center !important;
    }
    
    .doc-feature-tag {
        padding: 0.5rem 0.8rem !important; /* Tags plus compacts */
        font-size: 0.8rem !important;
    }
    
    .doc-hero-buttons {
        margin-top: 1.2rem !important;
        gap: 0.8rem !important;
    }
    
    .doc-cta-button {
        padding: 0.8rem 1.2rem !important; /* Boutons plus compacts */
        font-size: 0.9rem !important;
        max-width: 280px !important;
    }
    
    .doc-animation {
        height: 220px !important; /* Animation encore plus petite */
        margin-bottom: 0.5rem !important;
    }
    
    /* Réduction des éléments d'animation */
    .book-container {
        width: 80px !important;
        height: 100px !important;
    }
    
    .book-icon {
        font-size: 2rem !important;
    }
}

/* Mobile standard */
@media (max-width: 480px) {
    .doc-hero {
        min-height: 50vh !important; /* Hauteur minimale */
        padding: 1.2rem 0 0.8rem !important;
    }
    
    .doc-hero h1 {
        font-size: 1.9rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .doc-hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .doc-hero-features {
        margin: 0.8rem 0 !important;
        gap: 0.5rem !important;
    }
    
    .doc-feature-tag {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.75rem !important;
    }
    
    .doc-hero-buttons {
        margin-top: 1rem !important;
    }
    
    .doc-cta-button {
        padding: 0.7rem 1rem !important;
        font-size: 0.85rem !important;
        max-width: 260px !important;
    }
    
    .doc-animation {
        height: 180px !important;
    }
    
    .book-container {
        width: 70px !important;
        height: 90px !important;
    }
    
    .book-icon {
        font-size: 1.8rem !important;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .doc-hero {
        min-height: 45vh !important; /* Hauteur ultra-compacte */
        padding: 1rem 0 0.6rem !important;
    }
    
    .doc-hero h1 {
        font-size: 1.7rem !important;
    }
    
    .doc-hero-subtitle {
        font-size: 0.85rem !important;
    }
    
    .doc-animation {
        height: 150px !important;
    }
}

/* ================================
   OPTIMISATIONS COMPLÉMENTAIRES DOCUMENTATION
   ================================ */

/* Réduction de l'espace vertical des particules */
@media (max-width: 768px) {
    .doc-particles {
        height: 50% !important; /* Moins de particules visibles */
    }
    
    .doc-particle {
        animation-duration: 4s !important; /* Animation plus rapide */
        opacity: 0.4 !important; /* Moins visible */
    }
}

/* Compactage du contenu hero documentation */
@media (max-width: 1024px) {
    .doc-hero::before {
        opacity: 0.5 !important; /* Réduction de l'intensité du background */
    }
    
    .doc-hero-content {
        align-items: flex-start !important; /* Alignement en haut */
        padding-top: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .doc-hero-content {
        padding-top: 1rem !important;
        gap: 1rem !important;
    }
    
    .doc-hero-text {
        animation-duration: 0.6s !important; /* Animation plus rapide */
    }
    
    /* Simplification des animations sur mobile */
    .floating-page,
    .tech-icon,
    .connection-line {
        display: none !important; /* Cache les éléments d'animation complexes */
    }
    
    .book {
        animation-duration: 3s !important; /* Animation plus simple */
    }
}

/* Ajustement de la section suivante pour éviter les espaces */
@media (max-width: 768px) {
    .documentation {
        margin-top: 20px !important; /* Rapproche la section suivante */
    }
}

/* Version alternative pour hero documentation ultra-compact (optionnel) */
@media (max-width: 768px) {
    .doc-hero.ultra-compact {
        min-height: 40vh !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .doc-hero.ultra-compact .doc-animation {
        display: none !important; /* Cache totalement l'animation */
    }
    
    .doc-hero.ultra-compact .doc-hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 0.8rem !important;
        padding-top: 0 !important;
        margin-top: 65px !important; /* Ajustement pour header plus petit */
    }
    
    .doc-hero.ultra-compact .doc-hero-features {
        margin: 0.8rem 0 !important;
    }
    
    .doc-hero.ultra-compact .doc-hero-buttons {
        margin-top: 1rem !important;
    }
}

/* ================================
   NAVIGATION STICKY AJUSTÉE
   ================================ */

/* Ajustement du scroll-margin pour la navigation réduite */
@media (max-width: 768px) {
    .doc-section-content {
        scroll-margin-top: 60px !important; /* Ajustement pour header plus petit */
    }
}

/* ================================
   ANIMATIONS DÉSACTIVÉES SUR MOBILE POUR PERFORMANCE
   ================================ */
@media (max-width: 768px) {
    .doc-particle,
    .floating-page,
    .tech-icon,
    .connection-line {
        animation-play-state: paused !important; /* Pause les animations complexes */
    }
    
    .book {
        animation-iteration-count: 1 !important; /* Une seule itération */
    }
    
    .doc-feature-tag {
        animation: none !important; /* Supprime l'animation des tags */
    }
}