/**
 * Custom styles for Colvert theme
 *
 * @package Colvert
 * @since 1.0.0
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* Base styles */
body {
	font-family: 'Open Sans', sans-serif;
	scroll-behavior: smooth;
}

h1, h2, h3, .nav-font {
	font-family: 'Montserrat', sans-serif;
}

.hero-gradient {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Scroll margin for anchor links */
.scroll-mt {
	scroll-margin-top: 80px;
}

/* Number input styling */
input[type="number"]::-webkit-inner-spin-button {
	opacity: 1;
}

/* Mobile menu link */
.mobile-link {
	display: block;
	padding: 1rem;
	color: inherit;
	text-decoration: none;
	transition: color 0.3s;
}

.mobile-link:hover {
	color: #2563eb;
}

/* Site main padding for fixed nav */
.site-main {
	padding-top: 80px;
}

/* Entry content */
.entry-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.entry-content p {
	margin-bottom: 1rem;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

/* Entry thumbnail */
.entry-thumbnail {
	margin-bottom: 2rem;
}

.entry-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

/* Entry header */
.entry-header {
	margin-bottom: 2rem;
}

.entry-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

/* Entry meta */
.entry-meta {
	color: #6b7280;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

/* Widgets */
.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

/* Search form */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 500px;
	margin: 0 auto;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
}

.search-form input[type="submit"] {
	padding: 0.75rem 1.5rem;
	background-color: #2563eb;
	color: white;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.search-form input[type="submit"]:hover {
	background-color: #1d4ed8;
}

/* Animations */
@keyframes fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in-up {
	animation: fade-in-up 1s ease-out;
}

/* Hero section adjustments */
#accueil {
	min-height: 100vh;
}

/* Overview bar */
.bg-blue-900 {
	background-color: #1e3a8a;
}

/* Section spacing */
section {
	scroll-margin-top: 80px;
}

/* Navigation submenu styles */
.sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sub-menu li {
	position: relative;
}

.sub-menu a {
	display: block;
	padding: 0.75rem 1rem;
	color: #374151;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.sub-menu a:hover {
	background-color: #f3f4f6;
	color: #2563eb;
}

/* Desktop menu submenu positioning */
nav .sub-menu {
	top: 100%;
	left: 0;
	margin-top: 0.5rem;
}

/* Mobile menu submenu */
#mobile-menu .sub-menu {
	padding-left: 1.5rem;
	margin-top: 0.5rem;
	display: none;
}

#mobile-menu .sub-menu a {
	font-size: 0.9rem;
	padding: 0.5rem 0;
}

#mobile-menu .menu-item-has-children.submenu-open > .sub-menu {
	display: block;
}

/* Desktop menu submenu hover effect */
nav .menu-item-has-children:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
}

/* ============================================
   Page Restauration
   ============================================ */
.page-restauration .site-main {
	padding-top: 0;
}

.restauration-hero {
	min-height: 50vh;
	min-height: min(50vh, 420px);
}

.restauration-hero-bg {
	transition: transform 0.6s ease;
}

.restauration-hero:hover .restauration-hero-bg {
	transform: scale(1.03);
}

.restauration-hero-title {
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.restauration-nav a {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.restauration-nav a:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.restauration-card {
	transition: box-shadow 0.3s ease;
}

.restauration-card:hover {
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.restauration-card-header img {
	transition: transform 0.5s ease;
}

.restauration-card:hover .restauration-card-header img {
	transform: scale(1.02);
}

.restauration-badge {
	letter-spacing: 0.15em;
}

.restauration-block-title {
	border-bottom: none;
}

.restauration-horaires-box {
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.restauration-horaires-box:hover {
	background-color: #f9fafb;
	border-color: #e5e7eb;
}

.restauration-carte-box {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.restauration-carte-box:hover {
	border-color: #fcd34d;
	box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
}

.restauration-carte-content h4 {
	font-size: 1.1rem;
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
	color: #1f2937;
}

.restauration-carte-content ul,
.restauration-carte-content ol {
	padding-left: 1.5rem;
}

.restauration-carte-content p + p {
	margin-top: 0.75rem;
}

.restauration-cta a:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.restauration-cta a {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 1023px) {
	.restauration-hero {
		min-height: 45vh;
	}

	.restauration-card-header .lg\:min-w-\[400px\] {
		min-width: 100%;
	}
}
