/* Modern Design System - Glassmorphism & High End UI */

:root {
    /* Dynamic Colors */
    --primary: #bf4628;
    --primary-rgb: 191, 70, 40;
    --secondary: #7a9ab6;
    --secondary-rgb: 122, 154, 182;
    --dark: #1e1e24;
    --light: #ffffff;
    --background-overlay: rgba(20, 20, 25, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-main: #2d3436;
    --text-muted: #636e72;

    /* Sidebar Specific */
    --sidebar-bg: rgba(30, 30, 40, 0.85);
    /* Darker glass for sidebar */
    --sidebar-text: #f1f2f6;

    /* Font */
    --font-main: 'Outfit', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: #f4f4f4;
    /* Fallback */
    background-image: url("../images/background.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    padding: var(--spacing-md);
    padding-bottom: 80px;
    /* Space for footer */
}

a {
    transition: all 0.2s ease;
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

/* Layout Container */
.container {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: var(--spacing-sm);
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Sidebar */
.left-column {
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--sidebar-text);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    box-shadow: var(--glass-shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.left-column p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Sidebar Sections */
.left-column header {
    text-align: center;
}

.left-column h1 {
    font-family: var(--font-accent);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    color: #fff;
}

.left-column h2 {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.illustration {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.illustration img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 0px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.illustration img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Glassmorphism Main Content */
.right-column {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--glass-shadow);
}

/* Section Styling */
.section {
    margin-bottom: var(--spacing-lg);
}

.section h2 {
    font-family: var(--font-accent);
    color: var(--primary);
    border-bottom: 2px solid rgba(191, 70, 40, 0.2);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
    display: inline-block;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

/* 
   ==========================================================================
   NEW 2026 EXPERIENCE CARD SYSTEM
   Replaces old nested list messy styles with clean Grid/Card layout
   ==========================================================================
*/

.experience-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.experience-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Experience Header */
.experience-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-md);
    align-items: center;
    cursor: pointer;
}

.logo-container {
    width: 68px;
    height: 68px;
    background: white;
    border-radius: 18px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.experience-card:hover .logo-container {
    transform: scale(1.05) rotate(-3deg);
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-info h3.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.job-role {
    font-weight: 500;
    color: var(--text-muted);
}

.job-dates {
    font-size: 0.85rem;
    color: var(--primary);
    background: rgba(191, 70, 40, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Project Content */
.experience-content {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-block:not(:last-child) {
    margin-bottom: var(--spacing-lg);
}

.project-title {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.project-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    margin-right: 10px;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-style: italic;
}

/* Task Gird & Cards */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}

.task-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    transition: background 0.2s ease;
}

.task-card:hover {
    background: rgba(255, 255, 255, 0.7);
}

.task-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    border-bottom: 2px solid rgba(191, 70, 40, 0.1);
    padding-bottom: 4px;
    display: inline-block;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-item {
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.task-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    opacity: 0.8;
    font-weight: bold;
    font-size: 0.8em;
    top: 2px;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tech-tag {
    font-size: 0.75rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.task-card:hover .tech-tag {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* 
   ==========================================================================
   RESTORED ORIGINAL SECTIONS
   ==========================================================================
*/

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.skill {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    border: none;
}

.rating {
    display: flex;
    align-items: center;
    width: 100%;
}

.skill-logo {
    width: 30px;
    height: 30px;
    margin-right: var(--spacing-sm);
    object-fit: contain;
    order: 1;
}

.skill p {
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
    margin-right: auto;
    order: 2;
}

.stars {
    display: flex;
    order: 3;
    margin-left: var(--spacing-sm);
}

.star {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><path fill='%23ccc' d='M12 2 L15.09 8.26 L22 9.27 L17 14.14 L18.18 21 L12 17.77 L5.82 21 L7 14.14 L2 9.27 L8.91 8.26 L12 2 z'/></svg>");
    margin-right: 2px;
}

.star.filled {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><path fill='%23bf4628' d='M12 2 L15.09 8.26 L22 9.27 L17 14.14 L18.18 21 L12 17.77 L5.82 21 L7 14.14 L2 9.27 L8.91 8.26 L12 2 z'/></svg>");
}

.star.empty {
    /* Same as base but explicit if needed */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><path fill='%23ccc' d='M12 2 L15.09 8.26 L22 9.27 L17 14.14 L18.18 21 L12 17.77 L5.82 21 L7 14.14 L2 9.27 L8.91 8.26 L12 2 z'/></svg>");
}

/* Contact List */
.contact {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) 0;
    color: var(--sidebar-text);
}

.contact a {
    color: #a4b0be;
    border-bottom: 1px solid transparent;
}

.contact a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.contact-logo {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-sm);
    opacity: 0.9;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 40, 0.40);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f1f2f6;
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

/* Toggle Switch */
.toggle-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    vertical-align: middle;
    transition: opacity 0.3s;
    background: none;
    border: none;
    padding: 0;
}

.toggle-btn:hover {
    opacity: 0.8;
}

.toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
}

.toggle-icon::after {
    content: '▼';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.experience-card:hover .toggle-icon {
    background: var(--secondary);
    border-color: var(--secondary);
}

.experience-card:hover .toggle-icon::after {
    color: white;
}

/* Rotate icon when active (assuming JS adds .active class to .toggle-btn) */
.toggle-btn.active .toggle-icon::after {
    transform: translate(-50%, -50%) rotate(180deg);
}


/* Custom List from Presentation */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.custom-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Loisirs */
.loisir {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) 0;
    color: var(--sidebar-text);
}

.loisir-logo {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-sm);
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Utility */
.hidden {
    display: none;
}

/* Helper for white icons */
.icon-white {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        padding: var(--spacing-sm);
        gap: var(--spacing-md);
    }

    .left-column {
        position: relative;
        top: 0;
        text-align: center;
    }

    .illustration {
        justify-content: center;
    }

    .contact {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .experience-header {
        grid-template-columns: auto 1fr;
    }

    .toggle-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .experience-card {
        position: relative;
    }

    .job-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .container {
        border-radius: 0;
        margin: 0;
    }
}