/* Galerie complète avec style classique doré */

/* ==========================================
   RÈGLES BREAKPOINTS (STRICT)
   ========================================== */
/* ✅ Styles généraux AVANT les breakpoints uniquement
   ✅ Ordre des breakpoints : du plus grand au plus petit (STRICT)
   ❌ INTERDICTION de rajouter des breakpoints non listés
   ❌ INTERDICTION de changer l'ordre des breakpoints
   ❌ INTERDICTION de mettre du CSS en dehors des breakpoints (sauf styles généraux) */

.gallery-page {
	padding: 8rem 5% 6rem;
	background: 
		radial-gradient(ellipse at 30% 60%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
		radial-gradient(ellipse at 70% 30%, rgba(26, 26, 26, 0.03) 0%, transparent 50%),
		linear-gradient(135deg, #ffffff 0%, #fafaf8 100%);
	min-height: 100vh;
	position: relative;
	overflow: hidden;
}

/* Cadre doré central */
.gallery-page::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	height: 85%;
	border: 2px solid rgba(212, 175, 55, 0.1);
	border-radius: 4px;
	pointer-events: none;
	z-index: 0;
}

/* Ligne dorée horizontale */
.gallery-page::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.3) 50%, transparent 100%);
	pointer-events: none;
	z-index: 0;
}

/* Décorations header */
.gallery-header::before {
	content: '';
	position: absolute;
	top: -30px;
	left: 5%;
	width: 80px;
	height: 2px;
	background: linear-gradient(90deg, rgba(212, 175, 55, 0.6), transparent);
	z-index: 0;
}

.gallery-header::after {
	content: '';
	position: absolute;
	bottom: -20px;
	right: 5%;
	width: 60px;
	height: 60px;
	border: 2px solid rgba(212, 175, 55, 0.2);
	border-radius: 50%;
	z-index: 0;
}

/* .gallery-header utilise .page-header de fairynails.css */

.gallery-header {
	position: relative;
	z-index: 1;
}

.gallery-title {
	color: #1a1a1a;
	font-size: 4rem;
	letter-spacing: -2px;
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.gallery-description {
	color: #666;
	font-size: 1.2rem;
	max-width: 700px;
	margin: 0 auto;
}

/* Grille classique 4 colonnes */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	max-width: 1600px;
	margin: 0 auto;
	padding: 2rem 0;
	position: relative;
	z-index: 1;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	border-radius: 2px;
	background: white;
	border: 1px solid rgba(212, 175, 55, 0.2);
	box-shadow: 
		0 4px 12px rgba(0,0,0,0.06),
		0 1px 3px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	aspect-ratio: 1;
}

.gallery-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.15);
	opacity: 1;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.gallery-item:hover {
	border-color: rgba(212, 175, 55, 0.2);
	box-shadow: 
		0 4px 12px rgba(0,0,0,0.06),
		0 1px 3px rgba(0,0,0,0.08);
	z-index: 10;
}

.gallery-item:hover::before {
	opacity: 0;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05) rotate(1deg);
}

.gallery-loading {
	grid-column: 1 / -1;
	text-align: center;
	padding: 6rem 2rem;
	color: #d4af37;
	font-size: 1.2rem;
	font-family: Georgia, 'Times New Roman', serif;
}

/* Lightbox pour agrandir les images */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.lightbox.active {
	display: flex;
}

.lightbox-content {
	position: relative;
	height: 65vh;
	cursor: default;
}

.lightbox-content img {
	width: auto;
	height: 100%;
	max-height: 65vh;
	max-width: 90vw;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 50px rgba(212, 175, 55, 0.3);
}

.lightbox-close {
	position: absolute;
	top: -50px;
	right: 0;
	color: #fff;
	font-size: 3rem;
	font-weight: 300;
	cursor: pointer;
	background: none;
	border: none;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s;
	z-index: 10;
}

.lightbox-close:hover {
	color: #d4af37;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(212, 175, 55, 0.2);
	border: none;
	color: #fff;
	font-size: 2rem;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
}

.lightbox-nav:hover {
	background: rgba(212, 175, 55, 0.4);
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

/* Zones cliquables invisibles (50% gauche et droite) */
.lightbox-click-zone {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	cursor: pointer;
	z-index: 1;
}

.lightbox-click-left {
	left: 0;
}

.lightbox-click-right {
	right: 0;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Ultra-large screens ≤2559px */
@media (max-width: 2559px) {
	/* Écrans ≤2559px */
}

/* Large desktop ≤1919px */
@media (max-width: 1919px) {
	/* Écrans ≤1919px */
}

/* Desktop ≤1439px */
@media (max-width: 1439px) {
	/* Écrans ≤1439px */
}

/* Laptop ≤1279px */
@media (max-width: 1279px) {
	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

/* Tablet large ≤1023px */
@media (max-width: 1024px) {
	/* Écrans ≤1023px */
}

/* Tablet landscape ≤899px */
@media (max-width: 899px) {
	@media (orientation: landscape) {
		/* Tablette landscape ≤899px */
	}
}

/* Tablet portrait ≤899px */
@media (max-width: 899px) {
	@media (orientation: portrait) {
		/* Tablette portrait ≤899px */
	}
}

/* Small tablet ≤714px */
@media (max-width: 714px) {
	/* Écrans ≤714px */
}

/* Mobile landscape ≤640px */
@media (max-width: 640px) {
	/* Écrans ≤640px */
}

/* Mobile portrait */
@media (max-width: 480px) {
	.gallery-page {
		padding: 7rem 5% 4rem;
	}
	
	.gallery-title {
		font-size: 2.2rem;
		letter-spacing: -1px;
	}
	
	.gallery-description {
		font-size: 0.95rem;
		line-height: 1.6;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	
	.gallery-item:hover {
		transform: none;
	}
	
	.lightbox-content {
		max-width: 90%;
		max-height: none;
		width: 90%;
		height: auto;
	}
	
	.lightbox-nav {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}
	
	.lightbox-prev {
		left: 10px;
	}
	
	.lightbox-next {
		right: 10px;
	}
}

@media (max-width: 480px) {
	.gallery-page {
		padding: 6rem 4% 3rem;
	}
	
	.gallery-title {
		font-size: 2rem;
	}
	
	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}
	
	.lightbox-content {
		max-width: 95%;
		width: 95%;
	}
	
	.lightbox-nav {
		display: none;
	}
	
	.lightbox-click-zone {
		display: block;
	}
}
	.lightbox-content img {
		width: 100%;
		height: auto;
	}
	
	.lightbox-close {
		top: 10px;
		right: 10px;
		font-size: 2.5rem;
	}
	
	.lightbox-nav {
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}
	
	.lightbox-prev {
		left: 10px;
	}
	
	.lightbox-next {
		right: 10px;
	}
}
