/* ===================================
   TABLE DES MATIÈRES
   ===================================
   1. Variables CSS
   2. Reset et Base
   3. Layout Principal
   4. Header & Navigation
   5. Sidebar Gauche
   6. Contenu Principal
   7. Sidebar Droite
   8. Footer
   9. Composants UI
   10. Formulaires
   11. Animations
   12. Mode Sombre
   13. Mobile Layout
   14. Media Queries
   =================================== */

/* ===================================
   1. VARIABLES CSS
   =================================== */
:root {
    /* Couleurs principales */
    --primary-color: #2c2c2c;
    --secondary-color: #ffffff;
    --component-color: #f8f9fa;
    --bgtier-color: #e9ecef;
    --container-color: #ffffff;
    --green-light: #4ade80;
    --yellow-light: #fbbf24;
    --red-light: #f87171;
    
    /* Effets glass */   
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ===================================
   2. RESET ET BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100dvh;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    min-height: 100dvh;
    padding: 20px;
    transition: var(--transition);
}

/* ===================================
   3. LAYOUT PRINCIPAL
   =================================== */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 40px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    grid-template-rows: 80px 1fr 60px;
    gap: 20px;
    padding: 20px;
}

/* Contrôle Layout Mobile/Desktop */
.mobile-layout {
    display: none;
}

.desktop-layout {
    display: grid;
}

/* ===================================
   4. HEADER & NAVIGATION
   =================================== */
.header {
    grid-column: 2 / 4;
    grid-row: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Barre de recherche */
.search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-input::placeholder {
    color: rgba(44, 44, 44, 0.6);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(44, 44, 44, 0.6);
}

/* Résultats de recherche */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(25px);
    z-index: 1000;
    margin-top: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(44, 44, 44, 0.05);
    transform: translateX(4px);
}

.search-result-icon {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    opacity: 0.7;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 2px;
}

.search-result-description {
    font-size: 12px;
    color: rgba(44, 44, 44, 0.6);
    line-height: 1.3;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(44, 44, 44, 0.6);
    font-size: 14px;
}

/* Actions du header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(44, 44, 44, 0.1);
    transform: scale(1.05);
}

/* ===================================
   5. SIDEBAR GAUCHE
   =================================== */
.sidebar-left {
    grid-column: 1;
    grid-row: 1 / -1;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Section Logo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.logo-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), #495057);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.logo-avatar .avatar-initials {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.logo-avatar .avatar-icon {
    position: absolute;
    font-size: 22px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateY(100%);
    opacity: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    white-space: nowrap;
}

.logo-text .brand-name {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateX(0);
    opacity: 1;
}

.logo-text .full-name {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateX(100%);
    opacity: 0;
}

/* Effets hover logo */
.logo-section:hover {
    transform: scale(1.02);
}

.logo-section:hover .logo-avatar {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo-section:hover .logo-avatar .avatar-initials {
    transform: translateY(-100%);
    opacity: 0;
}

.logo-section:hover .logo-avatar .avatar-icon {
    transform: translateY(0);
    opacity: 1;
}

.logo-section:hover .logo-text .brand-name {
    transform: translateX(-100%);
    opacity: 0;
}

.logo-section:hover .logo-text .full-name {
    transform: translateX(0);
    opacity: 1;
}

/* Menu de navigation */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(44, 44, 44, 0.8);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: var(--glass-bg);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* Section de progression */
.progress-section {
    margin-top: auto;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.progress-title {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: rgba(44, 44, 44, 0.8);
    font-size: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #6c757d);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ===================================
   6. CONTENU PRINCIPAL
   =================================== */
.main-content {
    grid-column: 2;
    grid-row: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(242, 221, 204, 0.1) 0%, rgba(16, 21, 36, 0.1) 100%);
    z-index: -1;
}

/* Sections de contenu */
.content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    height: 100%;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-section::-webkit-scrollbar {
    display: none;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Section Hero */
.hero-section.active {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: rgba(44, 44, 44, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Section À propos */
.about-section.active {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    max-width: 100%;
    height: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: rgba(44, 44, 44, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-avatar {
    text-align: center;
}

.avatar-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #6c757d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--secondary-color);
    margin: 0 auto 20px;
}

/* Section Projets */
.projects-section.active {
    display: flex !important;
    flex-direction: column;
    text-align: center;
    height: 100%;
}

.projects-list-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.projects-list-view.hidden {
    display: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

.project-card-mini {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.project-card-mini:hover {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card-mini h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-card-mini p {
    color: rgba(44, 44, 44, 0.7);
    font-size: 14px;
}

/* Vue détaillée d'un projet */
.project-detail-view {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.project-detail-view.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.project-detail-header {
    margin-bottom: 30px;
}

.back-to-projects {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-projects:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.back-to-projects i {
    font-size: 16px;
}

.project-detail-content {
    text-align: left;
}

.project-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.project-detail-description {
    color: rgba(44, 44, 44, 0.8);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.project-detail-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-detail-images img:hover {
    transform: scale(1.02);
}

.project-detail-technologies {
    margin-bottom: 30px;
}

.project-detail-technologies h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-detail-technologies .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-detail-technologies .tech-tag {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.project-detail-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-detail-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), #6c757d);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-detail-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 44, 44, 0.3);
}

.modal {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 20px;
  border-radius: 12px;
  max-width: 700px;
  max-height: 90%;
  width: 90%;
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.4s ease;
}

.modal-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
  align-items: center;
}

.modal-images img {
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 28px;
  cursor: pointer;
}
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}


/* Section Compétences */
.skills-section.active {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

.skills-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
    flex-grow: 1;
}

.skill-item-mini {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.skill-item-mini:nth-child(1) { animation-delay: 0.05s; }
.skill-item-mini:nth-child(2) { animation-delay: 0.1s; }
.skill-item-mini:nth-child(3) { animation-delay: 0.15s; }
.skill-item-mini:nth-child(4) { animation-delay: 0.2s; }
.skill-item-mini:nth-child(5) { animation-delay: 0.25s; }
.skill-item-mini:nth-child(6) { animation-delay: 0.3s; }
.skill-item-mini:nth-child(7) { animation-delay: 0.35s; }
.skill-item-mini:nth-child(8) { animation-delay: 0.4s; }
.skill-item-mini:nth-child(9) { animation-delay: 0.45s; }
.skill-item-mini:nth-child(10) { animation-delay: 0.5s; }
.skill-item-mini:nth-child(11) { animation-delay: 0.55s; }

@keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

.skill-item-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skill-item-mini i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.skill-item-mini span {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 20px;
}


/* Section Contact */
.contact-section.active {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(44, 44, 44, 0.8);
    font-size: 14px;
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* ===================================
   7. SIDEBAR DROITE
   =================================== */
.sidebar-right {
    grid-column: 3;
    grid-row: 2 / -1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 24px;
    flex: 1;
}

.widget-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Statistiques rotatives */
.stats-simple {
    position: relative;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
}

.rotating-stat {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(136, 136, 136, 0.288);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rotating-stat.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 2;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.stat-icon-simple {
    font-size: 28px;
    color: var(--primary-color);
    background: rgba(44, 44, 44, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info-simple {
    flex: 1;
    text-align: left;
}

.stat-label-simple {
    font-size: 14px;
    color: rgba(44, 44, 44, 0.7);
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-number-simple {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(44, 44, 44, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.stat-dot:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* ===================================
   8. FOOTER
   =================================== */
.footer {
    grid-column: 2;
    grid-row: 3;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(44, 44, 44, 0.8);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(44, 44, 44, 0.8);
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--red-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ===================================
   9. COMPOSANTS UI
   =================================== */

/* Boutons */
.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), #6c757d);
    color: var(--secondary-color);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 44, 44, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
}

/* Spinner de chargement */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* ===================================
   10. FORMULAIRES
   =================================== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(44, 44, 44, 0.5);
}

/* Validation du formulaire */
.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-status.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.form-status.loading {
    background: rgba(44, 44, 44, 0.05);
    color: var(--primary-color);
    border: 1px solid var(--glass-border);
}

/* ===================================
   11. ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Classes d'animation */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

/* ===================================
   12. MODE SOMBRE
   =================================== */
body.dark-mode {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --primary-color: #f2ddcc;
    --secondary-color: #101524;
    --component-color: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --bgtier-color: #12192e;
    --container-color: #0e121f;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Overrides spécifiques mode sombre */
body.dark-mode .logo-text {
    color: white;
}

body.dark-mode .logo-section:hover .logo-avatar {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-item {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .nav-item:hover,
body.dark-mode .nav-item.active {
    background: var(--glass-bg);
    color: white;
}

body.dark-mode .progress-title {
    color: white;
}

body.dark-mode .progress-item {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .progress-fill {
    background: linear-gradient(90deg, #f2ddcc, #e8c4a0);
}

body.dark-mode .search-input {
    color: white;
}

body.dark-mode .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .search-input:focus {
    box-shadow: 0 0 0 3px rgba(242, 221, 204, 0.1);
}

body.dark-mode .search-icon {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .search-results {
    background: rgba(29, 36, 57, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .search-result-item:hover,
body.dark-mode .search-result-item.selected {
    background: rgba(242, 221, 204, 0.1);
}

body.dark-mode .search-result-icon {
    color: var(--primary-color);
}

body.dark-mode .search-result-title {
    color: white;
}

body.dark-mode .search-result-description {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .search-no-results {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .theme-toggle {
    color: white;
}

body.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .hero-content h1 {
    color: white;
}

body.dark-mode .hero-content .subtitle {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #f2ddcc, #e8c4a0);
    color: #101524;
}

body.dark-mode .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(242, 221, 204, 0.3);
}

body.dark-mode .btn-secondary {
    color: white;
}

body.dark-mode .about-text h2 {
    color: white;
}

body.dark-mode .about-text p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .avatar-img {
    background: linear-gradient(135deg, #f2ddcc, #e8c4a0);
    color: #101524;
}

body.dark-mode .project-card-mini h4 {
    color: white;
}

body.dark-mode .project-card-mini p {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .back-to-projects {
    color: white;
}

body.dark-mode .back-to-projects:hover {
    background: var(--primary-color);
    color: #101524;
}

body.dark-mode .project-detail-title {
    color: white;
}

body.dark-mode .project-detail-description {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .project-detail-technologies h3 {
    color: white;
}

body.dark-mode .project-detail-technologies .tech-tag {
    color: white;
}

body.dark-mode .project-detail-links a {
    background: linear-gradient(135deg, #f2ddcc, #e8c4a0);
    color: #101524;
}

body.dark-mode .project-detail-links a:hover {
    box-shadow: 0 8px 25px rgba(242, 221, 204, 0.3);
}

body.dark-mode .skill-item-mini span {
    color: white;
}

body.dark-mode .contact-item {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .widget-title {
    color: white;
}

body.dark-mode .rotating-stat {
    background: var(--component-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .stat-icon-simple {
    background: rgba(242, 221, 204, 0.1);
    color: var(--primary-color);
}

body.dark-mode .stat-label-simple {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .stat-number-simple {
    color: var(--primary-color);
}

body.dark-mode .stat-dot {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .stat-dot.active {
    background: var(--primary-color);
}

body.dark-mode .social-link {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .status-indicator {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .form-group label {
    color: white;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    color: white;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .form-status.loading {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Overrides pour les éléments inline */
body.dark-mode h2[style*="color: var(--primary-color)"] {
    color: white !important;
}

body.dark-mode h3[style*="color: var(--primary-color)"] {
    color: white !important;
}

body.dark-mode p[style*="color: rgba(44,44,44,0.7)"] {
    color: rgba(255,255,255,0.7) !important;
}

/* ===================================
   13. MOBILE LAYOUT
   =================================== */

/* Mobile Header */
.mobile-header {
    padding: 10px 20px 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 30px;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-avatar.mobile {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), #6c757d);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-text.mobile .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.logo-text.mobile .full-name {
    font-size: 14px;
    color: rgba(44,44,44,0.7);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

.mobile-theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.mobile-theme-toggle:hover {
    background: rgba(44, 44, 44, 0.1);
    transform: scale(1.05);
}

.mobile-theme-toggle:active {
    transform: scale(0.95);
}

/* Mobile Main Content */
.mobile-main-content {
    flex: 1;
    overflow-y: auto;
    /* Augmenter le padding pour s'assurer que le contenu n'est jamais caché par la barre de navigation */
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

.mobile-section {
    display: block;
    padding: 30px 20px;
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-section:first-child {
    padding-top: 60px;
}

.mobile-section:last-child {
    min-height: calc(100vh - 160px);
}

.mobile-section.contact-section {
    min-height: calc(100vh - 100px);
    padding-bottom: 20px;
}

.mobile-section .hero-content,
.mobile-section .about-content,
.mobile-section .timeline-content,
.mobile-section .projects-grid,
.mobile-section .skills-grid-mini,
.mobile-section .contact-form {
    flex-shrink: 0;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    height: auto;
    min-height: 70px;
    /* Forcer l'accélération matérielle pour améliorer le rendu */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-width: 45px;
    flex: 1;
    max-width: 80px;
}

.mobile-nav-item i {
    font-size: 20px;
    color: rgba(44,44,44,0.6);
    transition: var(--transition);
}

.mobile-nav-item .nav-label {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    display: none;
    transition: var(--transition);
}

.mobile-nav-item.active {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-item.active i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.mobile-nav-item.active .nav-label {
    color: var(--secondary-color);
    display: block;
}

.mobile-nav-item:not(.active):hover {
    background: var(--glass-bg);
    transform: translateY(-1px);
}

.mobile-nav-item:not(.active):hover i {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Mobile Footer Content */
.mobile-footer-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 40px 20px 20px 20px;
    text-align: center;
    margin-top: 40px;
}

.mobile-footer-content .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-footer-content .social-link {
    width: 50px;
    height: 50px;
    background: var(--component-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    font-size: 18px;
}

.mobile-footer-content .social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mobile-footer-content .status-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(44,44,44,0.7);
    margin-bottom: 20px;
}

.mobile-footer-content .status-dot {
    width: 8px;
    height: 8px;
    background: var(--red-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
    margin-top: 6px;
}

.mobile-footer-content .footer-copyright {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: rgba(44,44,44,0.5);
    font-size: 12px;
}

/* Mobile Section Adjustments */
.mobile-section.hero-section .hero-content h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-section.hero-section .subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.mobile-section.hero-section .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.mobile-section.about-section .about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-section.about-section .about-avatar {
    order: -1;
    text-align: center;
}

.mobile-section.about-section .avatar-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    font-size: 40px;
}

.mobile-section.projects-section .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mobile-section.skills-section .skills-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mobile-section.contact-section .contact-form {
    max-width: 100%;
}

/* Mobile Timeline */
.mobile-timeline-items {
    padding: 20px 15px;
    position: relative;
}

.mobile-timeline-items::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    z-index: 1;
}

.mobile-timeline-item {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.mobile-timeline-icon {
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.mobile-timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
}

.mobile-timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.mobile-timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid var(--glass-bg);
}

.mobile-timeline-content h2 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
}

.mobile-timeline-content p {
    margin: 0 0 15px 0;
    color: rgba(44, 44, 44, 0.8);
    line-height: 1.5;
    font-size: 14px;
}

.mobile-timeline-year {
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
}

/* Dark mode adjustments pour mobile */
body.dark-mode .mobile-layout{
    background: var(--component-color);
}
body.dark-mode .mobile-header {
    background: var(--glass-bg);
}

body.dark-mode .mobile-nav {
    background: var(--glass-bg);
}

body.dark-mode .mobile-footer-content {
    background: var(--glass-bg);
}

body.dark-mode .mobile-footer-content .status-indicator {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .mobile-footer-content .footer-copyright {
    color: rgba(255,255,255,0.5);
}

body.dark-mode .mobile-nav-item .nav-label {
    color: var(--primary-color);
}

body.dark-mode .mobile-nav-item.active .nav-label {
    color: var(--secondary-color);
}

body.dark-mode .mobile-nav-item i {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .mobile-nav-item.active i {
    color: black;
}

body.dark-mode .mobile-nav-item:not(.active):hover i {
    color: var(--primary-color);
}

body.dark-mode .logo-text.mobile .full-name {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .logo-text.mobile .brand-name {
    color: white;
}

body.dark-mode .mobile-theme-toggle {
    color: white;
}

body.dark-mode .mobile-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .mobile-timeline-items::before {
    background: #f2ddcc;
}

body.dark-mode .mobile-timeline-icon {
    background: #f2ddcc;
    color: #101524;
}

body.dark-mode .mobile-timeline-content {
    background: var(--glass-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mobile-timeline-content:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .mobile-timeline-content h3 {
    color: white;
}

body.dark-mode .mobile-timeline-content p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .mobile-timeline-year {
    background: var(--container-color);
    color: #f2ddcc;
}

/* Modal Mobile pour les projets */
.mobile-project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.mobile-project-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 60px;
}

.mobile-modal-content {
    background: var(--secondary-color);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: slideUpFadeIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
}

.mobile-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 18px;
}

.mobile-modal-close:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.mobile-modal-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.mobile-project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mobile-project-description {
    color: rgba(44, 44, 44, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mobile-project-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-project-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-project-technologies {
    margin-bottom: 20px;
}

.mobile-project-technologies h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mobile-project-technologies .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-project-technologies .tech-tag {
    padding: 6px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
}

.mobile-project-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), #6c757d);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-project-links a:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.3);
}

/* Dark mode pour modal mobile */
body.dark-mode .mobile-modal-content {
    background: var(--container-color);
}

body.dark-mode .mobile-modal-close {
    color: white;
}

body.dark-mode .mobile-modal-close:hover {
    background: var(--primary-color);
    color: #101524;
}

body.dark-mode .mobile-project-title {
    color: white;
}

body.dark-mode .mobile-project-description {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .mobile-project-technologies h3 {
    color: white;
}

body.dark-mode .mobile-project-technologies .tech-tag {
    color: white;
}

body.dark-mode .mobile-project-links a {
    background: linear-gradient(135deg, #f2ddcc, #e8c4a0);
    color: #101524;
}

/* ===================================
   14. MEDIA QUERIES
   =================================== */

/* Tablettes et petits écrans */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .desktop-layout {
        display: none;
    }

    .mobile-layout {
        display: flex;
        flex-direction: column;
        /* Fallback pour les navigateurs qui ne supportent pas dvh */
        height: 100vh;
        /* Utiliser calc avec variable CSS pour la hauteur réelle */
        height: calc(var(--vh, 1vh) * 100);
        /* Utiliser 100dvh pour la hauteur dynamique de viewport (prend en compte la barre du navigateur) */
        height: 100dvh;
        max-width: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: var(--container-color);
        overflow: hidden;
    }

    /* Cache la timeline desktop sur mobile */
    .mobile-section.timeline-section .timeline-content,
    .mobile-section.timeline-section .cards-container {
        display: none;
    }
    .mouse-cursor {
            display: none;
        }
}

/* Petits téléphones */
@media (max-width: 480px) {
    .mobile-section h2 {
        font-size: 2rem !important;
    }
    
    .mobile-section.hero-section .hero-content h1 {
        font-size: 2rem;
    }
    
    .mobile-nav-item {
        min-width: 40px;
        padding: 6px 8px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
    }
    
    .mobile-nav-item .nav-label {
        font-size: 10px;
    }
    
    .mobile-timeline-items {
        padding: 15px 10px !important;
    }
    
    .mobile-timeline-items::before {
        left: 20px !important;
        width: 2px !important;
    }
    
    .mobile-timeline-item {
        margin-bottom: 30px !important;
    }
    
    .mobile-timeline-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        left: 0 !important;
    }
    
    .mobile-timeline-content {
        padding: 16px !important;
    }
    
    .mobile-timeline-content h2 {
        font-size: 16px !important;
    }
    
    .mobile-timeline-content p {
        font-size: 13px !important;
    }
    
    .mobile-timeline-year {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
}

/* ===================================
   FIN DU CSS ORGANISÉ
   =================================== */

   .mouse-cursor {
            position: fixed;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 100;
            filter: blur(2px);
            opacity: 0.8;
            transform: translate(-50%, -50%);
        }

    .shape {
            position: fixed;
            border-radius: 50% 40% 60% 30%;
            pointer-events: none;
            z-index: 10;
            filter: blur(40px);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: -1;
            
        }

        .shape.active {
            opacity: 0.8;
            z-index: -1;
        }

        .shape.fade-out {
            opacity: 0;
            transform: scale(1.5);
            transition: all 1s ease-out;
            z-index: -1;
        }

        .trail-shape {
            position: fixed;
            border-radius: 50% 60% 40% 70%;
            pointer-events: none;
            z-index: -1;
            filter: blur(25px);
            opacity: 0.6;
        }
