/* ════════════════════════════
   Gabyn Procot-Harmand
   style.css - MINIMALIST PORTFOLIO
════════════════════════════ */

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

:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: #888888;
  --white: #ffffff;
  
  --font-sans: 'Kumbh Sans', sans-serif;
  --font-display: 'Barlow', sans-serif;
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
  --nav-h: 80px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading, body.no-scroll { overflow: hidden; }

/* ── LOADER (Logo Filling) ── */
#motogp-loader {
  position: fixed; inset: 0; background: var(--bg); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#motogp-loader.fade-out { opacity: 0; visibility: hidden; }

.loader-content { text-align: center; }
.loader-logo-container { position: relative; width: 120px; margin: 0 auto 2rem; }
.loader-logo-base { width: 100%; filter: brightness(0.15); display: block; }
.loader-logo-fill {
  position: absolute; top: 0; left: 0; width: 0%; height: 100%;
  overflow: hidden; transition: width 0.05s linear;
}
.loader-logo-fill img { width: 120px; filter: brightness(1); display: block; }
.loader-counter { font-family: var(--font-display); font-size: 2rem; font-weight: 300; letter-spacing: 0.1em; color: var(--text-muted); }

/* ── PROGRESS BAR ── */
#scrollProgress {
  position: fixed; top: 0; left: 0; width: 0%; height: 2px; background: var(--white); z-index: 9999; transition: width 0.1s linear;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
  z-index: 500; display: flex; justify-content: space-between; align-items: center; padding: 0 4rem;
  background: transparent; transition: background 0.4s var(--ease), border 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo-img { height: 28px; width: auto; transition: opacity 0.3s; }
.logo:hover .nav-logo-img { opacity: 0.7; }

.nav-menu { display: flex; gap: 3rem; list-style: none; }
.nav-link {
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }

.burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; z-index: 600; width: 30px; }
.burger span { display: block; height: 1px; width: 100%; background: var(--white); transition: all 0.4s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }
.mobile-menu { list-style: none; text-align: center; }
.mobile-menu li { transform: translateY(20px); opacity: 0; transition: all 0.5s var(--ease); }
.mobile-overlay.open .mobile-menu li { transform: translateY(0); opacity: 1; }
.mobile-overlay.open .mobile-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-menu li:nth-child(2) { transition-delay: 0.2s; }
.mobile-overlay.open .mobile-menu li:nth-child(3) { transition-delay: 0.3s; }
.mobile-overlay.open .mobile-menu li:nth-child(4) { transition-delay: 0.4s; }
.mobile-link { display: block; font-family: var(--font-display); font-size: 3rem; font-weight: 300; text-transform: uppercase; color: var(--text-muted); text-decoration: none; padding: 1rem; transition: color 0.3s; }
.mobile-link:hover { color: var(--white); }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; text-align: center; padding: 0 2rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: center/cover no-repeat; filter: grayscale(100%) brightness(0.25); transform: scale(1.05); }
.hero-bg-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; display: flex; flex-direction: column; align-items: center; }

.hero-eyebrow { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 1s 0.2s both var(--ease); }
.logo-hero { width: 90%; max-width: 450px; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 1s 0.4s both var(--ease); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 4rem; opacity: 0; animation: fadeUp 1s 0.6s both var(--ease); }
.hero-actions { display: flex; gap: 1.5rem; opacity: 0; animation: fadeUp 1s 0.8s both var(--ease); }

/* ── BUTTONS ── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.2rem 2.5rem; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--border); transition: all 0.4s var(--ease); border-radius: var(--radius);
}
.btn-primary { background: var(--white); color: var(--bg); border-color: var(--white); }
.btn-primary:hover { background: transparent; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover { background: var(--surface); border-color: var(--white); }

/* ── COMMON SECTIONS ── */
.section-galerie, .section-about, .section-contact { padding: 10rem 4rem; position: relative; z-index: 1; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 6rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; text-transform: uppercase; letter-spacing: 0.1em; }
.section-title em { font-style: normal; color: var(--text-muted); }

/* ── GALLERY ── */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-bottom: 5rem; }
.filter-btn {
  background: none; border: none; font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); cursor: pointer; padding-bottom: 0.4rem; border-bottom: 1px solid transparent; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { color: var(--white); border-bottom-color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; opacity: 0; transition: opacity 0.5s; }
.gallery-grid.grid-animate-in { opacity: 1; }
.gallery-item {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; cursor: pointer; border-radius: var(--radius);
  transform: translateY(30px); opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--item-idx, 0) * 0.05s);
}
.gallery-grid.grid-animate-in .gallery-item { transform: translateY(0); opacity: 1; }
.gallery-item.hidden-anim { display: none !important; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); transition: background 0.4s; }
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0%); }
.gallery-item:hover .gallery-overlay { background: transparent; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 8000; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox > img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: var(--text-muted); font-size: 2rem; font-weight: 300;
  cursor: pointer; transition: color 0.3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--white); }
.lightbox-close { top: 2rem; right: 3rem; }
.lightbox-prev { left: 3rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 3rem; top: 50%; transform: translateY(-50%); }

/* ── ABOUT ── */
.about-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; align-items: start; }
.about-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.about-stat { border: 1px solid var(--border); padding: 3rem; text-align: center; background: var(--surface); border-radius: var(--radius); transition: border-color 0.4s; }
.about-stat:hover { border-color: rgba(255,255,255,0.2); }
.stat-val { display: block; font-family: var(--font-display); font-size: 3.5rem; font-weight: 300; line-height: 1; color: var(--white); }
.stat-lbl { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin-top: 1rem; }

.about-text { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.skills-list { display: flex; flex-wrap: wrap; gap: 1rem; margin: 3rem 0; }
.skill-tag { padding: 0.6rem 1.5rem; border: 1px solid var(--border); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); border-radius: 50px; }
.about-actions { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.social-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); }
.about-socials { display: flex; gap: 2rem; align-items: center; }
.speed-link { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); text-decoration: none; position: relative; }
.speed-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 1px; background: var(--white); transition: width 0.3s; }
.speed-link:hover::after { width: 100%; }

/* ── CONTACT ── */
.section-contact { background: var(--bg-alt); }
.contact-intro { text-align: center; color: var(--text-muted); margin-bottom: 5rem; font-size: 1.1rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2rem;
  padding: 4rem 2rem; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: background 0.4s, border-color 0.4s;
}
.contact-card:hover { background: transparent; border-color: var(--white); }
.contact-card-icon { width: 60px; height: 60px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; color: var(--white); transition: background 0.4s; }
.contact-card:hover .contact-card-icon { background: var(--white); color: var(--bg); }
.contact-card-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.contact-card-val { font-size: 1.1rem; color: var(--white); }

.contact-ig { padding: 0; overflow: hidden; display: flex; border-color: var(--border); }
.contact-ig iframe { border: none; width: 100%; min-height: 100%; border-radius: var(--radius); filter: grayscale(100%); transition: filter 0.4s; }
.contact-ig:hover iframe { filter: grayscale(0%); }

/* ── FOOTER ── */
footer { padding: 4rem; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }
.footer-logo-img { height: 30px; opacity: 0.5; transition: opacity 0.3s; }
.footer-logo:hover .footer-logo-img { opacity: 1; }
.footer-socials { display: flex; gap: 2rem; }
.footer-socials a { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-socials a:hover { color: var(--white); }

/* ── ANIMATIONS & RESPONSIVE ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  .section-galerie, .section-about, .section-contact { padding: 8rem 2rem; }
  .about-layout { grid-template-columns: 1fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .about-stat { flex: 1; min-width: 200px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .burger { display: flex; }
  .footer-inner { flex-direction: column; gap: 2rem; text-align: center; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
  .btn-primary, .btn-ghost { width: 100%; }
}

/* ════════════════════════════
   ADMINISTRATION - MINIMALISTE
════════════════════════════ */
.admin-layout { max-width: 1400px; margin: 0 auto; padding: 10rem 4rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }

.admin-card { 
    padding: 3rem; 
    border: 1px solid var(--border); 
    background: var(--surface); 
    border-radius: var(--radius); 
}
.admin-card-title { 
    font-family: var(--font-display); 
    font-size: 1.5rem; 
    font-weight: 300; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 3rem; 
    color: var(--white);
}

/* Formulaires épurés */
.admin-form { display: flex; flex-direction: column; gap: 2rem; }
.admin-form input, .admin-form select { 
    background: transparent; 
    border: none;
    border-bottom: 1px solid var(--border); 
    color: var(--white); 
    font-family: var(--font-sans); 
    padding: 0.5rem 0; 
    font-size: 0.85rem;
    outline: none; 
    transition: border-color 0.4s var(--ease); 
}
.admin-form input::placeholder { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.admin-form select { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; cursor: pointer; }
.admin-form select option { background: var(--bg); color: var(--white); }
.admin-form input:focus, .admin-form select:focus { border-bottom-color: var(--white); }

/* Tableau liste façon galerie */
.photo-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.85rem; text-align: left; }
.photo-table th { 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--text-muted); 
    font-weight: 400; 
    font-size: 0.75rem; 
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.photo-table td { padding: 1.5rem 0; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.photo-table td strong { color: var(--white); font-weight: 300; font-family: var(--font-display); letter-spacing: 0.05em; font-size: 1.1rem; display: block; margin-bottom: 0.3rem;}
.photo-table img { width: 80px; height: 100px; object-fit: cover; filter: grayscale(100%); transition: filter 0.6s var(--ease), transform 0.6s var(--ease); border-radius: 2px; }
.photo-table tr:hover img { filter: grayscale(0%); transform: scale(1.05); }

/* Boutons d'actions textuels */
.btn-action { 
    color: var(--text-muted); 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.4s var(--ease);
    display: inline-block;
    margin-top: 0.5rem;
}
.btn-action:hover { color: var(--white); }
.btn-action.supprimer:hover { color: #ff4a4a; }

.admin-message { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 4rem; font-weight: 300; letter-spacing: 0.05em; }

@media (max-width: 1024px) { 
    .admin-layout { padding: 8rem 2rem; }
    .admin-grid { grid-template-columns: 1fr; gap: 4rem; } 
    .photo-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ── PAGE DE MODIFICATION ── */
.admin-layout.admin-layout-narrow { max-width: 800px; }
.admin-message.success { color: #4CAF50; }

.admin-edit-preview { text-align: center; margin-bottom: 3rem; }
.admin-edit-preview img { 
    max-height: 250px; 
    border-radius: 2px; 
    filter: grayscale(100%); 
    transition: filter 0.6s var(--ease), transform 0.6s var(--ease); 
    cursor: pointer; 
}
.admin-edit-preview img:hover { 
    filter: grayscale(0%); 
    transform: scale(1.02); 
}

.admin-form label { 
    color: var(--text-muted); 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-top: 1rem; 
    display: block; 
}
.admin-form-submit { margin-top: 3rem; width: 100%; }

/* ── NAVIGATION ADMIN ── */
.admin-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 6rem; 
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.admin-nav { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
}
.admin-nav .btn-action { 
    margin: 0; 
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.4s var(--ease);
}
.admin-nav .btn-action:hover { 
    background: var(--surface);
    color: var(--white);
}
.admin-nav .active { 
    color: var(--bg); 
    background: var(--white);
    border-color: var(--white);
}
.admin-nav .active:hover {
    background: var(--white);
    color: var(--bg);
}
.admin-nav .btn-action.supprimer {
    border: 1px solid rgba(255, 74, 74, 0.3);
    color: #ff4a4a;
}
.admin-nav .btn-action.supprimer:hover {
    background: rgba(255, 74, 74, 0.1);
    border-color: #ff4a4a;
}

@media (max-width: 1024px) { 
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .admin-nav {
        flex-wrap: wrap;
    }
}
/* ── INFOS GALERIE (SURVOL) ── */
.gallery-item-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(5,5,5,0.9), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.gallery-item:hover .gallery-item-info { opacity: 1; transform: translateY(0); }
.info-title { color: var(--white); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.1rem; }
.info-exif { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.4; }

/* ── BOUTON ADMIN FOOTER ── */
.btn-admin-footer {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all 0.4s var(--ease);
}
.btn-admin-footer:hover {
    color: var(--white);
    border-color: var(--border);
    background: var(--surface);
}

/* ── BOUTON RETOUR EN HAUT ── */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--white);
    color: var(--bg);
    transform: translateY(-5px);
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* ── BADGE SÉLECTION ── */
.badge-selection {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius);
    z-index: 10;
    pointer-events: none;
}