/* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,400&display=swap'); */

:root {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --accent: #0056d8; 
	--accent-light: #0097fc;
    --accent-soft: #b8956a;
    --text-primary: #0d0d0d;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
	--header-bg: rgba(255, 255, 255, 0.96);
	--header-shadow: 0 2px 40px rgba(15, 30, 70, 0.10);
	--nav-color: #1a2540;
	--nav-hover: #0056d8;
	--radius: 14px;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	/* min-height: 100vh; */
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: Cormorant Garamond;
    line-height: 1.6;
	font-size: 1.1rem;
	font-weight: 400;
	margin: 0;
}

/* Nav */
.top-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: #2f4a72;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a.active {
    color: var(--accent);
}

.btn-user {
    background: var(--accent-soft);
    color: var(--accent);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* Hero */

.main-container {
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 0 40px;
    margin-top: 50px !important;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 800;
	font-size: 3rem;
	color: #1a1a1a;
	line-height: 1.2;
	white-space: nowrap;
}
h1 span {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	color: #b8956a;
	display: inline;
}

/* .page-header h1 { */
    /* font-size: 3rem; */
    /* font-weight: 800; */
    /* letter-spacing: -1px; */
/* } */

/* .page-header h1 span { */
    /* color: #2f4a72; */
/* } */

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Bento Layout */
.bento-layout {
    display: block;
    /* grid-template-columns: 1.4fr 1fr; */
    /* gap: 30px; */
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 30px;
	min-height: 265px;
}

/* Upload Area */
.upload-card {
	width: 100%;
	margin-bottom: 20px;
    min-height: 265px;
	padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.upload-card:hover {
    border-color: #0d0d0d;
    background: #FBFFFE;
}

.icon-pulse {
    width: 50px;
    height: 50px;
    background: var(--accent-soft);
    color: #0d0d0d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
	margin: 0 auto;
}

.select-btn {
    background: #0d0d0d !important;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    margin-top: 15px;
    font-weight: 600;
    cursor: pointer;
	display: inline-block;
}

.action-container {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

/* Gallery */
.gallery-wrapper {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns:
    repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.img-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.4s ease;
}

.img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.del-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #ff4757;
}

.mini-add-card {
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer; aspect-ratio: 1;
}

/*Input prompt*/
.prompt-container {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
	margin-bottom: 20px;
}

#modify-prompt-checkbox {
	accent-color: #6200ea;
	cursor: pointer;
	width: 10px;
	height: 10px;
	vertical-align: middle;
}
.input-group label {
	font-weight: 600;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	user-select: none;
}
#custom-prompt {
	width: 100%;
	height: 250px;
	margin-top: 12px;
	padding: 12px 15px;
	border: 1px solid #ccc;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	resize: none;
	transition: all 0.3s ease;
	outline: none;
	box-shadow: none;
}
#custom-prompt:focus {
	border-color: #0d0d0d;
	box-shadow: 0 0 0 1px #8BA0C4;
	background: #fff;
}

.btn-user {
    background: var(--accent-soft);
    color: var(--accent);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

/* NOUVEAU STYLE À AJOUTER */
.btn-user:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 74, 114, 0.3);
}

#btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animation d'apparition */
.hidden {
    display: none !important;
	visibility: hidden;
    pointer-events: none;
}

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

#custom-prompt:not(.hidden) {
    animation: fadeInDown 0.4s ease forwards;
}

/* Settings Panel */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
	text-align: center;
	justify-content: center;
	margin-top: 40px;
}

.settings-card h4 {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.chip-container {
    display: flex;
    gap: 10px !important;
    flex-wrap: wrap;
	justify-content: center;
	align-items: center  !important;
	font-weight: 13px !important;
}

.chip {
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.chip.active {
    background: #0d0d0d !important;
    color: white;
}

/* Range Slider */
.light-range {
    width: 100%;
    accent-color: var(--accent);
}

/* Action Block */
.action-card {
	display: block !important;
    text-align: center;
    animation: slideUp 0.5s ease;
}

.count-badge {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.btn-main {
	max-width: 500px;
    width: 100%;
    background: #0d0d0d !important;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(139, 160, 196);
    transition: 0.3s;
}

.btn-main:hover {
	background: #b8956a !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(139, 160, 196);
}

/* Style de base du badge (toujours présent) */
.check-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: white; 
    color: #ccc; 
    border-radius: 50%;
    display: flex; 
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

/* État quand l'image est sélectionnée */
.img-thumb.selected .check-indicator {
    color: #2f4a72;
    background: white;
}

.img-thumb.selected {
    border: 2px solid #2f4a72; 
}

/* Effet au survol pour inciter au clic */
.img-thumb:hover .check-indicator {
    transform: scale(1.1);
    color: #2f4a72;
}

#delete-selection-container {
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid #eee; /* Optionnel : une ligne de séparation légère */
}

.btn-delete-action {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s, opacity 0.3s;
}

.btn-delete-action:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Helpers */
.hidden {
    display: none;
}

@keyframes fadeIn {
from { opacity: 0;
    transform: scale(0.9); } to { opacity: 1; transform: scale(1);
} }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); }
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f1f5f9;
	border: none;
	width: 50px;
	heigth: 35px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2f4a72;
	z-index: 100001;
}

.close-btn:hover {
	background: #e2r8f0;
	color: #1e293b;
}

	/* Signup modal */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.auth-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.user-profile-corner {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 5px 12px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.profile-trigger:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background: #0d0d0d !important;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 10px 0;
    display: none; /* Masqué par défaut */
    flex-direction: column;
}

.profile-dropdown.active {
    display: flex;
}

.dropdown-header {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.dropdown-header span {
    font-size: 0.8em;
    color: #777;
}

.dropdown-item {
    padding: 12px 20px;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    color: #cc0000;
    font-weight: 600;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #f5f2ed;
	color: #0d0d0d;
}

.logout-modal-card {
    text-align: center;
    padding: 30px !important;
    max-width: 350px !important;
}

.logout-icon {
    font-size: 3rem;
    color: #b8956a;
    margin-bottom: 15px;
}

.logout-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.btn-danger {
    background: #0d0d0d !important;
}

.btn-secondary {
    background: #f0f0f0;
    color: #555;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.user-menu-wrapper {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 9999;
}

/* Style de base commun (Profil et Bouton Login) */
.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
}

/* Style spécifique pour le bouton "Se connecter" */
.guest-btn {
	background: #0d0d0d !important;
    border: 1px solid #ffffff; /* Couleur de votre thème */
    color: #ffffff;
	font-family: inherit;
	line-height: 2;
	margin: 0;
}

.guest-btn:hover {
    background: #2f4a72;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Pour le dropdown Projet */
.project-selector-containter {
	position: relative;
	padding-left: 20px;
}
.project-dropdown-content {
	position: absolute;
	top: 50px;
	left: 0;
	width: 300px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
	z-index: 9999;
	overflow: hidden;
	border: 1px solid #eef0f5;
	animation: dropdownFadeIn 0.2s ease;
}
@keyframes dropdownFadeIn {
	from {opacity: 0; transform: translateY(-8px);}
	to {opacity: 1; transform: translateY(0);}
}
	/* Barre de recherche */
.project-search-wrapper {
	position: relative;
	padding: 12px;
	border-bottom: 1px solid #f0f0f0;
	background: #fafbff;
}
.project-search-icon {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	color: #aab4c8;
	font-size: 13px;
	pointer-events: none;
}
.project-search-wrapper input {
	width: 100%;
	padding: 9px 12px 9px 34px;
	border: 1.5px solid #e8eaf0;
	border-radius: 10px;
	font-size: 13px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	outline: none;
	background: white;
	color: #333;
	transition: border-color 0.2s;
}
.projetc-search-wrapper input:focus {
	border-color: #2f4a72;
}
.project-search-wrapper input::placeholder{
	color: #bbb;
}
	/* Liste des projets */
#recent-projects-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	max-height: 250px;
	overflow-y: auto;
}
#recent-projects-list::-webkit-scrollbar {
	width: 4px;
}
#recent-projects-list::-webkit-scrollbar-track {
	background: transparent;
}
#recent-projects-list::-webkit-scrollbar-thumb {
	background: #d0d7e8;
	border-radius: 4px;
}
	/* Item projet */
.project-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	cursor: pointer;
	font-size: 13.5px;
	color:#444;
	transition: background 0.15s;
	list-style: none;
	border-radius: 0;
}
.project-item:hover {
	background: #e8e3db !important;
}
.project-item-label {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
}
.project-item-label i {
	color: #0d0d0d;
	font-size: 15px;
	flex-shrink: 0;
}
.project-item-label span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color:#333;
	font-weight:500;
}
	/* Boutons action (renommer/supprimer) */
.project-item-actions {
	display: flex;
	gap: 2px;
	opacity: 0;
	transition: opacity 0.2s;
	flex-shrink: 0;
}
.project-item:hover .project-item-actions {
	opacity: 1;
}
.btn-rename-dropdown,
.btn-delete-dropdown {
	background: none;
	border: none;
	cursor: pointer;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	transition: background 0.15s;
}
.btn-rename-dropdown {
	color: #2f4a72;
}
.btn-rename-dropdown:hover {
	background: #eef2ff;
	color: #2f4a72;
}
.btn-delete-dropdown {
	color: #e74c3c;
}
.btn-delete-dropdown:hover {
	background: #fff0f0;
	color: #e74c3c;
}
	/* Message vide */
.project-list-empty {
	text-align: center;
	padding: 30px 20px;
	color: #bbb;
	font-size: 13px;
}
.project-list-empty i {
	font-size: 28px;
	margin-bottom: 8px;
	display: block;
	opacity: 0.5;
}
	/* Boutton nouveau projet */
.dropdown-footer {
	border-top: 1px solid #f0f0f0;
	padding: 10px 12px;
	background: #fafbff;
}
#btn-open-modal-new-inner {
	width: 100%;
	padding: 10px;
	border: 1.5px dashed #c5d0e8;
	border-radius: 10px;
	background: transparent;
	color: #0d0d0d;
	font-weight: 600;
	font-size: 13px;
	font-family: 'Plus Jakarta Sans' sans-serif;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
#btn-open-modal-new-inner:hover {
	background: #e8e3db;
	border-color: #0d0d0d;
	color: #0d0d0d;
}


.project-actions {
	padding-left: 20px;
}

/* Modal Créer un projet */
.cuisine-modal-overlay {
    position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(6px);
	display: flex;
	align-items:center;
	justify-content: center;
	z-index: 10000;
}
.cuisine-modal-box {
    background: white;
	width: 90%;
	max-width: 420px;
	border-radius: 24px;
	padding: 35px; 30px; 30px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
	position: relative;
	animation: modalFadeIn 0.3s ease;
}
	/* Bouton Fermer */
.cuisine-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #f1f5f9;
	color: #666;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:all 0.2s;
	line-height: 1;
}
.cuisine-modal-close:hover {
	background: #e2e8f0;
	color: #333;
}
.cuisine-modal-header {
	text-align: center;
	margin-bottom: 25px;
}
.cuisine-modal-icon {
	width: 65px;
	height: 65px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px auto;
	font-size: 24px;
}
.cuisine-modal-header h3 {
	font-size: 1.3rem;
	font-weight: 700;
	color: #0d0d0d;
	margin-bottom: 6px;
}
.cuisine-modal-header p {
	font-size: 15px;
	color: #0d0d0d;
	margin: 0;
	line-height: 1.5;
}
.cuisine-modal-body label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.cuisine-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}
.cuisine-input-wrapper i {
	position: absolute;
	right: 14px;
	color: #aab4c8;
	font-size: 14px;
	pointer-events: none;
}
.cuisine-input-wrapper input {
	width: 100%;
	padding: 13px 15px 13px 40px;
	border: 1px solid #0d0d0d;
	border-radius: 12px;
	font-size: 14px;
	/* font-family: 'Plus Jakarta Sans', sans-serif; */
	color: #0d0d0d;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #f5f2ed;
}
.cuisine-input-wrapper input:focus {
	border-color: #2f4a72;
	box-shadow: 0 0 0 3px rgba(47, 74, 114, 0.08);
	background: white;
}
.cuisine-input-wrapper input::placeholder {
	color: #b5b4b3;
}
.cuisine-modal-footer {
	display: flex;
	margin-top: 20px;
	gap: 10px;
}
.cuisine-modal-btn-cancel {
	flex: 1 !important;
	padding: 13px !important;
	border: none !important;
	border-radius: 12px !important;
	background: #f1f5f9 !important;
	color: #0d0d0d !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
}
.cuisine-modal-btn-cancel:hover{
	background: #e2e8f0;
}
.cuisine-modal-btn-confirm {
	flex: 2 !important;
	padding: 13px !important;
	border: none !important;
	border-radius: 12px !important;
	background: #0d0d0d !important;
	color: white !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	box-shadow: 0 4px 15px rgba(47, 74, 114, 0.25) !important;
}
.cuisine-modal-btn-confirm:hover {
	background: #243d5e;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(47, 74, 114, 0.3);
}
.cuisine-modal-btn-confirm:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

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

.modal-header h3 { margin: 0; color: #2f4a72; font-size: 1.2rem; }
.modal-body { margin: 20px 0; }
.modal-body input {
    width: 100%; padding: 12px; border: 2px solid #eee;
    border-radius: 8px; margin-top: 8px; outline: none;
}
.modal-body input:focus { border-color: #2f4a72; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; }

/* Boutons */
.cuisine-btn-primary { 
	background: #2f4a72; 
	color: white; 
	border: none; 
	padding: 10px; 
	border-radius: 8px; 
	cursor: pointer; 
}

.project-selector-container {
    position: absolute;
    /* top: 70px;         */
    left: 15px;      
    z-index: 9998;
}

.cuisine-btn-secondary { 
	background: #0d0d0d !important;
	border: none; 
	padding: 10px 20px;
	margin-left: 20px;
	margin-top: 25px;	
	border-radius: 8px; 
	cursor: pointer; 
	color: #ffffff;
	line-height: 1.5;
	font-family: inherit;
}
.cuisine-btn-secondary:hover {
	background: #b8956a;
}

/* Modal Historique */
.history-modal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.projects-sidebar::-webkit-scrollbar,
.images-display::-webkit-scrollbar {
    width: 6px;
}

.projects-sidebar::-webkit-scrollbar-track,
.images-display::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.projects-sidebar::-webkit-scrollbar-thumb,
.images-display::-webkit-scrollbar-thumb {
    background: #2f4a72;
    border-radius: 3px;
}

.history-project-item:hover {
    background: #ffffff !important;
}

.history-image-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2f4a72;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(47, 74, 114, 0.3);
    z-index: 10000;
    display: none;
    font-weight: 600;
    font-size: 14px;
}

/* Modal authentification */
.auth-card-new {
	background: white;
	width: 90%;
	max-width: 420px;
	border-radius: 24px;
	padding: 35px 30px 30px;
	box-shadow:0 25px 60px rgba(0, 0, 0, 0.2);
	position: relative;
	animation: modalFadeIn 0.3s ease;
}
	/* Bouton Fermer */
.auth-close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 32px;
	border-radius: 50%;
	border: none;
	background:#f1f5f9;
	color: #666;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	line-height: 1;
}
.auth-close-btn:hover {
	background:#e2e8f0;
	color: #333;
}
	/* Header */
.auth-header {
	text-align: center;
	margin-bottom: 28px;
}
.auth-icon {
	width: 65px;
	height: 65px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px auto;
	font-size: 24px;
}
.auth-header h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 6px;
}
.auth-header p {
	font-size: 13.5px;
	color: #0d0d0d;
	margin: 0;
}
.auth-input-group {
	margin-bottom: 16px;
}
.auth-input-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #0d0d0d;
	margin-bottom: 7px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
	/* Input avec icon */
.auth-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}
.auth-input-wrapper > i:first-child {
	position: absolute;
	right: 14px;
	color: #aab4c8;
	font-size: 14px;
	pointer-events: none;
}
.auth-input-wrapper input {
	width: 100%;
	padding: 13px 45px 13px 40px;
	border: 1px solid #0d0d0d;
	border-radius: 12px;
	font-size: 14px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	color: #0d0d0d;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #f5f2ed;
}
.auth-input-wrapper input:focus {
	border-color: #0d0d0d;
	box-shadow: 0 0 0 3px rgba(47, 74, 114, 0.08);
	background: white;
}
.auth-input-wrapper input::placeholder {
	color: #b5b4b3;
}
	/* Bouton afficher/masquer mdp */
.auth-toggle-pass {
	position: absolute !important;
	right: 12px !important;
	background: none !important;
	border: none !important;
	color: #aab4c8 !important;
	cursor: pointer !important;
	font-size: 14px !important;
	padding: 5px !important;
	transition: color 0.2s !important;
}
.auth-toggle-pass:hover {
	color: #2f4a72;
}
	/* Message erreur */
.auth-error-msg-new {
	font-size: 13px;
	text-align: center;
	min-height: 20px;
	margin-bottom: 10px;
	color;#e74c3c;
}
	/* Bouton soumettre */
.auth-submit-btn {
	width: 100% !important;
	padding: 14px !important;
	border: none !important;
	border-radius: 12px !important;
	background: #0d0d0d !important;
	color: white !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	box-shadow: 0 4px 15px rgba(47, 74, 114, 0.25) !important;
	margin-top:5px !important;
}
.auth-submit-btn:hover {
	background: #b8956a !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(47, 74, 114, 0.3);
}
.auth-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}
	/* Lien vers signup */
.auth-switch {
	text-align: center;
	margin-top: 20px;
	font-size: 13.5px;
	color: #0d0d0d;
}
.auth-switch a {
	color: #b8956a;
	font-weight: 700;
	text-decoration: none;
	margin-left: 4px;
	transition: color 0.2s;
}
.auth-switch a:hover {
	color: #0d0d0d;
	text-decoration: underline;
}

.wp-block-group {
	margin: 0px !important;
}

.has-global-padding {
	padding-right: 0px !important;
	padding-left: 0px !important;
}
h3 {
	font-size: 1.75rem !important;
	margin-block-end: 1rem !important;
	margin-block-start: .5rem !important;
}
h4 {
	font-size: 1.5rem !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
}
p {
	margin-block-end: .9rem !important;
	margin-block-start: 0 !important;
}

/* ===== FOOTER WRAPPER ===== */
footer {
  position: relative;
  width: 100%;
}

.footer-main {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.footer-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 45, 0.55);
  z-index: 0;
}

.footer-main > * {
  position: relative;
  z-index: 1;
}

/* ===== FOOTER TOP ===== */
.footer-top {
  padding: 70px 0 50px;
}

.footer-top .container {
  position: relative;
  z-index: 1;
}

.footer-custom-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}

/* ===== COLONNE BRAND ===== */
.footer-widget-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 80px;
}

/* ===== LOGO ===== */
.footer-logo {
  display: inline-block;
  margin-bottom: 4px;
}

.footer-logo img {
  width: 160px;
  height: auto;
  display: block;
  /* Si le logo est sombre, décommenter la ligne suivante : */
  /* filter: brightness(0) invert(1); */
}

/* ===== DESCRIPTION ===== */
.footer-widget-brand p.text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.75;
  max-width: 300px;
  margin: 0;
}

/* ===== TÉLÉPHONE ===== */
.contact-phone {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  flex-wrap: wrap;
}

.contact-phone .number {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

/* ===== RÉSEAUX SOCIAUX ===== */
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 4px 0 0 0;
  list-style: none;
  flex-wrap: wrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-icons li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  color: #fff !important;
  text-decoration: none;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.05);
}

.social-link svg {
  display: block;
  flex-shrink: 0;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ===== MENUS (Liens rapides & Secteurs) ===== */
.footer-widget-menu {
  display: flex;
  flex-direction: column;
}

.widget-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 22px 0;
  letter-spacing: 0.6px;
  text-transform: none;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.text-16 {
	font-size: 16px !important;
	line-height: 1.62 !important;
}

.footer-menu {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu li {
  margin: 0;
  padding: 0;
}

.footer-menu .link {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.footer-menu .link::before {
  content: '›';
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.footer-menu .link:hover {
  color: #fff;
  gap: 8px;
}

.footer-menu .link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  position: relative;
  z-index: 1;
  background: rgba(8, 14, 28, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 20px 0;
}

.footer-bottom .container {
  position: relative;
  z-index: 1;
}

.footer-bottom-row {
  display: flex;
  margin-left: 80px;
  margin-right: 80px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin: 0;
}

/* ===== POLICIES ===== */
.footer-policies {
  display: flex;
  flex-direction: row;
  gap: 28px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-policies .link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-policies .link:hover {
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .footer-custom-row {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer-widget-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer-top {
    padding: 50px 0 36px;
  }

  .footer-custom-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-widget-brand {
    grid-column: auto;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-policies {
    justify-content: flex-start;
    gap: 18px;
  }
}

/* Zone contenu principal (à droite de la sidebar) */
.app-main-content {
    flex: 1;
    margin-left: 260px !important;
    min-height: 100vh;
    background: var(--bg-main);
    overflow-x: hidden;
}
.app-main-content .cuisine-app {
    width: 100%;
}
.main-container {
    max-width: 1260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 30px !important;
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

	/* SIDEBAR GAUCHE */
.app-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 260px;
	height: 100vh;
	background: #0d0d0d;
	display: flex;
	flex-direction: column;
	z-index: 500;
	overflow: hidden;
	box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

/* Navigation (zone scrollable) */
.sidebar-nav {
	flex: 1;
	overflow-y: auto;
	padding: 20px 15px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
}

/* Bouton principal (Nouveau projet / Se connecter) */
.sidebar-btn {
	width: 100%;
	padding: 11px 16px;
	border: none;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: inherit;
	transition: all 0.2s ease;
}
.sidebar-btn-primary {
	margin-top: 15px;
	background: #b8956a;
	color: #0d0d0d;
	margin-bottom: 10px;
	align-items: center;
	justify-content: center;
}
.sidebar-btn-primary:hover {
	background: #c9a87c;
	transform: translateY(-1px);
}

/* Titres de sections */
.sidebar-section {
	margin-top: 10px;
}
.sidebar-section-title {
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: rgba(255, 255, 255, 0.35) !important;
	padding: 0 8px;
	margin: 12px 0 8px 0 !important;
}

/* Barre de recherche dans la sidebar */
.slidebar-search-wrapper {
	position: relative;
	margin-bottom: 8px;
}
sidebar-search-wrapper i {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
	pointer-events: none;
}
.sidebar-search-wrapper input {
	width: 100%;
	padding: 8px 10px 8px 30px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: white;
	font-size: 13px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s;
}
.sidebar-search-wrapper input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}
.sidebar-search-wrapper input:focus {
	border-color: rgba(184, 149, 106, 0.6);
	background: rgba(255, 255, 255, 0.1);
}

/* Liste des projets dans la sidebar */
.sidebar-projects-list {
	list-style: none;
	padding: 0;
	margin: 0 0 8px 0;
	max-height: 220px;
	overflow-y: auto;
}
.sidebar-projects-list::-webkit-scrollbar {
	width: 3px;
}
.sidebar-projects-list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
}

/* Chaque item de projet dans la sidebar */
.sidebar-projects-list .project-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	color: rgba(255, 255, 255,0.75);
	font-size: 13px;
	transition: background 0.15s;
	list-style: none;
}
.sidebar-projects-list .project-item:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	color: white;
}
.sidebar-projects-list .project-item-label i {
	color: #b8956a;
}
.sidebar-projects-list .project-item-label span {
	color: rgba(255, 255, 255, 0.85);
}

/* Boutons renommer/supprimer dans la sidebar */
.sidebar-projects-list .btn-rename-dropdown,
.sidebar-projects-list .btn-delete-dropdown {
    color: rgba(255,255,255,0.5);
}
.sidebar-projects-list .btn-rename-dropdown:hover {
	background: rgba(47, 74, 114, 0.4);
	color: #7ba3d4;
}
.sidebar-projects-list .btn-delete-dropdown:hover {
	background: rgba(231, 76, 60, 0.2);
	color: #e74c3c;
}

/* Bouton "Nouveau projet" en bas de la liste */
.sidebar-new-project-btn {
	width: 100%;
	padding: 8px 10px;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.2s;
	margin-top: 4px;
}
.slidebar-new-project-btn:hover {
	border-color: #b8956a;
	color: #b8956a;
	background: rgba(184, 149, 106, 0.08);
}

/* Bouton Historique */
.sidebar-item-btn {
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: all 0.2s;
}
.sidebar-item-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.sidebar-item-btn i {
    color: #b8956a;
    width: 16px;
    text-align: center;
}

/* ---- Profil en bas ---- */
.sidebar-profile {
    padding: 16px 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    position: relative;
}
.sidebar-profile:hover {
    background: rgba(255,255,255,0.05);
}
.sidebar-avatar {
    width: 34px;
    height: 34px;
    background: #b8956a;
    color: #0d0d0d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.sidebar-profile-info {
    flex: 1;
    overflow: hidden;
}
.sidebar-profile-info strong {
    display: block;
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-profile-info span {
    display: block;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-profile-arrow {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.sidebar-profile-arrow.rotated {
    transform: rotate(180deg);
}

/* Menu profil popup */
.sidebar-profile-menu {
    position: absolute;
    bottom: 70px;
    left: 15px;
    right: 15px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 6px;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
.sidebar-profile-menu-item {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 7px;
    background: none;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    transition: background 0.15s;
}
.sidebar-profile-menu-item:hover {
    background: rgba(231, 76, 60, 0.12);
}

	/* LAYOUT CENTRAL : Upload + Personnalisation */
/* Le bento devient une grille 2 colonnes */
.bento-layout {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    align-items: start;
}

/* La side-panel devient simple (pas de flex-direction:column) */
.side-panel {
    margin-top: 0 !important;
}

   /* BARRE DU BAS : Watermark + Générer */
.bottom-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 18px 25px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    gap: 20px;
}

/* Option "Photo non contractuelle" */
.watermark-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #777;
    font-family: inherit;
    user-select: none;
    white-space: nowrap;
}
.watermark-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0d0d0d;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

/* Zone compteur + bouton */
.generate-area {
    display: flex;
    align-items: center;
    gap: 20px;
}
.generate-area .count-badge {
    margin: 0;
    white-space: nowrap;
}

/* Bouton générer — taille normale dans la barre */
.bottom-action-bar .btn-main {
    max-width: 220px;
    padding: 14px 28px;
    font-size: 0.95rem;
    margin: 0;
}

/* Ajuster le main-container */
.main-container {
    margin-top: 50px !important;
    padding: 0 40px !important;
}

/* Supprimer l'ancien controls-container s'il reste */
.controls-container {
    display: none !important;
}
.bottom-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}
.selection-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 20px 25px !important;
    border-radius: 18px !important;
    min-height: unset !important;
}
.selection-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.selection-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.count-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #b8956a;
    line-height: 1;
}
.count-word {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

/* Bouton Générer */
.btn-generate-bottom {
    padding: 14px 50px;
    background: #b8956a !important;
    color: #0d0d0d;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-generate-bottom:hover {
    background: #c9a87c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184,149,106,0.35);
}

/* Style commun des 3 cartes du bas */
.bottom-card {
    padding: 22px 20px !important;
    min-height: unset !important;
    border-radius: 18px !important;
}

/* Titre de section en petit */
.bottom-card-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    color: #aaa !important;
    margin: 0 0 14px 0 !important;
    text-transform: uppercase;
}

/* Chips plus compacts */
.bottom-card .chip-container {
    /* flex-direction: column; */
    align-items: center;
    gap: 8px;
}
.bottom-card .chip {
    font-size: 14px;
    padding: 7px 14px;
}

/* Bloc Options : ligne toggle */
.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 16px;
    color: #444;
}

/* Toggle switch style */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #b8956a;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Bloc Sélection : fond sombre */
.bottom-card-dark {
    background: #0d0d0d !important;
    border-color: #0d0d0d !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

/* Nombre d'images en grand */
.selection-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 8px 0 16px 0;
}
.count-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 800;
    color: #b8956a;
    line-height: 1;
}
.count-word {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

/* Bouton Générer dans le bloc sombre */
.btn-generate {
    width: 100%;
    padding: 13px 20px;
    background: #b8956a !important;
    color: #0d0d0d;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: auto;
}
.btn-generate:hover {
    background: #c9a87c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184,149,106,0.35);
}

/* Cacher l'ancien bottom-action-bar */
.bottom-action-bar {
    display: none !important;
}
/* Projet actif dans la sidebar */
.project-item-active {
    background: rgba(184, 149, 106, 0.15) !important;
    border-left: 3px solid #b8956a !important;
    padding-left: 7px !important;
}