/* Page d'accueil - Fairy Nail Art */

/* Hero */
.hero {
	height: 100vh;
	position: relative;
	display: flex;
	background-color: #2c2c2c;
	margin-left: -8px;
	margin-right: -8px;
	width: calc(100% + 16px);
}

.hero-image-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	opacity: 0;
	animation: heroImageFadeIn 2s ease-out 0.3s forwards;
}

.hero-image {
	height: 100vh;
	width: auto;
	padding-top: 80px;
	box-sizing: border-box;
}

@keyframes heroImageFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.hero-content {
	position: absolute;
	top: 80px;
	right: 0;
	width: auto;
	height: calc(100vh - 80px);
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 0 5rem 0 3rem;
	background-color: #2c2c2c;
	text-align: center;
	color: white;
}

.hero-badge {
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--gold-light);
	margin-bottom: 2rem;
	opacity: 0;
	animation: fadeIn 1.5s ease-out 1s forwards;
}

.hero-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 5rem;
	font-weight: 300;
	line-height: 1.1;
	margin-bottom: 2rem;
	letter-spacing: 5px;
	background: var(--gold-shimmer);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	opacity: 0;
	animation: fadeInUp 1.2s ease-out 0.7s forwards;
}

.hero-subtitle {
	font-size: 0.9rem;
	font-weight: 300;
	letter-spacing: 4px;
	text-transform: uppercase;
	margin-bottom: 4rem;
	color: var(--gold-lighter);
	opacity: 0;
	animation: fadeIn 1s ease-out 1.5s forwards;
}

.hero-cta {
	opacity: 0;
	animation: fadeIn 1s ease-out 2s forwards;
}

.btn {
	display: inline-block;
	padding: 1.2rem 3rem;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	border: 1px solid var(--gold-light);
	color: var(--gold-light);
	transition: all 0.4s ease;
	background: transparent;
}

.btn:hover {
	background: var(--gold-light);
	color: #1a1a1a;
	box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateX(-50%) translateY(0);
		opacity: 0.6;
	}
	40% {
		transform: translateX(-50%) translateY(-15px);
		opacity: 1;
	}
	60% {
		transform: translateX(-50%) translateY(-10px);
		opacity: 0.8;
	}
}

/* Sections */
section {
	padding: 10rem 8%;
}

.section-container {
	max-width: 1200px;
	margin: 0 auto;
}

.section-label {
	font-size: 0.75rem;
	color: var(--gold-dark);
	text-transform: uppercase;
	letter-spacing: 3px;
	margin-bottom: 2rem;
	font-weight: 400;
}

.section-title .gold-accent {
	background: var(--gold-shimmer);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* About Section */
.about-section {
	background: #fafafa;
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8rem;
	align-items: center;
}

.about-text p {
	font-size: 1rem;
	line-height: 2;
	color: #666;
	font-weight: 300;
	margin-bottom: 2rem;
	text-align: justify;
}

.about-image {
	width: 100%;
	height: 600px;
	object-fit: cover;
	border: 1px solid rgba(212, 175, 55, 0.2);
	transition: all 0.4s ease;
	cursor: pointer;
}

.about-image:hover {
	transform: scale(1.02);
	border-color: rgba(212, 175, 55, 0.5);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Services */
.services-section {
	background: linear-gradient(135deg, #faf9f7 0%, #f5f2ee 100%);
}

.services-grid {
	display: grid;
	gap: 2rem;
	margin-top: 3rem;
	justify-items: center;
}

.service-card {
	background: white;
	padding: 3rem;
	border-radius: 5px;
	border: 1px solid #f0f0f0;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	text-align: center;
	display: flex;
	flex-direction: column;
	width: 100%;
	transform-style: preserve-3d;
}

.service-card:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--gold-shimmer);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 20px 60px rgba(212, 175, 55, 0.25), 0 0 40px rgba(212, 175, 55, 0.1);
	border-color: rgba(212, 175, 55, 0.5);
}

.service-card:hover:before {
	transform: scaleX(1);
}

.service-icon {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	opacity: 0.8;
}

.service-description {
	color: #999;
	line-height: 1.8;
	margin-bottom: 2rem;
	font-weight: 300;
	font-size: 0.9rem;
	flex-grow: 1;
	text-align: justify;
}

.service-price {
	font-size: 1.2rem;
	color: var(--gold-dark);
	font-weight: 500;
	letter-spacing: 1px;
	margin-top: auto;
	transition: all 0.3s ease;
	text-align: center;
}

.service-card:hover .service-price {
	color: var(--gold-light);
	transform: scale(1.1);
	text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Gallery */
.gallery-section {
	background: #fafafa;
	padding: 8rem 5%;
}

.gallery-description {
	color: #999;
	margin-bottom: 2rem;
}

.btn-gallery {
	display: inline-block;
	padding: 1rem 2.5rem;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	border: 1px solid var(--gold-light);
	color: var(--gold-dark);
	transition: all 0.4s ease;
	background: transparent;
	margin-top: 1rem;
}

.btn-gallery:hover {
	background: var(--gold-light);
	color: #1a1a1a;
	box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1rem;
	max-width: 1400px;
	margin: 0 auto;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
}

.gallery-item:nth-child(1) {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-item:nth-child(2) {
	grid-column: span 2;
}

.gallery-item:nth-child(3) {
	grid-column: span 2;
}

.gallery-item:nth-child(4) {
	grid-column: span 2;
}

.gallery-item:nth-child(5) {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-item:nth-child(6) {
	grid-column: span 2;
}

.gallery-item:nth-child(7) {
	grid-column: span 2;
}

.gallery-item:nth-child(8) {
	grid-column: span 2;
}

.gallery-item::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.15);
	opacity: 1;
	transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
	opacity: 0;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-item:hover img {
	transform: scale(1.05) rotate(1deg);
}

/* CTA Section */
.cta-section {
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 50%, #1a1a1a 100%);
	position: relative;
	color: white;
	text-align: center;
	overflow: hidden;
}

.cta-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: -50%;
	width: 200%;
	height: 100%;
	background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
	pointer-events: none;
}

.cta-section .section-label {
	color: var(--gold-lighter);
}

.cta-section .section-title {
	color: white;
}

.cta-section .section-title .gold-accent {
	background: var(--gold-shimmer);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.cta-section .btn {
	border-color: var(--gold-light);
	color: var(--gold-light);
	margin-top: 2rem;
}

.cta-section .btn:hover {
	background: var(--gold-light);
	color: #1a1a1a;
}

/* Footer */
.footer {
	background: white;
	padding: 6rem 8% 3rem;
	border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 4rem;
	margin-bottom: 4rem;
}

.footer-title {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
	font-size: 1.2rem;
	font-weight: 300;
	margin-bottom: 2rem;
	letter-spacing: 2px;
	color: var(--gold-dark);
}

.footer-text {
	line-height: 2;
	color: #999;
	font-size: 0.9rem;
	font-weight: 300;
}

.footer-text a {
	color: #999;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	display: inline-block;
}

.footer-text a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--gold-light);
	transition: width 0.3s ease;
}

.footer-text a:hover {
	color: var(--gold-dark);
	transform: translateX(3px);
}

.footer-text a:hover::after {
	width: 100%;
}

/* Icônes sociales */
.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}

/* Social icons - couleurs natives pour fond clair */
a.social-icon,
a.social-icon:link,
a.social-icon:visited {
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: transparent;
	text-decoration: none;
}

a.social-icon:hover {
	border-color: rgba(0, 0, 0, 0.2);
	transform: translateY(-3px);
	background: rgba(0, 0, 0, 0.05);
}

a.social-icon svg {
	width: 20px;
	height: 20px;
}

/* Couleurs spécifiques par réseau social */
a.social-icon[href*="facebook"] {
	color: #1877f2;
}

a.social-icon[href*="instagram"] {
	color: #e4405f;
}

.footer-bottom {
	text-align: center;
	padding-top: 3rem;
	border-top: 1px solid #f0f0f0;
	color: #ccc;
	font-size: 0.8rem;
	letter-spacing: 1px;
}

/* ==========================================
   GRILLES ADAPTATIVES DESKTOP (>1024px)
   ========================================== */

@media (min-width: 1024px) {
	/* 3 prestations → ligne de 3 */
	.services-grid:has(.service-card:first-child:nth-last-child(3)) {
		grid-template-columns: repeat(3, 1fr);
		max-width: 1200px;
	}

	/* 4 prestations → ligne de 4 */
	.services-grid:has(.service-card:first-child:nth-last-child(4)) {
		grid-template-columns: repeat(4, 1fr);
		max-width: 1400px;
	}

	/* 5 prestations → 3 + 2 */
	.services-grid:has(.service-card:first-child:nth-last-child(5)) {
		grid-template-columns: repeat(3, 1fr);
		max-width: 1200px;
	}

	/* 6 prestations → 3 + 3 */
	.services-grid:has(.service-card:first-child:nth-last-child(6)) {
		grid-template-columns: repeat(3, 1fr);
		max-width: 1200px;
	}

	/* 7 prestations → 4 + 3 */
	.services-grid:has(.service-card:first-child:nth-last-child(7)) {
		grid-template-columns: repeat(4, 1fr);
		max-width: 1400px;
	}

	/* 8 prestations → 4 + 4 */
	.services-grid:has(.service-card:first-child:nth-last-child(8)) {
		grid-template-columns: repeat(4, 1fr);
		max-width: 1400px;
	}

	/* 9 prestations → 3 + 3 + 3 */
	.services-grid:has(.service-card:first-child:nth-last-child(9)) {
		grid-template-columns: repeat(3, 1fr);
		max-width: 1200px;
	}
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (Desktop-First)
   ========================================== */

/* Ultra-large screens ≤2559px */
@media (max-width: 2559px) {
	.hero-title {
		font-size: 5.4rem;
	}

	.hero-badge {
		font-size: 1.1rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	section {
		padding: 11rem 8%;
	}

	.section-title {
		font-size: 3.8rem;
	}
}

/* Large desktop ≤1919px */
@media (max-width: 1919px) {
	.hero-title {
		font-size: 4.6rem;
	}

	.hero-badge {
		font-size: 0.95rem;
	}

	.hero-subtitle {
		font-size: 0.85rem;
	}

	.hero-content {
		padding: 0 4rem 0 2.5rem;
	}

	section {
		padding: 9rem 7%;
	}

	.section-title {
		font-size: 3.2rem;
	}
}

/* Desktop ≤1439px */
@media (max-width: 1439px) {
	.hero-title {
		font-size: 3.8rem;
	}

	.hero-badge {
		font-size: 0.9rem;
	}

	.hero-subtitle {
		font-size: 0.8rem;
	}

	.hero-content {
		padding: 0 3rem 0 2rem;
	}

	section {
		padding: 7rem 6%;
	}

	.section-title {
		font-size: 2.8rem;
	}

	.about-content {
		grid-template-columns: 1fr;
		gap: 4rem;
	}

	.services-grid {
		grid-template-columns: 1fr;
		max-width: 600px;
		margin-left: auto;
		margin-right: auto;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-container {
		grid-template-columns: 1fr 1fr;
	}
}

/* Laptop ≤1024px */
@media (max-width: 1024px) {
	.hero {
		height: calc(100vh - 80px);
		margin-top: 80px;
		margin-left: -8px;
		margin-right: -8px;
		width: calc(100% + 16px);
	}

	.hero-image-container {
		position: absolute;
		width: 100%;
		height: 100%;
	}

	.hero-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
		padding-top: 0;
	}

	.hero-content {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(44, 44, 44, 0.75);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 2rem;
	}

	.hero-title {
		font-size: 5.577rem;
	}

	.hero-badge {
		font-size: 1.4365rem;
	}

	.hero-subtitle {
		font-size: 1.2675rem;
	}

	section {
		padding: 6rem 5%;
	}

	.section-title {
		font-size: 2.5rem;
	}

	.section-label {
		font-size: 0.975rem;
	}

	.about-text p {
		font-size: 1.3rem;
	}

	.service-description {
		font-size: 1.17rem;
	}

	.service-price {
		font-size: 1.56rem;
	}

	.btn, .btn-gallery {
		font-size: 0.975rem;
	}

	.about-content {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-container {
		grid-template-columns: 1fr 1fr;
	}
}

/* Tablet landscape ≤899px */
@media (max-width: 899px) {
	@media (orientation: landscape) {
		.hero {
			height: calc(100vh - 80px);
			margin-top: 80px;
		}

		.hero-image-container {
			position: absolute;
			width: 100%;
			height: 100%;
		}

		.hero-image {
			width: 100%;
			height: 100%;
			object-fit: cover;
			padding-top: 0;
		}

		.hero-content {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(44, 44, 44, 0.75);
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			padding: 2rem;
		}

		.hero-title {
			font-size: 3.8rem;
		}

		.hero-badge {
			font-size: 0.8rem;
		}

		.hero-subtitle {
			font-size: 0.7rem;
		}

		section {
			padding: 5rem 5%;
		}

		.section-title {
			font-size: 2.2rem;
		}

		.about-content {
			grid-template-columns: 1fr;
		}

		.services-grid {
			grid-template-columns: 1fr;
		}

		.gallery-grid {
			grid-template-columns: repeat(2, 1fr);
		}

		.footer-container {
			grid-template-columns: 1fr;
		}
	}
}

/* Tablet portrait ≤899px */
@media (max-width: 899px) {
	@media (orientation: portrait) {
		.hero {
			height: calc(100vh - 80px);
			margin-top: 80px;
		}

		.hero-image-container {
			position: absolute;
			width: 100%;
			height: 100%;
		}

		.hero-image {
			width: 100%;
			height: 100%;
			object-fit: cover;
			padding-top: 0;
		}

		.hero-content {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(44, 44, 44, 0.75);
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			padding: 2rem;
		}

		.hero-title {
			font-size: 3.5rem;
		}

		.hero-badge {
			font-size: 0.75rem;
		}

		.hero-subtitle {
			font-size: 0.7rem;
		}

		section {
			padding: 5rem 5%;
		}

		.section-title {
			font-size: 2rem;
		}

		.about-content {
			grid-template-columns: 1fr;
		}

		.services-grid {
			grid-template-columns: 1fr;
		}

		.gallery-grid {
			grid-template-columns: 1fr;
		}

		.footer-container {
			grid-template-columns: 1fr;
		}
	}
}

/* Small tablet ≤714px */
@media (max-width: 714px) {
	.hero {
		height: calc(100vh - 80px);
		margin-top: 80px;
	}

	.hero-image-container {
		position: absolute;
		width: 100%;
		height: 100%;
	}

	.hero-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
		padding-top: 0;
	}

	.hero-content {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(44, 44, 44, 0.75);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 2rem;
	}

	.hero-title {
		font-size: 3.2rem;
	}

	.hero-badge {
		font-size: 0.7rem;
	}

	.hero-subtitle {
		font-size: 0.65rem;
	}

	section {
		padding: 4.5rem 5%;
	}

	.section-title {
		font-size: 1.9rem;
	}

	.about-content {
		grid-template-columns: 1fr;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.footer-container {
		grid-template-columns: 1fr;
	}
}

/* Mobile landscape ≤640px */
@media (max-width: 640px) {
	.hero {
		height: calc(100vh - 80px);
		margin-top: 80px;
	}

	.hero-image-container {
		position: absolute;
		width: 100%;
		height: 100%;
	}

	.hero-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
		padding-top: 0;
	}

	.hero-content {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(44, 44, 44, 0.75);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 1.5rem;
	}

	.hero-title {
		font-size: 2.7rem;
	}

	.hero-badge {
		font-size: 0.65rem;
	}

	.hero-subtitle {
		font-size: 0.6rem;
	}

	section {
		padding: 4rem 5%;
	}

	.section-title {
		font-size: 1.45rem;
	}

	.about-content {
		grid-template-columns: 1fr;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.footer-container {
		grid-template-columns: 1fr;
	}
}

/* Mobile portrait */
@media (max-width: 480px) {
	.hero {
		height: 70vh;
		margin-top: 72px;
		margin-left: -8px;
		margin-right: -8px;
		width: calc(100% + 16px);
	}

	.hero-image-container {
		position: absolute;
		width: 100%;
		height: 100%;
	}

	.hero-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
		padding-top: 0;
		object-position: 60%;
	}

	.hero-content {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(44, 44, 44, 0.75);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 1.5rem;
	}

	.hero-title {
		font-family: Georgia, 'Times New Roman', serif;
		font-size: 2.8rem;
		font-weight: 300;
		line-height: 1.1;
		letter-spacing: 5px;
	}

	.hero-badge {
		font-size: 0.6rem;
		margin-bottom: 1.5rem;
	}

	.hero-subtitle {
		font-size: 0.55rem;
		margin-bottom: 2rem;
	}

	section {
		padding: 3.5rem 5%;
	}

	.section-title {
		font-size: 1.25rem;
	}

	.service-title, h3 {
		font-size: 1.15rem;
	}

	.section-label {
		font-size: 0.65rem;
	}

	.about-content {
		grid-template-columns: 1fr;
	}

	.about-text p {
		font-size: 0.9rem;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.service-name {
		font-size: 1.2rem;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.footer-container {
		grid-template-columns: 1fr;
	}

	.footer {
		padding: 3rem 5% 2rem;
	}
}
