/* --- Variables CSS --- */
:root {
     --color-text-dark: #222;
    --color-text-light: #fff;
    --color-dark-bg: #181c24;
     --font-sans: 'Inter', sans-serif;
    /* Section compétences : à placer hors de :root */
--color-primary: #2b7cff;
    --color-background: #f8f9fa;
  
    }

    html, body {
        background-color: var(--color-background);
        color: var(--color-text-dark);
        transition: background-color 0.3s, color 0.3s;
        min-height: 100vh;
        width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    [data-theme="dark"] html, [data-theme="dark"] body {
        background-color: var(--color-dark-bg);
        color: var(--color-text-light);
    }
   
   

#competences {
    background: var(--color-background);
    color: #2b7cff;
    margin-top: 2px;
    font-weight: 500;
}

[data-theme="dark"] #competences {
    background: var(--color-dark-bg);
    color: var(--color-text-light);
}

.section-subtitle {
    color: #888;
    font-size: 1.08em;
    margin-top: 8px;
    margin-bottom: 18px;
}

.project-lightbox__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.project-lightbox__viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-lightbox__img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.project-lightbox__caption {
    font-size: 0.9rem;
    opacity: 0.85;
}

.project-lightbox__controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.project-lightbox__control {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), transform var(--transition-speed);
}

.project-lightbox__control:hover {
    background: rgba(37, 99, 235, 0.9);
    border-color: rgba(191, 219, 254, 0.9);
    transform: translateY(-1px);
}

/* Mise en avant temporaire d'une fiche projet lorsqu'on clique sur "Voir la fiche projet" */
.project-card.is-highlighted {
    box-shadow: 0 0 0 2px var(--color-primary), 0 18px 45px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

/* --- Contenu Principal (Initialement masqué) --- */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
    min-height: 100vh;
    background-color: inherit;
}

/* --- 1. Animation d'Introduction (Splash Screen) --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.intro-text {
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-text-light);
    display: flex;
    position: relative;
    overflow: hidden;
}

.intro-letter {
    display: inline-block;
    transform: translateX(0);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.letter-O {
    margin-right: 1.5rem;
}

.open .letter-O {
    transform: translateX(-100%);
}

.open .letter-B {
    transform: translateX(100%);
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out 0.5s;
    pointer-events: none;
}

/* --- 2. Navigation (Header) --- */
.header {
    background-color: var(--color-text-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

[data-theme="dark"] .header {
    background-color: var(--color-dark-bg);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    transition: color var(--transition-speed);
}

[data-theme="dark"] .nav-list a {
    color: var(--color-text-light);
}

.nav-list a:hover {
    color: var(--color-primary);
}

.btn-contact {
    background-color: var(--color-primary);
    color: var(--color-text-light) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

.btn-contact:hover {
    background-color: #0056b3;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background-color var(--transition-speed),
                border-color var(--transition-speed),
                box-shadow var(--transition-speed);
}

[data-theme="dark"] .theme-toggle {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-text-light);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.theme-toggle i {
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    background-color: rgba(0, 122, 255, 0.06);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.theme-toggle:hover i {
    transform: rotate(-15deg) scale(1.05);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text-dark);
    transition: color var(--transition-speed);
}

[data-theme="dark"] .nav__toggle {
    color: var(--color-text-light);
}

/* --- 3. Section Hero (Accueil) --- */
.hero-section {
    position: relative;
    padding: 5.25rem 5% 2.2rem;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
}

.hero-main {
    text-align: center;
}

.hero-avatar {
    width: 250px;
    height: 250px;
    border-radius: 32px;
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.65), rgba(15, 23, 42, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.5);
    overflow: hidden;
    margin-bottom: 1.8rem;
    animation: heroAvatarFloat 7s ease-in-out infinite;
}

.hero-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transform: scale(1.03);
    transition: transform 0.45s ease-out, filter 0.45s ease-out;
}

.hero-avatar:hover .hero-avatar__img {
    transform: scale(1.07) translateY(-2px);
    filter: saturate(1.06) contrast(1.03);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background-color: rgba(0, 122, 255, 0.08);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.4rem;
    margin-bottom: 1.7rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.25);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

[data-theme="dark"] .hero-content h1 {
    color: var(--color-text-light);
}

.subtitle-text {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-roles {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #6b7280;
    min-height: 1.4rem;
    margin-bottom: 0.85rem;
}

.hero-roles-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: #9ca3af;
}

.hero-roles-text {
    font-weight: 600;
    position: relative;
    padding-left: 0.3rem;
    min-height: 1.4em;
    display: inline-flex;
    align-items: center;
    animation: heroRoleFade 4s ease-in-out infinite;
}

.hero-roles-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.4), rgba(56, 189, 248, 0.5));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.35s ease-out;
}

.hero-roles-text.is-visible::after {
    transform: scaleX(1);
}

.text--gradient {
    background: linear-gradient(45deg, var(--color-primary), #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stage-callout {
    font-size: 1.08rem;
    font-weight: 600;
    max-width: 640px;
    margin: -0.6rem auto 1.8rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.06);
    color: var(--color-text-dark);
    border: 1px solid rgba(0, 122, 255, 0.2);
}

[data-theme="dark"] .hero-stage-callout {
    background: rgba(37, 99, 235, 0.25);
    color: var(--color-text-light);
    border-color: rgba(148, 163, 184, 0.5);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

.cta-secondary,
.secondary-button {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color var(--transition-speed),
                color var(--transition-speed),
                box-shadow var(--transition-speed),
                transform var(--transition-speed);
}

.cta-secondary:hover,
.secondary-button:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.hero-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 244, 255, 0.95));
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.05);
    max-width: 360px;
}

[data-theme="dark"] .hero-panel {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.96));
    border-color: rgba(148, 163, 184, 0.35);
}

.hero-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-panel-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .hero-panel-text {
    color: #d1d5db;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.hero-panel .hero-stats {
    grid-template-columns: 1fr;
}

.hero-stat {
    padding: 1.2rem 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .hero-stat {
    background-color: #161b22;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: #666;
}

[data-theme="dark"] .hero-stat-label {
    color: #ccc;
}

/* --- Utilities & Généralités --- */
.section-padding {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section__title {
    font-size: 2.3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3.2rem;
    color: #666;
}

[data-theme="dark"] .section-subtitle {
    color: #ccc;
}

.light-text {
    color: var(--color-text-light) !important;
}

.projects-heading {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.projects-subheading {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #777;
}

[data-theme="dark"] .projects-heading {
    color: var(--color-text-light);
}

[data-theme="dark"] .projects-subheading {
    color: #ccc;
}

.background-dark {
    background-color: var(--color-dark-bg);
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.projects-header__texts {
    flex: 1 1 260px;
}

.projects-filters {
    display: inline-flex;
    background-color: rgba(15, 23, 42, 0.03);
    border-radius: 999px;
    padding: 0.25rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    gap: 0.15rem;
}

[data-theme="dark"] .projects-filters {
    background-color: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.7);
}

.projects-filter {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .projects-filter {
    color: #e5e7eb;
}

.projects-filter.is-active {
    background-color: #0f172a;
    color: #e5e7eb;
    transform: translateY(-1px);
}

[data-theme="dark"] .projects-filter.is-active {
    background-color: #e5e7eb;
    color: #0f172a;
}

/* --- 4. Section Projets --- */
.projects-section.section-padding {
    padding-top: 3.2rem;
    padding-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background-color: var(--color-text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform-origin: center top;
    transition: transform 0.32s cubic-bezier(0.21, 0.56, 0.24, 1),
                box-shadow 0.32s cubic-bezier(0.21, 0.56, 0.24, 1),
                background-color var(--transition-speed),
                opacity 0.25s ease;
    border: 1px solid #e0e0e0;
}

[data-theme="dark"] .project-card {
    background-color: #161b22;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.1);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
    transform-origin: center;
    transition: transform 0.4s ease-out;
}

[data-theme="dark"] .project-image {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-info {
    padding: 1.5rem;
}

/* Petite galerie dans une carte projet (page tous les projets) */
.project-gallery {
    position: relative;
    margin-bottom: 1rem;
}

.project-gallery__viewport {
    overflow: hidden;
    border-radius: 10px;
}

.project-gallery__slide {
    display: none;
    transition: opacity 0.35s ease;
}

.project-gallery__slide.is-active {
    display: block;
}

.project-gallery__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background-color: rgba(15, 23, 42, 0.7);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.project-gallery__control--prev {
    left: 8px;
}

.project-gallery__control--next {
    right: 8px;
}

.project-gallery__control:hover {
    background-color: rgba(37, 99, 235, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

[data-theme="dark"] .project-info h3 {
    color: var(--color-text-light);
}

.project-block-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #94a3b8;
    margin-top: 0.8rem;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .project-block-title {
    color: #cbd5f5;
}

.project-summary {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.project-tags span {
    display: inline-block;
    background-color: #e6f0ff;
    color: var(--color-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-top: 10px;
}

[data-theme="dark"] .project-tags span {
    background-color: rgba(0, 122, 255, 0.1);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.project-link i {
    font-size: 0.9rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-top: 0.75rem;
}

.project-actions .project-link {
    margin-top: 0;
}

.project-link--secondary {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.85);
}

.project-link:hover,
.project-link--secondary:hover {
    opacity: 0.9;
}

.project-link--primary {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-size: 0.9rem;
    border: none;
}

.project-link--primary:hover {
    opacity: 1;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
    transform: translateY(-1px);
}


.center-content {
    text-align: center;
    margin-top: 0.4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.project-meta {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    color: #999;
}

[data-theme="dark"] .project-meta {
    color: #bbb;
}

.project-description {
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.projects-enterprise {
    margin-top: 3rem;
}

.projects-enterprise-note {
    font-size: 0.95rem;
    text-align: center;
    color: #777;
}

[data-theme="dark"] .projects-enterprise-note {
    color: #ccc;
}

.projects-gallery-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;

    align-items: center;
}

[data-theme="dark"] .projects-gallery-label {
    color: #9ca3af;
}

/* --- 5. Section Compétences --- */
.expertise {
    background-color: var(--color-background);
}

/* Espacements plus compacts uniquement pour la section Projets */
.projects-section .section-subtitle {
    margin-bottom: 1.6rem;
}

.projects-section .projects-grid {
    margin-bottom: 0.8rem;
}

[data-theme="dark"] .expertise {
    background-color: var(--color-dark-bg);
}

.expertise.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise .section-subtitle {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.expertise__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 3rem;
}

.skill-card {
    padding: 2.4rem 2.1rem;
    background-color: var(--color-text-light);
    border-radius: 10px;
    border-left: 3px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .skill-card {
    background-color: #161b22;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.1);
}

[data-theme="dark"] .skill-card:hover {
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.skill-card__icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

[data-theme="dark"] .skill-card h3 {
    color: var(--color-text-light);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.5rem;
    color: #666;
}

[data-theme="dark"] .skill-list li {
    color: #ccc;
}

.skill-card__tags {
    margin-top: 1rem;
}

.skill-card__tags span {
    display: inline-block;
    background-color: #f0f0f0;
    color: var(--color-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-top: 5px;
}

[data-theme="dark"] .skill-card__tags span {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- 6. Section À Propos --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
}

.about-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-avatar {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.6), rgba(15, 23, 42, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-weight: 800;
    font-size: 1.6rem;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.5);
    overflow: hidden;
    position: relative;
    animation: avatarFloat 7s ease-in-out infinite;
}

.about-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.about-identity__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.about-identity__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #94a3b8;
}

.about-identity__name {
    font-weight: 700;
    font-size: 1.1rem;
}

.about-identity__role {
    font-size: 0.9rem;
    color: #64748b;
}

[data-theme="dark"] .about-identity__role {
    color: #cbd5f5;
}

.bio-block, .career-timeline {
    padding: 30px;
    background-color: var(--color-text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed), color var(--transition-speed);
}

[data-theme="dark"] .bio-block,
[data-theme="dark"] .career-timeline {
    background-color: #161b22;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bio-block h3, .career-timeline h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

[data-theme="dark"] .bio-block h3,
[data-theme="dark"] .career-timeline h3 {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    margin-bottom: 1.6rem;
    padding-left: 26px;
    border-left: 3px solid var(--color-primary);
    position: relative;
    opacity: 0;
    transform: translateY(16px);
}

.timeline-item h4 {
    margin-bottom: 0.3rem;
    color: var(--color-text-dark);
}

[data-theme="dark"] .timeline-item h4 {
    color: var(--color-text-light);
}

.timeline-item p {
    color: #666;
}

[data-theme="dark"] .timeline-item p {
    color: #ccc;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
}

.career-timeline.visible .timeline-item {
    animation: timelineIn 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.career-timeline.visible .timeline-item:nth-of-type(2) {
    animation-delay: 0.12s;
}

.career-timeline.visible .timeline-item:nth-of-type(3) {
    animation-delay: 0.24s;
}

.small-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    margin-top: 1rem;
}

.about-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.about-list li {
    margin-bottom: 0.4rem;
    color: #555;
}

[data-theme="dark"] .about-list li {
    color: #ddd;
}

@keyframes avatarFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes timelineIn {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 7. Section Contact --- */
.contact-section {
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
    background: #f7f8fa;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(44,62,80,0.07);
    border: 1.5px solid #e3e7ee;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

[data-theme="dark"] .contact-form {
    background: #232b36;
    border-color: #2c3e50;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: #2c3e50;
    letter-spacing: 0.01em;
}

[data-theme="dark"] .form-group label {
    color: #eaf1fb;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.1rem 1.1rem 1.1rem 1rem;
    border: 1.5px solid #cfd8e3;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1.07rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #161b22;
    border-color: #2c3e50;
    color: #eaf1fb;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 2.5px rgba(0, 122, 255, 0.13);
    outline: none;
}

.primary-button {
    background: linear-gradient(90deg, #007aff 60%, #0056b3 100%);
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    transition: background 0.18s, color 0.18s;
}

.primary-button:hover {
    background: linear-gradient(90deg, #0056b3 60%, #007aff 100%);
    color: #fff;
}

.contact-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.contact-status.is-sending {
    color: #2563eb;
}

.contact-status.is-success {
    color: #16a34a;
}

.contact-status.is-error {
    color: #dc2626;
}

.contact-details {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--color-primary);
    margin-right: 10px;
}

.contact-link {
    color: var(--color-text-light);
    text-decoration: underline;
}

.contact-rgpd {
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.9;
}

/* --- 8. Pied de Page (Footer) --- */
.footer {
    background-color: var(--color-text-dark);
    color: #aaa;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

[data-theme="dark"] .footer {
    background-color: #000000;
    color: #9a9a9a;
}

/* --- 9. Animations Scroll Reveal --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card.is-hiding {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
}

.project-card.is-hidden-final {
    display: none;
}

/* --- Modale Projet --- */
.project-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 80;
    transition: opacity 0.25s ease;
}

.project-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.project-modal__dialog {
    position: relative;
    max-width: 640px;
    width: 92%;
    background: var(--color-text-light);
    border-radius: 16px;
    padding: 1.8rem 1.6rem 1.6rem;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.35);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

[data-theme="dark"] .project-modal__dialog {
    background: #020617;
}

.project-modal.is-open .project-modal__dialog {
    transform: translateY(0) scale(1);
}

.project-modal__close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
}

[data-theme="dark"] .project-modal__close {
    background: rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
}

.project-modal__close:hover {
    background: rgba(37, 99, 235, 0.16);
}

.project-modal__title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.project-modal__meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 0.9rem;
}

.project-modal__subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #94a3b8;
    margin-top: 0.9rem;
    margin-bottom: 0.25rem;
}

.project-modal__summary {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.project-modal__description {
    font-size: 0.95rem;
}

.project-modal__tags {
    margin-top: 0.4rem;
}

.project-modal__tags span {
    display: inline-block;
    background-color: #e6f0ff;
    color: var(--color-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    margin-right: 6px;
    margin-top: 6px;
}

[data-theme="dark"] .project-modal__tags span {
    background-color: rgba(37, 99, 235, 0.22);
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #999;
}

.scroll-indicator__mouse {
    width: 22px;
    height: 34px;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

[data-theme="dark"] .scroll-indicator__mouse {
    border-color: rgba(255, 255, 255, 0.45);
}

.scroll-indicator__wheel {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background-color: #999;
    animation: scrollWheel 1.4s ease-in-out infinite;
}

[data-theme="dark"] .scroll-indicator__wheel {
    background-color: #e5e7eb;
}

.scroll-indicator__text {
    opacity: 0.7;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(6px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
/* --- STYLE DE LA LIGHTBOX OPTIMISÉ --- */
.project-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95); /* Fond sombre profond */
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px); /* Flou d'arrière-plan */
    padding: 2rem;
}

.project-lightbox.is-open {
    display: flex;
    animation: fadeInLightbox 0.3s ease forwards;
}

.project-lightbox__dialog {
    position: relative;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-lightbox__viewport {
    width: 100%;
    background: #000;
    border: 2px solid var(--color-primary); /* Cadre aux couleurs de ton site */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-lightbox__img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain; /* Empêche la déformation de tes captures */
    display: block;
}

.project-lightbox__caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    text-align: center;
}

/* --- Contrôles de navigation (Boutons) --- */
.project-lightbox__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-lightbox__control:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

[data-lightbox-prev] { left: -70px; }
[data-lightbox-next] { right: -70px; }

/* Bouton Fermer */
.project-lightbox__close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.project-lightbox__close:hover { color: #ff4d4d; }

@keyframes fadeInLightbox {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Ajustement Mobile */
@media (max-width: 1100px) {
    [data-lightbox-prev] { left: 10px; }
    [data-lightbox-next] { right: 10px; }
    .project-lightbox__control { background: rgba(0, 122, 255, 0.7); }
}
@keyframes heroRoleFade {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@keyframes heroAvatarFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

/* --- 10. Responsivité --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 2.4rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-badge {
        font-size: 0.95rem;
    }

    .hero-stage-callout {
        font-size: 1.02rem;
        max-width: 680px;
    }

    .section-padding {
        padding: 4.5rem 4%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 4.25rem;
    }

    .hero-content {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-badge {
        font-size: 0.9rem;
        padding: 0.55rem 1.3rem;
        text-align: left;
    }

    .hero-main {
        text-align: center;
    }

    .hero-side {
        margin-top: 2.2rem;
    }

    .hero-avatar {
        width: 112px;
        height: 112px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.4rem;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-text-light);
        flex-direction: column;
        padding: 1rem 5%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }

    [data-theme="dark"] .nav-list {
        background-color: var(--color-dark-bg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    .nav-list.active {
        display: flex;
    }

    .nav__toggle {
        display: block;
    }

    .btn-contact {
        display: none;
    }

    .section-padding {
        padding: 3.5rem 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .expertise.section {
        padding: 3.5rem 1.5rem;
    }

    .about-identity {
        justify-content: center;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stage-callout {
        font-size: 0.98rem;
        margin: -0.3rem auto 1.6rem;
        padding: 0.75rem 1.1rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .projects-heading,
    .projects-subheading {
        text-align: left;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .project-actions {
        justify-content: center;
    }
}

/* Réduire légèrement l'espace au-dessus de "Projets récents" */
.projects-section.section-padding {
    padding-top: 1rem;
}