/**
 * Main CSS – PhotoService Alternative
 * Clair, minimaliste et élégant
 *
 * Palette:
 *   --color-bg: #FFFFFF
 *   --color-surface: #F8F9FA
 *   --color-surface-2: #F5F7FA
 *   --color-text: #1E293B
 *   --color-text-muted: #64748B
 *   --color-accent: #1B3A5F (Bleu Marine)
 *   --color-accent-hover: #142B47
 *   --color-dark: #0F172A
 *   --color-border: #E2E8F0
 *
 * Typography: Inter (body), Playfair Display (headings)
 */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--color-text, #1E293B);
	background: var(--color-bg, #FFFFFF);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-dark, #0F172A);
	margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-accent, #1B3A5F); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent-hover, #142B47); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Utilities ─── */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}
.container.narrow { max-width: 800px; }
.container.full-width { max-width: 100%; }
.text-center { text-align: center; }
.screen-reader-text {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ─── Buttons ─── */
button, input[type="button"], input[type="submit"],
.button, .woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--color-accent, #1B3A5F);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
	box-shadow: 0 1px 3px rgba(27, 58, 95, 0.15);
}
button:hover, .button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--color-accent-hover, #142B47);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(27, 58, 95, 0.2);
}
.button-secondary {
	background: transparent;
	color: var(--color-accent, #1B3A5F);
	border: 1.5px solid var(--color-accent, #1B3A5F);
	box-shadow: none;
}
.button-secondary:hover { background: var(--color-accent, #1B3A5F); color: #fff; }

/* ─── Forms ─── */
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
input[type="tel"], input[type="date"], textarea, select {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	color: var(--color-text, #1E293B);
	background: #fff;
	border: 1px solid var(--color-border, #E2E8F0);
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--color-accent, #1B3A5F);
	box-shadow: 0 0 0 3px rgba(27, 58, 95, 0.08);
}

/* ─── Top Bar ─── */
.top-bar {
	background: var(--color-surface-2, #F5F7FA);
	color: var(--color-text-muted, #64748B);
	font-size: 0.8125rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--color-border, #E2E8F0);
}
.top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.top-bar-left { display: flex; align-items: center; gap: 1.5rem; }
.top-bar-left a {
	color: var(--color-text-muted, #64748B);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
}
.top-bar-left a:hover { color: var(--color-accent, #1B3A5F); }
.top-bar-right { display: flex; align-items: center; gap: 0.75rem; }
.top-bar-right a { color: var(--color-text-muted, #64748B); transition: color 0.2s; }
.top-bar-right a:hover { color: var(--color-accent, #1B3A5F); }

/* ─── Site Header ─── */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--color-border, #E2E8F0);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
	box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	padding-bottom: 1rem;
	gap: 1.5rem;
}
.header-left { display: flex; align-items: center; gap: 1rem; }

/* Logo */
.site-branding img { max-height: 48px; width: auto; }
.site-title { margin: 0; line-height: 1; }
.site-title a { display: inline-block; }

/* Mobile Toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 28px;
	padding: 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
}
.menu-toggle:hover { transform: none; box-shadow: none; }
.menu-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-dark, #0F172A);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigation */
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.drawer-header,
.menu-backdrop {
	display: none;
}
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 0.5rem 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-text, #1E293B);
	border-radius: 6px;
	transition: background 0.2s, color 0.2s;
}
.main-navigation a:hover {
	background: rgba(27, 58, 95, 0.05);
	color: var(--color-accent, #1B3A5F);
}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--color-accent, #1B3A5F);
	font-weight: 600;
}

/* Dropdowns */
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--color-border, #E2E8F0);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	padding: 0.5rem;
	z-index: 100;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: block; }
.main-navigation ul ul li { width: 100%; }
.main-navigation ul ul a {
	padding: 0.6rem 0.75rem;
	border-radius: 4px;
	white-space: nowrap;
}
.main-navigation ul ul ul { top: 0; left: 100%; margin-left: 0.25rem; }

/* Header Right */
.header-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.search-toggle, .account-link {
	background: none;
	border: none;
	padding: 0.5rem;
	color: var(--color-text, #1E293B);
	cursor: pointer;
	box-shadow: none;
	border-radius: 8px;
	transition: background 0.2s;
}
.search-toggle:hover, .account-link:hover { background: var(--color-surface, #F8F9FA); transform: none; box-shadow: none; }

/* Cart */
.cart-link { position: relative; display: inline-flex; padding: 0.5rem; color: var(--color-text, #1E293B); border-radius: 8px; transition: background 0.2s; }
.cart-link:hover { background: var(--color-surface, #F8F9FA); }
.cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	background: var(--color-accent, #1B3A5F);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Search Overlay */
.search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(12px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.is-active { opacity: 1; visibility: visible; }
.search-overlay-inner { width: 100%; max-width: 600px; padding: 2rem; position: relative; }
.search-close {
	position: absolute;
	top: -3rem;
	right: 2rem;
	background: none;
	border: none;
	color: var(--color-text-muted, #64748B);
	cursor: pointer;
	box-shadow: none;
	padding: 0;
}
.search-close:hover { transform: none; box-shadow: none; color: var(--color-dark, #0F172A); }
.search-overlay .search-form { display: flex; gap: 0.5rem; }
.search-overlay .search-field {
	flex: 1;
	padding: 1rem 1.25rem;
	font-size: 1.125rem;
	border: 2px solid var(--color-border, #E2E8F0);
	background: #fff;
	color: var(--color-dark, #0F172A);
}
.search-overlay .search-field::placeholder { color: var(--color-text-muted, #64748B); }
.search-overlay .search-field:focus { border-color: var(--color-accent, #1B3A5F); }
.search-overlay .search-submit {
	padding: 1rem 1.5rem;
	background: var(--color-accent, #1B3A5F);
}
.search-overlay .search-submit:hover { background: var(--color-accent-hover, #142B47); }

/* ─── Main Content ─── */
.site-main { padding: 3rem 0; min-height: 50vh; }
.page-header { margin-bottom: 2.5rem; }
.page-title { margin-bottom: 0.5rem; }
.archive-description { color: var(--color-text-muted, #64748B); font-size: 1rem; }

/* Posts Grid */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}
.content-archive {
	background: #fff;
	border: 1px solid var(--color-border, #E2E8F0);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.content-archive:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	transform: translateY(-3px);
}
.content-archive .entry-thumbnail { aspect-ratio: 4/3; overflow: hidden; }
.content-archive .entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.content-archive:hover .entry-thumbnail img { transform: scale(1.05); }
.content-archive .entry-header { padding: 1.25rem 1.25rem 0.5rem; }
.content-archive .entry-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.content-archive .entry-title a { color: var(--color-dark, #0F172A); }
.content-archive .entry-title a:hover { color: var(--color-accent, #1B3A5F); }
.content-archive .entry-meta { padding: 0 1.25rem; font-size: 0.8125rem; color: var(--color-text-muted, #64748B); }
.content-archive .entry-summary { padding: 0.75rem 1.25rem 1.5rem; font-size: 0.9375rem; color: var(--color-text-muted, #64748B); }

/* Content Page / Single */
.content-page, .content-single { max-width: 800px; margin: 0 auto; }
.content-page .entry-title, .content-single .entry-title { text-align: center; margin-bottom: 1.5rem; }
.content-single .entry-meta {
	text-align: center;
	font-size: 0.875rem;
	color: var(--color-text-muted, #64748B);
	margin-bottom: 2rem;
}
.entry-thumbnail { border-radius: 12px; overflow: hidden; margin-bottom: 2rem; }
.entry-thumbnail img { width: 100%; }
.entry-content { font-size: 1.0625rem; line-height: 1.75; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content blockquote {
	border-left: 3px solid var(--color-accent, #1B3A5F);
	padding-left: 1.5rem;
	margin-left: 0;
	color: var(--color-text-muted, #64748B);
	font-style: italic;
}

/* Pagination */
.pagination, .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}
.page-numbers, .nav-links a, .nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	border-radius: 8px;
	border: 1px solid var(--color-border, #E2E8F0);
	color: var(--color-text, #1E293B);
	transition: all 0.2s ease;
}
.page-numbers.current, .nav-links .current {
	background: var(--color-accent, #1B3A5F);
	border-color: var(--color-accent, #1B3A5F);
	color: #fff;
}
.page-numbers:hover, .nav-links a:hover {
	background: var(--color-surface, #F8F9FA);
	border-color: var(--color-accent, #1B3A5F);
}

/* 404 */
.error-404 { padding: 4rem 0; }
.error-title {
	font-size: clamp(6rem, 15vw, 10rem);
	font-weight: 800;
	color: var(--color-border, #E2E8F0);
	line-height: 1;
	margin-bottom: 0.5rem;
}

/* ─── Scroll Top ─── */
.scroll-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 44px;
	height: 44px;
	background: var(--color-accent, #1B3A5F);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(27, 58, 95, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 900;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--color-accent-hover, #142B47); transform: translateY(-2px); }

/* ─── Footer ─── */
.site-footer {
	background: var(--color-surface-2, #F8F9FC);
	color: var(--color-text-muted, #64748B);
	font-size: 0.9375rem;
	border-top: 1px solid var(--color-border, #E2E8F0);
}
.footer-widgets { padding: 4rem 0 2rem; }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2.5rem;
}
.footer-col .widget-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-dark, #0F172A);
	margin-bottom: 1.25rem;
}
.footer-col a { color: var(--color-text-muted, #64748B); transition: color 0.2s; }
.footer-col a:hover { color: var(--color-accent, #1B3A5F); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col li a { display: inline-block; padding: 0.15rem 0; }

.footer-bottom {
	border-top: 1px solid var(--color-border, #E2E8F0);
	padding: 1.5rem 0;
	background: #fff;
}
.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.footer-credits p { margin: 0; font-size: 0.875rem; color: var(--color-text-muted, #64748B); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { color: var(--color-text-muted, #64748B); transition: color 0.2s; }
.footer-social a:hover { color: var(--color-accent, #1B3A5F); }

/* Social icons (CSS-only SVG backgrounds) */
.social-icon { display: inline-block; width: 18px; height: 18px; background-size: contain; background-repeat: no-repeat; opacity: 0.7; transition: opacity 0.2s; }
.social-icon:hover { opacity: 1; }
.social-facebook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B3A5F'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E"); }
.social-twitter { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B3A5F'%3E%3Cpath d='M23 3a10.9 10.9 0 0 1-3.14 1.53A4.48 4.48 0 0 0 16 4c-2.67 0-4.8 2.17-4.8 4.83v.61C5.69 9.14 3.02 7.48 1.2 5.1a4.83 4.83 0 0 0-.66 2.43c0 1.68.86 3.16 2.17 4.03a4.5 4.5 0 0 1-2.18-.6v.06c0 2.35 1.67 4.3 3.89 4.75a4.8 4.8 0 0 1-2.17.08c.61 1.9 2.38 3.29 4.48 3.33A9.66 9.66 0 0 1 0 19.13 13.65 13.65 0 0 0 7.39 21c8.87 0 13.71-7.35 13.71-13.71l-.02-.62A9.79 9.79 0 0 0 23 3z'/%3E%3C/svg%3E"); }
.social-instagram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B3A5F' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E"); }
.social-whatsapp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B3A5F'%3E%3Cpath d='M17.472 14.382c-.406.115-.822.178-1.242.178-.548 0-1.08-.106-1.58-.316l-1.73.997.47-1.693c-.865-.9-1.42-2.09-1.42-3.42 0-2.76 2.24-5 5-5 1.34 0 2.53.53 3.42 1.42.89.89 1.42 2.08 1.42 3.42 0 2.76-2.24 5-5 5zM12 2C6.48 2 2 6.48 2 12c0 1.82.49 3.53 1.34 5.01L2 22l5.07-1.31A9.93 9.93 0 0 0 12 22c5.52 0 10-4.48 10-10S17.52 2 12 2z'/%3E%3C/svg%3E"); }

/* ─── Home Slider Section (Image Slider lite / FlexSlider) ─── */
.carousel-section {
	padding: 2rem 0;
	background: var(--color-surface, #F8F9FA);
}
.carousel-section .carousel-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* FlexSlider wrapper */
.carousel-section .flexslider {
	border: none;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
	background: transparent;
	margin: 0;
}
.carousel-section .flexslider .slides > li {
	position: relative;
}
.carousel-section .flexslider .slides img {
	width: 100%;
	height: 500px;
	object-fit: cover;
	display: block;
}

/* FlexSlider arrows – modern navy style */
.carousel-section .flex-direction-nav a {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	opacity: 1;
	transition: background 0.2s, box-shadow 0.2s;
}
.carousel-section .flex-direction-nav a::before {
	font-size: 22px;
	color: var(--color-dark, #0F172A);
	line-height: 50px;
}
.carousel-section .flex-direction-nav a:hover {
	background: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.carousel-section .flex-direction-nav .flex-prev { left: 1rem; }
.carousel-section .flex-direction-nav .flex-next { right: 1rem; }

/* Custom Dots (plugin disables controlNav) */
.carousel-section .custom-flex-dots {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 10;
	list-style: none;
	margin: 0;
	padding: 0;
}
.carousel-section .custom-flex-dots li {
	margin: 0;
}
.carousel-section .custom-flex-dots li button {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.7);
	padding: 0;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
	box-shadow: none;
}
.carousel-section .custom-flex-dots li button:hover {
	background: rgba(255, 255, 255, 0.5);
}
.carousel-section .custom-flex-dots li.is-active button {
	background: var(--color-accent, #1B3A5F);
	border-color: var(--color-accent, #1B3A5F);
	transform: scale(1.2);
}

/* Preloader */
.carousel-section .sliderpreloader {
	position: absolute;
	inset: 0;
	background: var(--color-surface, #F8F9FA);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
}
