/* ========================================
   VARIABLES CSS & RESET
======================================== */
:root {
    --color-cream: #FDF8F3;
    --color-peach: #F5D5C0;
    --color-coral: #E8A07A;
    --color-orange: #D4764E;
    --color-rust: #C45C3A;
    --color-terracotta: #A84832;
    --color-brown: #3D2820;

    --text-dark: #3D2820;
    --text-medium: #6B4D3E;
    --text-light: #8B6B5A;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    z-index: 9999999;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
    background: rgba(253, 248, 243, 0.25);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 0;
    transition: opacity var(--transition-fast);
    display: inline-block;
    position: relative;
    width: 0.9em;
    height: 1em;
}

.logo:hover {
    opacity: 0.8;
}

.logo-letter {
    position: absolute;
}

.logo-dark {
    color: #7A4833;
    top: 0;
    left: 0;
    z-index: 2;
}

.logo-light {
    color: #B88A74;
    top: 0.12em;
    left: 0.2em;
    z-index: 1;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-medium);
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-rust);
    transition: width var(--transition-medium);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* ========================================
   PAGE D'ACCUEIL
======================================== */
.home {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--color-cream) 0%, #FFF9F5 50%, var(--color-cream) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.home.visible {
    opacity: 1;
}

/* ========================================
   SECTION HERO
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    background: linear-gradient(120deg, #fff9f5 0%, #f5d5c0 40%, #b28069 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 60% 40%, #fff 0%, rgba(178, 128, 105, 0.08) 60%, transparent 100%);
    filter: blur(32px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    animation: heroLightMove 8s ease-in-out infinite alternate;
}

@keyframes heroLightMove {
    0% { top: -10%; left: -10%; opacity: 0.7; }
    100% { top: 0%; left: 10%; opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-rust);
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #6E321D;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: #B28069;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 1.5rem;
    box-shadow: 0 4px 16px rgba(178, 128, 105, 0.12);
    text-decoration: none;
}

.hero-btn:hover {
    background: #a06c5a;
    transform: translateY(-2px) scale(1.03);
}

/* ========================================
   SECTION PROJETS - CARROUSEL
======================================== */
.projects {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    text-align: center;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.carousel {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card {
    min-width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(61, 40, 32, 0.08);
    border-radius: 20px;
    transition: all var(--transition-medium);
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(61, 40, 32, 0.1);
}

.project-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-peach);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.project-card h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.project-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* Boutons de navigation carrousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(61, 40, 32, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(61, 40, 32, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

/* Indicateurs */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.indicator {
    width: 8px;
    height: 8px;
    background: rgba(61, 40, 32, 0.2);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.indicator:hover {
    background: rgba(61, 40, 32, 0.4);
    transform: scale(1.2);
}

.indicator.active {
    width: 24px;
    border-radius: 4px;
    background: var(--text-dark);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--text-dark);
    color: var(--color-cream);
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(253, 248, 243, 0.1);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    width: 0.9em;
    height: 1em;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(253, 248, 243, 0.6);
    max-width: 300px;
}

.footer-contact {
    display: flex;
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.footer-contact a {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-coral);
}

.footer-links {
    position: absolute;
    right: var(--spacing-lg);
    top: calc(var(--spacing-lg) + 3.5rem);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-end;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.footer-nav a {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-coral);
}

.footer-links a {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(253, 248, 243, 0.4);
}

/* ========================================
   SECTION QUI SUIS-JE
======================================== */
.about-section {
    padding: 8rem 2rem;
    background: linear-gradient(to bottom, var(--color-cream) 0%, #FAF3EB 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    max-width: 90%;
    margin-top: 30px;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-image-placeholder {
    width: 100%;
    padding-bottom: 125%;
    background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-coral) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-text {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.about-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.skill-item h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.skill-item p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-rust) 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    align-self: flex-start;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.about-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 160, 122, 0.3);
}

.about-cta:hover::before {
    left: 100%;
}

.about-cta:active {
    transform: translateY(0);
}

/* ========================================
   SECTION SKILLS - Accordéons
======================================== */
.skills-section {
    padding: 6rem 2rem 3rem;
    background: var(--color-cream);
}

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

.skills-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2.5rem;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
}

.skill-accordion {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.skill-accordion:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-header:hover {
    background: rgba(232, 160, 122, 0.05);
}

.accordion-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    color: var(--color-coral);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content.active {
    max-height: 600px;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
}

.skill-tag {
    padding: 0.5rem 0 0.5rem 1rem;
    background: transparent;
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid var(--color-coral);
    border-radius: 3px;
}

.skill-tag:hover {
    transform: translateX(5px);
    color: var(--color-coral);
    border-left-color: var(--color-rust);
}

/* ========================================
   SECTION EXPÉRIENCES (home)
======================================== */
.experience-section {
    padding: 3rem 2rem 8rem;
    background: linear-gradient(to bottom, var(--color-cream) 0%, #FAF3EB 100%);
}

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

.experience-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 4rem;
}

.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-coral), var(--color-peach));
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-line {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--color-coral);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(232, 160, 122, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-7px);
}

.experience-item:hover .experience-line,
.experience-item.in-view .experience-line {
    background: var(--color-coral);
}

.experience-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-item:hover .experience-content {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.experience-company {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.experience-role {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-coral);
    margin-bottom: 0.25rem;
}

.experience-period {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.experience-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.experience-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-coral) 100%);
    border: 1px solid rgba(61, 40, 32, 0.15);
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-btn:hover {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-orange) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(61, 40, 32, 0.15);
}

.experience-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.experience-btn:hover::after {
    transform: translateX(4px);
}

/* ========================================
   PAGE CONTACT
======================================== */
.contact-page {
    background: var(--color-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-content {
    padding: 10rem 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.contact-item h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-brown);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.contact-item a {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--color-brown);
    text-decoration: none;
    display: block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 400;
}

.contact-item a:hover {
    color: var(--color-coral);
    transform: translateX(5px);
}

.contact-item p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-brown);
    opacity: 0.7;
    line-height: 1.6;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links-vertical a {
    font-size: 1rem;
    font-weight: 400;
}

.availability-status {
    font-weight: 500;
    opacity: 1 !important;
    margin-top: 0.5rem;
    color: var(--text-medium);
}

.status-dot {
    display: inline-block;
    color: #4CAF50;
    animation: blink 2s ease-in-out infinite;
}

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

/* ========================================
   CLASSES UTILITAIRES POUR PROJETS/EXPÉRIENCES
======================================== */
.project-detail-img {
    width: 70%;
    display: block;
    margin: 0 auto;
}

.project-detail-img--full {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(61, 40, 32, 0.15);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(61, 40, 32, 0.1);
}

.project-gallery--single {
    margin-top: 1.5rem;
}

.project-gallery--single img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(61, 40, 32, 0.1);
}

.project-placeholder {
    background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-cream) 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.project-placeholder h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-placeholder p {
    color: var(--text-medium);
    font-style: italic;
}

.text-spacing-top {
    margin-top: 1rem;
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablette */
@media (max-width: 1024px) {
    .carousel-btn {
        background: transparent;
        border: none;
        backdrop-filter: none;
    }

    .carousel-btn:hover {
        background: transparent;
        border: none;
    }
}

@media (max-width: 968px) {
    .about-section {
        padding: 6rem 1.5rem;
    }

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

    .about-image {
        margin: 0 auto;
        max-width: 400px;
    }

    .about-image-placeholder {
        padding-bottom: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-cta {
        display: block;
        align-self: center;
        margin-top: 1.5rem;
        width: fit-content;
    }

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

    .contact-content {
        padding: 4rem 1.5rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 4rem;
    }

    .header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    /* Menu hamburger */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-overlay {
        display: block;
    }

    .logo {
        margin-top: -5px;
        z-index: 102;
        position: relative;
    }

    .hero {
        padding: var(--spacing-lg);
        min-height: 100vh;
    }

    .hero-btn {
        display: none;
    }

    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .project-card p {
        display: none;
    }

    .projects {
        padding: var(--spacing-lg);
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .project-card {
        padding: var(--spacing-lg);
    }

    /* Footer visible sur mobile */
    .footer {
        padding: 2rem 1.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: 0;
    }

    .footer-links {
        position: static;
        align-items: flex-start;
        text-align: left;
    }

    .footer-nav {
        align-items: flex-start;
    }

    /* Skills */
    .skills-section {
        padding: 4rem 1.5rem;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .accordion-header {
        padding: 1.5rem;
    }

    .accordion-title {
        font-size: 1.25rem;
    }

    .skills-grid {
        gap: 0.75rem;
        padding: 1.5rem;
    }

    .skill-tag {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Expériences */
    .experience-section {
        padding: 6rem 1.5rem;
    }

    .experience-timeline {
        padding-left: 1.5rem;
    }

    .experience-item {
        padding-left: 1.5rem;
    }

    .experience-line {
        left: -1.5rem;
        transform: translateX(-8px);
    }

    .experience-content {
        padding: 1.5rem;
    }

    .experience-company {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-content {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-container {
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }

    .contact-info {
        gap: 2rem;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .project-card {
        padding: var(--spacing-md);
    }

    .skills-section {
        padding: 3rem 1rem;
    }

    .experience-section {
        padding: 4rem 1rem;
    }

    .about-section {
        padding: 4rem 1rem;
    }

    .contact-content {
        padding: 0;
        min-height: 100vh;
    }

    .contact-container {
        padding: 2rem 1rem;
    }

    .accordion-header {
        padding: 1.25rem 1rem;
    }

    .experience-item {
        padding-left: 1rem;
    }

    .experience-content {
        padding: 1.25rem;
    }

    .project-gallery {
        gap: 1rem;
    }
}

/* ========================================
   PRÉFÉRENCES UTILISATEUR
======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
