/* =================================
   SELF-HOSTED FONTS (Inter + Playfair Display)
   ================================= */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/public/fonts/inter-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/public/fonts/inter-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/public/fonts/inter-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/public/fonts/inter-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/public/fonts/inter-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/public/fonts/inter-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(/public/fonts/playfair-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(/public/fonts/playfair-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url(/public/fonts/playfair-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url(/public/fonts/playfair-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url(/public/fonts/playfair-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url(/public/fonts/playfair-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =================================
   VARIABLES - LIGHT THEME (default)
   ================================= */
:root {
	--primary: #2c5f8d;
	--primary-light: #3a7ab8;
	--accent: #d4b483;
	--accent-dark: #c9a066;
	--text: #1a1a1a;
	--text-light: #555;
	--bg: #ffffff;
	--bg-light: #f8f9fa;
	--bg-card: #ffffff;
	--border: #e0e0e0;
	--shadow: rgba(0, 0, 0, 0.1);
	--shadow-strong: rgba(0, 0, 0, 0.15);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--navbar-bg: rgba(255, 255, 255, 0.95);
	--navbar-scrolled: rgba(255, 255, 255, 0.98);
	--overlay-bg: rgba(44, 95, 141, 0.85);
	--success: #28a745;
	--error: #dc3545;
	--focus-ring: rgba(44, 95, 141, 0.4);
}

/* =================================
   DARK THEME
   ================================= */
[data-theme="dark"] {
	--primary: #5a9fd4;
	--primary-light: #7bb8e8;
	--accent: #e8c896;
	--accent-dark: #d4b483;
	--text: #e8e8e8;
	--text-light: #b0b0b0;
	--bg: #121418;
	--bg-light: #1a1d24;
	--bg-card: #1e2128;
	--border: #2d3139;
	--shadow: rgba(0, 0, 0, 0.3);
	--shadow-strong: rgba(0, 0, 0, 0.5);
	--navbar-bg: rgba(18, 20, 24, 0.95);
	--navbar-scrolled: rgba(18, 20, 24, 0.98);
	--overlay-bg: rgba(26, 29, 36, 0.9);
	--focus-ring: rgba(90, 159, 212, 0.5);
}

/* Transition fluide pour le changement de theme */
body,
body *:not(script):not(style) {
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* =================================
   RESET & BASE
   ================================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	color-scheme: light;
}

[data-theme="dark"] {
	color-scheme: dark;
}

/* Force light background on form inputs - reset browser defaults */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #ffffff !important;
	color: #1a1a1a !important;
	color-scheme: light !important;
}

/* Autofill override for Chrome/Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-text-fill-color: #1a1a1a !important;
	transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
	background-color: var(--bg-light) !important;
	color: var(--text) !important;
	color-scheme: dark !important;
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] textarea:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #1a1d24 inset !important;
	-webkit-text-fill-color: #e8e8e8 !important;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	line-height: 1.3;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}

ul {
	list-style: none;
}

button {
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: var(--transition);
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* =================================
   SKIP LINK (Accessibilite)
   ================================= */
.skip-link {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 0 0 8px 8px;
	font-weight: 600;
	z-index: 9999;
	transition: top 0.3s ease;
}

.skip-link:focus {
	top: 0;
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

/* =================================
   FOCUS STATES (Accessibilite)
   ================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--focus-ring);
	outline-offset: 2px;
}

/* =================================
   NAVIGATION
   ================================= */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--navbar-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 2px 30px var(--shadow);
	transition: var(--transition);
}

.navbar.scrolled {
	background: var(--navbar-scrolled);
	box-shadow: 0 4px 30px var(--shadow-strong);
}

.nav-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	gap: 1rem;
}

.logo-container {
	display: flex;
	align-items: center;
	gap: 0;
	transition: var(--transition);
	flex-shrink: 0;
	z-index: 2;
}

.logo-container:hover {
	transform: scale(1.02);
}

.logo-img {
	height: 60px;
	width: auto;
	margin-right: -0.5rem;
	transition: var(--transition);
}

.logo-container:hover .logo-img {
	filter: drop-shadow(0 4px 8px rgba(44, 95, 141, 0.3));
}

.logo span {
	font-family: 'Playfair Display', serif;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--primary);
	transition: var(--transition);
	white-space: nowrap;
}

.logo-container:hover .logo span {
	color: var(--accent);
}

.nav-menu {
	display: flex;
	gap: 0.25rem;
	align-items: center;
}

/* =================================
   NAV LINKS - DESKTOP
   ================================= */
.nav-link {
	font-weight: 500;
	font-size: 0.9rem;
	position: relative;
	padding: 0.6rem 0.9rem;
	color: var(--text);
	border-radius: 8px;
	transition: color 0.3s ease, background 0.3s ease;
	white-space: nowrap;
}

/* Ligne animée sous le lien */
.nav-link::after {
	content: '';
	position: absolute;
	bottom: 6px;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.3s ease;
	transform: translateX(-50%);
	border-radius: 2px;
}

.nav-link:hover {
	color: var(--primary);
	background: rgba(44, 95, 141, 0.08);
}

[data-theme="dark"] .nav-link:hover {
	background: rgba(90, 159, 212, 0.15);
}

.nav-link:hover::after {
	width: calc(100% - 20px);
}

.nav-link.active {
	color: var(--primary);
	font-weight: 600;
}

.nav-link.active::after {
	width: calc(100% - 20px);
}

/* Animation du texte au hover */
.nav-link span {
	display: inline-block;
	transition: transform 0.3s ease;
}

.nav-link:hover span {
	transform: translateY(-2px);
}

/* =================================
   BOUTON LANGUE - DESKTOP
   ================================= */
.lang-switcher {
	margin-left: 0.5rem;
}

.btn-lang {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	background: var(--primary);
	color: white;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 8px rgba(44, 95, 141, 0.25);
}

.btn-lang:hover {
	background: var(--accent);
	color: var(--text);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(212, 180, 131, 0.4);
}

.btn-lang span {
	display: inline-block;
}

/* =================================
   THEME TOGGLE BUTTON
   ================================= */
.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: transparent;
	border: 2px solid var(--border);
	border-radius: 10px;
	cursor: pointer;
	transition: var(--transition);
	margin-left: 0.5rem;
}

.theme-toggle:hover {
	background: var(--bg-light);
	border-color: var(--primary);
	transform: scale(1.05);
}

.theme-toggle svg {
	width: 20px;
	height: 20px;
	transition: var(--transition);
}

.theme-toggle .sun-icon {
	color: var(--accent);
	display: none;
}

.theme-toggle .moon-icon {
	color: var(--primary);
	display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
	display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
	display: none;
}

[data-theme="dark"] .theme-toggle {
	border-color: var(--border);
}

[data-theme="dark"] .theme-toggle:hover {
	background: var(--bg-card);
	border-color: var(--accent);
}

/* =================================
   BURGER MENU ANIMÉ
   ================================= */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 48px;
	height: 48px;
	background: transparent;
	border-radius: 12px;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s ease;
	position: relative;
}

.menu-toggle:hover {
	background: rgba(44, 95, 141, 0.1);
}

.menu-toggle span {
	position: absolute;
	width: 24px;
	height: 2.5px;
	background: var(--primary);
	border-radius: 2px;
	transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-toggle span:nth-child(1) {
	transform: translateY(-8px);
}

.menu-toggle span:nth-child(2) {
	width: 18px;
}

.menu-toggle span:nth-child(3) {
	transform: translateY(8px);
}

/* Animation hover du burger */
.menu-toggle:hover span:nth-child(1) {
	transform: translateY(-9px);
	width: 26px;
}

.menu-toggle:hover span:nth-child(2) {
	width: 22px;
}

.menu-toggle:hover span:nth-child(3) {
	transform: translateY(9px);
	width: 26px;
}

/* Transformation en X quand actif */
.menu-toggle.active span {
	background: var(--accent);
}

.menu-toggle.active span:nth-child(1) {
	transform: translateY(0) rotate(45deg);
	width: 26px;
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
	transform: translateY(0) rotate(-45deg);
	width: 26px;
}

/* Effet ripple au clic */
.menu-toggle::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
	border-radius: 12px;
	opacity: 0;
	transform: scale(0);
	transition: all 0.5s ease;
}

.menu-toggle:active::after {
	opacity: 0.3;
	transform: scale(1.5);
	transition: 0s;
}

/* =================================
   HERO
   ================================= */
.hero {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background:
		linear-gradient(135deg, rgba(44, 95, 141, 0.85) 0%, rgba(68, 168, 242, 0.8) 100%),
		url('/public/assets/images/hero-bg.webp') center/cover no-repeat;
	color: white;
	text-align: center;
	padding: 120px 2rem 80px;
}

.hero-title {
	font-size: clamp(2.5rem, 6vw, 4rem);
	margin-bottom: 1.5rem;
}

.hero-subtitle {
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	margin-bottom: 2.5rem;
	opacity: 0.9;
}

/* =================================
   PAGE HEADER (autres pages)
   ================================= */
section.page-header {
	padding: 10rem 0 4rem;
	background-image: linear-gradient(135deg, rgba(44, 95, 141, 0.9) 0%, rgba(68, 168, 242, 0.85) 100%),
		url('/public/assets/images/hero-bg.webp');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: white;
	text-align: center;
	position: relative;
}

.page-title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 1rem;
}

.page-subtitle {
	font-family: 'Playfair Display', serif;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	opacity: 0.9;
}


/* =================================
   BUTTONS
   ================================= */
.btn-primary,
.btn-secondary {
	display: inline-block;
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-weight: 600;
	transition: var(--transition);
}

.btn-primary {
	background: var(--accent);
	color: #1a1a1a;
}

.btn-primary:hover {
	background: white;
	color: var(--primary);
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
}

.btn-secondary:hover {
	background: var(--primary);
	color: white;
}

/* Hero CTA */
.hero-cta {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.hero-cta .btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background: var(--primary);
	color: white;
	font-weight: 600;
	border-radius: 50px;
	border: 2px solid var(--accent);
	transition: var(--transition);
}

.hero-cta .btn-primary svg {
	transition: transform 0.3s ease;
}

.hero-cta .btn-primary:hover {
	background: var(--accent);
	color: #1a1a1a;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(212, 180, 131, 0.35);
}

.hero-cta .btn-primary:hover svg {
	transform: translateX(4px);
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	padding: 1rem 2rem;
	background: transparent;
	color: white;
	font-weight: 600;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50px;
	transition: var(--transition);
	backdrop-filter: blur(10px);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: white;
	transform: translateY(-3px);
}

/* =================================
   SECTIONS
   ================================= */
section {
	padding: 6rem 0;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 1rem;
	color: var(--primary);
}

.section-subtitle {
	font-size: 1.1rem;
	color: var(--text-light);
}

/* CTA Section */
.cta-section {
	background: linear-gradient(135deg, var(--primary) 0%, #44A8F2 100%);
	color: white;
	text-align: center;
	padding: 5rem 0;
}

.cta-content h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.cta-content p {
	margin-bottom: 2rem;
	font-size: 1.1rem;
	opacity: 0.9;
}

/* Alerts */
.alert {
	padding: 1.5rem;
	border-radius: 12px;
	margin-bottom: 2rem;
	text-align: center;
}

.alert h3 {
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
}

.alert-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.alert-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* =================================
   SERVICES
   ================================= */
.services-section {
	padding: 6rem 0;
	background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}

.section-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 1rem;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 3rem;
}

.service-card {
	position: relative;
	background: white;
	border-radius: 20px;
	padding: 2.5rem 2rem 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
	transform: scaleX(1);
}

.service-card.featured {
	border: 2px solid var(--primary);
	transform: scale(1.02);
}

.service-card.featured:hover {
	transform: scale(1.02) translateY(-10px);
}

.service-badge {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: var(--bg-light);
	color: var(--text-light);
	padding: 0.35rem 0.85rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 600;
}

.service-badge.accent {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
}

.service-icon {
	width: 70px;
	height: 70px;
	background: linear-gradient(135deg, rgba(44, 95, 141, 0.1), rgba(68, 168, 242, 0.1));
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.service-icon svg {
	width: 32px;
	height: 32px;
	stroke: var(--primary);
}

.service-card.featured .service-icon {
	background: linear-gradient(135deg, var(--primary), var(--accent));
}

.service-card.featured .service-icon svg {
	stroke: white;
}

.service-content h3 {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--text);
}

.service-description {
	color: var(--text-light);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.service-features {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem 0;
}

.service-features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
	font-size: 0.9rem;
	color: var(--text);
	border-bottom: 1px solid var(--border);
}

.service-features li:last-child {
	border-bottom: none;
}

.service-features .check {
	color: var(--accent);
	font-weight: 700;
	font-size: 0.85rem;
}

.service-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	margin-top: auto;
}

.service-price {
	display: flex;
	flex-direction: column;
}

.price-label {
	font-size: 0.75rem;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.price-value {
	font-family: 'Playfair Display', serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary);
}

.service-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.25rem;
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
}

.service-btn:hover {
	background: var(--primary);
	color: white;
}

.service-card.featured .service-btn {
	background: var(--primary);
	color: white;
}

.service-card.featured .service-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
}

.services-cta {
	text-align: center;
	margin-top: 4rem;
	padding: 2.5rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	border-radius: 20px;
	color: white;
}

.services-cta p {
	font-size: 1.2rem;
	margin-bottom: 1.25rem;
	opacity: 0.95;
}

.services-cta .btn-secondary {
	background: white;
	color: var(--primary);
	border: none;
}

.services-cta .btn-secondary:hover {
	background: var(--bg-light);
	transform: translateY(-2px);
}

/* Services Responsive */
@media (max-width: 1024px) {
	.services-grid {
		grid-template-columns: 1fr;
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
	}

	.service-card.featured {
		transform: none;
	}

	.service-card.featured:hover {
		transform: translateY(-10px);
	}
}

@media (max-width: 768px) {
	.services-section {
		padding: 4rem 0;
	}

	.service-card {
		padding: 2rem 1.5rem;
	}

	.service-footer {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.service-btn {
		text-align: center;
		justify-content: center;
	}
}

/* =================================
   PROJECTS
   ================================= */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 2.5rem;
}

.project-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 5px 20px var(--shadow);
	transition: var(--transition);
}

.project-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
	position: relative;
	height: 250px;
	overflow: hidden;
}

.project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
	transform: scale(1.1);
}

.project-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	transition: var(--transition);
	padding: 2rem;
}

.project-card:hover .project-overlay {
	opacity: 1;
}

.btn-overlay {
	background: var(--accent);
	color: white;
	padding: 0.8rem 2rem;
	border-radius: 25px;
	font-weight: 600;
}

.project-content {
	padding: 1.5rem;
}

.project-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.project-category {
	font-size: 0.85rem;
	color: #996b2d;
	text-transform: uppercase;
	letter-spacing: 1px;
}

[data-theme="dark"] .project-category {
	color: var(--accent);
}

.project-technologies {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.tech-tag {
	font-size: 0.85rem;
	padding: 0.4rem 1rem;
	background: var(--bg-light);
	border-radius: 20px;
}

/* =================================
   FOOTER
   ================================= */
.footer {
	background: var(--text);
	color: white;
	padding: 4rem 0 2rem;
	font-family: 'Playfair Display', serif;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer-section h3,
.footer-heading {
	color: var(--accent);
	margin-bottom: 1rem;
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	font-size: 1.1rem;
}

.footer-section ul {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.footer-section a {
	color: rgba(255, 255, 255, 0.9);
}

.footer-section a:hover {
	color: var(--accent);
}

.footer-brand .footer-logo {
	display: flex;
	align-items: center;
	gap: 0.05rem;
	margin-bottom: 1rem;
	text-decoration: none;
	color: var(--accent);
	font-size: 1.6rem;
	font-weight: 700;
}

.footer-brand .footer-logo-img {
	height: 60px;
	width: auto;
	transition: transform 0.3s ease;
}

.footer-brand .footer-logo:hover .footer-logo-img {
	transform: scale(1.1);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.85);
}

/* =================================
   ANIMATIONS
   ================================= */
.fade-in,
.fade-in-up,
.reveal {
	opacity: 0;
	animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
	animation-delay: 0.3s;
}
.delay-2 {
	animation-delay: 0.6s;
}

@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Observer animations */
.reveal {
	transform: translateY(50px);
}

.reveal.active {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.8s ease;
}

/* =================================
   UTILITIES
   ================================= */
.text-center {
	text-align: center;
}

/* =================================
   RESPONSIVE
   ================================= */

/* Large screens (1200px+) */
@media (min-width: 1200px) {
	.logo-img {
		height: 70px;
	}

	.logo span {
		font-size: 1.5rem;
	}

	.nav-link {
		font-size: 0.95rem;
		padding: 0.7rem 1rem;
	}

	.nav-menu {
		gap: 0.3rem;
	}
}

/* Medium screens - Tablets landscape (992px - 1199px) */
@media (max-width: 1199px) {
	.logo-img {
		height: 55px;
	}

	.logo span {
		font-size: 1.2rem;
	}

	.nav-link {
		font-size: 0.85rem;
		padding: 0.5rem 0.7rem;
	}

	.nav-menu {
		gap: 0.15rem;
	}

	.btn-lang {
		padding: 0.5rem 0.9rem;
		font-size: 0.8rem;
	}
}

/* Tablets portrait (768px - 991px) */
@media (max-width: 991px) {
	.logo-img {
		height: 50px;
	}

	.logo span {
		font-size: 1.1rem;
	}

	.nav-link {
		font-size: 0.8rem;
		padding: 0.5rem 0.6rem;
	}

	.btn-lang {
		padding: 0.45rem 0.8rem;
		font-size: 0.75rem;
	}
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
	.nav-content {
		padding: 0.5rem 0;
	}

	.logo-img {
		height: 45px;
	}

	.logo span {
		font-size: 1rem;
	}

	/* =================================
	   MENU MOBILE - RÉVÉLATION CIRCULAIRE
	   ================================= */
	.nav-menu {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh; /* Dynamic viewport height pour mobile */
		background: linear-gradient(145deg, var(--primary) 0%, #1e4a6d 100%);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 0;
		padding: 1rem;
		z-index: 999;
		overflow-y: auto;
		/* Effet cercle */
		clip-path: circle(0% at calc(100% - 44px) 36px);
		transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
		visibility: hidden;
	}

	.nav-menu.active {
		clip-path: circle(150% at calc(100% - 44px) 36px);
		visibility: visible;
	}

	/* Container pour centrer les liens */
	.nav-menu li {
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 0.4s ease, transform 0.4s ease;
	}

	.nav-menu.active li {
		opacity: 1;
		transform: translateY(0);
	}

	.nav-menu.active li:nth-child(1) { transition-delay: 0.15s; }
	.nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
	.nav-menu.active li:nth-child(3) { transition-delay: 0.25s; }
	.nav-menu.active li:nth-child(4) { transition-delay: 0.3s; }
	.nav-menu.active li:nth-child(5) { transition-delay: 0.35s; }
	.nav-menu.active li:nth-child(6) { transition-delay: 0.4s; }

	/* Style des liens mobile */
	.nav-menu .nav-link {
		font-size: 1.1rem;
		font-weight: 500;
		padding: 0.75rem 1.5rem;
		display: block;
		text-align: center;
		color: rgba(255, 255, 255, 0.9);
		letter-spacing: 0.3px;
		border-radius: 8px;
		transition: all 0.3s ease;
	}

	.nav-menu .nav-link::before,
	.nav-menu .nav-link::after {
		display: none;
	}

	.nav-menu .nav-link:hover,
	.nav-menu .nav-link.active {
		color: var(--accent);
		background: rgba(255, 255, 255, 0.1);
	}

	.nav-menu .nav-link span {
		display: inline-block;
	}

	/* Bouton langue mobile */
	.nav-menu .lang-switcher {
		margin-top: 1rem;
		padding-top: 1rem;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		width: 100%;
		max-width: 200px;
		text-align: center;
	}

	.nav-menu .btn-lang {
		display: inline-block;
		padding: 0.6rem 1.8rem;
		font-size: 0.9rem;
		background: rgba(255, 255, 255, 0.95) !important;
		color: var(--primary);
		border-radius: 25px;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
		font-weight: 600;
		overflow: hidden;
		position: relative;
	}

	.nav-menu .btn-lang::before {
		content: none !important;
		display: none !important;
	}

	.nav-menu .btn-lang:hover {
		background: var(--accent) !important;
		color: var(--text);
		transform: translateY(-2px);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	}

	/* Theme toggle mobile */
	.nav-menu .theme-toggle {
		width: 48px;
		height: 48px;
		background: rgba(255, 255, 255, 0.1);
		border: 2px solid rgba(255, 255, 255, 0.3);
		border-radius: 12px;
		margin-top: 0.5rem;
	}

	.nav-menu .theme-toggle:hover {
		background: rgba(255, 255, 255, 0.2);
		border-color: var(--accent);
	}

	.nav-menu .theme-toggle svg {
		color: white;
	}

	/* Menu toggle */
	.menu-toggle {
		display: flex;
		z-index: 1001;
	}

	.menu-toggle.active span {
		background: white;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
	.container {
		padding: 0 1rem;
	}

	.logo-img {
		height: 38px;
	}

	.logo span {
		font-size: 0.85rem;
	}

	.nav-menu {
		padding: 0.75rem;
		clip-path: circle(0% at calc(100% - 36px) 32px);
	}

	.nav-menu.active {
		clip-path: circle(150% at calc(100% - 36px) 32px);
	}

	.nav-menu .nav-link {
		font-size: 1rem;
		padding: 0.65rem 1.2rem;
	}

	.nav-menu .lang-switcher {
		margin-top: 0.75rem;
		padding-top: 0.75rem;
	}

	.nav-menu .btn-lang {
		padding: 0.5rem 1.5rem;
		font-size: 0.85rem;
	}

	.menu-toggle {
		width: 42px;
		height: 42px;
	}

	.menu-toggle span {
		width: 20px;
	}
}

/* Extra small mobile (360px and below) */
@media (max-width: 360px) {
	.logo-img {
		height: 32px;
	}

	.logo span {
		font-size: 0.75rem;
	}

	.nav-menu .nav-link {
		font-size: 0.95rem;
		padding: 0.55rem 1rem;
	}

	.nav-menu .btn-lang {
		padding: 0.45rem 1.2rem;
		font-size: 0.8rem;
	}
}

/* =================================
   FOOTER LEGAL LINKS
   ================================= */
.footer-legal {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
	font-size: 0.85rem;
}

.footer-legal a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-legal a:hover {
	color: var(--accent);
}

.footer-legal .separator {
	color: rgba(255, 255, 255, 0.6);
}

/* =================================
   LEGAL PAGES (Mentions légales, Politique de confidentialité)
   ================================= */
.legal-page {
	padding: 6rem 0 4rem;
	min-height: 80vh;
	background: var(--bg-light);
}

.legal-page h1 {
	font-size: 2.5rem;
	color: var(--primary);
	margin-bottom: 0.5rem;
	text-align: center;
}

.legal-updated {
	text-align: center;
	color: var(--text-light);
	font-size: 0.9rem;
	margin-bottom: 3rem;
}

.legal-content {
	max-width: 800px;
	margin: 0 auto;
	background: var(--bg);
	padding: 3rem;
	border-radius: 12px;
	box-shadow: 0 4px 20px var(--shadow);
}

.legal-section {
	margin-bottom: 2.5rem;
}

.legal-section:last-child {
	margin-bottom: 0;
}

.legal-section h2 {
	font-size: 1.4rem;
	color: var(--primary);
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--accent);
}

.legal-section p {
	margin-bottom: 1rem;
	color: var(--text);
	line-height: 1.8;
}

.legal-section ul {
	margin: 1rem 0 1rem 1.5rem;
}

.legal-section li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
	color: var(--text);
}

.legal-section a {
	color: var(--primary);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.legal-section a:hover {
	border-bottom-color: var(--primary);
}

/* Responsive legal pages */
@media (max-width: 768px) {
	.legal-page {
		padding: 5rem 1rem 3rem;
	}

	.legal-page h1 {
		font-size: 1.8rem;
	}

	.legal-content {
		padding: 1.5rem;
	}

	.legal-section h2 {
		font-size: 1.2rem;
	}
}

@media (max-width: 480px) {
	.footer-legal {
		flex-direction: column;
		gap: 0.5rem;
	}

	.footer-legal .separator {
		display: none;
	}
}

/* =================================
   DARK MODE OVERRIDES
   ================================= */

/* Cards & Surfaces */
[data-theme="dark"] .service-card {
	background: var(--bg-card);
	border-color: var(--border);
	box-shadow: 0 4px 20px var(--shadow);
}

[data-theme="dark"] .service-card:hover {
	box-shadow: 0 20px 40px var(--shadow-strong);
}

[data-theme="dark"] .service-card.featured {
	border-color: var(--primary);
}

[data-theme="dark"] .service-icon {
	background: linear-gradient(135deg, rgba(90, 159, 212, 0.2), rgba(90, 159, 212, 0.1));
}

[data-theme="dark"] .project-card {
	background: var(--bg-card);
	box-shadow: 0 10px 30px var(--shadow);
}

[data-theme="dark"] .project-card:hover {
	box-shadow: 0 20px 50px var(--shadow-strong);
}

[data-theme="dark"] .skill-category,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .process-step {
	background: var(--bg-card);
	box-shadow: 0 5px 20px var(--shadow);
}

[data-theme="dark"] .contact-form {
	background: var(--bg-card);
	box-shadow: 0 5px 30px var(--shadow);
}

[data-theme="dark"] .contact-info {
	background: var(--bg-light);
}

[data-theme="dark"] .social-link {
	background: var(--bg-card);
}

[data-theme="dark"] .social-link:hover {
	background: var(--primary);
}

/* Forms */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
	background: var(--bg-light);
	border-color: var(--border);
	color: var(--text);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--focus-ring);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
	color: var(--text-light);
}

/* Alerts */
[data-theme="dark"] .alert-success {
	background: rgba(40, 167, 69, 0.15);
	border-color: rgba(40, 167, 69, 0.3);
	color: #6dd47e;
}

[data-theme="dark"] .alert-error {
	background: rgba(220, 53, 69, 0.15);
	border-color: rgba(220, 53, 69, 0.3);
	color: #f18e99;
}

/* Buttons */
[data-theme="dark"] .btn-primary {
	background: var(--accent);
	color: #1a1a1a;
}

[data-theme="dark"] .btn-primary:hover {
	background: var(--accent-dark);
}

[data-theme="dark"] .btn-secondary {
	border-color: var(--text);
	color: var(--text);
}

[data-theme="dark"] .btn-secondary:hover {
	background: var(--text);
	color: var(--bg);
}

[data-theme="dark"] .btn-submit {
	background: var(--primary);
}

[data-theme="dark"] .btn-submit:hover {
	background: var(--primary-light);
}

/* Filters */
[data-theme="dark"] .filter-btn {
	background: var(--bg-card);
	border-color: var(--border);
	color: var(--text);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
	background: var(--primary);
	border-color: var(--primary);
	color: white;
}

[data-theme="dark"] .portfolio-filters {
	background: var(--bg-light);
}

/* Footer */
[data-theme="dark"] .footer {
	background: var(--bg-light);
}

[data-theme="dark"] .footer-bottom {
	border-color: var(--border);
}

/* Sections */
[data-theme="dark"] .stats-section,
[data-theme="dark"] .process-section {
	background: var(--bg-light);
}

[data-theme="dark"] .cta-section {
	background: linear-gradient(135deg, var(--primary) 0%, #3a7ab8 100%);
}

/* Tags */
[data-theme="dark"] .tech-tag,
[data-theme="dark"] .skill-tag {
	background: var(--bg-light);
	color: var(--text);
}

/* Legal Pages */
[data-theme="dark"] .legal-page {
	background: var(--bg);
}

[data-theme="dark"] .legal-section {
	border-color: var(--border);
}

/* Hero & Page Header - keep as-is since they have gradient backgrounds */

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
