/* ==========================================================================
   🌌 1. VARIABLES & PALETTE DARK FANTASY MYSTIQUE
   ========================================================================== */
:root {
    --bg-dark: #0b090c;         /* Noir d'encre profond */
    --bg-card: #141117;         /* Violet/anthracite très sombre pour les cartes */
    --text-light: #f3f0f5;      /* Blanc cassé soyeux */
    --text-muted: #a39fa8;      /* Gris lavande pour les sous-titres */
    --gold: #dfb76c;            /* Or ancien pour les détails élégants */
    --gold-glow: #ffdf9e;       /* Or brillant pour les effets lumineux */
    --neon-purple: #814fd6;     /* Violet magique */
    --neon-pink: #ec4899;       /* Rose vibrant */
}

/* ==========================================================================
   🖋️ 2. STYLE GLOBAL & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', 'Didot', 'Garamond', serif; /* Style roman/fantasy */
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    letter-spacing: 0.05em;
    /* Léger grain de fond pour texture mystique */
    background-image: radial-gradient(circle at 50% 50%, #1a1523 0%, #0b090c 100%);
}

main {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Écart élégant entre chaque grand bloc */
    margin-bottom: 4rem;
}

/* ==========================================================================
   👑 3. BARRE DE NAVIGATION & COMPOSANTS LUMINEUX (CTA)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 8%;
    border-bottom: 1px solid rgba(223, 183, 108, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(223, 183, 108, 0.3);
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s ease;
    position: relative;
    padding-bottom: 5px;
}

nav a:hover, nav a.active {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(255, 223, 158, 0.5);
}

/* Ligne or sous le lien au survol/actif */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

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

/* Bouton d'action (CTA) */
.cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
    color: var(--bg-dark);
    background-color: var(--gold);
    box-shadow: 0 0 20px rgba(223, 183, 108, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   🏠 4. PAGE ACCUEIL (HERO & FEATURED ARTWORK)
   ========================================================================== */
.hero {
    text-align: center;
    padding: 6rem 15% 4rem 15%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p, .section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.featured-artwork {
    max-width: 900px;
    margin: 2rem auto 6rem auto;
    padding: 0 5%;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.featured-artwork img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(223, 183, 108, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.featured-artwork.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   🖼️ 5. SYSTÈMES DE GALERIES (INDEX & PORTFOLIO)
   ========================================================================== */
/* --- Grande Grille de l'Index --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 2rem 8% 6rem 8%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--bg-card);
    border: 1px solid rgba(223, 183, 108, 0.15);
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.95) translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: brightness(0.85) contrast(1.05);
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05) contrast(1.1);
}

/* Cadre interne lumineux au survol de la carte */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid var(--gold);
    margin: 12px;
    opacity: 0;
    scale: 0.98;
    z-index: 2;
    transition: all 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 0.7;
    scale: 1;
}

/* Overlay en dégradé */
.overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(11, 9, 12, 0.95) 0%, rgba(11, 9, 12, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 3;
}

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

.overlay h3 {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- Mini Galerie Compacte (Pour l'accueil) --- */
.mini-gallery-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.mini-gallery-section h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
}

.mini-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.mini-item img:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(223, 183, 108, 0.3);
}

/* ==========================================================================
   🌌 6. EFFET PARALLAX POUR LE PORTFOLIO
   ========================================================================== */
.parallax-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(223, 183, 108, 0.15);
    border-bottom: 1px solid rgba(223, 183, 108, 0.15);
}

.bg-digital {
    background-image: linear-gradient(rgba(11, 9, 12, 0.5), rgba(11, 9, 12, 0.5)), url('../asset/digital/dark_fantasy-002.jpg');
}

.bg-fanart {
    background-image: linear-gradient(rgba(11, 9, 12, 0.5), rgba(11, 9, 12, 0.5)), url('../asset/fan-art/imageffdfsdf.jpg'); 
}

.bg-entrainement {
    background-image: linear-gradient(rgba(11, 9, 12, 0.5), rgba(11, 9, 12, 0.5)), url('../asset/entrainment/paysage-002.jpg');
}

.parallax-content {
    background: rgba(20, 17, 23, 0.75);
    padding: 3rem 4rem;
    border-radius: 4px;
    border: 1px solid rgba(223, 183, 108, 0.2);
    backdrop-filter: blur(5px);
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.parallax-content h2 {
    font-size: 2.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   📐 7. PAGES PORTFOLIO INTERNAL (SPLIT HALF & SECTIONS)
   ========================================================================== */
.digital-page {
    padding: 0 4%;
}

.split-container {
    display: flex;
    width: 100%;
    gap: 4rem;
    margin-bottom: 6rem;
}

.split-half {
    flex: 1;
    background: rgba(20, 17, 23, 0.4);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid rgba(223, 183, 108, 0.05);
}

.zone-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(223, 183, 108, 0.1);
    padding-bottom: 1rem;
}

.zone-header h2 {
    font-size: 2rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.full-zone {
    background: rgba(20, 17, 23, 0.4);
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid rgba(223, 183, 108, 0.05);
    margin-bottom: 6rem;
}

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

.artwork-item {
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid rgba(223, 183, 108, 0.1);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.artwork-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.artwork-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ==========================================================================
   🖼️ 8. SYSTÈME DE BOÎTE MODALE (ZOOM IMAGES)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 5vh;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(11, 9, 12, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(223, 183, 108, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px; right: 35px;
    color: var(--text-muted);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--gold);
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: var(--gold);
    padding: 15px 0;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   📝 9. PAGE À PROPOS (ABOUT) & ENCADRÉ PARCHEMIN
   ========================================================================== */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(223, 183, 108, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    filter: brightness(0.9) contrast(1.05);
}

.about-text {
    flex: 1.2;
    text-align: left;
}

.about-text h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Encadré des compétences style "Parchemin Sombre" */
.services {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-card);
    border-radius: 4px;
    border: 1px solid rgba(223, 183, 108, 0.15);
    border-left: 3px solid var(--gold);
    position: relative;
}

.services h3 {
    color: var(--gold);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
}

.services ul {
    list-style: none;
}

.services ul li {
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   ✉️ 10. PAGE CONTACT & FORMULAIRE MYSTIQUE
   ========================================================================== */
.contact-section {
    padding: 5rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
}

.contact-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-header p {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.form-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 4px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(223, 183, 108, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(223, 183, 108, 0.2);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background-color: rgba(11, 9, 12, 0.6);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(223, 183, 108, 0.15);
    background-color: rgba(11, 9, 12, 0.9);
}

.form-group select option {
    background-color: var(--bg-card);
    color: var(--text-light);
}

.submit-btn {
    font-family: inherit;
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    color: var(--bg-dark);
    background-color: var(--gold);
    box-shadow: 0 0 20px rgba(223, 183, 108, 0.3);
    transform: translateY(-2px);
}

/* Réseaux Sociaux */
.social-box {
    margin-top: 4rem;
    text-align: center;
}

.social-box p {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.social-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(255, 223, 158, 0.4);
}

/* ==========================================================================
   🔔 11. ANIMATIONS ET SCRIPT DE DÉFILEMENT (CLASSES VISIBLE)
   ========================================================================== */
.about-image.visible, 
.form-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   📱 12. RESPONSIVE DESIGN (MÉDIAS QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin: 2rem auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .services {
        text-align: left;
    }
}

/* ==========================================================================
   🖤 13. PIED DE PAGE (FOOTER)
   ========================================================================== */
footer {
    text-align: center;
    padding: 4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(223, 183, 108, 0.05);
    letter-spacing: 0.1em;
}