/* =================================
RESET / BASE
================================= */
* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
	overflow: hidden;
}

body {
	font-family: system-ui;
	margin: 0;
	background: #e8f2ef;
	display: flex;
	flex-direction: column;
	height: 100vh;
	touch-action: manipulation;
}

/* =================================
HEADER
================================= */
.header {
	padding: 20px;
	text-align: center;
	flex-shrink: 0;
}

.logo {
	font-size: 26px;
	font-weight: bold;
	color: #0e6769;
}

.city {
	margin-top: 10px;
	padding: 10px;
	border-radius: 12px;
	background: white;
	display: inline-block;
}

/* =================================
MAIN LAYOUT (APP VIEWPORT)
================================= */
.home, .editor, .flash-editor {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

/* =================================
HOME GRID
================================= */
.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.card {
	background: white;
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	font-size: 14px;
}

.card img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	margin-bottom: 10px;
}

.flash {
	border: 2px solid #0e6769;
}

/* =================================
BOTTOM NAV (TAB BAR)
================================= */
.bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 70px;
	display: flex;
	justify-content: space-around;
	align-items: center;
	background: white;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
	padding-bottom: env(safe-area-inset-bottom);
	z-index: 100;
}

.bottom-nav button {
	background: none;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #333;
	flex: 1;
}

.bottom-nav svg {
	width: 22px;
	height: 22px;
	stroke: #0f2b41;
	stroke-width: 2;
	fill: none;
	margin-bottom: 2px;
}

/* =================================
CENTRAL ACTION BUTTON (+)
================================= */
.bottom-nav .nav-center {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #0e6769 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	top: -8px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
	flex: 0 0 56px;
	z-index: 10;
}

.nav-center svg {
	width: 28px;
	height: 28px;
	stroke: white;
	stroke-width: 3;
	fill: none;
	margin: 0;
}

.nav-center span {
	display: none;
}

.nav-center:active {
	transform: scale(0.92);
}

/* =================================
PUBLISH PAGE
================================= */
.publish-page {
	background: #f2f4f6;
}

.label {
	display: block;
	margin-top: 15px;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 600;
}

.input {
	width: 100%;
	max-width: 100%;
	padding: 14px;
	font-size: 16px;
	border-radius: 12px;
	border: 1px solid #ddd;
}

.textarea {
	width: 100%;
	max-width: 100%;
	height: 140px;
	padding: 14px;
	font-size: 16px;
	border-radius: 12px;
	border: 1px solid #ddd;
	resize: none;
}

.media-block {
	margin-top: 20px;
}

.channels {
	margin-top: 25px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.channel {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
}

.publish-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 15px;
	background: white;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.publish-button {
	width: 100%;
	padding: 18px;
	font-size: 18px;
	font-weight: 600;
	border: none;
	border-radius: 14px;
	background: #0e6769;
	color: white;
}

/* =================================
FLASH INFO PAGE
================================= */
.flash-page {
	background: #f2f4f6;
}

.flash-header {
	display: flex;
	align-items: center;
	padding: 15px;
	background: #e63946;
	color: white;
}

.flash-title {
	margin-left: 10px;
	font-size: 18px;
	font-weight: 600;
}

.photo-zone {
	margin-bottom: 20px;
}

.photo-button {
	display: block;
	padding: 16px;
	text-align: center;
	border-radius: 12px;
	background: white;
	border: 2px dashed #ccc;
	font-size: 16px;
}

.flash-text {
	width: 100%;
	max-width: 100%;
	height: 160px;
	padding: 15px;
	font-size: 18px;
	border-radius: 12px;
	border: 1px solid #ddd;
	resize: none;
}

.flash-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 15px;
	background: white;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.flash-publish {
	width: 100%;
	padding: 20px;
	font-size: 18px;
	font-weight: 600;
	border: none;
	border-radius: 14px;
	background: #e63946;
	color: white;
}

.flash-counter{
font-size:12px;
opacity:0.6;
text-align:right;
margin-top:4px;
}

/* =================================
PARAMETRES
================================= */
.settings {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.settings-button {
	padding: 18px;
	font-size: 16px;
	border: none;
	border-radius: 12px;
	background: #0e6769;
	color: white;
}

.settings-button.danger {
	background: #e63946;
}

.app-version {
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
}

/* =================================
PHOTOS UPLOAD
================================= */
.photo-upload{
margin-top:15px;
}

.photo-preview{
width:100%;
height:260px;
overflow:hidden;
background:#eee;
border-radius:12px;
}

.cropper-container{
height:260px !important;
}

.photo-preview img{
width:100%;
border-radius:12px;
margin-top:10px;
}

.photo-actions{
margin-top:10px;
display:flex;
gap:10px;
}

.photo-actions button{
flex:1;
padding:10px;
border-radius:8px;
border:none;
background:#e6e6e6;
}

.photo-loader{
margin-top:10px;
font-size:14px;
color:#0e6769;
}

.photo-error{
margin-top:10px;
color:red;
font-size:13px;
}

.hidden{
display:none;
}

/* =================================
INDICATEUR DE PUBLICATIONS EN ATTENTE
================================= */
.queue-indicator{

position:fixed;
top:10px;
left:50%;
transform:translateX(-50%);
background:#ffb300;
color:#000;
padding:6px 12px;
border-radius:20px;
font-size:13px;
z-index:1000;

}
