:root {
    --primary-color: #ffffff;
    --accent-color: #bb86fc; 
    --bg-color: #0a0f1d;      
    --text-color: #e0e0e0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cstyle%3E.line%7Bfill:none;stroke:%239b5de5;stroke-width:0.7;stroke-opacity:0.25;%7D%3C/style%3E%3C/defs%3E%3Cpath class='line' d='M-100,200 Q150,50 400,300 T900,100 T1400,400 T1900,200'/%3E%3Cpath class='line' d='M-100,250 Q160,110 420,340 T920,140 T1420,450 T1920,240'/%3E%3Cpath class='line' d='M-100,300 Q170,170 440,380 T940,180 T1440,500 T1940,280'/%3E%3Cpath class='line' d='M-100,350 Q180,230 460,420 T960,220 T1460,550 T1960,320'/%3E%3Cpath class='line' d='M-100,600 Q200,800 600,650 T1300,850 T1950,600'/%3E%3Cpath class='line' d='M-100,640 Q210,830 620,680 T1320,880 T1950,640'/%3E%3Cpath class='line' d='M-100,680 Q220,860 640,710 T1340,910 T1950,680'/%3E%3Cpath class='line' d='M-100,1200 Q300,900 800,1100 T1600,950 T2100,1250'/%3E%3Cpath class='line' d='M-100,1240 Q310,930 820,1130 T1620,980 T2100,1290'/%3E%3Cpath class='line' d='M-100,1280 Q320,960 840,1150 T1640,1010 T2100,1330'/%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}

/* Header */
header { 
    background: rgba(10, 15, 29, 0.9); 
    color: var(--primary-color); 
    padding: 1.2rem 2rem; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(187, 134, 252, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 { margin: 0; font-size: 1.2rem; letter-spacing: 4px; text-transform: uppercase; }
header nav { display: flex; align-items: center; }
header nav .nav-item { position: relative; padding: 10px 0; }
header nav a {
    text-decoration: none; color: var(--text-color); margin: 0 15px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition);
}
header nav a:hover, header nav a.active { color: var(--accent-color); text-shadow: 0 0 8px var(--accent-color); }

/* Menu déroulant Projets PC */
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 15px; background: rgba(15, 22, 42, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(187, 134, 252, 0.2); border-radius: 8px; padding: 10px 0; min-width: 220px; box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.dropdown-menu a { display: block; margin: 0; padding: 10px 20px; font-size: 0.75rem; text-transform: none; letter-spacing: 0.5px; text-align: left; }
.dropdown-menu a:hover { background: rgba(187, 134, 252, 0.1); }
.nav-item:hover .dropdown-menu { display: block; }

/* Menu burger */
.menu-toggle { display: none; }
.burger-btn { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; padding: 10px; }
.burger-btn span { display: block; width: 25px; height: 2px; background-color: var(--text-color); transition: var(--transition); }

/* Bannière */
.banner { 
    width: 100%; height: 60vh; background: linear-gradient(rgba(10,15,29,0.2), rgba(10,15,29,0.7)), url('banniere.jpg') no-repeat center center/cover; display: flex; align-items: center; justify-content: center; color: white; 
}
.banner h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 8vw, 4rem); font-style: italic; text-shadow: 0 4px 20px rgba(0,0,0,0.6); }

.container { max-width: 1100px; margin: -50px auto 40px; padding: 0 20px; position: relative; z-index: 10; }
.projects-wrapper { scroll-margin-top: 90px; }

h2.main-section-title {
    font-family: 'Playfair Display', serif; color: var(--primary-color); font-size: 3rem; text-align: center; margin: 60px 0 40px 0; letter-spacing: 2px; text-transform: uppercase;
}
h2.main-section-title::after { display: none; }

section { 
    margin-bottom: 50px; padding: 40px; background: rgba(15, 22, 42, 0.75); border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.4); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.05); scroll-margin-top: 100px; 
}

h2 { font-family: 'Playfair Display', serif; color: var(--primary-color); font-size: 2.2rem; margin-bottom: 40px; text-align: center; }
h2::after { content: ''; display: block; width: 50px; height: 3px; background: var(--accent-color); margin: 10px auto 0; box-shadow: 0 0 10px var(--accent-color); }
h3 { color: var(--primary-color); }

/* Parcours & Disciplines */
.profile-section { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.profile-img-container { flex: 1; min-width: 300px; }
.profile-img { overflow: hidden; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.profile-img img { width: 100%; display: block; transition: var(--transition); }
.profile-img img:hover { transform: scale(1.05); }
.profile-text { flex: 1.5; min-width: 300px; }
.profile-text p { font-size: 1.1rem; color: #ccc; text-align: justify; }
.profile-text strong { color: #fff; }

.styles-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.styles-list li { background: rgba(187, 134, 252, 0.1); color: #fff; padding: 12px 20px; border-radius: 50px; font-size: 0.95rem; border-left: 3px solid var(--accent-color); font-weight: bold; transition: var(--transition); cursor: pointer; text-align: center; }
.styles-list li:hover { background: var(--accent-color); color: #0a0f1d; transform: translateY(-3px); box-shadow: 0 0 15px rgba(187, 134, 252, 0.6); }

.tags-plus li {
    background: rgba(0, 229, 255, 0.05);
    border-left: 3px solid #00e5ff;
}
.tags-plus li:hover {
    background: #00e5ff;
    color: #0a0f1d;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

/* Recherche */
.search-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 20px; 
}
.search-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(187, 134, 252, 0.1); 
    padding: 25px; 
    border-radius: 12px; 
    transition: var(--transition); 
    text-align: left;
    width: calc(33.333% - 14px); 
    min-width: 290px; 
    box-sizing: border-box;
}
.search-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: 0 10px 20px rgba(187, 134, 252, 0.1); background: rgba(187, 134, 252, 0.02); }
.search-card i { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; display: inline-block; }
.search-card h4 { font-size: 1.2rem; color: #fff; margin: 0 0 10px 0; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.search-card p { font-size: 0.95rem; color: #aaa; margin: 0; }

/* Galeries */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 10px; }
.gallery-item { overflow: hidden; border-radius: 10px; height: 350px; background: #111; border: 1px solid rgba(255,255,255,0.05); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); cursor: pointer; }
.gallery-item:hover img { transform: scale(1.08); }
.project-credits { font-size: 0.75rem; color: #888; text-align: right; font-style: italic; margin-top: 5px; }

/* Vidéos */
.video-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
    margin-top: 20px; 
    width: 100%;
}
.video-card { 
    position: relative; 
    overflow: hidden; 
    border-radius: 12px; 
    width: 100%;
    aspect-ratio: 16 / 7; 
    cursor: pointer;
    border: 1px solid rgba(187, 134, 252, 0.15); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); 
    transition: var(--transition);
}
.video-card-bg { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); filter: brightness(0.6); }
.video-card-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.video-card-overlay i { font-size: 3rem; color: var(--accent-color); margin-bottom: 12px; transition: var(--transition); text-shadow: 0 0 15px rgba(187, 134, 252, 0.5); }
.video-card-overlay h3 { font-size: 1.2rem; color: #fff; margin: 0; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.video-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: 0 12px 30px rgba(187, 134, 252, 0.25); }
.video-card:hover .video-card-bg { filter: brightness(0.4) scale(1.05); }
.video-card:hover .video-card-overlay i { color: #fff; transform: scale(1.1); }
.video-warning-text { grid-column: 1 / -1; margin-top: 15px; font-size: 0.9rem; color: #aaa; text-align: center; }

/* Contact CTA */
.contact-cta { 
    position: relative; text-align: center; background: none; border: 1px solid rgba(187, 134, 252, 0.2); overflow: hidden; scroll-margin-top: 100px; z-index: 1;
}
.contact-video-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -2; object-fit: cover; pointer-events: none;
}
.contact-overlay {
    position: absolute; inset: 0; background: linear-gradient(rgba(10, 15, 29, 0.85), rgba(10, 15, 29, 0.9)); z-index: -1;
}
.contact-content { position: relative; z-index: 2; }
.social-links { margin: 30px 0; display: flex; justify-content: center; gap: 25px; }
.social-links a { font-size: 2rem; color: var(--text-color); transition: var(--transition); text-decoration: none; }
.social-links a:hover { color: var(--accent-color); transform: scale(1.2); text-shadow: 0 0 10px var(--accent-color); }
.btn-contact { display: inline-block; padding: 15px 40px; background: var(--accent-color); color: #0a0f1d; text-decoration: none; border-radius: 50px; font-weight: bold; transition: var(--transition); }
.btn-contact:hover { background: #ffffff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }

.alinea { text-indent: 30px; text-align: justify; color: #ccc; }
footer { text-align: center; padding: 60px 20px; background: #050811; color: rgba(255,255,255,0.5); font-size: 0.9rem; letter-spacing: 1px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(5, 8, 17, 0.95); 
    backdrop-filter: blur(8px); 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    padding: 20px;
}
.modal.show { display: flex; opacity: 1; }
.modal-content {
    background-color: #0f162a; 
    border-radius: 15px; 
    max-width: 1000px; 
    width: 100%; 
    max-height: calc(100vh - 40px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); 
    position: relative; 
    transform: translateY(-20px); 
    transition: transform 0.3s ease; 
    border: 1px solid rgba(187, 134, 252, 0.2);
    box-sizing: border-box;
    overflow: hidden;
}
.modal.show .modal-content { transform: translateY(0); }
.close-modal { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    font-size: 1.6rem; 
    color: #aaa; 
    cursor: pointer; 
    padding: 10px; 
    transition: var(--transition); 
    line-height: 1; 
    z-index: 100; 
    background: rgba(15, 22, 42, 0.6);
    border-radius: 50%;
}
.close-modal:hover { color: var(--accent-color); transform: scale(1.1); }
.modal-layout { display: flex; flex-direction: row; width: 100%; max-height: calc(100vh - 40px); }
.modal-media {
    flex: 1.2;
    min-width: 0;
    background: #050811;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: calc(100vh - 40px);
}
.modal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-video-container { display: none; width: 100%; height: 100%; background: #000; }
.modal-video-container video { width: 100%; height: 100%; display: block; object-fit: contain; }
.modal-body { 
    flex: 1;
    min-width: 0;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    box-sizing: border-box;
}
.modal h3 { font-family: 'Playfair Display', serif; color: #fff; margin-top: 0; margin-bottom: 5px; font-size: 1.8rem; text-align: left; }
.modal-credits { font-size: 0.75rem; color: #777; text-align: left; font-style: italic; margin-bottom: 20px; }
.modal p { font-size: 0.95rem; color: #ccc; line-height: 1.6; text-align: justify; margin-bottom: 0; }

.modal.lightbox-mode .modal-content { max-width: 80vh; }
.modal.lightbox-mode .modal-layout { flex-direction: column; }
.modal.lightbox-mode .modal-media { flex: 1; }
.modal.lightbox-mode .modal-img { object-fit: contain; max-height: calc(100vh - 100px); }
.modal.lightbox-mode .modal-body { padding: 15px; text-align: center; max-height: auto; overflow: hidden; justify-content: center; align-items: center;}
.modal.lightbox-mode .modal-body h3, .modal.lightbox-mode .modal-body p { display: none; }
.modal.lightbox-mode .modal-credits { margin-bottom: 0; text-align: center; }

.modal.video-mode .modal-content { max-width: 1100px; }
.modal.video-mode .modal-media { flex: 1.6; }
.modal.video-mode .modal-img { display: none; }
.modal.video-mode .modal-video-container { display: block; }
.modal.video-mode .modal-body h3 { color: var(--accent-color); }

/* Responsive */
@media (max-width: 768px) {
    .search-card { width: 100%; } 
    .video-grid { grid-template-columns: 1fr; } 
    .container { margin-top: 0; padding: 0 10px; }
    section { border-radius: 10px; padding: 20px; margin-bottom: 30px; }
    h2.main-section-title { font-size: 2.2rem; margin: 40px 0 20px 0; }
    .styles-list { grid-template-columns: 1fr; gap: 10px; } 
    .banner { height: 40vh; }
    .modal { padding: 10px; }
    .modal-content { max-height: calc(100vh - 20px); }
    .modal-layout { flex-direction: column; max-height: calc(100vh - 20px); }
    .modal-media { flex: none; height: 35vh; max-height: 35vh; }
    .modal-img { object-fit: cover; }
    .modal-body { flex: 1; padding: 20px 15px; justify-content: flex-start; max-height: calc(65vh - 20px); }
    .modal h3 { font-size: 1.4rem; }
    .modal p { font-size: 0.85rem; }
    .modal.lightbox-mode .modal-content { max-width: 100%; }
    .modal.lightbox-mode .modal-media { height: 75vh; max-height: 75vh; }
    .modal.lightbox-mode .modal-img { object-fit: contain; }
    .modal.lightbox-mode .modal-body { height: 10vh; max-height: 10vh; }
    .burger-btn { display: flex; }
    header nav {
        display: flex; flex-direction: column; justify-content: center; align-items: center; position: fixed; top: 0; right: -100%; 
        width: 80%; height: 100vh; background: rgba(10, 15, 29, 0.98); backdrop-filter: blur(15px); box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: right 0.4s ease-in-out; z-index: 1000; padding: 40px 0; overflow-y: auto;
    }
    header nav .nav-item { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
    header nav a { margin: 15px 0; font-size: 1.2rem; width: 100%; text-align: center; padding: 10px 0; }
    .dropdown-menu { display: flex; flex-direction: column; position: static; background: none; border: none; box-shadow: none; padding: 0; min-width: auto; }
    .dropdown-menu a { font-size: 0.95rem; color: #aaa; padding: 8px 0; }
    .menu-toggle:checked ~ nav { right: 0; }
    .menu-toggle:checked ~ .burger-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--accent-color); }
    .menu-toggle:checked ~ .burger-btn span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .burger-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--accent-color); }
}