:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #2563eb;
    --secondary-text: #666666;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --container-width: 1200px;
    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --accent-color: #60a5fa;
    --secondary-text: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

.cursor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

a,
button,
.btn,
input,
textarea,
select {
    cursor: none !important;
}

.cv-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent-color), #1e40af);
    border: none;
    border-radius: 16px;
    padding: 2rem;
    box-shadow:
        0 20px 40px rgba(37, 99, 235, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    max-width: 320px;
    backdrop-filter: blur(10px);
}

.cv-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: popupPulse 3s ease-in-out infinite;
}

.cv-popup h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cv-popup p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cv-popup .btn {
    font-size: 0.95rem;
    padding: 0.875rem 1.75rem;
    display: block;
    text-align: center;
    background: white;
    color: var(--accent-color);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cv-popup .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cv-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: none !important;
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.cv-popup-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes popupPulse {

    0%,
    100% {
        box-shadow:
            0 20px 40px rgba(37, 99, 235, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow:
            0 20px 40px rgba(37, 99, 235, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

h1,
h2,
h3,
.logo {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    margin-top: 4rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}


a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    margin-left: 1rem;
}

.btn-outline:hover {
    border-color: var(--text-color);
}


.header {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 0.56rem;
    background-color: rgba(217, 220, 224, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    border: 1.9px solid #e3e3e3;
    box-shadow: 0px 4.06px 20.28px rgb(0 0 0 / 8%);
    pointer-events: auto;
    transition: transform var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.9px solid #f2f2f2;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    pointer-events: auto;
    transition: background-color var(--transition-base), transform var(--transition-base);
    box-shadow: 0px 4.06px 20.28px rgb(0 0 0 / 8%);
}

[data-theme="dark"] .nav {
    background-color: rgba(107, 114, 128, 0.3);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle {
    background-color: rgba(15, 23, 42, 0.7);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(15, 23, 42, 0.8);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.nav-links a:hover {
    background-color: var(--accent-color);
    color: white;
}

.mobile-logo {
    display: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
}

@keyframes bg-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.custom-shape-divider-bottom-1678901234 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1678901234 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1678901234 .shape-fill {
    fill: var(--bg-color);
    opacity: 0.8;
}

[data-theme="dark"] .custom-shape-divider-bottom-1678901234 .shape-fill {
    fill: var(--bg-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    height: calc(100% - 5rem);
    background-image: radial-gradient(var(--secondary-text) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.08;
    z-index: -2;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    height: calc(100% - 5rem);
    background:
        radial-gradient(circle at 75% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(255, 170, 100, 0.25) 0%, transparent 50%);
    opacity: 0.1;
    z-index: -1;
    filter: blur(80px);
    animation: bg-pulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    padding-right: 2rem;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow:
        0 0 0 2px var(--accent-color),
        0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 0 4px var(--accent-color),
        0 30px 60px rgba(0, 0, 0, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.subtitle {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.description {
    font-size: 1.25rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin-bottom: 3rem;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.projects-header .section-title {
    margin-bottom: 0;
    line-height: 1;
}

.project-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-sans);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.project-card {
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
    display: none;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
}

.project-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image-link:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

[data-theme="dark"] .project-badge {
    background-color: rgba(30, 41, 59, 0.95);
    color: var(--text-color);
}

.project-card:hover .project-badge {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-image img.img-tomexplore {
    object-position: 40% center;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--secondary-text);
}

.project-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    gap: 0.75rem;
}

/* Case Study Cards */
.case-study-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.project-card:nth-child(even) .case-study-link {
    grid-template-columns: 1fr 1.2fr;
}

.project-card:nth-child(even) .case-study-image {
    order: 2;
}

.project-card:nth-child(even) .case-study-info {
    order: 1;
}

.case-study-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study-image img.img-tomexplore {
    object-position: 40% center;
}

.case-study-link:hover .case-study-image img {
    transform: scale(1.03);
}

.case-study-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.case-study-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    line-height: 1.2;
}

.case-study-info p {
    color: var(--secondary-text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-study-cta {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.case-study-link:hover .case-study-cta {
    gap: 0.75rem;
    color: var(--accent-color);
}

/* Approche Section */
.approche-intro {
    max-width: 700px;
    color: var(--secondary-text);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.approche-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.approche-step {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.approche-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .approche-step:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.approche-step h3 {
    margin-bottom: 0.75rem;
}

.approche-step p {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

/* Outils & Méthodes Section */
.outils-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.outil-category h3 {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.outil-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.outil-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: border-color var(--transition-base);
}

.outil-card:hover {
    border-color: var(--accent-color);
}

.outil-card img {
    width: 20px;
    height: 20px;
}


.about-content {
    max-width: 800px;
}

.about-text p {
    color: var(--secondary-text);
}


/* Legacy skills-grid kept for projects.html compatibility */

/* BUT competencies section removed */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    padding: 0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 5px;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 1px var(--accent-color);
    z-index: 1;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
}

.timeline-content .company {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
}


.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.big-btn {
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
    margin: 2rem 0 4rem;
}


.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}


.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--secondary-text);
}

.back-link:hover {
    color: var(--accent-color);
}


.view-all-projects {
    text-align: center;
    margin-top: 4rem;
}

.projects-header-section {
    padding-top: 8rem;
}

.projects-main-title {
    margin-top: 1rem;
}

.projects-grid-offset {
    margin-top: 4rem;
}

.img-hue-1 {
    filter: hue-rotate(90deg);
}

.img-hue-2 {
    filter: hue-rotate(180deg);
}

/* ===========================================
   MOBILE RESPONSIVE - OPTIMISATION COMPLETE
   =========================================== */

/* Désactiver le curseur custom sur les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-dot {
        display: none !important;
    }

    a,
    button,
    .btn,
    input,
    textarea,
    select {
        cursor: auto !important;
    }
}

/* Tablettes et petits écrans */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        justify-content: center;
        padding-right: 0;
        order: -1;
    }

    .case-study-link {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card:nth-child(even) .case-study-link {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) .case-study-image {
        order: 0;
    }

    .project-card:nth-child(even) .case-study-info {
        order: 0;
    }

    .approche-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile - Styles principaux */
@media (max-width: 768px) {

    /* === TYPOGRAPHIE === */
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* === CONTAINER & MARGES === */
    .container {
        padding: 0 2rem;
    }



    /* === NAVIGATION MOBILE === */
    .header {
        top: 1rem;
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-logo {
        position: fixed;
        top: 1rem;
        left: 1rem;
        background: white;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1.9px solid #f2f2f2;
        color: var(--text-color);
        cursor: pointer;
        width: auto;
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 25px;
        pointer-events: auto;
        transition: background-color var(--transition-base), transform var(--transition-base);
        box-shadow: 0px 4.06px 20.28px rgb(0 0 0 / 8%);
        padding: 0.5rem 1rem;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 0.75rem;
        text-decoration: none;
    }

    [data-theme="dark"] .mobile-logo {
        background-color: rgba(15, 23, 42, 0.7);
        box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.2),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .mobile-logo:hover {
        background-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }

    [data-theme="dark"] .mobile-logo:hover {
        background-color: rgba(15, 23, 42, 0.8);
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    /* === HERO SECTION === */
    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

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

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-image {
        justify-content: center;
        padding-right: 0;
        order: 0;
    }

    .hero-image img {
        width: 180px;
        height: 180px;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    /* === CTA BUTTONS === */
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .big-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        margin: 1.5rem 0 2.5rem;
        word-break: break-all;
    }

    /* === PROJECTS SECTION === */
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        gap: 3rem;
    }

    .case-study-link {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card:nth-child(even) .case-study-link {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) .case-study-image,
    .project-card:nth-child(even) .case-study-info {
        order: 0;
    }

    .case-study-info h3 {
        font-size: 1.4rem;
    }

    .case-study-info p {
        font-size: 0.95rem;
    }

    .case-study-image {
        border-radius: 12px;
    }

    .view-all-projects {
        margin-top: 2.5rem;
    }

    /* === APPROCHE SECTION === */
    .approche-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .approche-step {
        padding: 1.5rem;
    }

    .step-number {
        font-size: 2rem;
    }

    /* === OUTILS SECTION === */
    .outils-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* === TIMELINE / PARCOURS === */
    .timeline {
        padding-left: 0;
    }

    .timeline-line {
        left: 12px;
    }

    .timeline-dot {
        left: 5px;
        width: 14px;
        height: 14px;
    }

    .timeline-item {
        padding-left: 2.5rem;
        padding-bottom: 2rem;
    }

    .timeline-date {
        font-size: 0.85rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content .company {
        font-size: 0.9rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    /* === CONTACT & FOOTER === */
    .contact-content {
        padding: 0;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .social-links {
        justify-content: center;
        gap: 1.25rem;
    }

    /* === CV POPUP === */
    .cv-popup {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .cv-popup h4 {
        font-size: 1.1rem;
        padding-right: 2rem;
    }

    .cv-popup p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cv-popup .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 80%;
        margin: 0 auto;
        display: block;
    }

    .cv-popup-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
    }

    /* === PROJECTS PAGE === */
    .projects-header-section {
        padding-top: 6rem;
    }

    .projects-main-title {
        margin-top: 0.75rem;
    }

    .projects-grid-offset {
        margin-top: 2.5rem;
    }

    .back-link {
        font-size: 0.9rem;
    }


    .project-header-content {
        margin-bottom: 2rem;
    }

    .project-category-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-banner-image {
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .project-banner-image img {
        max-height: 300px;
    }

    .project-main-info h2 {
        font-size: 1.4rem;
    }

    .project-long-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .project-features {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .project-features h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .project-features-list li {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .project-technologies {
        margin-top: 2rem;
    }

    .project-technologies h3 {
        font-size: 1.15rem;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .tech-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .tech-icon {
        width: 36px;
        height: 36px;
    }

    .tech-card h3 {
        font-size: 0.75rem;
    }

    .sidebar-links {
        gap: 0.75rem;
    }

    .minimal-link {
        padding: 0.875rem;
        border-radius: 12px;
    }

    .link-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .link-title {
        font-size: 0.9rem;
    }

    .link-subtitle {
        font-size: 0.75rem;
    }
}

/* Très petits écrans (< 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 1.9rem;
    }

    .hero-image img {
        width: 150px;
        height: 150px;
    }

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

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Project Details Page Styles */
.project-details-section {
    padding-top: 8rem;
}

@media (max-width: 768px) {
    .project-details-section {
        padding-top: 3rem;
    }
}

.project-header-content {
    margin-bottom: 3rem;
    max-width: 800px;
}

.project-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.project-tags span {
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--secondary-text);
}

.project-banner-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--card-bg);
}

.project-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-main-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.project-long-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 3rem;
}

.project-features {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.project-features + .project-features {
    margin-top: 2rem;
}

.project-features h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.project-features-list {
    list-style: none;
    padding: 0;
}

.project-features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.project-features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.project-technologies {
    margin-top: 3rem;
}

.project-technologies h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon img {
    transform: scale(1.1);
}

.tech-card h3 {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
}

.project-sidebar {
    position: sticky;
    top: 8rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.minimal-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-base);
    color: var(--text-color);
    text-decoration: none;
}

.minimal-link:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
    background-color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.link-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.minimal-link:hover .link-icon {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: var(--card-bg);
}

.link-text {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.link-subtitle {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

/* ===========================================
   DESIGN PROCESS SECTION
   =========================================== */

.design-process-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.design-process-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.design-process-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Design Screens */
.design-screens {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.design-screen-block h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.comparison-image {
    position: absolute;
    inset: 0;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.comparison-after {
    z-index: 1;
}

.comparison-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.comparison-handle-line {
    flex: 1;
    width: 3px;
    background-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.comparison-handle-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: var(--text-color);
    flex-shrink: 0;
}

.comparison-handle-circle svg {
    flex-shrink: 0;
}

.comparison-label {
    position: absolute;
    bottom: 1rem;
    padding: 0.4rem 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 5;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.comparison-label-before {
    left: 1rem;
}

.comparison-label-after {
    right: 1rem;
}

/* Mobile adjustments for design section */
@media (max-width: 768px) {
    .design-process-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .design-process-section h2 {
        font-size: 1.4rem;
    }

    .design-process-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .design-screens {
        gap: 2rem;
    }

    .comparison-slider {
        aspect-ratio: 4/3;
        border-radius: 12px;
    }

    .comparison-handle-circle {
        width: 40px;
        height: 40px;
    }

    .comparison-handle-circle svg {
        width: 16px;
        height: 16px;
    }

    .comparison-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
        bottom: 0.75rem;
    }
}


@media (max-width: 968px) {
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-sidebar {
        position: static;
        order: -1;
        /* Mettre les liens avant la description sur mobile */
    }

    .project-banner-image {
        margin-bottom: 3rem;
    }
}