/* ========================================
   a_propos.html
   ======================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE À PROPOS - STYLES INTÉGRÉS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────── */
/* CONTENEUR PRINCIPAL */
/* ─────────────────────────────────────────────────────────────────────────── */

.page-apropos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}



/* ─────────────────────────────────────────────────────────────────────────── */
/* SECTIONS */
/* ─────────────────────────────────────────────────────────────────────────── */

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #0066cc;
    display: flex;
    align-items: center;
    gap: 1rem;
}



/* ─────────────────────────────────────────────────────────────────────────── */
/* CARTES MISSION & VISION */
/* ─────────────────────────────────────────────────────────────────────────── */

.mission-vision-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-card,
.vision-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #0066cc;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.15);
}

.card-icon {
   
    color: #0066cc;
    margin-bottom: 1.5rem;
    display: block;
}

.card-title {
    
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.mission-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #28a745;
    font-weight: bold;
  
}

.vision-text {
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* FORMATIONS */
/* ─────────────────────────────────────────────────────────────────────────── */

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.formation-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.formation-card:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-left-color: #dc3545;
}

.formation-icon {

    color: #0066cc;
    margin-bottom: 1rem;
    display: block;
}

.formation-title {
   
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.formation-desc {
    color: #6c757d;
    line-height: 1.6;

}

/* ─────────────────────────────────────────────────────────────────────────── */
/* INFRASTRUCTURES */
/* ─────────────────────────────────────────────────────────────────────────── */

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.infra-badge {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 500;
}

.infra-badge:hover {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.infra-badge i {
    
    display: block;
    margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* VALEURS */
/* ─────────────────────────────────────────────────────────────────────────── */

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.valeur-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.valeur-card:hover {
    transform: translateY(-10px);
}

.valeur-icon {
  
    color: #0066cc;
    margin-bottom: 1rem;
    display: block;
}


/* ─────────────────────────────────────────────────────────────────────────── */
/* CONTACT CTA */
/* ─────────────────────────────────────────────────────────────────────────── */

.contact-cta {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.2);
}

.contact-cta h3 {

    margin-bottom: 1rem;
}

.contact-cta p {
 
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  
    
    .mission-vision-row,
    .formations-grid,
    .infra-grid,
    .valeurs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cta {
        padding: 2rem 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* MODE SOMBRE */
/* ─────────────────────────────────────────────────────────────────────────── */

/* Mode sombre (ex-@media prefers-color-scheme : le choix de
   l'utilisateur prime désormais, cf. static/js/theme-init.js) */
body.dark-mode .mission-card,
body.dark-mode .vision-card,
body.dark-mode .infra-badge {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .formation-card {
    background-color: #2a2a2a;
}

body.dark-mode .formation-card:hover {
    background-color: #333;
}

body.dark-mode .card-title,
body.dark-mode .formation-title,
body.dark-mode .valeur-title {
    color: #f0f0f0;
}

body.dark-mode .mission-list li,
body.dark-mode .vision-text,
body.dark-mode .formation-desc,
body.dark-mode .valeur-text {
    color: #c0c0c0;
}

body.dark-mode .infra-badge:hover {
    background-color: #0066cc;
    color: white;
}


/* ─────────────────────────────────────────────────────────────────────────── */
/* RTL (RIGHT-TO-LEFT) */
/* ─────────────────────────────────────────────────────────────────────────── */

[dir="rtl"] .section-title {
   left: auto;
    right: 0;
}

[dir="rtl"] .mission-card,
[dir="rtl"] .formation-card {
    border-left: none;
    border-right: 5px solid #0066cc;
}

[dir="rtl"] .mission-list li {
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .mission-list li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .formation-card:hover {
    border-left-color: transparent;
    border-right-color: #dc3545;
}

/* ========================================
   mentions_legales.html
   ======================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE MENTIONS LÉGALES - VERSION DÉROULANTE AVEC SOMMAIRE FIXE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────── */
/* CONTENEUR PRINCIPAL */
/* ─────────────────────────────────────────────────────────────────────────── */

.page-legales {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legales-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* EN-TÊTE */
/* ─────────────────────────────────────────────────────────────────────────── */

.legales-header {
    text-align: center;
    padding: 2.5rem 0;
    margin-bottom: 3rem;
    border-bottom: 3px solid #0066cc;
    grid-column: 1 / -1;
}

.legales-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 1rem;
}

.legales-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.legales-header i {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* SOMMAIRE FIXE (SIDEBAR) */
/* ─────────────────────────────────────────────────────────────────────────── */

.legal-sidebar {
    position: sticky;
    top: 100px;
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0066cc;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.legal-sidebar h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-sidebar ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.legal-sidebar li {
    counter-increment: toc-counter;
    margin-bottom: 0.75rem;
}

.legal-sidebar a {
    display: block;
    color: #495057;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-left: 2.5rem;
}

.legal-sidebar a::before {
    content: counter(toc-counter);
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #dee2e6;
    color: #495057;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.legal-sidebar a:hover {
    background: #e7f3ff;
    color: #0066cc;
    padding-left: 2.75rem;
}

.legal-sidebar a:hover::before {
    background: #0066cc;
    color: white;
}

.legal-sidebar a.active {
    background: #0066cc;
    color: white;
    font-weight: 600;
}

.legal-sidebar a.active::before {
    background: white;
    color: #0066cc;
}

/* Scrollbar personnalisée pour le sommaire */
.legal-sidebar::-webkit-scrollbar {
    width: 6px;
}

.legal-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.legal-sidebar::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* CONTENU PRINCIPAL */
/* ─────────────────────────────────────────────────────────────────────────── */

.legal-main-content {
    min-width: 0;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* SECTIONS */
/* ─────────────────────────────────────────────────────────────────────────── */

.legal-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    border-left: 4px solid #0066cc;
    scroll-margin-top: 120px;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}



.legal-section h3 {

    font-weight: 600;
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content {
    color: #555;
    line-height: 1.8;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content strong {
    color: #212529;
    font-weight: 600;
}

.legal-content a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-content a:hover {
    border-bottom-color: #0066cc;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* LISTES */
/* ─────────────────────────────────────────────────────────────────────────── */

.legal-list {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-list li {
    padding: 0.75rem 0;
    line-height: 1.7;
    color: #555;
    position: relative;
}

.legal-list li::marker {
    color: #0066cc;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* ALERTES ET HIGHLIGHTS */
/* ─────────────────────────────────────────────────────────────────────────── */

.legal-alert {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.legal-alert i {
    color: #0066cc;
    margin-right: 0.75rem;
  
}

.legal-highlight {
    background: #f8f9fa;
    padding: 1.75rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #dee2e6;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* FOOTER INFO */
/* ─────────────────────────────────────────────────────────────────────────── */

.legal-footer {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.2);
}

.legal-footer i {
    margin-bottom: 1rem;
}

.legal-footer h3 {
    margin-bottom: 1rem;
}

.legal-footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-footer a:hover {
    border-bottom-color: white;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* BOUTON RETOUR EN HAUT */
/* ─────────────────────────────────────────────────────────────────────────── */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #0052a3;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}



/* ─────────────────────────────────────────────────────────────────────────── */
/* INDICATEUR DE PROGRESSION */
/* ─────────────────────────────────────────────────────────────────────────── */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, #0066cc, #00c6ff);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE - TABLETTE ET MOBILE */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
    .legales-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        margin-bottom: 2rem;
    }
    
    .legal-sidebar ol {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .legales-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-section {
        padding: 1.75rem;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
    
    .page-legales {
        padding: 1rem 0.5rem;
    }
    
    .legal-sidebar ol {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar a {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        padding-left: 2.25rem;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* MODE SOMBRE */
/* ─────────────────────────────────────────────────────────────────────────── */

/* Mode sombre (ex-@media prefers-color-scheme : le choix de
   l'utilisateur prime désormais, cf. static/js/theme-init.js) */
body.dark-mode .legal-section {
    background-color: #2a2a2a;
    border-color: #0066cc;
}

body.dark-mode .legal-sidebar {
    background-color: #2a2a2a;
    border-color: #0066cc;
}

body.dark-mode .legal-sidebar a {
    color: #c0c0c0;
}

body.dark-mode .legal-sidebar a::before {
    background: #444;
    color: #c0c0c0;
}

body.dark-mode .legal-sidebar a:hover {
    background: #1a3a52;
    color: #6da3ff;
}

body.dark-mode .legal-sidebar a.active {
    background: #0066cc;
    color: white;
}

body.dark-mode .legal-section h2,
body.dark-mode .legal-section h3,
body.dark-mode .legal-sidebar h3 {
    color: #6da3ff;
}

body.dark-mode .legal-content,
body.dark-mode .legal-content p,
body.dark-mode .legal-list li {
    color: #c0c0c0;
}

body.dark-mode .legal-content strong {
    color: #f0f0f0;
}

body.dark-mode .legal-content a {
    color: #6da3ff;
}

body.dark-mode .legal-alert {
    background-color: #1a3a52;
    border-color: #0066cc;
    color: #c0c0c0;
}

body.dark-mode .legal-highlight {
    background-color: #333;
    color: #c0c0c0;
    border-color: #444;
}


/* ─────────────────────────────────────────────────────────────────────────── */
/* RTL (RIGHT-TO-LEFT) */
/* ─────────────────────────────────────────────────────────────────────────── */

[dir="rtl"] .legales-container {
    direction: rtl;
}

[dir="rtl"] .legal-sidebar {
    border-left: none;
    border-right: 4px solid #0066cc;
}

[dir="rtl"] .legal-section {
    border-left: none;
    border-right: 4px solid #0066cc;
}

/* CORRECTION IMPORTANTE : Titres h2 avec icônes */
[dir="rtl"] .legal-section h2 {
    flex-direction: auto;
    text-align: right;
}

[dir="rtl"] .legal-section h2 i {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .legal-section h2 span {
    text-align: right;
    direction: rtl;
}

/* Sous-titres h3 */
[dir="rtl"] .legal-section h3 {
    text-align: right;
    direction: rtl;
}

/* Contenu */
[dir="rtl"] .legal-content {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .legal-content p,
[dir="rtl"] .legal-content strong,
[dir="rtl"] .legal-content a {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .legal-alert {
    border-left: none;
    border-right: 4px solid #0066cc;
    text-align: right;
}

[dir="rtl"] .legal-alert i {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .legal-highlight {
    text-align: right;
}

[dir="rtl"] .legal-list {
    padding-left: 0;
    padding-right: 2rem;
    text-align: right;
}

[dir="rtl"] .legal-list li {
    text-align: right;
    direction: rtl;
}

/* Sommaire sidebar */
[dir="rtl"] .legal-sidebar h3 {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .legal-sidebar h3 i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .legal-sidebar a {
    padding-left: 1rem;
    padding-right: 2.5rem;
    text-align: right;
}

[dir="rtl"] .legal-sidebar a::before {
    left: auto;
    right: 0.75rem;
}

[dir="rtl"] .legal-sidebar a:hover {
    padding-left: 1rem;
    padding-right: 2.75rem;
}

/* Footer */
[dir="rtl"] .legal-footer {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .legal-footer h3,
[dir="rtl"] .legal-footer p {
    text-align: right;
}

/* Bouton retour en haut */
[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    [dir="rtl"] .back-to-top {
        left: 20px;
    }
}

/* ========================================
   en_developpement.html
   ======================================== */

/* ══════════════════════════════════════════════════════════════ */
/* PAGE EN DÉVELOPPEMENT - COULEURS ENS-NDJ */
/* Variables de couleurs cohérentes avec main.core.css */
/* ══════════════════════════════════════════════════════════════ */

:root {
    /* Couleurs institutionnelles ENS-NDJ */
    --ens-primary: #1e3a8a;        /* Bleu institutionnel */
    --ens-primary-light: #3b82f6;  /* Bleu clair */
    --ens-primary-dark: #1e40af;   /* Bleu foncé */
    
    --ens-secondary: #059669;      /* Vert académique */
    --ens-secondary-light: #10b981;
    
    --ens-accent: #f59e0b;         /* Orange/Jaune Tchad */
    --ens-accent-light: #fbbf24;
    
    --ens-text: #1f2937;           /* Texte principal */
    --ens-text-light: #6b7280;     /* Texte secondaire */
    
    --ens-bg: #ffffff;
    --ens-bg-light: #f9fafb;
    --ens-bg-gray: #f3f4f6;
    
    --ens-border: #e5e7eb;
    --ens-shadow: rgba(0, 0, 0, 0.1);
}

.dev-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ens-primary) 0%, var(--ens-primary-dark) 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Motif de fond subtil */
.dev-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    pointer-events: none;
}

/* Cercles décoratifs */
.dev-page::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(21, 42, 3, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.dev-container {
    max-width: 700px;
    width: 100%;
    background: var(--ens-bg);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Badge "Bientôt" */
.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ens-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

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

.dev-badge i {
    font-size: 1rem;
}

/* Icône principale */
.dev-icon {
    font-size: 4.5rem;
    color: var(--ens-primary);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

/* Titre */
.dev-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ens-text);
    margin-bottom: 15px;
    line-height: 1.3;
}

.dev-title-highlight {
    color: var(--ens-primary);
    position: relative;
}

.dev-title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ens-primary), var(--ens-secondary));
    border-radius: 2px;
}

/* Sous-titre */
.dev-subtitle {
    font-size: 1.05rem;
    color: var(--ens-text-light);
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Encadré communauté */
.dev-community-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid var(--ens-accent);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.dev-community-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ens-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dev-community-title i {
    font-size: 1.4rem;
    color: var(--ens-accent);
}

.dev-community-text {
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Bénéfices */
.dev-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 35px;
    text-align: left;
}

.dev-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--ens-bg-light);
    border: 1px solid var(--ens-border);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dev-benefit:hover {
    background: white;
    border-color: var(--ens-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--ens-shadow);
}

.dev-benefit-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ens-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.95rem;
}

.dev-benefit:nth-child(2) .dev-benefit-icon {
    background: var(--ens-secondary);
}

.dev-benefit:nth-child(3) .dev-benefit-icon {
    background: var(--ens-accent);
}

.dev-benefit:nth-child(4) .dev-benefit-icon {
    background: var(--ens-primary-light);
}

.dev-benefit-text {
    flex: 1;
}

.dev-benefit-text strong {
    display: block;
    color: var(--ens-text);
    margin-bottom: 3px;
    font-size: 0.9rem;
    font-weight: 600;
}

.dev-benefit-text span {
    font-size: 0.8rem;
    color: var(--ens-text-light);
    line-height: 1.4;
}

/* Boutons CTA */
.dev-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.dev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.dev-btn i {
    font-size: 1.1rem;
}

.dev-btn-primary {
    background: var(--ens-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.dev-btn-primary:hover {
    background: var(--ens-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: white;
    text-decoration: none;
}

.dev-btn-secondary {
    background: white;
    color: var(--ens-primary);
    border: 2px solid var(--ens-primary);
}

.dev-btn-secondary:hover {
    background: var(--ens-bg-light);
    border-color: var(--ens-primary-dark);
    color: var(--ens-primary-dark);
    text-decoration: none;
}

/* Séparateur "Ou" */
.dev-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    color: var(--ens-text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dev-divider::before,
.dev-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ens-border);
}

/* Footer */
.dev-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--ens-border);
}

.dev-footer-link {
    color: var(--ens-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.dev-footer-link i {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dev-page {
        padding: 20px 15px;
    }
    
    .dev-container {
        padding: 35px 25px;
        border-radius: 12px;
    }
    
    .dev-icon {
        font-size: 3.5rem;
    }
    
    .dev-title {
        font-size: 1.75rem;
    }
    
    .dev-subtitle {
        font-size: 0.95rem;
    }
    
    .dev-community-box {
        padding: 20px;
    }
    
    .dev-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dev-benefit {
        padding: 12px;
    }
    
    .dev-btn {
        padding: 13px 24px;
        font-size: 0.95rem;
    }
}

/* Mode sombre */
/* Mode sombre (ex-@media prefers-color-scheme : le choix de
   l'utilisateur prime désormais, cf. static/js/theme-init.js) */
body.dark-mode{
    --ens-bg: #1f2937;
    --ens-bg-light: #374151;
    --ens-bg-gray: #4b5563;
    --ens-text: #f9fafb;
    --ens-text-light: #d1d5db;
    --ens-border: #4b5563;
    --ens-shadow: rgba(0, 0, 0, 0.3);
}

body.dark-mode .dev-community-box {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

body.dark-mode .dev-community-text {
    color: #fef3c7;
}

body.dark-mode .dev-benefit {
    background: var(--ens-bg-light);
    border-color: var(--ens-border);
}

body.dark-mode .dev-benefit:hover {
    background: #4b5563;
}

body.dark-mode .dev-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

body.dark-mode .dev-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* RTL */
[dir="rtl"] .dev-benefit:hover {
    transform: translateY(-3px);
}
