﻿/* ==========================================================================
   EONS Portfolio - CSS Architecture
   ========================================================================== */

:root {
    /* Color Palette (Premium minimalist) */
    --clr-bg: #ffffff;
    --clr-text: #1a1a1a;
    --clr-text-light: #555555;
    --clr-accent: #000000;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Spacing & Layout */
    --spacing-section: 120px;
    --container-max: 1400px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin-bottom: 1rem;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Client request: top left corner with three dots */
.menu-toggle {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.main-header.scrolled .dot {
    background-color: var(--clr-accent);
}

/* Client request: Logo just letters eons without hex */
.logo a {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 400;
    letter-spacing: 0.5em; /* "One space" equivalent */
    margin-right: -0.5em; /* Compensate for the last letter spacing */
    color: #fff;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo a {
    color: var(--clr-accent);
}

/* Overlay Navigation */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-accent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.close-btn {
    position: absolute;
    top: 30px;
    right: 5%;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 20px 0;
}

.nav-links a {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #888;
}

/* ==========================================================================
   Hero Section (Fancy pictures dominate)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.hero-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.scroll-down-indicator {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    padding-bottom: 5px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover {
    color: #d4af37;
    border-bottom-color: #d4af37;
}

.hero-pricelist-indicator {
    color: #d4af37;
    border-bottom: 1px solid #d4af37;
}

.hero-pricelist-indicator:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

@media (max-width: 768px) {
    .hero-actions {
        gap: 15px;
    }
    .scroll-down-indicator {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

/* ==========================================================================
   About Section (Text explanation history & vision)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media(min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--clr-accent);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    margin-bottom: 20px;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media(min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    cursor: pointer;
}

.img-wrapper {
    overflow: hidden;
    aspect-ratio: 4/5; /* Aspect ratio Ã©lÃ©gant pour le retail */
    margin-bottom: 20px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    padding: 40px 0;
    text-align: center;
    background-color: var(--clr-accent);
    color: #fff;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Interaction classes (JS triggers)
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   Language Selector (Additive Component)
   ========================================================================== */
.lang-selector {
    display: flex;
    align-items: center;
    z-index: 1001;
}

#language-select {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
    appearance: none; /* Reset pour uniformité cross-browser */
}

#language-select option {
    background-color: var(--clr-bg);
    color: var(--clr-text);
}

.main-header.scrolled #language-select {
    color: var(--clr-accent);
    border-color: rgba(0, 0, 0, 0.2);
}

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

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    text-align: center;
    letter-spacing: 1px;
}

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

.lightbox-close:hover {
    color: var(--clr-text-light);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    transition: 0.3s ease;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Protection des images */
img, canvas {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Contact Section */
.contact-section {
    background-color: var(--clr-dark);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--clr-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
}

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background: transparent;
    color: var(--clr-light);
    border: 1px solid var(--clr-light);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--clr-light);
    color: var(--clr-dark);
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Header Social Links */
.social-links a {
    color: var(--clr-light);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--clr-accent);
    transform: scale(1.15);
}

/* Responsive adjustments for header right */
@media (max-width: 768px) {
    .header-right {
        gap: 10px !important;
    }
    .social-links svg {
        width: 16px;
        height: 16px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .header-right .social-links {
        display: none !important; /* Hide header social icons on mobile */
    }
    .mobile-social-links {
        display: flex !important; /* Show them in overlay menu instead */
    }
    .logo-container {
        min-width: 200px;
    }
    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
}

.menu-toggle.active {
    transform: rotate(-90deg);
}

/* ==========================================================================
   Cjenik (Price Lists) : version en vigueur + archives téléchargeables
   ========================================================================== */
.pl-section { color: #fff; }
.pl-block + .pl-block { margin-top: 44px; }
.pl-heading { font-size: 0.95rem; letter-spacing: 1.5px; text-transform: uppercase; color: #d4af37; margin: 0 0 16px; font-weight: 600; }
.pl-empty { color: #999; margin: 0; }
.pl-current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; border: 1px solid rgba(212, 175, 55, 0.45); border-radius: 6px; background: rgba(212, 175, 55, 0.06); }
.pl-current-label { font-family: 'Playfair Display', serif; font-size: 1.3rem; line-height: 1.3; }
.pl-current-date { color: #bbb; font-size: 0.9rem; margin-top: 4px; }
.pl-download { display: inline-flex; align-items: center; gap: 8px; color: #111; background: #d4af37; text-decoration: none;
    padding: 10px 18px; border-radius: 4px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; transition: background .25s, transform .25s; white-space: nowrap; }
.pl-download:hover, .pl-download:focus { background: #f0cd5a; color: #000; transform: translateY(-1px); }
.pl-stable { margin: 12px 0 0; font-size: 0.78rem; color: #888; word-break: break-all; }
.pl-stable a { color: #bbb; }
.pl-table-wrap { overflow-x: auto; margin-top: 24px; }
.pl-table, .pl-archive { width: 100%; border-collapse: collapse; text-align: left; }
.pl-table th { padding: 12px 15px; border-bottom: 1px solid #d4af37; color: #d4af37; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.78rem; }
.pl-table td { padding: 12px 15px; border-bottom: 1px solid #2a2a2a; }
.pl-table td.pl-price { text-align: right; white-space: nowrap; }
.pl-archive th { padding: 12px 15px; border-bottom: 1px solid #444; font-weight: 600; letter-spacing: 1px; font-size: 0.85rem; }
.pl-archive td { padding: 14px 15px; border-bottom: 1px solid #2a2a2a; }
.pl-archive td:first-child { white-space: nowrap; color: #bbb; }
.pl-archive a { color: #ffc107; text-decoration: none; }
.pl-archive a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .pl-current { padding: 16px; }
    .pl-download { width: 100%; justify-content: center; }
    .pl-archive th, .pl-archive td, .pl-table th, .pl-table td { padding: 10px 8px; }
}

/* Menu ouvert : il passe au-dessus de l'en-tête, la croix de fermeture est cliquable (avant, l'en-tête la recouvrait) */
.nav-overlay.active, body.menu-open .nav-overlay { z-index: 1500; }
.close-btn { z-index: 2; width: 56px; height: 56px; line-height: 1; display: flex; align-items: center; justify-content: center;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
