/*
Theme Name: Portfolio Dark
Description: Thème minimal sombre pour portfolio photo.
*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	background: #111;
	color: #f5f5f5;
	line-height: 1.7;
	font-size: 1rem;
}

p, li, .description {
    font-weight: 300;
    letter-spacing: 0.02em;
}

a {
	color: #ff6a00;
	text-decoration: none;
}

a:hover {
	color: #fff;
}

header {
    background: #1a1a1a;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-branding {
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 1rem;
}

#site-title {
	font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

#site-title a {
    color: inherit;
    transition: color 0.3s ease;
}

#site-title a:hover {
    color: #ff6a00;
}

#site-description {
	font-family: 'Raleway', sans-serif;
    color: #ddd;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

.branding-container {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem;
    min-height: 80px;
    padding: 0.5rem 0;
}

.logo-title img.custom-logo {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
}

.title-tagline {
    flex: 1;
    text-align: center;
}

nav {
    max-width: 1200px;
    margin: 0.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav ul { 
    list-style: none; 
    display: flex; 
    gap: 2rem; 
    margin: 0;
    padding: 0;
}

nav a { 
	font-family: 'Montserrat', sans-serif;
    color: #f5f5f5;
    font-weight: 600;
	text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a.current { 
    color: #ff6a00; 
}

nav a:hover {
    color: #fff;
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6a00;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    color: #f5f5f5;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ff6a00;
}

main { max-width: 1200px; margin: 0 auto; padding: 2rem; }

h1, h2 {
	font-family: 'Raleway', sans-serif;
	color: #fff;
	margin-bottom: 1rem;
}

.hero {
    max-width: 1200px;
    margin: 2rem auto 0;
    text-align: center;
}

.hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 0.5rem;
}

.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto; color: #ddd; }

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 640px) !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    padding: 2rem !important;
}

.gallery-item {
    width: 640px !important;
    height: 480px !important;
    background: #1a1a1a !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
	transition: all 0.4s ease !important;
}

.gallery-item img {
    width: 640px !important;
    height: 480px !important;
    object-fit: cover !important;
    display: block !important;
}

.gallery-item h3 {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important; right: 0 !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.8)) !important;
    color: #fff !important;
    padding: 1.5rem 1rem 1rem !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
}

.gallery-item:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.7) !important;
}

.gallery-item:hover::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: rgba(0,0,0,0.25) !important;
    border-radius: 12px !important;
    z-index: 1 !important;
	pointer-events: none !important;
}

.gallery-item:hover img {
    filter: brightness(0.85) !important;
}

.full-gallery {
    position: fixed !important;
    top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important;
    background: rgba(0,0,0,0.98) !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    overflow: auto !important;
}

.full-gallery .modula { max-width: 90% !important; max-height: 90% !important; }

.contact-form { max-width: 500px; margin: 0 auto; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; margin-bottom: 1rem; background: #2a2a2a; border: 1px solid #ff6a00; border-radius: 4px; color: #f5f5f5; }
.contact-form button { background: #ff6a00; color: #111; padding: 1rem 2rem; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; width: 100%; }
.contact-form button:hover { background: #fff; color: #111; }

footer {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #888;              /* ← Gris discret */
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid #222;
}

footer a {
    color: #aaa;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff6a00;           /* ← Votre couleur accent */
}

/* Responsive Mobile */
@media (max-width: 768px) {
	header {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		z-index: 9999 !important;
	}
	
	#site-title {
		font-size: 1.6rem !important;
	}

	.site-title a {
		line-height: 1.2 !important;
	}
	
	main {
		padding-top: 150px !important;
	}
	
	nav {
		flex-direction: column;
		gap: 1rem;
	}
	
	nav ul { 
		justify-content: center; 
	}
	
	.gallery-grid {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
		padding: 1rem 0.5rem !important;
		justify-content: stretch !important;
	}
	
	.gallery-item {
		width: 100% !important;
		height: 250px !important;
		margin: 0 !important;
	}
	
	.gallery-item img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
	}
	
	.beta-banner {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Responsive Tablette */
@media (min-width: 769px) and (max-width: 1024px) {
	main {
		padding-top: 40px !important;
	}
	
	.gallery-item,
	.gallery-item img {
		width: 100% !important;
		max-width: 100% !important;
		height: 320px !important;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 1.5rem !important;
		padding: 1.5rem 1rem !important;
		justify-content: stretch !important;
	}
	
	.menu-galeries {
		grid-template-columns: 1fr !important;
		gap: 2rem !important;
	}
	
	.thumbnail-menu {
		height: 350px !important;
		max-width: 600px !important;
		margin: 0 auto !important;
	}
	
	.thumbnail-menu img {
		height: 280px !important;
		object-fit: cover !important;
	}
}

.menu-galeries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.thumbnail-menu {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.thumbnail-menu:hover {
    transform: scale(1.05);
}

.thumbnail-menu img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.thumbnail-menu span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 1rem;
    text-align: center;
}

.lightbox-gallery {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.98) !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    overflow: auto !important;
    flex-direction: column;
}

.lightbox-gallery .modula {
    max-width: 95% !important;
    max-height: 95% !important;
    width: auto !important;
    height: auto !important;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.lightbox-open {
    overflow: hidden;
}

.single-gallery-page .modula {
    width: 100% !important;
    max-width: none !important;
}

.modula-full img { cursor: zoom-in; }
.back-grid {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.galerie-single-page .modula img {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    image-rendering: auto !important;
    -ms-interpolation-mode: bicubic !important;
    filter: none !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
}

.galerie-single-page .modula .mg-lightbox img {
    max-height: 95vh;
}

.galerie-single-page .modula-container {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 900px !important;
}

#scroll-to-top:hover {
    background: #333 !important;
    transform: scale(1.1);
}

#form-message {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.beta-banner {
background-color: rgba(30,30,30,0.95);
	color: rgba(170,170,170,0.6);
	font-size: 12px;
	font-weight: 300;
	padding: 6px 16px;
	text-align: center;
	margin-top: 20px;
	margin-bottom: 0;
	box-shadow: 0 -2px 6px rgba(0,0,0,0.4);
}

.beta-banner:hover {
    background-color: rgba(40,40,40,1);
    color: rgba(200,200,200,0.9);
}

<style>
/* Variable CSS dynamique */
:root {
  --header-height: 0px;
}
</style>

<script>
document.addEventListener('DOMContentLoaded', function() {
  function updateHeaderHeight() {
    const header = document.querySelector('header');
    const height = header ? header.offsetHeight : 0;
    document.documentElement.style.setProperty('--header-height', height + 'px');
  }
  
  // Au chargement
  updateHeaderHeight();
  
  // Au resize (mobile rotation)
  window.addEventListener('resize', updateHeaderHeight);
});
</script>