
/* REQUIRES themes/art-of-abstract.css - see themes.js */

:root {
	/* ------------------------------------- GLOBAL SETTINGS --- */
	
	--font-size-text: 1.5rem;
    --line-height: 1rem;
	
	/* RESPONSIVE */
	
	--font-size-text-mobiles: 1.2rem;

	/* -------------------------------------ABOUT page, global settings --- */
	
	--font-size-text-about: 1.5rem;
	
	/* RESPONSIVE */
	
	--font-size-text-about-mobiles: 1rem;

	/* -------------------------------------ARTIST, in the ABOUT page --- */
	
	--font-size-text-artist: 1.5rem;
	--line-height-artist-line: 2.5rem;
	--margin-bottom-artist-line: 1.5rem;

	/* RESPONSIVE */
	
	--font-size-text-artist-mobiles: 1.2rem;
	--line-height-artist-line-mobiles: 2rem;
	--margin-bottom-artist-line-mobiles: 1.2rem;

	/* -------------------------------------EVENTS, in the ABOUT page --- */
	
	--font-size-text-event-category: 2rem;
	--margin-bottom-event-category: 2rem;
	
	--font-size-text-event-line: 1.5rem;
	--line-height-event-line: 2rem;
	--margin-bottom-event-line: 1rem;

	/* RESPONSIVE */
	--font-size-text-event-category-mobiles: 1.5rem;
	--margin-bottom-event-category-mobiles: 1.5rem;

	--font-size-text-event-line-mobiles: 1.2rem;
	--margin-bottom-event-line-mobiles: 0.8rem;
}


/* ========================================================= */
/*  RESET  */
/* ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    min-height: 100vh;
}



/* ========================================================= */
/*  HEADER  */
/* ========================================================= */

.top-header {
    /* padding: 40px 20px 20px; */
    text-align: center;
    position: sticky;
    top: 0;
    background: var(--color-background);
    z-index: 100;

    transition: transform 0.35s ease, padding 0.35s ease;
    will-change: transform;
}

.top-header.compact {
    /* transform: translateY(-10px); */
    padding-top: 6px;
    padding-bottom: 20px;
}

.top-header.compact .site-title h1 {
    /* font-size: 22px; -- on ne modifie pas la taille de la police */
}

.top-header.compact .site-title p {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.top-header.compact .filters:not(.open) {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-title h1 {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;

    transition: font-size 0.3s ease;
}

.site-title p {
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;

    transition: all 0.3s ease;
}

.site-title p.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* ========================================================= */
/* MOBILE NAVIGATION (HAMBURGER) */
/* ========================================================= */

.top-header {
    position: sticky;
    top: 0;
    background: var(--color-background);
    z-index: 100;
}

.hamburger-btn {
    display: none;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    /* Header */

    .top-header {
        padding: 25px 16px 16px;
        padding-right: 50px;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .top-header.compact {
        padding: 4px 12px;
        padding-right: 50px;
    }

    /* Keep menu visible when opened */

    .top-header.compact .filters {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .top-header.compact .filters.open {
        opacity: 1;
        max-height: none;
        pointer-events: auto;
        transform: none;
    }

    /* Hamburger */

    .hamburger-btn {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;

        background: none;
        border: none;

        color: var(--color-text);
        font-size: 2.8rem;

        cursor: pointer;
        z-index: 5000;
    }

}



/* ========================================================= */
/*  NAV / FILTERS  */
/* ========================================================= */

.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.filters.hidden {
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
}

/* 🔥 UNIFICATION DES LIENS */

.filters button,
.filters a,
.filters a:visited {
    background: transparent;
    color: var(--color-text);
    border: none;
    padding: 8px 14px;
    font-size: var(--font-size-text);
    letter-spacing: 1px;
    text-transform: lowercase;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

/* hover + active */
.filters button:hover,
.filters button.active,
.filters a:hover {
    opacity: .5;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 700px)  { 

	.filters button,
	.filters a,
	.filters a:visited {
		font-size: var(--font-size-text-mobiles);
	}
}


/* ========================================================= */
/*  GALLERY (MASONRY)  */
/* ========================================================= */

.gallery {

    column-count: 4;
    column-gap: 40px;

    max-width: 1600px;
    margin: 0 auto;

    padding: 40px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 700px) {

    .gallery {
        column-count: 2;
        column-gap: 20px;
        padding: 20px;
    }

    .card {
        margin-bottom: 20px;
    }

    .site-title h1 {
        font-size: 22px;
    }
}


/* ========================================================= */
/*  CARD  */
/* ========================================================= */

.card {

    position: relative;

    display: inline-block;
    width: 100%;

    margin-bottom: 40px;

    break-inside: avoid;
    page-break-inside: avoid;

    cursor: pointer;
}


/* ========================================================= */
/*  IMAGES  */
/* ========================================================= */

.card img {

    display: block;

    width: 100%;
    height: auto;

    transition: transform .4s ease;

    margin-bottom: 10px;
}


/* ========================================================= */
/*  OVERLAY  */
/* ========================================================= */

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(
			to top, 
			var(--color-overlay),
			transparent
		);
    color: var(--color-overlay-text);
	font-size: 2.0rem;   /* larger text */
    opacity: 0;
    transition: .3s;
    pointer-events: none;
}

/* Only devices with a real hover capability */

@media (hover: hover) {

    .card:hover img {
        transform: scale(1);
        opacity: 0.92;
    }

    .card:hover .overlay {
        opacity: 1;
    }

}


/* ========================================================= */
/*  LIGHTBOX  */
/* ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: var(--color-modal-bg);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.viewer {
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
}

.viewer img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.infos {
    margin-top: 20px;
    color: var(--color-text);
    font-size: 14px;
    letter-spacing: 1px;
}

#lb-title {
    margin-bottom: 10px;
    font-weight: 300;
}

#lb-meta {
    opacity: .8;
}


/* ========================================================= */
/*  NAVIGATION  */
/* ========================================================= */

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
    transition: .2s;
    padding: 20px;
}

.nav:hover {
    opacity: .5;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


/* ========================================================= */
/*  CLOSE  */
/* ========================================================= */

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: var(--color-text);
    cursor: pointer;
    transition: .2s;
}

.close:hover {
    opacity: .5;
}


/* ========================================================= */
/*  FOOTER  */
/* ========================================================= */

.footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 50px;
    color: var(--color-text);
}

.footer a {
    color: var(--color-text);
    text-decoration: none;
    margin: 0 10px;
}

.socials {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.socials a {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ========================================================= */
/*  CONTENT  */
/* ========================================================= */

.page-content {
    padding: 100px 40px;
    text-align: center;
}


/* ========================================================= */
/*  ANIMATION  */
/* ========================================================= */

.fade-in {
    animation: fade .5s ease;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================================= */
/*  ABOUT PAGE  */
/* ========================================================= */

.about-page {
	
	background: var(--color-background);

    max-width: 1000px;
    margin: 0 auto;

    padding:
        80px 40px
        120px;

    text-align: left;
    line-height: var(--line-height);
}

.about-block {

    margin-bottom: 80px;
}

.about-block h2 {

    font-size: 34px;
    font-weight: 300;
    margin-bottom: 35px;
    letter-spacing: 2px;
}

.about-block p {

    color: var(--color-text-muted);
}


/* ================= ABOUT ARTIST ================= */

.artist-block p {

    margin-bottom: var(--margin-bottom-artist-line);
	font-size: var(--font-size-text-artist);
    color: var(--color-text-muted);
}

.artist-profile {
    display: block; /* IMPORTANT: kill flex/grid */
}

.artist-photo {
    float: left;
    width: clamp(220px, 30vw, 420px);
    margin: 0 40px 20px 0;
    shape-outside: margin-box;
}

.artist-text {
    /* max-width: 70ch; */
    display: block;
}

.artist-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.artist-text p {
    margin-bottom: var(--margin-bottom-artist-line);
	font-size: var(--font-size-text-artist);
    line-height: var(--line-height-artist-line);
    max-width: 70ch;
	
	/* text-align: justify; */
}

/* ================= RESPONSIVE ================= */

@media (max-width: 700px) {

	.artist-text p {
		margin-bottom: var(--margin-bottom-artist-line-mobiles);
		font-size: var(--font-size-text-artist-mobiles);
		line-height: var(--line-height-artist-line-mobiles);
		
		/* text-align: justify; */
	}

   .artist-profile {
        flex-direction: column;
    }

    .artist-photo {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}


/* ================= ABOUT EVENTS ================= */

.events-category {

    margin-bottom: var(--margin-bottom-event-category);
    font-size: var(--font-size-text-event-category);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.about-block .event-line {

    margin-bottom: var(--margin-bottom-event-line);
    font-size: var(--font-size-text-event-line);
    line-height: var(--line-height-event-line);
    color: var(--color-text-muted);
}

.event-date {

    font-weight: bold;
    opacity: .85;
}

.event-title {

    font-style: italic;
}

.events-spacer {

    height: 20px;
}


/*  RESPONSIVE  */

@media (max-width: 700px) {

    .about-page {

        padding:
            50px 24px
            80px;
    }

    .about-block h2 {

        font-size: 28px;
    }

    .events-category {

        font-size: var(--font-size-text-event-category-mobiles);
    }

    .about-block .event-line {

        font-size: var(--font-size-text-event-line-mobiles);
        margin-bottom: var(--margin-bottom-event-line-mobiles);
    }
}


/* ========================================================= */
/*  CONTACT PAGE  */
/* ========================================================= */

.contact-page {
	background: var(--color-background);
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
    gap: 25px;
    padding: 60px;
    min-height: 100vh;
    align-items: start; /* IMPORTANT: top alignment */
}

/* ================= LEFT IMAGE ================= */

.contact-image {
    display: flex;
    align-items: flex-start;
}

.contact-img {
    width: clamp(250px, 20vw, 450px);
    height: auto;
    display: block;
}

/* ================= RIGHT FORM ================= */

.contact-form-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}

.contact-form-container h2 {
    margin-top: 0;
	margin-bottom: 15px;
}

/* ================= FORM ================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
	margin-top: 10px;
}

/* ================= INPUTS ================= */

.contact-form input,
.contact-form textarea {

    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: .25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {

    border-color: var(--color-border);
}

/* ================= PLACEHOLDERS ================= */

.contact-form input::placeholder,
.contact-form textarea::placeholder {

    color: var(--color-placeholder);
}

/* ================= BUTTON ================= */

.contact-form button {

    background: transparent;
    border: 1px solid #efe7dc;
    color: var(--color-text);
    padding: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: .25s ease;
}

.contact-form button:hover {

    background: var(--color-text);
    color: var(--color-background);
}

/* RESPONSIVE */

@media (max-width: 700px) {

    .contact-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-container {
        padding: 40px 25px;
    }

    .contact-image {
        padding: 20px;
    }

    .contact-img {
        width: 75%;
        max-width: 400px;
        height: auto;
    }
}

@media (max-width: 700px) {

    .filters {
        gap: 4px;
    }

    .filters button,
    .filters a {
	    font-size: var(--font-size-text-mobiles);
        padding: 6px 10px;
    }
}


/* This one contains the actual menu behavior and is logically separate.*/ 
@media (max-width: 700px) {

    /* hide normal navigation */

    .filters {
        display: none !important;
        gap: 4px;
    }

    /* show hamburger */

	.hamburger-btn {
		display: block;
		position: fixed;
		top: 15px;
		right: 15px;
		background: none;
		border: none;
		color: var(--color-text);
		font-size: 2.8rem;
		cursor: pointer;
		z-index: 5000;
	}

    /* opened menu */

    .filters.open {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
		padding-top: 70px;
        flex-direction: column;
        background: var(--color-background);
        z-index: 1500;
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
    }

    .filters.open a {
        /* width: 100%; */
		position: relative;
        padding: 8px 16px;
        text-align: center;
        font-size: 1.2rem;
		opacity: 0.9;
	}
	
	.filters.open a::after {
		content: "";
		position: absolute;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		width: 40%;              /* <-- controls line length */
		height: 1px;
		background: var(--color-hamburger-separator);
	}

	.filters.open a:last-child::after {
		display: none;
	}

}


/* ========================================================= */
/*  CONTACT  */
/* ========================================================= */

/* Contact form spam honeypot */
.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
