/* --- Site perso avec pod2html --- */

body {
    background: #0a1628;
    color: #e8edf5;
    font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    max-width: 80%;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: #f0f4ff;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid #5b9aff;
    padding-bottom: 0.3rem;
}

h2 {
    font-size: 2.2rem;
    border-bottom: 1px solid #2a3a5a;
    padding-bottom: 0.2rem;
    margin-top: 2.5em;
}

h3 {
    font-size: 1.6rem;
    margin-top: 1.5em;
    color: #b8d0ff;
}

h4 {
    font-size: 1.3rem;
    color: #8ab0ff;
}

h5 {
    font-size: 1.1rem;
    color: #7ba3e0;
}

p, li, dd, dt, blockquote {
    font-size: 20px;
    margin: 1em 0;
}

a {
    color: #7bb3ff;
    text-decoration: none;
    border-bottom: 1px dotted #2a4a7a;
}

a:hover {
    color: #a8ccff;
    border-bottom: 1px solid #7bb3ff;
    text-decoration: none;
}

ul, ol {
    padding-left: 1.5em;
}

code {
    font-family: "JetBrains Mono", "Fira Code", "Menlo", monospace;
    font-size: 0.9em;
    background: #1a2a44;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    color: #c8d8ff;
}

pre {
    background: #0d1b33;
    color: #d0dfff;
    padding: 1.4em 1.8em;
    border-radius: 10px;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", "Menlo", monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid #1a3050;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

pre.verbatim {
    background: #0f1f3a;
    color: #d0dfff;
    border-left: 4px solid #5b9aff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid #2a3a5a;
    padding: 0.7rem 1rem;
    text-align: left;
}

th {
    background: #1a2a4a;
    font-weight: 600;
    color: #f0f4ff;
}

tr:nth-child(even) {
    background: #0f1f38;
}

hr {
    border: none;
    border-top: 2px solid #2a3a5a;
    margin: 2.5em 0;
}

blockquote {
    border-left: 4px solid #5b9aff;
    margin: 1em 0;
    padding: 0.6em 1.4em;
    background: #0d1b33;
    border-radius: 0 6px 6px 0;
    color: #d0dfff;
}

/* Index / Table des matières */
#index {
    background: #0d1b33;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    border: 1px solid #1a3050;
    margin-bottom: 2rem;
}

#index h1 {
    font-size: 1.4rem;
    border-bottom: none;
    margin-top: 0;
    color: #8ab0ff;
}

#index a {
    border-bottom: none;
}

#index ul {
    list-style-type: none;
    padding-left: 0.5rem;
}

#index li {
    margin: 0.3rem 0;
}

#index li a {
    color: #7bb3ff;
}

#index li a:hover {
    color: #a8ccff;
}

/* Conteneur principal */
.pod {
    background: #0b1729;
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Footer type man */
.pod .manpage {
    margin-top: 3em;
    padding-top: 1.2em;
    border-top: 1px solid #2a3a5a;
    font-size: 0.85rem;
    color: #7a8aaa;
    text-align: center;
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #1a2a44;
    color: #e8edf5;
    border: 1px solid #2a3a5a;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #2a3a5a;
    transform: scale(1.1);
}

/* ============================================
   LIGHT MODE
   ============================================ */
body.light {
    background: #f0f4f8;
    color: #1a1a2e;
}

body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6 {
    color: #1a1a2e;
}

body.light a {
    color: #4a6a8a;
}

body.light a:hover {
    color: #2a4a6a;
}

body.light #index {
    background: #e8ecf0;
    border-color: #c0c8d0;
}

body.light .pod {
    background: #ffffff;
}

body.light pre {
    background: #1e1e2e;
    color: #cdd6f4;
}

body.light code {
    background: #e0e4e8;
    color: #1a1a2e;
}

body.light blockquote {
    background: #e8ecf0;
    color: #1a1a2e;
}

body.light hr {
    border-color: #c0c8d0;
}

body.light th {
    background: #d0d8e0;
    color: #1a1a2e;
}

body.light td {
    border-color: #c0c8d0;
}

body.light .manpage {
    color: #4a5a6a;
}

body.light .theme-toggle {
    background: #d0d8e0;
    color: #1a1a2e;
    border-color: #b0b8c0;
}

body.light .theme-toggle:hover {
    background: #b0b8c0;
}

body.light #backToTop {
    background: #d0d8e0;
    color: #1a1a2e;
    border-color: #b0b8c0;
}

body.light #backToTop:hover {
    background: #b0b8c0;
}

/* ============================================
   STICKY NAV
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0a1628;
    border-bottom: 1px solid #1a3050;
    padding: 0.8rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.navbar a {
    color: #7bb3ff;
    text-decoration: none;
    border-bottom: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.navbar a:hover {
    background: #1a2a44;
    color: #a8ccff;
}

/* Light mode pour la navbar */
body.light .navbar {
    background: #f0f4f8 !important;
    border-bottom: 1px solid #c0c8d0 !important;
}

body.light .navbar a {
    color: #4a6a8a !important;
}

body.light .navbar a:hover {
    background: #d0d8e0 !important;
    color: #2a4a6a !important;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #2a3a5a;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1.9rem;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #5b9aff;
    border-radius: 50%;
    border: 2px solid #0a1628;
    box-shadow: 0 0 0 2px #5b9aff;
}

.timeline-content {
    background: #0d1b33;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.timeline-content:hover {
    background: #12233d;
}

.timeline-date {
    font-size: 0.8rem;
    color: #7a8aaa;
    font-family: "JetBrains Mono", monospace;
    margin-bottom: 0.2rem;
}

.timeline-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #f0f4ff;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: #b8d0ff;
    margin-top: 0.2rem;
}

/* Light mode timeline */
body.light .timeline::before {
    background: #c0c8d0;
}

body.light .timeline-dot {
    border-color: #f0f4f8;
}

body.light .timeline-content {
    background: #e8ecf0;
}

body.light .timeline-content:hover {
    background: #dce0e6;
}

body.light .timeline-date {
    color: #4a5a6a;
}

body.light .timeline-title {
    color: #1a1a2e;
}

body.light .timeline-subtitle {
    color: #3a4a5a;
}

/* ============================================
   SKIP LINK (Accessibilité)
   ============================================ */
.skip-link {
    position: absolute;
    top: -999px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2a44;
    color: #e8edf5;
    padding: 0.5rem 1rem;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
    border: 1px solid #2a3a5a;
    border-top: none;
    text-decoration: none;
    font-size: 0.9rem;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #5b9aff;
    outline-offset: 2px;
}

/* Focus visible pour les utilisateurs clavier */
.user-is-tabbing *:focus {
    outline: 2px solid #5b9aff !important;
    outline-offset: 2px !important;
}

/* Cacher les outlines pour les souris */
*:focus:not(.user-is-tabbing *) {
    outline: none;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #5b9aff;
    z-index: 10000;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(91, 154, 255, 0.3);
}

body.light #readingProgress {
    background: #4a6a8a;
    box-shadow: 0 0 10px rgba(74, 106, 138, 0.3);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1a2a44;
    color: #e8edf5;
    border: 1px solid #2a3a5a;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

#backToTop:hover {
    background: #2a3a5a;
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        padding: 0 1rem;
        max-width: 100%;
    }

    h1 {
        font-size: 2.0rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    h4 {
        font-size: 1.2rem;
    }

    p, li, dd, dt, blockquote {
        font-size: 18px;
    }

    pre {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }

    .pod {
        padding: 1.5rem;
    }

    #index {
        padding: 1rem;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0.5rem 1rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }
    .timeline-item {
        padding-left: 1rem;
    }
    .timeline-dot {
        left: -1.4rem;
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   TIMELINE - VARIANT FORMATION
   ============================================ */
.timeline-education .timeline-dot {
    background: #6fcf97 !important;
    box-shadow: 0 0 0 2px #6fcf97 !important;
}

.timeline-education .timeline-content {
    border-left: 3px solid #6fcf97;
}

/* Light mode */
body.light .timeline-education .timeline-dot {
    background: #27ae60 !important;
    box-shadow: 0 0 0 2px #27ae60 !important;
}

body.light .timeline-education .timeline-content {
    border-left-color: #27ae60;
}
/* ============================================
   TESTIMONIALS / RECOMMANDATIONS
   ============================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.testimonial-card {
    background: #0d1b33;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #1a3050;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #2a4a7a;
}

.testimonial-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #c8d8ff;
    flex-grow: 1;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    color: #5b9aff;
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-text::after {
    content: '"';
    color: #5b9aff;
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-author {
    border-top: 1px solid #1a3050;
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1rem;
    color: #f0f4ff;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #8ab0ff;
    margin: 0.2rem 0 0.5rem 0;
}

.testimonial-link {
    font-size: 0.85rem;
    color: #7bb3ff;
    text-decoration: none;
    border-bottom: none !important;
    transition: color 0.2s;
}

.testimonial-link:hover {
    color: #a8ccff;
    border-bottom: none !important;
}

/* Light mode */
body.light .testimonial-card {
    background: #e8ecf0;
    border-color: #c0c8d0;
}

body.light .testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #4a6a8a;
}

body.light .testimonial-text {
    color: #2a3a4a;
}

body.light .testimonial-text::before,
body.light .testimonial-text::after {
    color: #4a6a8a;
}

body.light .testimonial-author {
    border-top-color: #c0c8d0;
}

body.light .testimonial-name {
    color: #1a1a2e;
}

body.light .testimonial-role {
    color: #4a6a8a;
}

body.light .testimonial-link {
    color: #4a6a8a;
}

body.light .testimonial-link:hover {
    color: #2a4a6a;
}

/* Responsive */
@media (max-width: 600px) {
    .testimonials {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SKILLS TEXT
   ============================================ */
.skills-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.skills-text .skill-category {
    background: #0d1b33;
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    border-left: 3px solid #5b9aff;
    transition: background 0.3s ease;
}

.skills-text .skill-category:hover {
    background: #12233d;
}

.skills-text .skill-category h4 {
    font-size: 1.1rem;
    color: #f0f4ff;
    margin: 0 0 0.5rem 0;
}

.skills-text .skill-category p {
    font-size: 16px;
    color: #c8d8ff;
    margin: 0;
    line-height: 1.7;
}

/* Light mode */
body.light .skills-text .skill-category {
    background: #e8ecf0;
    border-left-color: #4a6a8a;
}

body.light .skills-text .skill-category:hover {
    background: #dce0e6;
}

body.light .skills-text .skill-category h4 {
    color: #1a1a2e;
}

body.light .skills-text .skill-category p {
    color: #2a3a4a;
}

/* Responsive */
@media (max-width: 600px) {
    .skills-text .skill-category {
        padding: 1rem;
    }
    .skills-text .skill-category p {
        font-size: 14px;
    }
}
/* ============================================
   PROJECTS / PROJETS
   ============================================ */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.project-card {
    background: #0d1b33;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #1a3050;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #2a4a7a;
}

.project-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.project-content h4 {
    font-size: 1.2rem;
    color: #f0f4ff;
    margin: 0 0 0.5rem 0;
}

.project-content p {
    font-size: 15px;
    color: #c8d8ff;
    margin: 0 0 0.8rem 0;
    line-height: 1.7;
}

.project-link {
    color: #7bb3ff;
    text-decoration: none;
    border-bottom: none !important;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.project-link:hover {
    color: #a8ccff;
    border-bottom: none !important;
}

/* Light mode */
body.light .project-card {
    background: #e8ecf0;
    border-color: #c0c8d0;
}

body.light .project-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #4a6a8a;
}

body.light .project-content h4 {
    color: #1a1a2e;
}

body.light .project-content p {
    color: #2a3a4a;
}

body.light .project-link {
    color: #4a6a8a;
}

body.light .project-link:hover {
    color: #2a4a6a;
}

/* Responsive */
@media (max-width: 600px) {
    .projects {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .project-icon {
        font-size: 2rem;
    }
}
/* ============================================
   CONTACT
   ============================================ */
.contact {
    margin: 1.5rem 0;
}

.contact-info {
    background: #0d1b33;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #1a3050;
    text-align: center;
    transition: border-color 0.3s ease;
}

.contact-info:hover {
    border-color: #2a4a7a;
}

.contact-info h4 {
    font-size: 1.4rem;
    color: #f0f4ff;
    margin: 0 0 0.5rem 0;
}

.contact-info p {
    font-size: 16px;
    color: #c8d8ff;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7bb3ff;
    text-decoration: none;
    border-bottom: none !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #0a1628;
    border: 1px solid #1a3050;
}

.social-link:hover {
    background: #1a2a44;
    color: #a8ccff;
    border-color: #5b9aff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 154, 255, 0.15);
    border-bottom: none !important;
}

.social-icon {
    font-size: 1.2rem;
}

/* Light mode */
body.light .contact-info {
    background: #e8ecf0;
    border-color: #c0c8d0;
}

body.light .contact-info:hover {
    border-color: #4a6a8a;
}

body.light .contact-info h4 {
    color: #1a1a2e;
}

body.light .contact-info p {
    color: #2a3a4a;
}

body.light .social-link {
    background: #f0f4f8;
    color: #4a6a8a;
    border-color: #c0c8d0;
}

body.light .social-link:hover {
    background: #d0d8e0;
    color: #2a4a6a;
    border-color: #4a6a8a;
}

/* Responsive */
@media (max-width: 600px) {
    .contact-info {
        padding: 1.2rem;
    }

    .contact-social {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .social-link {
        width: 100%;
        justify-content: center;
        padding: 0.6rem;
    }
}
/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #2a3a5a;
}

.footer p {
    font-size: 0.9rem;
    color: #7a8aaa;
    margin: 0;
}

body.light .footer {
    border-top-color: #c0c8d0;
}

body.light .footer p {
    color: #4a5a6a;
}

/* === BACK TO TOP === */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    transform: scale(1.1);
}

/* === TEXT SELECTION === */
::selection {
    background: #5b9aff;
    color: #ffffff;
}

::-moz-selection {
    background: #5b9aff;
    color: #ffffff;
}

/* === SCROLL FADE ANIMATION === */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SKILLS FADE-IN
   ============================================ */
.skill-category {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.skill-category:nth-child(1) { animation-delay: 0.2s; }
.skill-category:nth-child(2) { animation-delay: 0.4s; }
.skill-category:nth-child(3) { animation-delay: 0.6s; }
.skill-category:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
