/* ================================================
   RESET & VARIABLES
================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark:      #0d1b2e;
    --bg-mid:       #1e3c72;
    --bg-light:     #2a5298;
    --accent:       #64b5f6;
    --accent-dark:  #2196f3;
    --text:         #ffffff;
    --text-muted:   rgba(255, 255, 255, 0.60);
    --glass:        rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --radius:       14px;
    --transition:   0.3s ease;
    --shadow:       0 20px 50px rgba(0, 0, 0, 0.35);
    --font:         'Poppins', 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-mid) 55%, var(--bg-light) 100%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* ================================================
   NAVBAR
================================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 27, 46, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0.65rem 0;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
    flex-shrink: 0;
    transition: color var(--transition);
}

.nav-brand:hover { color: #fff; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 0.42rem 0.88rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
    background: var(--glass);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}

.btn-nav {
    background: var(--accent-dark) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.btn-nav:hover { background: var(--accent) !important; }

.btn-danger-nav { color: #ff7070 !important; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   FLASH MESSAGE
================================================ */
.flash-message {
    position: fixed;
    top: 84px;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    font-weight: 500;
    font-size: 0.92rem;
    box-shadow: var(--shadow);
    transition: opacity 0.7s ease;
    max-width: 380px;
}

.flash-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #a5d6a7;
}

.flash-message button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    padding: 0;
    flex-shrink: 0;
}

.flash-message button:hover { opacity: 1; }

/* ================================================
   HERO SECTION
================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 80%, rgba(100, 181, 246, 0.13) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(33, 150, 243, 0.10) 0%, transparent 45%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0.9rem;
    display: block;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    letter-spacing: -2px;
}

.hero-name {
    display: block;
    color: var(--text);
}

.hero-surname {
    display: block;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-photo-wrap {
    width: 300px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    transform: rotate(-4deg);
    transition: transform 0.4s ease;
    border: 2px solid var(--glass-border);
}

.hero-photo-wrap:hover {
    transform: rotate(0deg) scale(1.03);
}

.hero-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll-down arrow */
.scroll-down {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    transition: opacity var(--transition);
    animation: bounce 2.2s ease-in-out infinite;
    text-decoration: none;
}

.scroll-down:hover { opacity: 0.9; }

.scroll-down-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

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

/* ================================================
   BUTTONS
================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.78rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #fff;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.35);
}

.btn-primary:hover { box-shadow: 0 12px 32px rgba(33, 150, 243, 0.52); }

.btn-ghost {
    background: var(--glass);
    color: #fff;
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ================================================
   ABOUT SECTION
================================================ */
.about-section {
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

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

.about-text h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1.4rem;
    letter-spacing: -1px;
}

.about-text h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 1.8rem 0 0.7rem;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
}

.about-text ul li {
    line-height: 1.8;
}

.about-text ul li::before {
    content: '→ ';
    color: var(--accent);
    font-weight: 600;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.skill {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 0.38rem 1rem;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 500;
    transition: background var(--transition), border-color var(--transition);
}

.skill:hover {
    background: rgba(100, 181, 246, 0.15);
    border-color: var(--accent);
}

.profile-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 1rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-info strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.profile-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ================================================
   PROJECTS SECTION
================================================ */
.projects-section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-top: 0.4rem;
}

/* ---- Filter pills ---- */
.filters {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-label {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-right: 0.2rem;
    white-space: nowrap;
}

.filter-pill {
    padding: 0.38rem 1rem;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all var(--transition);
    white-space: nowrap;
}

.filter-pill:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.38);
}

.filter-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.2rem;
}

/* ---- Projects grid ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

/* ---- Project card ---- */
.project-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(100, 181, 246, 0.3);
}

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

.card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.08);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-mid), var(--bg-light));
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: -2px;
}

/* Hover overlay on card image */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 46, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.2rem;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.card-overlay-btn {
    background: var(--accent-dark);
    color: #fff;
    padding: 0.48rem 1.3rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.card-body {
    padding: 1.3rem 1.5rem 1.4rem;
}

/* Ligne titre + badge BUT */
.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    flex: 1;
}

/* Badge année BUT */
.badge-but {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-top: 0.1rem;
}

.badge-but-1 {
    background: rgba(100, 181, 246, 0.14);
    color: #90caf9;
    border: 1px solid rgba(100, 181, 246, 0.30);
}

.badge-but-2 {
    background: rgba(129, 199, 132, 0.14);
    color: #a5d6a7;
    border: 1px solid rgba(129, 199, 132, 0.30);
}

.badge-but-3 {
    background: rgba(206, 147, 216, 0.14);
    color: #ce93d8;
    border: 1px solid rgba(206, 147, 216, 0.30);
}

/* ================================================
   YEAR TABS
================================================ */
.year-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.year-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 1.1rem 1.4rem 1rem;
    border-radius: 16px;
    border: 1.5px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: var(--text-muted);
    transition: border-color var(--transition), background var(--transition),
                color var(--transition), transform var(--transition),
                box-shadow var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.year-tab::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 0 0 16px 16px;
}

.year-tab:hover {
    color: var(--text);
    border-color: rgba(100, 181, 246, 0.4);
    background: rgba(100, 181, 246, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.15);
}

.year-tab:hover::before {
    transform: scaleX(0.5);
}

.year-tab.active {
    color: var(--text);
    border-color: var(--accent-dark);
    background: linear-gradient(135deg,
        rgba(33, 150, 243, 0.18),
        rgba(100, 181, 246, 0.10));
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.22);
    transform: translateY(-2px);
}

.year-tab.active::before {
    transform: scaleX(1);
}

.year-tab-num {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    color: inherit;
}

.year-tab.active .year-tab-num {
    color: var(--accent);
}

.year-tab-sub {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.3px;
}

.year-tab-badge {
    margin-top: 0.4rem;
    background: var(--accent-dark);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 50px;
    line-height: 1.4;
    min-width: 22px;
    text-align: center;
}

.year-tab-soon {
    margin-top: 0.4rem;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.18rem 0.55rem;
    border-radius: 50px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ================================================
   COMING SOON
================================================ */
.coming-soon {
    grid-column: 1 / -1;
    padding: 4rem 1rem;
    text-align: center;
}

.coming-soon-inner {
    max-width: 440px;
    margin: 0 auto;
    background: var(--glass);
    border: 1.5px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(14px);
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    line-height: 1;
}

.coming-soon-inner h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.7rem;
}

.coming-soon-inner p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

/* Responsive year tabs */
@media (max-width: 480px) {
    .year-tab {
        min-width: 90px;
        padding: 0.9rem 0.8rem 0.85rem;
    }
    .year-tab-num {
        font-size: 1rem;
    }
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0.5rem 0 0.9rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-date {
    font-size: 0.77rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-media-count {
    font-size: 0.77rem;
    color: var(--accent);
    font-weight: 500;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-bottom: 0.5rem;
}

.tag {
    background: rgba(100, 181, 246, 0.10);
    color: var(--accent);
    border: 1px solid rgba(100, 181, 246, 0.22);
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
}

/* Admin actions */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem 0.9rem;
    border-top: 1px solid var(--glass-border);
}

.btn-edit, .btn-delete {
    flex: 1;
    padding: 0.42rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition);
}

.btn-edit  { background: rgba(76,175,80,0.12); color: #81c784; border: 1px solid rgba(76,175,80,0.28); }
.btn-edit:hover  { background: rgba(76,175,80,0.25); }
.btn-delete { background: rgba(244,67,54,0.10); color: #e57373; border: 1px solid rgba(244,67,54,0.22); }
.btn-delete:hover { background: rgba(244,67,54,0.22); }

/* Empty state */
.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-projects p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.4rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(244, 67, 54, 0.10);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef9a9a;
}

/* ================================================
   FADE-IN ANIMATION (Intersection Observer)
================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ================================================
   SCROLL-TO-TOP BUTTON
================================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-dark);
    color: #fff;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(33, 150, 243, 0.42);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ================================================
   SHOWCASE CAROUSEL (marquee infini)
================================================ */
.showcase-section {
    padding: 4rem 0 5rem;
    overflow: hidden;
    position: relative;
}

/* Dégradés latéraux */
.marquee-outer {
    position: relative;
    overflow: hidden;
}

.marquee-outer::before,
.marquee-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}

.marquee-outer::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.marquee-outer::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

/* Piste animée */
.marquee-track {
    display: flex;
    gap: 1.2rem;
    padding: 0.5rem 0 1rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Cartes du carousel */
.marquee-item {
    flex-shrink: 0;
    position: relative;
    width: 270px;
    height: 195px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--glass-border);
    background: var(--glass);
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
}

.marquee-item:hover {
    border-color: rgba(100, 181, 246, 0.45);
    box-shadow: 0 8px 28px rgba(33, 150, 243, 0.25);
    transform: translateY(-4px) scale(1.02);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.marquee-item:hover img {
    transform: scale(1.07);
}

/* Label au survol */
.marquee-item-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.85rem 0.9rem 0.7rem;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.45) 60%,
        transparent 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marquee-item:hover .marquee-item-label {
    opacity: 1;
    transform: translateY(0);
}

/* Respect du mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ================================================
   FOOTER
================================================ */
.footer {
    background: rgba(8, 15, 28, 0.97);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-brand strong {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
}

.footer-brand span {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.28);
}

/* ================================================
   FORMS (login, contact, add_project...)
================================================ */
.form-container {
    max-width: 500px;
    margin: 120px auto 3rem;
    padding: 3rem;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ================================================
   USER / ADMIN TABLES
================================================ */
.user-table-container {
    max-width: 800px;
    margin: 3rem auto;
    background: rgba(35, 57, 116, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 2rem 2.5rem;
    color: #fff;
}

.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    font-size: 0.97rem;
}

.user-table th {
    background: #1e3c72;
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 0.7rem;
}

.user-table td {
    background: #fff;
    color: #233974;
    padding: 0.8rem 0.7rem;
    vertical-align: middle;
}

.user-table tr:nth-child(even) td { background: #e3eafc; }
.admin-table th { color: #fff !important; }

.statut-pending  { color: #f44336; font-weight: 700; }
.statut-approved { color: #388e3c; font-weight: 700; }
.statut-rejected { color: #b71c1c; font-weight: 700; }

.user-table select {
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #b0c4de;
    font-size: 0.93rem;
    background: #f7faff;
    color: #000 !important;
}

.btn-valider {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.38rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-valider:hover { background: #3b5998; }
.user-table td:last-child { min-width: 160px; }

/* ================================================
   ADOBE LOGOS
================================================ */
.adobe-logos {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.adobe-logo {
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(10, 61, 145, 0.1);
    padding: 4px;
    object-fit: contain;
}

/* ================================================
   SORT FORM (kept for compatibility)
================================================ */
.sort-form label { color: #fff !important; }
.sort-form select { color: #000 !important; background-color: #fff; }
.sort-form select option { color: #000 !important; background-color: #fff; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-image { justify-content: center; }

    .hero-desc { margin: 0 auto 2rem; }

    .hero-cta { justify-content: center; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 27, 46, 0.97);
        backdrop-filter: blur(18px);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 0.25rem;
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }

    .hero-photo-wrap {
        width: 220px;
        height: 290px;
    }

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

    .filter-group { gap: 0.35rem; }

    .scroll-top { bottom: 1.2rem; right: 1.2rem; }
}

@media (max-width: 480px) {
    .hero-section { padding: 88px 1rem 3rem; }
    .about-section, .projects-section { padding: 4rem 1rem; }
    .form-container { margin: 90px 1rem 2rem; padding: 2rem 1.2rem; }
    .footer { padding: 2rem 1rem; }
}
