:root {
    --bg-color: #fafafa;
    --text-color: #1a1a1a;
    --accent-color: #FF0054; /* GentleMates vibrant pink */
    --accent-secondary: #cc0043; /* Slightly darker pink */
    --accent-pale: #e8b4b8; /* Pale pink from hero */
    --accent-hover: #ff3377;
    --nav-bg: rgba(250, 250, 250, 0.9);
    
    --font-main: 'Montserrat', sans-serif;
}

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

html {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
}

body {
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
}

.accent {
    color: var(--accent-color);
}

/* Decorative Graphic Elements */
.section-number {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-pale);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0,0,0,0.08);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 15px;
}

/* Header */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    will-change: transform;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    z-index: 1001;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
    cursor: pointer;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

nav a:hover {
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    header {
        top: 0;
        left: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        padding: 1.2rem 2rem;
        border: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.03);
        justify-content: flex-end;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .burger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(250, 250, 250, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1000;
        border-radius: 0;
    }

    nav.nav-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    nav a {
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: 2px;
        color: var(--text-color);
    }

    /* Burger animation */
    .burger.toggle span {
        background-color: var(--accent-color);
    }
    .burger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger.toggle span:nth-child(2) {
        opacity: 0;
    }
    .burger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('../assets/images/accueil/fondaccueil.jpg') center/cover no-repeat;
    padding: 0 5%;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Overlay to ensure text readability */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5vw;
    position: relative;
    color: #e8b4b8;
    margin-bottom: 1rem;
    letter-spacing: 5px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 18px;
    opacity: 0.9;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-title { font-size: 8.5vw; }
    .hero-subtitle { 
        font-size: 0.85rem; 
        letter-spacing: 6px; 
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #121212;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 180, 184, 0.2);
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.3);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.btn-back:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* About Section */
.about-section {
    padding: 100px 5%;
    background-color: #F0F4F8;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: 0;
}

.about-image img {
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-content {
    flex: 1;
    background: rgba(240, 244, 248, 0.85); /* Semi-transparent background matching #F0F4F8 */
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
}

/* Gallery & Category Section */
.gallery-section {
    padding: 100px 5%;
    min-height: 100vh;
}

#categories-view {
    background: url('../assets/images/accueil/fondgalerie.jpg') center/cover no-repeat;
    position: relative;
}

#categories-view::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250, 250, 250, 0.1); /* Soft light overlay for readability */
    z-index: 0;
}

#categories-view > * {
    position: relative;
    z-index: 1;
}

#projects-section {
    position: relative;
    overflow: hidden;
}

#projects-section .bg-watermark {
    left: 0;
    transform: translate(0, -50%);
    margin-left: -2vw; /* Slight shift to the left */
}

.gallery-header {
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--accent-color);
    bottom: -10px;
    left: 25%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s;
    height: 50vh;
    min-height: 300px;
    transform: translateZ(0);
}

.category-item:hover {
    border-color: var(--accent-secondary);
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    transition: background 0.4s ease;
}

.category-item:hover .category-overlay {
    background: rgba(0,0,0,0.3);
}

.category-overlay h3 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 3px;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .category-overlay h3 {
        font-size: 2rem;
    }
}

.category-overlay span {
    margin-top: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--accent-color);
    color: #121212;
    padding: 5px 15px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.category-item:hover .category-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Grid (Inside category) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    height: 400px;
    opacity: 0;
    animation: fadeInGalleryItem 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 30px rgba(232, 180, 184, 0.1);
    border: 1px solid rgba(232, 180, 184, 0.2);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-color);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    padding: 20px;
    z-index: 10000;
}

.nav-btn:hover {
    color: var(--accent-color);
}

.prev-btn {
    left: 5%;
}

.next-btn {
    right: 5%;
}

/* Gear Section */
.gear-section {
    padding: 100px 5%;
    background: url('../assets/images/accueil/Version029.jpg') center/cover no-repeat;
    position: relative;
}

.gear-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250, 250, 250, 0.1); /* Soft light overlay for readability */
    z-index: 0;
}

.gear-section > * {
    position: relative;
    z-index: 1;
}

.gear-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.gear-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gear-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.gear-item:nth-child(even) {
    flex-direction: row-reverse;
}

.gear-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

.gear-content {
    flex: 1;
}

.gear-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-pale);
    letter-spacing: 1px;
}

.gear-specs {
    list-style: none;
}

.gear-specs li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.gear-specs li::before {
    content: '■';
    color: var(--accent-pale);
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    top: 5px;
}

.gear-specs strong {
    color: var(--text-color);
}

.software-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    flex-direction: row;
}

.software-logos img {
    height: 80px;
    width: auto;
}

@media (max-width: 900px) {
    .gear-item:not(.software-logos), .gear-item:nth-child(even):not(.software-logos) {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .gear-specs li {
        text-align: left;
    }

    .software-logos {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .software-logos img {
        height: 50px;
    }
}

/* Contact Section */
.contact-section {
    padding: 60px 5%;
    background-color: var(--bg-color);
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: 800px;
    margin-inline: auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-link svg {
    transition: stroke 0.3s, fill 0.3s;
}

.contact-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.contact-handle {
    font-size: 0.9rem;
    color: var(--text-color);
    transition: color 0.3s;
    font-family: monospace;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact-link:hover .contact-handle, .contact-link:hover svg {
    color: var(--accent-color);
    stroke: var(--accent-color);
}

.contact-link:hover svg[fill="currentColor"] {
    fill: var(--accent-color);
    stroke: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    background-color: #f0f0f0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

footer p {
    color: #666;
    font-size: 0.9rem;
}
