/**
 * Gîtes Virginie - Main Stylesheet
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #99a4b1;
    --primary-dark: #4a7548;
    --secondary-color: #538151;
    --accent-color: #607d8b;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #ce3434;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;

    /* Font families */
    --font-charm: 'Charm', cursive;
    --font-cinzel: 'Cinzel', serif;
    --font-cormorant: 'Cormorant', serif;

    /* Soft color palette - warm & inviting */
    --bg-body: #f5f7f9;
    --bg-header: linear-gradient(135deg, #fdfbf7 0%, #f8f9fa 100%);
    --bg-card: #ffffff;
    --bg-section: linear-gradient(180deg, #fafbfc 0%, #f5f7f9 100%);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-soft: #e2e8f0;
    --accent-warm: #7492d4;
    --accent-cool: #00b7ed;
    --shadow-soft: 0 2px 8px rgba(45, 55, 72, 0.06);
    --shadow-medium: 0 4px 16px rgba(45, 55, 72, 0.1);
	
	/* Box bleu */
	--box-bg: linear-gradient(135deg, #345c72 0%, #345c72db 100%);
	--box-color: #fff;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
}

.btn-secondary:hover {
    background-color: #366d54;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border-radius: 5px;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 5px 10px 3px;
    font-size: 12px;
    flex: 1;
    max-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== Alerts ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

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

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

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success, .badge-disponible,
.badge-inactif {
    border-radius: 0;
}

.badge-success, .badge-disponible {
    background-color: var(--success-color);
    color: white;
}

.badge-warning, .badge-en_attente {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.badge-danger, .badge-reserve, .badge-annulee {
    background-color: var(--danger-color);
    color: white;
}

.badge-info, .badge-confirmee {
    background-color: var(--info-color);
    color: white;
}

.badge-secondary, .badge-terminee {
    background-color: var(--secondary-color);
    color: white;
}

.badge-bloque {
    background-color: var(--primary-color);
    color: white;
}

.badge-inactif {
    background-color: #d35050;
    color: white;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* ===== Global Select Styling ===== */
select,
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 28px 10px 10px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSI2IiB2aWV3Qm94PSIwIDAgMTAgNiI+PHBhdGggZmlsbD0iIzMzMyIgZD0iTTEgMWw0IDQgNC00SDF6Ii8+PC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--dark-color);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:hover {
    border-color: var(--accent-color);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Search field selects */
.search-field select {
    padding: 8px 28px 8px 10px;
}

.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Month-year picker selects (gite detail) */
.month-year-picker-group select {
    padding: 8px 35px 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    width: 100%;
}

.month-year-picker-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

/* ===== Tables ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.table tr:hover {
    background-color: var(--light-color);
}

.table .actions {
    display: flex;
    gap: 5px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-form {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 14px;
}

/* ===== Admin Layout ===== */
.admin-body {
	background-color: #f0f2f5;
}

.admin-layout {
	display: flex;
	min-height: 100vh;
}

/* Sidebar Toggle (Mobile) */
.admin-toggle-bar {
	display: none;
}

@media (max-width: 900px) {
	.admin-toggle-bar {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		padding: 12px 10px;
		background: linear-gradient(135deg, #5a7d9a 0%, #4a6b85 100%);
		position: fixed;
		top: 0;
		left: 0;
		height: 58px;
		width: 60px;
		z-index: 5;
		box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	}
	
	.admin-content {
		margin-top: 0;
		margin-left: 0 !important;
	}
	
	.admin-header {
		margin-left: 60px !important;
		padding: 10px !important;
		position: relative;
		z-index: 10;
	}
}

.sidebar-toggle {
	display: none;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	padding: 6px 8px;
	flex-shrink: 0;
}

@media (max-width: 900px) {
	.sidebar-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
}

.sidebar-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: white;
	margin: 3px 0;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.sidebar-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: white;
	margin: 5px 0;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 1;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.sidebar-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

/* Sidebar */
.admin-sidebar {
	width: 260px;
	background: linear-gradient(180deg, #5a7d9a 0%, #4a6b85 40%, #2d4a5e 100%);
	color: white;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	z-index: 999;
	transition: transform 0.3s ease;
	box-shadow: 2px 0 15px rgba(0,0,0,0.1);
	overflow: hidden;
}

.sidebar-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: 100vh;
}

.sidebar-header {
	padding: 20px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	height: auto;
	min-height: 80px;
	box-sizing: border-box;
}

.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sidebar-logo {
	font-size: 2rem;
}

.sidebar-title h1 {
	font-size: 1.25rem;
	margin: 0;
	font-weight: 600;
}

.sidebar-subtitle {
	font-size: 11px;
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sidebar-close {
	display: none;
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.7;
	transition: opacity 0.2s;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.sidebar-close:hover {
	opacity: 1;
}

@media (max-width: 900px) {
	.sidebar-close {
		display: block;
	}
}

.sidebar-nav {
	overflow-y: auto;
	overflow-x: hidden;
	padding: 12px 0;
	flex: 0 1 auto;
	min-height: 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
	width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.2);
	border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,0.3);
}

.sidebar-footer {
	border-top: 1px solid rgba(255,255,255,0.1);
	background: rgba(0,0,0,0.15);
	height: auto;
	min-height: 90px;
	box-sizing: border-box;
}

.nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	color: rgba(255,255,255,0.85);
	transition: all 0.2s ease;
	font-size: 14px;
}

.nav-item-icon {
	font-size: 18px;
	margin-right: 12px;
	flex-shrink: 0;
}

.nav-item-label {
	flex: 1;
}

.nav-category {
	padding: 16px 20px 8px;
	cursor: pointer;
	user-select: none;
	transition: background 0.2s;
}

.nav-category:hover {
	background: rgba(255,255,255,0.05);
}

.nav-category-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: rgba(255,255,255,0.5);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-category-title::after {
	content: '▼';
	font-size: 8px;
	transition: transform 0.2s;
}

.nav-category.open .nav-category-title::after {
	transform: rotate(180deg);
}

.nav-category-items {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.nav-category-items.open {
	max-height: 500px;
}

.nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 10px;
	line-height: 1;
	flex-shrink: 0;
	animation: badgePop .25s ease;
}

@keyframes badgePop {
	0% { transform: scale(0); }
	70% { transform: scale(1.2); }
	100% { transform: scale(1); }
}

.nav-item:hover {
	background-color: rgba(255,255,255,0.1);
	color: white;
}

.nav-item.active {
	background: rgba(255,255,255,0.15);
	color: white;
	border-left: 3px solid rgba(255,255,255,0.8);
}

.sidebar-footer {
	border-top: 1px solid rgba(255,255,255,0.1);
	background: rgba(0,0,0,0.15);
}

.sidebar-footer-links {
	display: flex;
	flex-direction: column;
}

.sidebar-footer-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	color: rgba(255,255,255,0.85);
	font-size: 14px;
	transition: all 0.2s ease;
}

.sidebar-footer-link:hover {
	background: rgba(255,255,255,0.1);
	color: white;
}

.sidebar-logout:hover {
	background: rgba(229, 62, 62, 0.2);
}

.sidebar-footer-icon {
	font-size: 16px;
}

/* Admin Content */
.admin-content {
	flex: 1;
	margin-left: 260px;
	min-height: 100vh;
}

.admin-header {
	background: white;
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-header h2 {
	font-size: 1.25rem;
	color: var(--dark-color);
	margin: 0;
}

.admin-user {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #64748b;
}

.admin-main {
	padding: 24px;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(to bottom, #65869d 0%, #7498b5 50%, #173751 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sidebar-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}
.nav-item-label { flex: 1; }
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    line-height: 1;
    flex-shrink: 0;
    animation: badgePop .25s ease;
}
@keyframes badgePop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.nav-logout {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Admin Content */
.admin-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-main {
    padding: 30px;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stat-warning {
    border-left: 4px solid var(--warning-color);
}

.dashboard-section {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.25rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    color: var(--dark-color);
}

/* Bouton Ajouter un gîte */
.btn-add-gite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 22px;
    background: linear-gradient(to bottom, 
        #6b8faa 0%, 
        #5a7d9a 50%, 
        #4a6b85 100%);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid #3d5a6c;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-add-gite:hover {
    background: linear-gradient(to bottom, 
        #7b9fba 0%, 
        #6a8daa 50%, 
        #5a7b95 100%);
    border-color: #4d6a7c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.btn-add-gite:active {
    background: linear-gradient(to bottom,
        #4a6b85 0%,
        #5a7d9a 50%,
        #6b8faa 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.25),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(1px);
}

/* Bouton Enregistrer les modifications */
.btn-submit-gite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 22px;
    background: linear-gradient(to bottom,
        #6b8faa 0%,
        #5a7d9a 50%,
        #4a6b85 100%);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid #3d5a6c;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-submit-gite:hover {
    background: linear-gradient(to bottom,
        #7b9fba 0%,
        #6a8daa 50%,
        #5a7b95 100%);
    border-color: #4d6a7c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.btn-submit-gite:active {
    background: linear-gradient(to bottom,
        #4a6b85 0%,
        #5a7d9a 50%,
        #6b8faa 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.25),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(1px);
}

/* Bouton Annuler (vert) */
.btn-cancel-gite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 22px;
    background: linear-gradient(to bottom,
        #6baa8e 0%,
        #5a9a7d 50%,
        #4a856b 100%);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid #3d6c5c;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-cancel-gite:hover {
    background: linear-gradient(to bottom,
        #7bba9e 0%,
        #6aaa8d 50%,
        #5a957b 100%);
    border-color: #4d7c6c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.btn-cancel-gite:active {
    background: linear-gradient(to bottom,
        #4a856b 0%,
        #5a9a7d 50%,
        #6baa8e 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.25),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(1px);
}

/* Bouton Recherche utilisateur */
.btn-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: linear-gradient(to bottom,
        #6b8faa 0%,
        #5a7d9a 50%,
        #4a6b85 100%);
    color: white;
    border: 1px solid #3d5a6c;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-search-submit:hover {
    background: linear-gradient(to bottom,
        #7b9fba 0%,
        #6a8daa 50%,
        #5a7b95 100%);
    border-color: #4d6a7c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.btn-search-submit:active {
    background: linear-gradient(to bottom,
        #4a6b85 0%,
        #5a7d9a 50%,
        #6b8faa 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.25),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(1px);
}

.btn-search-icon {
	padding: 8px 20px;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(to bottom,
		#6b8faa 0%,
		#5a7d9a 50%,
		#4a6b85 100%);
	border: 1px solid #3d5a6c;
	border-radius: 7px;
	cursor: pointer;
	color: white;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-search-icon:hover {
	background: linear-gradient(to bottom,
		#7b9fba 0%,
		#6a8daa 50%,
		#5a7b95 100%);
	border-color: #4d6a7c;
}

.btn-search-icon:active {
	background: linear-gradient(to bottom,
		#4a6b85 0%,
		#5a7d9a 50%,
		#6b8faa 100%);
}

.btn-search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    background: linear-gradient(to bottom,
        #9e9e9e 0%,
        #757575 50%,
        #616161 100%);
    color: white;
    border: 1px solid #5a5a5a;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn-search-reset:hover {
    background: linear-gradient(to bottom,
        #bdbdbd 0%,
        #9e9e9e 50%,
        #757575 100%);
    border-color: #616161;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.btn-search-reset:active {
    background: linear-gradient(to bottom,
        #616161 0%,
        #757575 50%,
        #9e9e9e 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.25),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(1px);
}

.btn-reset-icon {
	padding: 5px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 7px;
	cursor: pointer;
	color: #666;
}

.btn-reset-icon:hover {
	background: #e0e0e0;
	border-color: #ccc;
	color: #333;
}

.btn-reset-icon:active {
	background: #d0d0d0;
}

/* Bouton Supprimer — icône dans la liste */
.btn-delete-gite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-delete-gite:hover {
    background: none;
    border: none;
    box-shadow: none;
    opacity: 0.65;
}

.btn-delete-gite:active {
    background: none;
    box-shadow: none;
    transform: none;
}

/* Bouton Supprimer — style plein dans form-actions */
.form-actions .btn-delete-gite {
    padding: 8px 22px;
    background: linear-gradient(to bottom,
        #a86060 0%,
        #954f4f 50%,
        #7f3f3f 100%);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #6e3535;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    opacity: 1;
    transition: all 0.15s ease;
}

.form-actions .btn-delete-gite:hover {
    background: linear-gradient(to bottom,
        #ba6f6f 0%,
        #a65e5e 50%,
        #8f4d4d 100%);
    border-color: #7d3e3e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 2px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.form-actions .btn-delete-gite:active {
    background: linear-gradient(to bottom,
        #7f3f3f 0%,
        #8f4d4d 50%,
        #9e5a5a 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.25),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(1px);
}

/* Gîtes Grid */
.gites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Edit Form Section */
.edit-form-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.form-header h2 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.form-header .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-header .btn-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.inline-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-wide {
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.form-actions .btn {
    flex: 1;
}

.current-image-preview {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-image-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.current-image-preview img {
    display: block;
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#imagePreview {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed var(--primary-color);
}

#imagePreview img {
    display: block;
    max-width: 200px;
    border-radius: 8px;
}

/* Delete Confirmation Modal */
.delete-modal-content {
    max-width: 500px;
    text-align: center;
}

.delete-modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 25px;
}

.delete-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
}

.delete-modal-header .modal-close {
    color: white;
    opacity: 0.8;
}

.delete-modal-header .modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px 25px;
}

.delete-warning-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: rotate(5deg); }
}

.delete-message {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.delete-gite-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
    padding: 10px 20px;
    background: var(--light-color);
    border-radius: var(--radius);
    border: 2px dashed var(--primary-color);
}

.delete-warning-text {
    font-size: 14px;
    color: #dc3545;
    margin-top: 20px;
    font-weight: 500;
}

.delete-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.delete-modal-footer .btn {
    min-width: 200px;
}

/* Detail Photos Grid */
.detail-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.detail-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.detail-photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.detail-photo-item .btn-danger {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.detail-photo-item:hover .btn-delete-photo {
    opacity: 1;
}

.btn-delete-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

.current-image-preview .btn-delete-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.current-image-preview:hover .btn-delete-photo {
    opacity: 1;
}

.gite-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gite-card:hover {
    transform: translateY(-5px);
}

.gite-card.gite-inactive {
    opacity: 0.7;
    border: 2px dashed var(--border-color);
}

.gite-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #ebebeb, #ffffff, #dddddd);
    display: block;
    margin-bottom: 15px;
}

.gite-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gite-card-image-placeholder {
    font-size: 4rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ebebeb, #ffffff, #dddddd);
}

.gite-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

.gite-card-header h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
}

.gite-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.gite-localisation {
    color: #676c73;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
}

.gite-card .gite-description {
    padding: 0 20px;
}

.gite-card .gite-localisation {
    padding: 0 20px;
}

.gite-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 0 20px;
}

.gite-equipements {
    margin-bottom: 15px;
}

.gite-card .gite-equipements {
    padding: 0 20px;
}

.gite-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px 20px;
    margin-top: auto;
}

.gite-actions .btn-sm {
    flex: 1;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filters-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.table-container .table th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid #e2e8f0;
}

.status-select {
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Public Front-End ===== */
.public-body {
    background-color: #fff;
}

/* Header */
.public-header {
    background: var(--bg-header);
    box-shadow: 0 2px 12px rgba(45, 55, 72, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-soft);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.logo p {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 26px;
    font-style: italic;
}

.public-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.public-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.public-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.public-nav a:hover {
    color: var(--text-primary);
}

.public-nav a:hover::after {
	width: 100%;
}

.public-nav .facebook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 0;
    padding: 8px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background: rgb(0 0 0 / 8%);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1) inset;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1) inset;
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1) inset;
}

.public-nav .facebook-link:hover {
    background-color: #4a5568;
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.public-nav .facebook-link:hover::after {
	width: 0;
}

.btn-admin {
    background-color: var(--primary-color);
    color: white !important;
    padding: 6px 20px !important;
    border-radius: var(--radius);
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(135, 167, 165, 0.3);
	transition: all 0.2s ease;
}

.btn-admin:hover {
	background: linear-gradient(135deg, #6b8f8d 0%, #5a7f7d 100%);
	box-shadow: 0 4px 12px rgba(135, 167, 165, 0.4);
	transform: translateY(-2px);
}

.btn-admin::after {
	display: none;
}

/* Hero Carousel Section */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-weight: 700;
    letter-spacing: 2px;
}

.carousel-caption p {
    font-size: 2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 30px;
    font-weight: 400;
}

.carousel-caption .btn-facebook {
    display: inline-block;
    background-color: #1877F2;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.carousel-caption .btn-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Hero Section (fallback) */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 30px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 60px 30px;
}

.section-alt {
    background-color: #f8f9fa;
}

#calendar-section {
    background-color: #fff;
}

.container {
    max-width: calc(90% - 60px);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
	background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
    margin: 20px auto 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
	width: 120px;
}

/* Gîtes Search Results (2 columns) */
.gites-search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gite-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(400px, 450px);
    gap: 25px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: visible;
    margin-bottom: 20px;
}

.gite-search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.gite-search-image {
    height: 250px;
    background: linear-gradient(135deg, #ebebeb, #ffffff, #dddddd);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.gite-search-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gite-search-image .placeholder-image {
    font-size: 5rem;
    color: #666;
}

.gite-search-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gite-search-calendar {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    max-width: 100%;
}

.gite-search-content h3 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.gite-search-content .gite-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.gite-search-content .gite-localisation {
    color: #676c73;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 15px;
}

.gite-search-content .gite-card-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.gite-search-content .gite-equipements {
    margin-bottom: 15px;
}

.gite-search-content .gite-equipements small {
    color: #666;
    font-size: 13px;
}

.gite-search-actions {
    margin-top: auto;
}

.gite-search-actions .btn-dispo {
    display: block;
    background: linear-gradient(135deg, #6b8faa 0%, #5a7d9a 50%, #4a6b85 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
    text-decoration: none;
    border: 1px solid #3d5a6c;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.gite-search-actions .btn-dispo:hover {
    background: linear-gradient(135deg, #7b9fba 0%, #6a8daa 50%, #5a7b95 100%);
    border-color: #4d6a7c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

/* Calendar (Right Column) */
.gite-search-calendar {
    width: 450px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid var(--border-color);
    padding: 0;
}

.calendar-mini {
    background: #fff;
    border-radius: 0;
    padding: 10px 15px;
    box-shadow: none;
}

.calendar-mini-header {
    text-align: center;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.calendar-mini-header h4 {
    margin: 0;
    color: #5d6165;
    font-size: 14px;
    text-transform: capitalize;
    flex: 1;
    text-align: center;
}

.calendar-nav-prev,
.calendar-nav-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #5c8d5a;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 0;
}

.calendar-nav-prev:hover,
.calendar-nav-next:hover {
    background: #5c8d5a;
    color: white;
    transform: scale(1.1);
}

.calendar-nav-prev:active,
.calendar-nav-next:active {
    transform: scale(0.95);
}

.calendar-nav-prev:disabled,
.calendar-nav-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    padding: 0;
}

.calendar-mini-days-header {
    display: contents;
}

.calendar-mini-day-name {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 0px 2px 4px;
    font-size: 12px;
}

.calendar-mini-days {
    display: contents;
}

.calendar-mini-day {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    padding-top: 22px;
    position: relative;
}

.calendar-mini-day span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.calendar-mini-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-mini-day.available {
    background-color: #28a745;
    color: white;
}

.calendar-mini-day.available:hover {
    background-color: #1e7e34;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.calendar-mini-day.reserved {
    background-color: #ce3434;
    color: white;
}

.calendar-mini-day.reserved:hover {
    background-color: #a71d2a;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.calendar-mini-day.blocked {
    background-color: #cf7d2c;
    color: white;
}

.calendar-mini-day.blocked:hover {
    background-color: #b56a1e;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.calendar-mini-day.past {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.calendar-mini-day.selected {
    background-color: #2196F3 !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.4);
}

.calendar-mini-day.selected.start {
    background-color: #1976D2 !important;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.5);
}

.calendar-mini-day.selected.end {
    background-color: #1976D2 !important;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.5);
}

.calendar-mini-day.selected.range {
    background-color: #64B5F6 !important;
}

.calendar-mini-day.prev-month,
.calendar-mini-day.next-month {
    background-color: #f5f5f5;
    color: #bbb;
    cursor: default;
}

.calendar-mini-day.prev-month:hover,
.calendar-mini-day.next-month:hover {
    background-color: #f0f0f0;
}

/* Reservation Info Display */
.reservation-info {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.reservation-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.reservation-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.reservation-values {
    color: #1976D2;
    font-weight: 500;
    font-size: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

.btn-reservation {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(to bottom, #1976D2 0%, #1565C0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.btn-reservation:hover:not(:disabled) {
    background: linear-gradient(to bottom, #1E88E5 0%, #1976D2 100%);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.4);
    transform: translateY(-1px);
}

.btn-reservation:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(25, 118, 210, 0.3);
}

.btn-reservation:disabled {
    background: linear-gradient(to bottom, #bdbdbd 0%, #9e9e9e 100%);
    color: #757575;
    cursor: not-allowed;
    box-shadow: none;
}

/* Custom Alert Modal */
.custom-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert-modal.active {
    display: flex;
    opacity: 1;
}

.custom-alert-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: alertSlideIn 0.3s ease;
    overflow: hidden;
}

.custom-alert-content::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.custom-alert-modal.active .custom-alert-content::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.custom-alert-modal.active[type="success"] .custom-alert-content::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.custom-alert-modal.active[type="error"] .custom-alert-content::before {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

@keyframes alertSlideIn {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.custom-alert-icon {
    font-size: 4rem;
    margin: 30px 0 15px;
}

.custom-alert-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    padding: 0 25px;
}

.custom-alert-message {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    padding: 0 25px 25px;
}

.btn-alert-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 0 16px 16px;
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-alert-close:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.btn-alert-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Reservation Modal */
.reservation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reservation-modal.active {
    display: flex;
    opacity: 1;
}

.reservation-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reservation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
}

.reservation-modal-header h2 {
    margin: 0;
    color: #1976D2;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.reservation-modal-form {
    padding: 25px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    color: #1976D2;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3f2fd;
}

.reservation-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #1976D2;
}

.reservation-summary p {
    margin: 8px 0;
    color: #555;
}

.reservation-summary strong {
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1976D2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.btn-cancel-modal {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-modal:hover {
    background: #e0e0e0;
}

.btn-submit-reservation {
    padding: 10px 25px;
    background: linear-gradient(to bottom, #1976D2 0%, #1565C0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.btn-submit-reservation:hover {
    background: linear-gradient(to bottom, #1E88E5 0%, #1976D2 100%);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.4);
    transform: translateY(-1px);
}

.btn-submit-reservation:active {
    transform: translateY(0);
}

.reservation-success {
    padding: 40px 25px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.reservation-success h3 {
    color: #2e7d32;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.reservation-success p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-close-success {
    padding: 10px 25px;
    background: linear-gradient(to bottom, #1976D2 0%, #1565C0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-success:hover {
    background: linear-gradient(to bottom, #1E88E5 0%, #1976D2 100%);
}

/* Public Gîtes Grid */
.gites-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    padding: 10px 0;
}

.gite-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.gite-card-public {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    aspect-ratio: 3/4;
    height: auto;
}

.gite-card-link:hover .gite-card-public {
    transform: none;
    box-shadow: none;
}

/* ── Image Wrapper ── */
.gcp-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gcp-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    will-change: transform;
}

.gite-card-link:hover .gcp-image-wrapper img {
    transform: scale(1.06);
}

.gcp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* ── Overlay ── */
.gcp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcp-overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gcp-name-overlay {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    white-space: normal;
    word-wrap: break-word;
}

.gcp-voir-btn {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255,255,255,0.95);
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gite-card-link:hover .gcp-voir-btn {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Availability */
.availability-filters {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.availability-legend {
    display: flex;
    gap: 30px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.legend-items {
    display: flex;
    gap: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background-color: #28a745;
}

.legend-color.reserved {
    background-color: #ce3434;
}

.legend-color.blocked {
    background-color: #cf7d2c;
}

/* Calendar */
.availability-calendar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.availability-calendar.calendar-highlight {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(92, 141, 90, 0.5);
    border: 3px solid var(--primary-color);
}

.calendar-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.calendar-title-with-image {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-gite-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.calendar-title {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.25rem;
    white-space: nowrap;
}

.calendar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.calendar-close:hover {
    color: var(--danger-color);
}

.calendar-grid {
    overflow-x: auto;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 10px;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    max-height: 25px;
    width: 100%;
}

.calendar-day:hover {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    z-index: 1;
    position: relative;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.available {
    background-color: #28a745;
    color: white;
}

.calendar-day.available:hover {
    background-color: #1e7e34;
}

.calendar-day.reserved {
    background-color: #ce3434;
    color: white;
}

.calendar-day.reserved:hover {
    background-color: #a71d2a;
}

.calendar-day.blocked {
    background-color: #cf7d2c;
    color: white;
}

.calendar-day.blocked:hover {
    background-color: #b56a1e;
}

.day-number {
    font-weight: 500;
}

/* Contact */
#contact {
    background: var(--box-bg);
    box-shadow: var(--shadow-medium);
}

#contact .section-title {
    color: var(--box-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ===== Search Page ===== */
.search-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 30px;
}

.search-section .section-title {
    color: white;
    margin-bottom: 40px;
}

.search-section .section-title::after {
    background: white;
}

.search-form-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    max-width: 1100px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(160px, max-content) max-content max-content max-content;
    gap: 10px;
    align-items: center;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-field label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-field label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.search-field select:hover,
.search-field input:hover {
    border-color: var(--accent-color);
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 15px;
    flex-wrap: wrap;
}

.btn-search {
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(92, 141, 90, 0.3);
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(92, 141, 90, 0.4);
}

.btn-search:active {
    transform: translateY(-1px);
}

.search-actions .btn-secondary {
    padding: 16px 35px;
    font-weight: 600;
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-actions .btn-secondary:hover {
    background: var(--light-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
}

/* Results Count */
.results-count {
    display: inline-block;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    background: rgba(92, 141, 90, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-results h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-results p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Gîte Card Actions */
.gite-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.gite-card-actions .btn-dispo {
    flex: 1;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(92, 141, 90, 0.3);
}

.gite-card-actions .btn-dispo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(92, 141, 90, 0.4);
}

/* Footer */
.public-footer {
    background: var(--dark-color);
    color: white;
    padding: 30px;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.sidebar-toggle {
		display: block;
	}

	.sidebar-overlay {
		display: block;
	}

	.admin-sidebar {
		transform: translateX(-100%);
		width: 280px;
		max-width: 85vw;
	}

	.admin-sidebar.open {
		transform: translateX(0);
	}

	.sidebar-close {
		display: block;
	}

	.admin-content {
		margin-left: 0;
	}

	.admin-header {
		padding-left: 60px;
	}

	.admin-header h2 {
		font-size: 1rem;
	}

	.admin-main {
		padding: 16px;
	}

	.sidebar-nav {
		padding: 8px 0;
	}

	.nav-item {
		padding: 14px 20px;
	}

	.sidebar-footer-links {
		flex-direction: column;
	}

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

	.page-header {
		flex-direction: column;
		gap: 15px;
	}

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

	.form-row {
		grid-template-columns: 1fr;
	}

	/* Search Results Responsive */
	.gite-search-card {
		flex-direction: column;
	}

	.gite-search-calendar {
		width: 100%;
		border-left: none;
		border-top: 1px solid var(--border-color);
	}

	.header-container {
		flex-direction: column;
		gap: 15px;
	}

	.public-nav {
		flex-wrap: wrap;
		justify-content: center;
    }

    .hero h2 {
        font-size: 1.75rem;
    }
    
    /* Carousel Responsive */
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 30px 40px;
        max-width: 90%;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .carousel-caption .btn-facebook {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ============================================================
   Sections dynamiques — sections_helper.php
   Variables CSS définies sur <section class="sec-section">
   ============================================================ */

.sec-section {
    padding: var(--sec-pt, 60px) 0 var(--sec-pb, 60px);
    background: var(--sec-bg, #ffffff);
    color: var(--sec-text, #333333);
    font-family: var(--sec-font-family, inherit);
}

.sec-main-title {
    display: block;
    text-align: center;
    margin-bottom: 40px;
    color: var(--sec-main-title, #333333);
    font-size: var(--sec-title-size, 1.5rem);
    font-weight: var(--sec-title-weight, 700);
    font-style: var(--sec-title-italic, normal);
    font-family: var(--sec-title-font, inherit);
    text-transform: var(--sec-title-transform, none);
    position: relative;
}
.sec-main-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--sec-title-after-start, #7492d4), var(--sec-title-after-end, #00b7ed));
    margin: 20px auto 0;
    border-radius: 2px;
}
.sec-subtitle {
    text-align: center;
    color: var(--sec-text, #718096);
    font-size: 15px;
    margin: 0 0 32px;
    opacity: 0.8;
}

/* ---- Layout containers ---- */
.sec-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sec-spacing, 30px);
}
.sec-layout-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sec-spacing, 30px);
}
.sec-layout-list,
.sec-layout-alternating {
    display: flex;
    flex-direction: column;
    gap: var(--sec-spacing, 30px);
}

/* ---- Card ---- */
.sec-card {
    background: var(--sec-card-bg, #ffffff);
    border-radius: var(--sec-card-radius, 12px);
    overflow: hidden;
}
.sec-card-shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.sec-card-hover {
    transition: transform 0.3s ease;
}
.sec-card-hover:hover {
    transform: translateY(-5px);
}
.sec-card-body {
    padding: var(--sec-card-pad, 20px);
    text-align: var(--sec-text-align, left);
}
.sec-card-title {
    margin: 0 0 10px 0;
    color: var(--sec-title, #333333);
    font-size: var(--sec-el-title-size, 1.2rem);
    font-weight: var(--sec-el-title-weight, 600);
    font-style: var(--sec-el-title-italic, normal);
    text-align: var(--sec-title-align, left);
}
.sec-card-text {
    color: var(--sec-text, #333333);
    font-size: var(--sec-text-size, 1rem);
    font-weight: var(--sec-text-weight, 400);
    font-style: var(--sec-text-italic, normal);
    line-height: 1.6;
    margin: 0;
}
.sec-card-text p,
.sec-card-text span,
.sec-card-text li,
.sec-card-text strong,
.sec-card-text em {
    color: inherit !important;
}
.sec-card-text ul,
.sec-card-text ol {
    text-align: inherit !important;
    color: inherit !important;
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
}
.sec-card-text li {
    color: inherit !important;
}

/* ---- Layout list item ---- */
.sec-list-item {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--sec-card-bg, #ffffff);
    padding: var(--sec-card-pad, 20px);
    border-radius: var(--sec-card-radius, 12px);
}
.sec-list-content {
    flex: 1;
    text-align: var(--sec-text-align, left);
}

/* ---- Layout alternating item ---- */
.sec-alt-item {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--sec-card-bg, #ffffff);
    padding: var(--sec-card-pad, 20px);
    border-radius: var(--sec-card-radius, 12px);
}
.sec-alt-item.reverse {
    flex-direction: row-reverse;
}
.sec-alt-content {
    flex: 1;
    text-align: var(--sec-text-align, left);
    color: var(--sec-text, #333333);
}

/* ---- Image container inversé (image en bas) ---- */
.sec-img-bottom {
    display: flex;
    flex-direction: column-reverse;
}

/* ---- Carousel ---- */
.sec-carousel-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--sec-card-radius, 12px);
}
.sec-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.sec-carousel-slide {
    min-width: 100%;
    position: relative;
}
.sec-carousel-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 40px 20px 20px;
}
.sec-carousel-caption h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.5rem;
}
.sec-carousel-caption p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}
.sec-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.sec-carousel-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.sec-carousel-dot.active {
    background: white;
}
.sec-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.sec-carousel-arrow:hover { background: rgba(0,0,0,0.7); }
.sec-carousel-prev { left: 12px; }
.sec-carousel-next { right: 12px; }

/* ---- Layout text ---- */
.sec-layout-text {
    display: flex;
    flex-direction: column;
    gap: var(--sec-spacing, 30px);
    max-width: var(--sec-text-max-width, 800px);
    margin: 0 auto;
    width: 100%;
}
.sec-text-block {
    text-align: var(--sec-text-align, left);
}

/* ---- Layout banner ---- */
.sec-layout-banner {
    display: flex;
    flex-direction: column;
    gap: var(--sec-spacing, 30px);
}
.sec-banner-item {
    position: relative;
    min-height: 300px;
    border-radius: var(--sec-card-radius, 12px);
    overflow: hidden;
    background: #222 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sec-banner-overlay {
    position: absolute;
    inset: 0;
}
.sec-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 30px;
}
.sec-banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: white;
}
.sec-banner-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

/* ---- Layout icons ---- */
.sec-layout-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sec-spacing, 30px);
}
.sec-icon-card {
    background: var(--sec-card-bg, #ffffff);
    border-radius: var(--sec-card-radius, 12px);
    padding: var(--sec-card-pad, 20px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.sec-icon-img {
    width: 72px;
    height: 72px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sec-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sec-icon-placeholder {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    color: var(--sec-title, #333);
    flex-shrink: 0;
}
.sec-icon-title {
    text-align: center;
    margin: 0;
}

/* ---- Layout accordion ---- */
.sec-layout-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}
.sec-accordion-item {
    background: var(--sec-card-bg, #ffffff);
    border-radius: var(--sec-card-radius, 12px);
    overflow: hidden;
}
.sec-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--sec-card-pad, 20px);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--sec-el-title-size, 1rem);
    font-weight: var(--sec-el-title-weight, 600);
    font-style: var(--sec-el-title-italic, normal);
    color: var(--sec-title, #333333);
    text-align: left;
    gap: 12px;
    transition: background 0.2s;
}
.sec-accordion-header:hover {
    background: rgba(0,0,0,0.03);
}
.sec-accordion-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    color: var(--sec-title, #333);
    transition: transform 0.2s;
}
.sec-accordion-body {
    padding: 0 var(--sec-card-pad, 20px) 20px;
    color: var(--sec-text, #333333);
    font-size: var(--sec-text-size, 1rem);
    font-weight: var(--sec-text-weight, 400);
    font-style: var(--sec-text-italic, normal);
    line-height: 1.7;
}
.sec-accordion-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* ---- Layout table ---- */
.sec-layout-table {
    overflow-x: auto;
    border-radius: var(--sec-card-radius, 12px);
    overflow: hidden;
}
.sec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sec-card-bg, #ffffff);
}
.sec-table-row {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background 0.15s;
}
.sec-table-row:last-child {
    border-bottom: none;
}
.sec-table-row:hover {
    background: rgba(0,0,0,0.02);
}
.sec-table-img-cell {
    padding: 12px 16px;
    width: 80px;
    vertical-align: middle;
}
.sec-table-title-cell {
    padding: 12px 16px;
    vertical-align: middle;
    font-weight: 600;
    color: var(--sec-title, #333333);
    font-size: var(--sec-el-title-size, 1rem);
    white-space: nowrap;
}
.sec-table-desc-cell {
    padding: 12px 16px;
    vertical-align: middle;
    color: var(--sec-text, #333333);
    font-size: var(--sec-text-size, 1rem);
    line-height: 1.6;
}

/* ---- Layout masonry ---- */
.sec-layout-masonry {
    columns: 3;
    column-gap: var(--sec-spacing, 30px);
}
.sec-masonry-item {
    break-inside: avoid;
    margin-bottom: var(--sec-spacing, 30px);
    background: var(--sec-card-bg, #ffffff);
    border-radius: var(--sec-card-radius, 12px);
    overflow: hidden;
}
.sec-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .sec-layout-masonry { columns: 2; }
}
@media (max-width: 600px) {
    .sec-layout-masonry { columns: 1; }
    .sec-layout-icons { grid-template-columns: repeat(2, 1fr); }
    .sec-banner-title { font-size: 1.4rem; }
    .sec-banner-text { font-size: 0.95rem; }
}

/* ---- Layout split (2 colonnes texte + image) ---- */
.sec-layout-split .sec-card-title {
    position: relative;
    padding-bottom: 12px;
    width: fit-content;
}
.sec-layout-split .sec-card-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
    border-radius: 2px;
    margin: 8px auto 0;
    transition: width 0.3s ease;
}
.sec-layout-split .sec-card-title:hover::after {
    width: 100px;
}

.sec-layout-split {
    display: flex;
    flex-direction: column;
    gap: var(--sec-spacing, 40px);
}
.sec-split-item {
    display: grid;
    grid-template-columns: 1fr var(--sec-split-img-max-w, 420px);
    gap: 48px;
    align-items: start;
    background: var(--sec-card-bg, #ffffff);
    padding: var(--sec-card-pad, 20px);
    border-radius: var(--sec-card-radius, 12px);
}
.sec-split-item.reverse {
    direction: rtl;
}
.sec-split-item.reverse > * {
    direction: ltr;
}
.sec-split-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: var(--sec-text-align, left);
    align-items: var(--sec-split-title-align, flex-start);
}
.sec-split-visual {
    overflow: hidden;
    line-height: 0;
    height: 320px; /* fallback avant JS, remplacé par JS ou aspect-ratio pour cercle */
}
.sec-split-visual .sec-split-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--sec-card-radius, 12px);
}
.sec-split-placeholder {
    background: linear-gradient(135deg, #e8f0f7, #d0e2f0);
    border-radius: var(--sec-card-radius, 12px);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
}

/* ---- Layout feature (cartes avec icône) ---- */
.sec-layout-feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sec-spacing, 24px);
}
.sec-feature-card {
    background: var(--sec-card-bg, #ffffff);
    border-radius: var(--sec-card-radius, 12px);
    padding: var(--sec-card-pad, 28px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sec-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.sec-feature-icon {
    font-size: 40px;
    margin-bottom: 14px;
    line-height: 1;
}
.sec-feature-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--sec-card-radius, 12px);
    margin-bottom: 14px;
    display: block;
}

@media (max-width: 700px) {
    .sec-split-item,
    .sec-split-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .sec-layout-feature {
        grid-template-columns: 1fr;
    }
}

/* ---- Layout CTA ---- */
.sec-layout-cta {
    text-align: center;
}
.sec-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}
.sec-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s, transform 0.1s;
    cursor: pointer;
}
.sec-cta-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

/* ---- Section vide ---- */
.sec-empty {
    text-align: center;
    color: var(--sec-text, #333333);
}

/* ════════════════════════════════════════════════
   Layout Témoignages
   ════════════════════════════════════════════════ */

.sec-tem-wrapper {
    position: relative;
    padding-bottom: 2.5rem;
}

.sec-tem-clip {
    overflow: hidden;
}

.sec-tem-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.sec-tem-slide {
    min-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.sec-tem-card {
    background: var(--sec-card-bg, #ffffff);
    border-radius: var(--sec-card-radius, 12px);
    padding: var(--sec-card-pad, 20px);
    width: 100%;
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

.sec-tem-quote {
    font-size: 3em;
    line-height: 0;
    vertical-align: -0.35em;
    color: var(--sec-title, #c9d9e8);
    font-family: Georgia, serif;
    opacity: 0.5;
}
.sec-tem-quote:first-of-type { margin-right: 0.25em; }
.sec-tem-quote:last-of-type  { margin-left: 0.15em; }

/* Disposition : avatar gauche + contenu droite */
.sec-tem-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.sec-tem-avatar-col {
    flex-shrink: 0;
}

.sec-tem-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sec-tem-stars {
    display: flex;
    gap: .15rem;
    font-size: 1.1rem;
}

.sec-tem-star-on  { color: #f6ad55; }
.sec-tem-star-off { color: #e2e8f0; }

.sec-tem-text {
    color: var(--sec-text, #4a5568);
    font-size: var(--sec-text-size, 1.05rem);
    font-style: italic;
    line-height: 1.75;
    margin: 0 0 1.25rem;
    text-align: left;
}

.sec-tem-author {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.sec-tem-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sec-card-bg, #ffffff);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.sec-tem-avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.sec-tem-separator {
    border: none;
    border-top: 4px solid var(--sec-title, #e2e8f0);
    opacity: 0.25;
    width: 100px;
    margin: 1rem 0;
}

.sec-tem-name {
    color: var(--sec-title, #1a202c);
    font-weight: 700;
    font-size: 1rem;
}

.sec-tem-fonction {
    display: block;
    color: var(--sec-text, #718096);
    font-size: .85rem;
    margin-top: .3rem;
    opacity: .8;
}

/* Flèches */
.sec-tem-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background: var(--sec-card-bg, #fff);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    color: var(--sec-text, #4a5568);
    z-index: 2;
}
.sec-tem-arrow:hover { background: var(--sec-bg, #f8fafc); border-color: #a0aec0; }
.sec-tem-prev { left: 0; }
.sec-tem-next { right: 0; }

/* Points de navigation */
.sec-tem-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.sec-tem-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e0;
    cursor: pointer;
    transition: background .2s, transform .2s;
    padding: 0;
}
.sec-tem-dot.active {
    background: var(--sec-title, #4a5568);
    transform: scale(1.25);
}

@media (max-width: 600px) {
    .sec-tem-card { padding: var(--sec-card-pad, 16px); }
    .sec-tem-arrow { display: none; }
    .sec-tem-quote { font-size: 3.5rem; }
}

/* ===== Quill polices via data-font (frontend + admin) ===== */
[data-font="charm"]            { font-family: "Charm", cursive !important; }
[data-font="cinzel"]           { font-family: "Cinzel", serif !important; }
[data-font="cormorant"]        { font-family: "Cormorant", serif !important; }
[data-font="arial"]            { font-family: Arial, sans-serif !important; }
[data-font="georgia"]          { font-family: Georgia, serif !important; }
[data-font="times-new-roman"]  { font-family: "Times New Roman", serif !important; }
[data-font="verdana"]          { font-family: Verdana, sans-serif !important; }
[data-font="courier-new"]      { font-family: "Courier New", monospace !important; }
[data-font="roboto"]           { font-family: "Roboto", sans-serif !important; }
[data-font="open-sans"]        { font-family: "Open Sans", sans-serif !important; }
[data-font="lato"]             { font-family: "Lato", sans-serif !important; }
[data-font="montserrat"]       { font-family: "Montserrat", sans-serif !important; }
[data-font="playfair-display"] { font-family: "Playfair Display", serif !important; }
[data-font="raleway"]          { font-family: "Raleway", sans-serif !important; }
[data-font="oswald"]           { font-family: "Oswald", sans-serif !important; }
[data-font="merriweather"]     { font-family: "Merriweather", serif !important; }
[data-font="poppins"]          { font-family: "Poppins", sans-serif !important; }
[data-font="nunito"]           { font-family: "Nunito", sans-serif !important; }
[data-font="pt-serif"]         { font-family: "PT Serif", serif !important; }
[data-font="dancing-script"]   { font-family: "Dancing Script", cursive !important; }
[data-font="pacifico"]         { font-family: "Pacifico", cursive !important; }
[data-font="crimson-text"]     { font-family: "Crimson Text", serif !important; }

/* Quill alignment classes pour affichage frontend */
.ql-align-center  { text-align: center; }
.ql-align-right   { text-align: right; }
.ql-align-justify { text-align: justify; }
