/* ==========================================================================
   style.css — Portfolio No0dle
   Galerie sombre, accents néon. Tout est piloté par les variables :root.
   Pour re-skiner : changez --accent / --accent-2 / --bg et les typos.
   ========================================================================== */

:root {
    /* Palette — fond sombre pour faire ressortir les œuvres colorées */
    --bg: #0d0d12;
    --bg-2: #14141c;
    --surface: #1a1a24;
    --border: #2a2a37;
    --text: #f2f2f7;
    --muted: #a1a1b5;

    /* Accents néon signature (ajustables) */
    --accent: #ff2e88;      /* magenta néon */
    --accent-2: #22d3ee;    /* cyan */
    --accent-glow: rgba(255, 46, 136, 0.5);

    /* Typo */
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    /* Mesures */
    --maxw: 1240px;
    --radius: 14px;
    --gap: clamp(1rem, 2vw, 1.6rem);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; font-weight: 700; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 200;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: rgba(13, 13, 18, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}
.logo-dot { color: var(--accent); }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.25s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(78vh, 720px);
    display: flex;
    align-items: center;
    padding: 4rem clamp(1rem, 4vw, 3rem);
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.78rem;
    color: var(--accent-2);
    margin-bottom: 1.2rem;
}
.hero-title {
    font-size: clamp(3.2rem, 13vw, 10rem);
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #fff 20%, var(--accent) 55%, var(--accent-2) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rise 0.9s var(--ease) both;
}
.hero-tagline {
    margin-top: 1.2rem;
    font-size: clamp(1rem, 2.4vw, 1.4rem);
    color: var(--muted);
    max-width: 40ch;
    animation: rise 0.9s var(--ease) 0.1s both;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.2rem;
    padding: 0.85rem 1.6rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 30px -8px var(--accent-glow);
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
    animation: rise 0.9s var(--ease) 0.2s both;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -8px var(--accent-glow); }
.hero-cta span { transition: transform 0.3s var(--ease); }
.hero-cta:hover span { transform: translateY(4px); }
.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 55% at 78% 30%, rgba(255,46,136,0.22), transparent 70%),
        radial-gradient(45% 50% at 15% 75%, rgba(34,211,238,0.16), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

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

/* ---------- Sections ---------- */
.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
}
.section > h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}
.section > h2::before {
    content: "";
    display: inline-block;
    width: 0.5em; height: 0.5em;
    margin-right: 0.5rem;
    border-radius: 3px;
    background: var(--accent);
    vertical-align: 0.08em;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
    padding: 0.45rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent-2); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Galerie (masonry via colonnes) ---------- */
.gallery {
    columns: 3 300px;
    column-gap: var(--gap);
}
.card {
    break-inside: avoid;
    margin-bottom: var(--gap);
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card.in { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(0,0,0,0.7); }
.card img { width: 100%; height: auto; background: var(--bg-2); transition: transform 0.5s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.4rem 1rem 0.9rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.3s var(--ease);
}
.card:hover .card-info { transform: translateY(0); opacity: 1; }
.card-title { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.card-cat { font-size: 0.8rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; }
.gallery-empty { color: var(--muted); text-align: center; padding: 3rem 0; }

/* ---------- À propos ---------- */
.about { max-width: 780px; }
.about-bio { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--text); }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.socials a {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 500;
    transition: all 0.2s var(--ease);
}
.socials a:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact { max-width: 640px; }
.contact-intro { color: var(--muted); margin-bottom: 2rem; font-size: 1.1rem; }
.contact-form .field { margin-bottom: 1.3rem; }
.contact-form label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,46,136,0.16);
}
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send {
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 30px -10px var(--accent-glow);
    transition: transform 0.2s var(--ease), filter 0.2s;
}
.btn-send:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}
/* Accès admin discret : le © est cliquable mais indiscernable du texte. */
.admin-access {
    color: inherit;
    cursor: default;          /* pas de main au survol : reste invisible */
    text-decoration: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(6px);
    padding: clamp(1rem, 4vw, 3rem);
    animation: fade 0.25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lb-figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-figure img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.8);
}
.lb-figure figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}
.lb-close {
    top: 1.2rem; right: 1.2rem;
    width: 46px; height: 46px;
    font-size: 1.1rem;
}
.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px; height: 54px;
    font-size: 2rem;
    line-height: 1;
}
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .gallery { columns: 2 160px; }
    .card-info { transform: translateY(0); opacity: 1; }
    .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}
@media (max-width: 460px) {
    .site-nav { gap: 1rem; font-size: 0.85rem; }
    .gallery { columns: 1; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .card { opacity: 1; transform: none; }
}
