/* ========================================
   Variables CSS - Dark Mode (Default)
   ======================================== */
:root {
    --primary-color: #ffffff;
    --primary-dark: #e5e7eb;
    --primary-light: #f9fafb;
    --secondary-color: #9ca3af;
    --background-dark: #0a0a0a;
    --background-light: #121212;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #1f1f1f;
    --card-background: #1a1a1a;
    --accent-color: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Variables CSS - Light Mode
   ======================================== */
[data-theme="light"] {
    --primary-color: #1a1a1a;
    --primary-dark: #2d2d2d;
    --primary-light: #f5f5f5;
    --secondary-color: #6b7280;
    --background-dark: #ffffff;
    --background-light: #f9fafb;
    --text-primary: #0a0a0a;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --card-background: #ffffff;
    --accent-color: #1a1a1a;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(calc(-50% - 1px)) scale(1.02);
    box-shadow: var(--shadow-md);
}

.theme-icon {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover .theme-icon {
    color: var(--background-dark);
}

.sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .hero::before {
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 25%, #0ea5e9 35%, #3b82f6 50%, #1e40af 65%, #06b6d4 85%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    line-height: 1.2;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.typewriter-container {
    display: inline-block;
    min-width: 420px;
    text-align: left;
}

.typewriter-text {
    display: inline;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
    font-weight: 400;
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1;
    vertical-align: middle;
    width: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--background-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.code-animation {
    width: 100%;
    max-width: 400px;
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

.code-line {
    height: 12px;
    background: var(--primary-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.8;
}

.code-line:nth-child(1) {
    width: 80%;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 60%;
    animation-delay: 0.3s;
}

.code-line:nth-child(3) {
    width: 70%;
    animation-delay: 0.6s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

[data-theme="light"] .mouse {
    border-color: var(--text-muted);
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* ========================================
   Sections Common
   ======================================== */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: var(--background-light);
}

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

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ========================================
   Skills Section
   ======================================== */

/* Tabs Container */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .tabs-container {
    background: rgba(0, 0, 0, 0.02);
}

.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    min-width: 220px;
}

.tab-button:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .tab-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

[data-theme="light"] .tab-button.active {
    background: rgba(0, 0, 0, 0.08);
}

.tab-button span {
    font-size: 1.05rem;
    color: inherit;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Tab Content */
.tab-content-container {
    position: relative;
    min-height: 400px;
    padding: 2rem 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-preview,
.certificates-preview {
    padding: 2rem 0;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.skill-category {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: none;
    padding-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 120px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    animation: float 3s ease-in-out infinite;
}

.tech-item:nth-child(1) {
    animation-delay: 0s;
}

.tech-item:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-item:nth-child(3) {
    animation-delay: 0.4s;
}

.tech-item:nth-child(4) {
    animation-delay: 0.6s;
}

.tech-item:nth-child(5) {
    animation-delay: 0.8s;
}

.tech-item:nth-child(6) {
    animation-delay: 1s;
}

.tech-item:nth-child(7) {
    animation-delay: 1.2s;
}

.tech-item:nth-child(8) {
    animation-delay: 1.4s;
}

.tech-item:nth-child(9) {
    animation-delay: 1.6s;
}

.tech-item:nth-child(10) {
    animation-delay: 1.8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
}

.tech-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-background);
    border: 3.5px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .tech-icon {
    border: 3.5px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Ajuster la taille des logos CSS3 et JavaScript pour correspondre à HTML5 */
.tech-item:nth-child(2) .tech-icon,
.tech-item:nth-child(3) .tech-icon {
    padding: 12px;
}

.tech-item:nth-child(2) .tech-icon img,
.tech-item:nth-child(3) .tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ajuster les tailles dans la section Outils */
.tech-icon img[alt="VS Code"] {
    width: 75%;
    height: 75%;
    max-width: 75%;
    max-height: 75%;
}

.tech-icon img[alt="Figma"] {
    width: 200%;
    height: 200%;
    max-width: 200%;
    max-height: 200%;
}

/* Ajuster les tailles dans la section Autres */
.tech-icon img[alt="Windows"],
.tech-icon img[alt="Photoshop"] {
    width: 140% !important;
    height: 140% !important;
    max-width: 140% !important;
    max-height: 140% !important;
}

#tab-autres .tech-icon img[alt="Windows"],
#tab-autres .tech-icon img[alt="Photoshop"] {
    width: 140% !important;
    height: 140% !important;
}

#tab-autres .tech-item:nth-child(1) .tech-icon,
#tab-autres .tech-item:nth-child(3) .tech-icon {
    padding: 10px;
}

#tab-autres .tech-icon img[alt="Linux"] {
    width: 70% !important;
    height: 70% !important;
    max-width: 70% !important;
    max-height: 70% !important;
}

.tech-icon svg {
    width: 40px;
    height: 40px;
}

.tech-icon strong {
    font-weight: 900;
}

/* Frontend Icons */
.tech-icon.react {
    background: linear-gradient(135deg, #61dafb 0%, #282c34 100%);
    color: #61dafb;
    font-size: 2rem;
}

.tech-icon.html {
    background: linear-gradient(135deg, #e34c26 0%, #f06529 100%);
    font-weight: 800;
    font-size: 1.75rem;
}

.tech-icon.css {
    background: linear-gradient(135deg, #264de4 0%, #2965f1 100%);
    font-weight: 800;
    font-size: 1.75rem;
}

.tech-icon.js {
    background: linear-gradient(135deg, #f7df1e 0%, #f0db4f 100%);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
}

.tech-icon.ts {
    background: linear-gradient(135deg, #3178c6 0%, #007acc 100%);
    font-weight: 800;
    font-size: 1rem;
}

.tech-icon.sass {
    background: linear-gradient(135deg, #cc6699 0%, #cd6799 100%);
    font-weight: 800;
}

.tech-icon.tailwind {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: #000;
    font-weight: 800;
}

/* Backend Icons */
.tech-icon.nodejs {
    background: linear-gradient(135deg, #339933 0%, #68a063 100%);
    font-weight: 800;
    font-size: 1rem;
}

.tech-icon.postgres {
    background: linear-gradient(135deg, #336791 0%, #4169e1 100%);
    font-size: 2.5rem;
}

.tech-icon.php {
    background: linear-gradient(135deg, #777bb4 0%, #8993be 100%);
    font-weight: 700;
    font-size: 0.875rem;
}

.tech-icon.python {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
    font-size: 2.5rem;
}

.tech-icon.c {
    background: linear-gradient(135deg, #00599c 0%, #004482 100%);
    font-size: 2rem;
    font-weight: 800;
}

.tech-icon.mysql {
    background: linear-gradient(135deg, #4479a1 0%, #00618a 100%);
    font-weight: 800;
    font-size: 0.875rem;
}

/* Outils Icons */
.tech-icon.git {
    background: linear-gradient(135deg, #f05032 0%, #ee5131 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

.tech-icon.figma {
    background: linear-gradient(135deg, #f24e1e 0%, #ff7262 100%);
    font-weight: 800;
    font-size: 1.75rem;
}

.tech-icon.trello {
    background: linear-gradient(135deg, #0052cc 0%, #0079bf 100%);
    font-weight: 800;
    font-size: 1.75rem;
}

.tech-icon.github {
    background: linear-gradient(135deg, #24292e 0%, #181717 100%);
    font-size: 2.5rem;
}

.tech-icon.vscode {
    background: linear-gradient(135deg, #007acc 0%, #0065a9 100%);
    font-size: 2rem;
    font-weight: 700;
}

.tech-icon.intellij {
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
    font-size: 0.875rem;
    font-weight: 800;
    color: #fff;
}

.tech-icon.datagrip {
    background: linear-gradient(135deg, #000000 0%, #1e7e34 100%);
    font-size: 0.875rem;
    font-weight: 800;
    color: #fff;
}

.tech-icon.photoshop {
    background: linear-gradient(135deg, #001e36 0%, #31a8ff 100%);
    font-size: 0.75rem;
    font-weight: 800;
}

/* Autres Icons */
.tech-icon.windows {
    background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    font-size: 2.5rem;
}

.tech-icon.linux {
    background: linear-gradient(135deg, #fcc624 0%, #ffcc02 100%);
    color: #000;
    font-size: 2.5rem;
}

.tech-icon.blender {
    background: linear-gradient(135deg, #f5792a 0%, #ea7600 100%);
    font-weight: 800;
    font-size: 1.75rem;
}

.tech-icon.premiere {
    background: linear-gradient(135deg, #ea77ff 0%, #9999ff 100%);
    font-size: 0.75rem;
    font-weight: 800;
}

.tech-icon.aftereffects {
    background: linear-gradient(135deg, #9999ff 0%, #c49ef4 100%);
    font-size: 0.75rem;
    font-weight: 800;
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    background-color: var(--background-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.macbook-container {
    position: relative;
    padding: 2rem;
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.macbook-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.macbook-frame {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.macbook-screen-area {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* Ajustez ces valeurs selon la position réelle de l'écran dans votre image MacBook */
    top: 0%;
    left: 7.7%;
    width: 84.7%;
    height: 90.8%;
    border-radius: 2% 2% 0 0;
    cursor: pointer;
    overflow: hidden;
    /* Décommentez la ligne suivante pour voir la zone de l'écran pendant le débogage */
    /* border: 2px solid red; */
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: inherit;
}

.macbook-screen-area:hover .project-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .macbook-screen-area:hover .project-overlay {
    background: rgba(255, 255, 255, 0.9);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--card-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: scale(1.1);
}

.project-link svg {
    width: 24px;
    height: 24px;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .tag {
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
}

.social-links a svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--background-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-name {
        font-size: 3rem;
    }

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

    .typewriter-container {
        display: block;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .btn {
        min-width: 200px;
        flex: 0 1 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 968px) {
    .hero-buttons {
        justify-content: center;
        gap: 1.5rem;
    }

    .btn {
        min-width: 220px;
        padding: 1rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        font-size: 1.1rem;
    }

    .theme-toggle {
        left: 1rem;
        right: auto;
        width: 32px;
        height: 32px;
    }

    .theme-icon {
        width: 15px;
        height: 15px;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        margin: 0;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-toggle.active {
        transform: translateY(-50%);
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        justify-content: center;
    }

    .hero-description {
        font-size: 1rem;
    }

    .typewriter-container {
        min-width: 280px;
        display: block;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        align-items: center;
    }

    .btn {
        min-width: 180px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .tabs-container {
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 12px;
    }

    .tab-button {
        min-width: 160px;
        padding: 1.25rem 2rem;
        font-size: 0.9rem;
        border-radius: 12px;
        flex: 1 1 auto;
    }

    .tab-button span {
        font-size: 0.9rem;
    }

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

    .about-text p {
        font-size: 1.05rem;
    }

    .tech-grid {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .tech-item {
        width: 100px;
        padding: 0;
    }

    .tech-icon {
        width: 80px;
        height: 80px;
        padding: 14px;
    }

    .tech-item span {
        font-size: 0.85rem;
    }

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

    .macbook-container {
        padding: 1.5rem;
    }

    .macbook-screen-area {
        top: 6.5%;
        left: 3.8%;
        width: 92.4%;
        height: 59.5%;
        border-radius: 2% 2% 0 0;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.75rem;
    }

    .contact-info > p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        left: 1rem;
        right: auto;
        width: 30px;
        height: 30px;
    }

    .theme-icon {
        width: 14px;
        height: 14px;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.25rem;
        justify-content: center;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .typewriter-container {
        min-width: 200px !important;
        display: block;
        text-align: center;
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .tab-button {
        min-width: 100% !important;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }

    .tabs-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .tech-grid {
        gap: 1rem;
        padding: 1rem 0;
    }

    .tech-item {
        width: 90px;
    }

    .tech-icon {
        width: 70px;
        height: 70px;
        padding: 12px;
    }

    .tech-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Ajuster les logos spécifiques sur mobile */
    .tech-icon img[alt="Figma"] {
        width: 150% !important;
        height: 150% !important;
    }

    #tab-autres .tech-icon img[alt="Windows"],
    #tab-autres .tech-icon img[alt="Photoshop"] {
        width: 110% !important;
        height: 110% !important;
    }

    .tech-item span {
        font-size: 0.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .social-links a svg {
        width: 20px;
        height: 20px;
    }

    .macbook-container {
        padding: 1rem;
    }

    .macbook-screen-area {
        top: 6%;
        left: 3.5%;
        width: 93%;
        height: 58%;
        border-radius: 1.5% 1.5% 0 0;
    }

    .project-content h3 {
        font-size: 1.25rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 360px) {
    .hero-name {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.1rem;
        justify-content: center;
    }

    .typewriter-container {
        min-width: 180px !important;
        text-align: center;
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .tech-item {
        width: 80px;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .tech-item span {
        font-size: 0.75rem;
    }
}

