/* ===== VARIABLES ===== */
:root {
    --bleu-gris: #55858F;
    --turquoise: #8ECDEF;
    --blanc: #FFFFFF;
    --noir: #1A1A1A;
    --gris: #2C2C2C;
    --gris-clair: #3A3A3A;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--noir);
    color: var(--blanc);
    overflow-x: hidden;
    line-height: 1.6;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(142, 205, 239, 0.1);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--turquoise);
    letter-spacing: 4px;
    transition: all 0.3s;
    position: relative;
    z-index: 1002;
}

.logo:hover {
    color: var(--blanc);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    font-weight: 400;
}

.nav-links a.active {
    color: var(--turquoise);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--turquoise);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--turquoise);
}

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

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    background: none;
    border: none;
    position: relative;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--turquoise);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(85, 133, 143, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(142, 205, 239, 0.1);
    border: 1px solid var(--turquoise);
    color: var(--turquoise);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--blanc) 50%, var(--bleu-gris) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease both;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.7s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--turquoise);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 1.1s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 1.3s both;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.btn-primary {
    background: var(--turquoise);
    color: var(--noir);
    border: 2px solid var(--turquoise);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bleu-gris);
    transition: left 0.3s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

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

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

.btn-secondary:hover {
    background: var(--turquoise);
    color: var(--noir);
}

.btn-outline {
    background: transparent;
    color: var(--blanc);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--turquoise);
    color: var(--turquoise);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 0.8s ease 1.5s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--turquoise);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--turquoise);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

.arrow {
    margin-top: 10px;
    text-align: center;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--turquoise);
    border-right: 2px solid var(--turquoise);
    transform: rotate(45deg);
    margin: -5px auto;
    animation: arrowBounce 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

/* ===== SECTIONS COMMUNES ===== */
section {
    padding: 8rem 0;
}

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

.section-number {
    display: block;
    font-size: 1rem;
    color: var(--turquoise);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--blanc);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--turquoise), transparent);
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 2rem auto 0;
}

/* ===== PROJECTS SHOWCASE ===== */
.projects-showcase {
    background: linear-gradient(180deg, var(--noir) 0%, var(--gris) 50%, var(--noir) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-item {
    position: relative;
    background: var(--gris-clair);
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-item.featured {
    grid-column: span 2;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-video {
    width: 100%;
    height: 100%;
}

.project-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-item:hover .project-video video {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(142, 205, 239, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.project-link {
    padding: 1rem 2rem;
    background: var(--noir);
    color: var(--turquoise);
    border: 2px solid var(--turquoise);
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--turquoise);
    color: var(--noir);
}

.project-info {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--turquoise);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    color: var(--blanc);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

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

.project-tools span {
    padding: 0.5rem 1rem;
    background: rgba(142, 205, 239, 0.1);
    border: 1px solid var(--bleu-gris);
    color: var(--bleu-gris);
    font-size: 0.8rem;
}

.cta-center {
    text-align: center;
    margin-top: 4rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--gris);
    padding: 3rem 2rem;
    text-align: center;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.skill-card:hover {
    border-left-color: var(--turquoise);
    transform: translateX(10px);
    background: var(--gris-clair);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    color: var(--turquoise);
    margin-bottom: 1rem;
}

.skill-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    background: linear-gradient(135deg, var(--bleu-gris) 0%, var(--turquoise) 100%);
    padding: 6rem 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    color: var(--noir);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(26, 26, 26, 0.8);
    margin-bottom: 2.5rem;
}

.cta-content .btn-primary {
    background: var(--noir);
    color: var(--turquoise);
    border-color: var(--noir);
}

.cta-content .btn-primary:hover {
    background: var(--blanc);
    border-color: var(--blanc);
    color: var(--noir);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gris);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(142, 205, 239, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-left .logo {
    margin-bottom: 1rem;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a, .footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--turquoise);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 12rem 0 6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--noir) 0%, var(--gris) 100%);
}

.page-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(142, 205, 239, 0.1);
    border: 1px solid var(--turquoise);
    color: var(--turquoise);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--blanc);
    margin-bottom: 1.5rem;
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== GRILLE PROJETS MASONRY ===== */
.all-projects {
    padding: 6rem 0;
}

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

.project-card {
    background: var(--gris);
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.9);
}

.project-card.fade-in {
    opacity: 1;
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image video,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coming-soon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bleu-gris), var(--turquoise));
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon span {
    font-size: 2rem;
    color: var(--noir);
    font-weight: 500;
}

.project-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(142, 205, 239, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.project-hover-content {
    text-align: center;
}

.project-hover-content h3 {
    color: var(--noir);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-hover-content p {
    color: var(--noir);
}

.project-meta {
    padding: 2rem;
}

.project-cat {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--turquoise);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-name {
    font-size: 1.3rem;
    color: var(--blanc);
    margin-bottom: 0.8rem;
}

.project-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-tags span {
    padding: 0.4rem 1rem;
    background: rgba(142, 205, 239, 0.1);
    border: 1px solid var(--bleu-gris);
    color: var(--bleu-gris);
    font-size: 0.75rem;
}

/* ===== BADGES D'OUTILS PETITS ===== */
.tool-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(142, 205, 239, 0.1);
    border: 1px solid var(--bleu-gris);
    color: var(--bleu-gris);
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s;
}

.tool-badge-small svg {
    width: 16px;
    height: 16px;
}

.tool-badge-small:hover {
    border-color: var(--turquoise);
    color: var(--turquoise);
    background: rgba(142, 205, 239, 0.15);
}

/* ===== PAGE DÉTAIL PROJET ===== */
.project-detail-hero {
    padding: 12rem 0 4rem;
    background: linear-gradient(135deg, var(--noir) 0%, var(--gris) 100%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--turquoise);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    transition: all 0.3s;
}

.back-link:hover {
    transform: translateX(-5px);
    color: var(--blanc);
}

.project-header-content {
    max-width: 900px;
}

.project-detail-title {
    font-size: 4rem;
    font-weight: 300;
    color: var(--blanc);
    margin-bottom: 1rem;
}

.project-detail-subtitle {
    font-size: 1.5rem;
    color: var(--turquoise);
    margin-bottom: 3rem;
    font-weight: 300;
}

.project-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(142, 205, 239, 0.2);
    border-bottom: 1px solid rgba(142, 205, 239, 0.2);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--turquoise);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.meta-value {
    font-size: 1rem;
    color: var(--blanc);
}

.project-tools-detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(142, 205, 239, 0.1);
    border: 2px solid var(--turquoise);
    color: var(--turquoise);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tool-badge svg {
    width: 20px;
    height: 20px;
}

.tool-badge:hover {
    background: var(--turquoise);
    color: var(--noir);
}

/* ===== GALERIE PRINCIPALE ===== */
.project-gallery {
    padding: 4rem 0;
    background: var(--noir);
}

.main-media {
    width: 100%;
    margin-bottom: 2rem;
    background: var(--gris);
    overflow: hidden;
}

.main-media img,
.main-media video {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

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

.thumbnail {
    cursor: pointer;
    overflow: hidden;
    background: var(--gris);
    border: 3px solid transparent;
    transition: all 0.3s;
    aspect-ratio: 16/10;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.thumbnail:hover {
    border-color: var(--turquoise);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: var(--turquoise);
}

/* ===== DESCRIPTION PROJET ===== */
.project-description {
    padding: 6rem 0;
    background: var(--gris);
}

.description-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.description-main h2 {
    font-size: 2.5rem;
    color: var(--turquoise);
    margin-bottom: 2rem;
    font-weight: 300;
}

.description-main h3 {
    font-size: 1.5rem;
    color: var(--turquoise);
    margin-bottom: 1.5rem;
}

.description-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--turquoise);
    font-size: 1.5rem;
}

.description-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    background: var(--gris-clair);
    padding: 2rem;
    border-left: 4px solid var(--turquoise);
}

.info-box h3 {
    font-size: 1.3rem;
    color: var(--turquoise);
    margin-bottom: 1.5rem;
}

.tech-info {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-info:last-child {
    border-bottom: none;
}

.tech-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.tech-value {
    color: var(--blanc);
    font-weight: 500;
}

/* ===== PROJETS LIÉS ===== */
.related-projects {
    padding: 6rem 0;
    background: var(--noir);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}


    .related-item video,
    .related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    }
    .related-item:hover video,
    .related-item:hover img {
    transform: scale(1.1);
    }
    .related-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.3s;
    }
    .related-item:hover .related-overlay {
    transform: translateY(0);
    }
    .related-overlay h3 {
    font-size: 1.3rem;
    color: var(--blanc);
    margin-bottom: 0.5rem;
    }
    .related-overlay span {
    font-size: 0.9rem;
    color: var(--turquoise);
    }
    /* ===== PAGE PHOTOGRAPHIE ===== */
    .photo-hero {
    background: linear-gradient(135deg,
    rgba(26, 26, 26, 0.9),
    rgba(85, 133, 143, 0.8)
    ), url('images/bali/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    }
    .photo-intro {
    padding: 6rem 0;
    background: var(--gris);
    }
    .intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    }
    .intro-content h2 {
    font-size: 2.5rem;
    color: var(--turquoise);
    margin-bottom: 2rem;
    font-weight: 300;
    }
    .intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    }
    /* ===== GALERIE MASONRY PHOTOGRAPHIE ===== */
    .photo-gallery {
    padding: 4rem 0;
    background: var(--noir);
    }
    .masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
    }
    .photo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--gris);
    }
    .photo-item.tall {
    grid-row: span 2;
    }
    .photo-item.wide {
    grid-column: span 2;
    }
    .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    }
    .photo-item:hover img {
    transform: scale(1.1);
    }
    .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    }
    .photo-item:hover .photo-overlay {
    transform: translateY(0);
    }
    .photo-info h3 {
    font-size: 1.2rem;
    color: var(--blanc);
    margin-bottom: 0.3rem;
    }
    .photo-info span {
    font-size: 0.9rem;
    color: var(--turquoise);
    }
    /* ===== LIGHTBOX ===== */
    .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    }
    .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    }
    .lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    }
    .lightbox-caption {
    text-align: center;
    margin-top: 2rem;
    }
    .lightbox-caption h3 {
    font-size: 1.5rem;
    color: var(--blanc);
    margin-bottom: 0.5rem;
    }
    .lightbox-caption p {
    color: var(--turquoise);
    font-size: 1rem;
    }
    .close-lightbox {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: var(--blanc);
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    }
    .close-lightbox:hover {
    color: var(--turquoise);
    }
    .prev-lightbox,
    .next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--blanc);
    cursor: pointer;
    padding: 1rem 2rem;
    user-select: none;
    transition: all 0.3s;
    }
    .prev-lightbox {
    left: 2rem;
    }
    .next-lightbox {
    right: 2rem;
    }
    .prev-lightbox:hover,
    .next-lightbox:hover {
    color: var(--turquoise);
    transform: translateY(-50%) scale(1.2);
    }
    /* ===== SECTION ÉQUIPEMENT ===== */
    .equipment-section {
    padding: 6rem 0;
    background: var(--gris);
    }
    .equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    }
    .equipment-item {
    background: var(--gris-clair);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 3px solid var(--turquoise);
    transition: all 0.3s;
    }
    .equipment-item:hover {
    transform: translateY(-10px);
    background: var(--noir);
    }
    .equipment-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
    }
    .equipment-item h3 {
    font-size: 1.3rem;
    color: var(--turquoise);
    margin-bottom: 1rem;
    }
    .equipment-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    }
    /* ===== PAGE ABOUT ===== */
    .about-intro {
    padding: 6rem 0;
    }
    .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    }
    .image-wrapper {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--turquoise);
    }
    .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    }
    .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 205, 239, 0.2), transparent);
    }
    .about-content h2 {
    font-size: 2.5rem;
    color: var(--turquoise);
    margin-bottom: 2rem;
    }
    .about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    }
    /* ===== TIMELINE ===== */
    .about-journey {
    padding: 6rem 0;
    background: var(--gris);
    }
    .timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    }
    .timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--turquoise);
    }
    .timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
    }
    .timeline-item.fade-in {
    opacity: 1;
    transform: translateX(0);
    }
    .timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--turquoise);
    border: 4px solid var(--noir);
    border-radius: 50%;
    }
    .timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(142, 205, 239, 0.1);
    color: var(--turquoise);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    }
    .timeline-content h3 {
    font-size: 1.5rem;
    color: var(--blanc);
    margin-bottom: 0.8rem;
    }
    .timeline-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    }
    /* ===== GOALS ===== */
    .about-goals {
    padding: 6rem 0;
    }
    .goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    }
    .goal-card {
    background: var(--gris);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 4px solid var(--turquoise);
    transition: all 0.3s;
    }
    .goal-card:hover {
    transform: translateY(-10px);
    background: var(--gris-clair);
    }
    .goal-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    }
    .goal-card h3 {
    font-size: 1.4rem;
    color: var(--turquoise);
    margin-bottom: 1rem;
    }
    .goal-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    }
    /* ===== SKILLS TECHNIQUES ===== */
    .about-skills {
    padding: 6rem 0;
    background: var(--gris);
    }
    .skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    }
    .skill-category h3 {
    font-size: 1.5rem;
    color: var(--turquoise);
    margin-bottom: 2rem;
    text-align: center;
    }
    .skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    }
    .skill-item {
    background: var(--gris-clair);
    padding: 1.5rem;
    }
    .skill-name {
    display: block;
    color: var(--blanc);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    }
    .skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    }
    .skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--turquoise), var(--bleu-gris));
    transition: width 1s ease;
    }
    /* ===== PASSIONS ===== */
    .about-passions {
    padding: 6rem 0;
    }
    .passions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    }
    .passion-card {
    background: var(--gris);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    }
    .passion-card:hover {
    background: var(--gris-clair);
    transform: translateY(-5px);
    }
    .passion-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    }
    .passion-card h3 {
    color: var(--turquoise);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    }
    .passion-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    }
    /* ===== CONTACT PAGE ===== */
    .contact-section {
    padding: 6rem 0;
    min-height: 100vh;
    }
    .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    }
    .contact-info-box,
    .contact-form-box {
    background: var(--gris);
    padding: 3rem;
    border-radius: 0;
    }
    .contact-info-box h2,
    .contact-form-box h2 {
    font-size: 2rem;
    color: var(--turquoise);
    margin-bottom: 2rem;
    font-weight: 400;
    }
    .contact-intro {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    }
    .contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    }
    .contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    }
    .contact-icon {
    font-size: 1.5rem;
    min-width: 40px;
    }
    .contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    }
    .contact-label {
    font-size: 0.8rem;
    color: var(--turquoise);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    }
    .contact-text span {
    color: rgba(255, 255, 255, 0.9);
    }
    .contact-text a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
    }
    .contact-text a:hover {
    color: var(--turquoise);
    }
    .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    }
    .social-btn {
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--bleu-gris);
    color: var(--bleu-gris);
    text-align: center;
    transition: all 0.3s;
    font-size: 0.95rem;
    }
    .social-btn:hover {
    border-color: var(--turquoise);
    color: var(--turquoise);
    transform: translateX(5px);
    }
    /* ===== FORMULAIRE ===== */
    #form-container {
    width: 100%;
    }
    .input-group {
    margin-bottom: 1.5rem;
    }
    .input-group label {
    display: block;
    color: var(--turquoise);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    }
    .input-group input,
    .input-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--gris-clair);
    border: 2px solid transparent;
    color: var(--blanc);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
    }
    .input-group input:focus,
    .input-group textarea:focus {
    outline: none;
    border-color: var(--turquoise);
    background: var(--noir);
    }
    .input-group input::placeholder,
    .input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    }
    textarea {
    resize: vertical;
    min-height: 150px;
    }
    .form-response {
    margin-top: 1.5rem;
    padding: 1rem;
    display: none;
    border-radius: 4px;
    }
    .form-response .success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 1rem;
    border: 1px solid #4ade80;
    }
    .form-response .error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    padding: 1rem;
    border: 1px solid #f87171;
    }
    /* ===== ANIMATIONS ===== */
    @keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(30px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
    }
    @keyframes scroll {
    0% {
    opacity: 1;
    transform: translateY(0);
    }
    100% {
    opacity: 0;
    transform: translateY(15px);
    }
    }
    @keyframes arrowBounce {
    0%, 100% {
    transform: rotate(45deg) translateY(0);
    }
    50% {
    transform: rotate(45deg) translateY(10px);
    }
    }
    /* ===== RESPONSIVE ===== */
    @media (max-width: 1200px) {
    .project-item.featured {
    grid-column: span 1;
    }
    .description-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .photo-item.wide {
        grid-column: span 1;
    }
    
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    }
    @media (max-width: 768px) {
    .container,
    .container-wide {
    padding: 0 2rem;
    }
    .nav-container {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 3rem;
    }
    
    .project-detail-title {
        font-size: 2.5rem;
    }
    
    .project-detail-subtitle {
        font-size: 1.2rem;
    }
    
    .project-meta-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .projects-grid,
    .projects-masonry {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    
    .photo-item.tall {
        grid-row: span 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links, .footer-social {
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .prev-lightbox,
    .next-lightbox {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }
    
    .prev-lightbox {
        left: 1rem;
    }
    
    .next-lightbox {
        right: 1rem;
    }
    
    .close-lightbox {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }
    /* ===== SECTION PHOTOGRAPHIE DANS PROJETS ===== */
.photo-section {
    padding: 8rem 0;
    background: var(--gris);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.photo-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--noir);
}

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

.photo-card:hover img {
    transform: scale(1.1);
}

.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-card-overlay {
    transform: translateY(0);
}

.photo-card-overlay h3 {
    font-size: 1.1rem;
    color: var(--blanc);
    margin-bottom: 0.5rem;
}

.photo-card-overlay span {
    font-size: 0.9rem;
    color: var(--turquoise);
}
}

/* ===== CORRECTIONS PAGE CONTACT ===== */

/* Section Contact améliorée */
.contact-section {
    padding: 4rem 0 6rem;
    min-height: auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info-box,
.contact-form-box {
    background: var(--gris);
    padding: 2.5rem;
    height: fit-content;
}

.contact-info-box h2,
.contact-form-box h2 {
    font-size: 1.8rem;
    color: var(--turquoise);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.3rem;
    min-width: 35px;
    color: var(--turquoise);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--turquoise);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact-text span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.contact-text a:hover {
    color: var(--turquoise);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-btn {
    padding: 0.9rem 1.2rem;
    background: transparent;
    border: 2px solid var(--bleu-gris);
    color: var(--bleu-gris);
    text-align: center;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-btn:hover {
    border-color: var(--turquoise);
    color: var(--turquoise);
    transform: translateX(5px);
    background: rgba(142, 205, 239, 0.05);
}

/* Formulaire amélioré */
#form-container {
    width: 100%;
}

.input-group {
    margin-bottom: 1.3rem;
}

.input-group label {
    display: block;
    color: var(--turquoise);
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--gris-clair);
    border: 2px solid transparent;
    color: var(--blanc);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--turquoise);
    background: var(--noir);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.form-response {
    margin-top: 1.2rem;
    padding: 0.9rem;
    display: none;
}

.form-response.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid #4ade80;
}

.form-response.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid #f87171;
}

/* Responsive contact */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-info-box,
    .contact-form-box {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0 4rem;
    }
    
    .contact-info-box,
    .contact-form-box {
        padding: 1.5rem;
    }
    
    .contact-info-box h2,
    .contact-form-box h2 {
        font-size: 1.5rem;
    }
}

/* ===== OPTIMISATION ESPACEMENTS PAGE ABOUT ===== */

/* Réduire les espacements des sections */
.about-intro {
    padding: 4rem 0;
}

.about-journey {
    padding: 4rem 0;
}

.about-goals {
    padding: 4rem 0;
}

.about-skills {
    padding: 4rem 0;
}

.about-passions {
    padding: 4rem 0;
}

/* Optimiser l'espacement du contenu */
.about-content p {
    margin-bottom: 0.8rem;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

/* Timeline plus compacte */
.timeline-item {
    margin-bottom: 2rem;
}

.timeline-content p {
    margin-bottom: 0;
}

/* Goals cards plus compactes */
.goal-card {
    padding: 2rem 1.5rem;
}

.goal-card p {
    margin-bottom: 0;
}

.goal-icon {
    margin-bottom: 1rem;
}

/* Passion cards plus compactes */
.passion-card {
    padding: 2rem 1.5rem;
}

.passion-card p {
    margin-bottom: 0;
}

.passion-emoji {
    margin-bottom: 0.8rem;
}

/* Section titles */
.section-title {
    margin-bottom: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-intro,
    .about-journey,
    .about-goals,
    .about-skills,
    .about-passions {
        padding: 3rem 0;
    }
}

/* ===== NOUVEAU TITRE HERO MODERNE ===== */
.hero-title-modern {
    font-size: 8rem;
    font-weight: 200;
    line-height: 0.95;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-title-modern .title-line {
    display: block;
    background: linear-gradient(135deg, 
        rgba(142, 205, 239, 1) 0%, 
        rgba(255, 255, 255, 0.95) 30%,
        rgba(255, 255, 255, 0.9) 70%,
        rgba(85, 133, 143, 1) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease both;
    text-shadow: 0 10px 30px rgba(142, 205, 239, 0.3);
    filter: drop-shadow(0 0 20px rgba(142, 205, 239, 0.2));
}

.hero-title-modern .title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-title-modern .title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-title-modern .title-line:nth-child(3) {
    animation-delay: 0.7s;
}

.hero-subtitle-modern {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.8s ease 0.9s both;
    font-weight: 300;
}

.hero-subtitle-modern.secondary {
    font-size: 0.95rem;
    color: var(--turquoise);
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

/* ===== SECTION PROJETS MINIMALISTE ===== */
.projects-showcase-minimal {
    padding: 8rem 0;
    background: var(--noir);
}

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

.section-title-minimal {
    font-size: 3rem;
    font-weight: 300;
    color: var(--blanc);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.section-subtitle-minimal {
    font-size: 1rem;
    color: var(--turquoise);
    font-weight: 300;
    opacity: 0.7;
}

.projects-grid-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card-minimal {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--gris);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-minimal:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(142, 205, 239, 0.15);
}

.project-media-minimal {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-media-minimal video,
.project-media-minimal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-minimal:hover .project-media-minimal video,
.project-card-minimal:hover .project-media-minimal img {
    transform: scale(1.08);
}

.project-info-minimal {
    padding: 1.5rem;
    background: var(--gris);
}

.project-info-minimal h3 {
    font-size: 1.2rem;
    color: var(--blanc);
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.project-category-minimal {
    font-size: 0.8rem;
    color: var(--turquoise);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

/* ===== SECTION COMPÉTENCES MINIMALISTE ===== */
.skills-section-minimal {
    padding: 6rem 0;
    background: var(--gris);
}

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

.skill-card-minimal {
    padding: 2.5rem 2rem;
    background: var(--gris-clair);
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.skill-card-minimal:hover {
    border-left-color: var(--turquoise);
    transform: translateX(8px);
    background: var(--noir);
}

.skill-card-minimal h3 {
    font-size: 1.3rem;
    color: var(--turquoise);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.skill-card-minimal p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 4rem;
    }
    
    .section-title-minimal {
        font-size: 2.5rem;
    }
    
    .projects-grid-minimal {
        grid-template-columns: 1fr;
    }
}

/* ===== CORRECTIONS PAGES PROJETS ===== */

/* Fixer la galerie principale - empêcher le débordement */
.project-gallery {
    padding: 4rem 0;
    background: var(--noir);
    overflow: hidden;
}

/* Conteneur média principal - adapter à tous les formats */
.main-media {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--noir);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Images principales */
.main-media img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Vidéos principales - format paysage */
.main-media video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Vidéos en format portrait - correction spéciale */
.main-media video[style*="portrait"],
.main-media video:not([style*="landscape"]) {
    max-width: 600px;
    width: auto;
    height: auto;
    max-height: 80vh;
    margin: 0 auto;
}

/* Grille de miniatures - mieux espacée */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Miniatures - taille fixe et cohérente */
.thumbnail {
    cursor: pointer;
    overflow: hidden;
    background: var(--gris);
    border: 3px solid transparent;
    transition: all 0.3s;
    aspect-ratio: 16/10;
    position: relative;
}

.thumbnail img,
.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.thumbnail:hover {
    border-color: var(--turquoise);
    transform: translateY(-5px);
}

.thumbnail:hover img,
.thumbnail:hover video {
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: var(--turquoise);
    box-shadow: 0 0 20px rgba(142, 205, 239, 0.3);
}

/* CORRIGER LES BANDEAUX QUI BOUGENT */

/* Hero projet - stable et fixe */
.project-detail-hero {
    padding: 12rem 0 4rem;
    background: linear-gradient(135deg, var(--noir) 0%, var(--gris) 100%);
    position: relative;
}

/* Catégorie du projet - ne bouge pas */
.project-cat {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(142, 205, 239, 0.1);
    border: 1px solid var(--turquoise);
    color: var(--turquoise);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Titre projet - stable */
.project-detail-title {
    font-size: 4rem;
    font-weight: 300;
    color: var(--blanc);
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* Sous-titre - stable */
.project-detail-subtitle {
    font-size: 1.5rem;
    color: var(--turquoise);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Meta info - grille fixe */
.project-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(142, 205, 239, 0.2);
    border-bottom: 1px solid rgba(142, 205, 239, 0.2);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--turquoise);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.meta-value {
    font-size: 1rem;
    color: var(--blanc);
}

/* Outils badges - stable */
.project-tools-detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(142, 205, 239, 0.1);
    border: 2px solid var(--turquoise);
    color: var(--turquoise);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tool-badge svg {
    width: 20px;
    height: 20px;
}

.tool-badge:hover {
    background: var(--turquoise);
    color: var(--noir);
}

/* Section projets reliés - overlay qui ne bouge pas */
.related-projects {
    padding: 6rem 0;
    background: var(--noir);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.related-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--gris);
}

.related-item video,
.related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.related-item:hover video,
.related-item:hover img {
    transform: scale(1.05);
}

.related-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
    transform: translateY(0);
    opacity: 0;
    transition: opacity 0.3s;
}

.related-item:hover .related-overlay {
    opacity: 1;
}

.related-overlay h3 {
    font-size: 1.3rem;
    color: var(--blanc);
    margin-bottom: 0.5rem;
}

.related-overlay span {
    font-size: 0.9rem;
    color: var(--turquoise);
}

/* Description projet - mise en page stable */
.project-description {
    padding: 6rem 0;
    background: var(--gris);
}

.description-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.description-main h2 {
    font-size: 2.5rem;
    color: var(--turquoise);
    margin-bottom: 2rem;
    font-weight: 300;
}

.description-main h3 {
    font-size: 1.5rem;
    color: var(--turquoise);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.description-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* Liste de compétences */
.skills-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.skills-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--turquoise);
    font-size: 1.5rem;
}

/* Sidebar info */
.description-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    background: var(--gris-clair);
    padding: 2rem;
    border-left: 4px solid var(--turquoise);
}

.info-box h3 {
    font-size: 1.3rem;
    color: var(--turquoise);
    margin-bottom: 1.5rem;
}

.tech-info {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-info:last-child {
    border-bottom: none;
}

.tech-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.tech-value {
    color: var(--blanc);
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .description-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .project-detail-title {
        font-size: 2.5rem;
    }
    
    .project-detail-subtitle {
        font-size: 1.2rem;
    }
    
    .project-meta-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .main-media {
        min-height: 300px;
    }
    
    .main-media video[style*="portrait"],
    .main-media video:not([style*="landscape"]) {
        max-width: 100%;
    }
}

/* ===== RESPONSIVE - MENU MOBILE (VERSION QUI FONCTIONNE) ===== */
@media (max-width: 968px) {
    /* Container de navigation */
    .nav-container {
        padding: 1.5rem 2rem;
        position: relative;
    }

    /* Afficher le bouton hamburger */
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 9999;
    }

    /* Menu mobile - CACHÉ PAR DÉFAUT */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        
        /* Centrer le contenu */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        
        /* Z-index pour être au-dessus */
        z-index: 9998;
        
        /* CACHÉ par défaut */
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.3s ease;
    }

    /* Menu OUVERT */
    .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) !important;
    }

    /* Liens dans le menu */
    .nav-links a {
        display: block !important;
        font-size: 1.4rem !important;
        color: white !important;
        text-align: center;
        padding: 1rem 2rem !important;
        width: auto;
        min-width: 250px;
        border: 1px solid rgba(142, 205, 239, 0.2);
        border-radius: 4px;
        margin: 0.5rem 0;
        background: rgba(142, 205, 239, 0.05);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(142, 205, 239, 0.2);
        border-color: #8ECDEF;
        transform: translateX(5px);
    }
    
    .nav-links a::after {
        display: none;
    }

    /* Cacher le séparateur */
    .separator {
        display: none !important;
    }

    /* Logo toujours visible */
    .logo {
        position: relative;
        z-index: 9999;
    }

    .container {
        padding: 0 2rem;
    }

    .container-wide {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-links a {
        font-size: 1.3rem !important;
        min-width: 220px;
    }

    .container {
        padding: 0 1.5rem;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .nav-links a {
        font-size: 1.2rem !important;
        min-width: 200px;
        padding: 0.8rem 1.5rem !important;
    }
    
    .menu-toggle span {
        width: 25px;
    }

    .container {
        padding: 0 1rem;
    }

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

/* Optimisation pour très petits écrans (< 375px) */
@media (max-width: 375px) {
    .logo {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .nav-links a {
        font-size: 1.1rem !important;
        min-width: 180px;
    }
}

/* ===== NEW CONTACT PAGE STYLES ===== */
.contact-wrapper-simple {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card-main {
    background: var(--gris);
    padding: 4rem;
    border-radius: 12px;
    border: 1px solid rgba(142, 205, 239, 0.1);
}

.contact-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-intro h2 {
    font-size: 2.5rem;
    color: var(--turquoise);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.contact-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-method-card {
    background: var(--gris-clair);
    padding: 2.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 205, 239, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-method-card:hover {
    border-color: var(--turquoise);
    transform: translateY(-5px);
}

.contact-method-card:hover::before {
    opacity: 1;
}

.method-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(142, 205, 239, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--turquoise);
    transition: all 0.3s ease;
}

.contact-method-card:hover .method-icon {
    background: var(--turquoise);
    color: var(--noir);
    transform: scale(1.1);
}

.method-content h3 {
    font-size: 1.3rem;
    color: var(--blanc);
    margin-bottom: 0.5rem;
}

.method-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.method-cta {
    font-size: 0.9rem;
    color: var(--turquoise);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.contact-method-card:hover .method-cta {
    opacity: 1;
    transform: translateY(0);
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(142, 205, 239, 0.2);
    border-bottom: 1px solid rgba(142, 205, 239, 0.2);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item svg {
    color: var(--turquoise);
    flex-shrink: 0;
    margin-top: 3px;
}

.info-item strong {
    display: block;
    color: var(--turquoise);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cv-download {
    text-align: center;
}

.cv-download .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive pour la nouvelle page contact */
@media (max-width: 968px) {
    .contact-card-main {
        padding: 3rem 2rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .additional-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-intro h2 {
        font-size: 2rem;
    }

    .contact-intro p {
        font-size: 1rem;
    }

    .contact-card-main {
        padding: 2rem 1.5rem;
    }

    .method-icon {
        width: 60px;
        height: 60px;
    }

    .method-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-intro h2 {
        font-size: 1.5rem;
    }

    .contact-card-main {
        padding: 1.5rem 1rem;
    }
}