/* ============================================
   FENUA CHAT - ROBOTO FONT INTERNALISÃ‰E
   ============================================ */

/* Roboto Regular 400 */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
}

/* Roboto Bold 700 */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
}

/* Application globale */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

button, input, textarea, select {
    font-family: 'Roboto', sans-serif;
}
/* ============================================
   FENUA CHAT - IAORA.HTML STYLES
   App principale avec navigation SPA
   Mobile-first, PWA-ready
   ============================================ */

/* === VARIABLES CSS === */
:root {
    --primary-color: #00bcd4;
    --primary-dark: #0097a7;
    --secondary-color: #ff6f00;
    --accent-color: #ffc107;
    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #ffffff;
    --bg-light: #fafafa;
    --bg-dark: #1a1a1a;
    --bg-card: #ffffff;
    --bg-card-dark: #2a2a2a;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--trans-dur: 0.3s;
	--trans-timing: cubic-bezier(0.76,0.05,0.24,0.95);
	--trans-timing-in: cubic-bezier(0.76,0.05,0.86,0.06);
	--trans-timing-out: cubic-bezier(0.05,0.76,0.06,0.86);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    rgba(0,151,167,1) 0%,
    rgba(0,188,212,1) 100%
  );
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    rgba(0,170,187,1) 0%,
    rgba(0,208,230,1) 100%
  );
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,151,167,1) #1e1e1e;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #ffffff;
        --text-light: #b0b0b0;
        --bg-light: #121212;
        --bg-card: #1e1e1e;
        --border-color: #333333;
    }
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
	margin-top: 55px !important;
    margin: 0;
		transition:
		background-color var(--trans-dur),
		color var(--trans-dur);
}

/* === TYPOGRAPHY === */
h1 { 
    font-size: 2rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
}

h2 { 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 0.75rem; 
    color: var(--text-white);
}

h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

p { 
    margin-bottom: 1rem; 
}

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

a:hover { 
    color: var(--primary-dark); 
}

/* === BUTTONS === */
button, .btn-primary {
    border: none;
    border-radius: var(--radius);
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   SPLASH TRANSITION - SLIDE FROM BOTTOM
   ============================================ */

.page-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

#loader-svg {
    width: 100px;
    height: 100px;
}

#loader-svg .loading-1 {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: #AC00FF;
    stroke: #AC00FF;
    stroke-miterlimit: 10;
    animation: animate-svg-stroke-1 0.3s cubic-bezier(0.19, 1, 0.22, 1) 0s both,
               animate-svg-fill-1 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.4s both;
}

#loader-svg .loading-2 {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: #000;
    stroke: #000;
    stroke-miterlimit: 10;
    animation: animate-svg-stroke-2 0.3s cubic-bezier(0.19, 1, 0.22, 1) 0.12s both,
               animate-svg-fill-2 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.5s both;
}

#loader-svg .loading-3 {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: #22D4FD;
    stroke: #22D4FD;
    stroke-miterlimit: 10;
    animation: animate-svg-stroke-3 0.3s cubic-bezier(0.19, 1, 0.22, 1) 0.24s both,
               animate-svg-fill-3 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.6s both;
}

@keyframes animate-svg-stroke-1 {
    0% {
        stroke-dashoffset: 689.3565673828125px;
        stroke-dasharray: 689.3565673828125px;
    }
    100% {
        stroke-dashoffset: 1378.713134765625px;
        stroke-dasharray: 689.3565673828125px;
    }
}

@keyframes animate-svg-fill-1 {
    0% { fill: transparent; }
    100% { fill: rgb(172, 0, 255); }
}

@keyframes animate-svg-stroke-2 {
    0% {
        stroke-dashoffset: 277.24981689453125px;
        stroke-dasharray: 277.24981689453125px;
    }
    100% {
        stroke-dashoffset: 554.4996337890625px;
        stroke-dasharray: 277.24981689453125px;
    }
}

@keyframes animate-svg-fill-2 {
    0% { fill: transparent; }
    100% { fill: rgb(0, 0, 0); }
}

@keyframes animate-svg-stroke-3 {
    0% {
        stroke-dashoffset: 689.3565673828125px;
        stroke-dasharray: 689.3565673828125px;
    }
    100% {
        stroke-dashoffset: 1378.713134765625px;
        stroke-dasharray: 689.3565673828125px;
    }
}

@keyframes animate-svg-fill-3 {
    0% { fill: transparent; }
    100% { fill: rgb(34, 212, 253); }
}

.page-loader p {
    color: var(--text-light);
}

#pageContent {
    position: relative;
    min-height: 400px;
}

.splash-enter {
    animation: splashSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes splashSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-exit {
    animation: splashSlideDown 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes splashSlideDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.error-page {
    text-align: center;
    padding: 3rem;
    animation: splashSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-page h2 {
    color: #ff4444;
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   APP LAYOUT
   ============================================ */

.app-body {
    padding-bottom: 80px;
    background-color: var(--bg-dark);
    min-height: 100vh;
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1.5rem 1rem;
    color: var(--text-white);
    box-shadow: var(--shadow);
    height: 75px;
	width: 100%;
    position: fixed;
    top: 0px;            /* Position en haut (modifiable) */
    right: 0px;          /* Position Ã  droite (modifiable) */
    z-index: 9999;
}

/* ============================================
   THEME SWITCH - ORIGINAL
   ============================================ */
.switch {
	margin: auto;
	position: relative;
}
.switch__icon,
.switch__input {
	display: block;
}
.switch__icon {
	position: absolute;
	top: 0.375em;
	right: 0.375em;
	width: 0.75em;
	height: 0.75em;
	transition:
		opacity calc(var(--trans-dur) / 2),
		transform calc(var(--trans-dur) / 2);
}
.switch__icon polyline {
	transition: stroke-dashoffset calc(var(--trans-dur) / 2);
}
.switch__icon--light,
.switch__icon--light polyline {
	transition-delay: calc(var(--trans-dur) / 2);
	transition-timing-function: var(--trans-timing-out);
}
.switch__icon--dark {
	opacity: 0;
	transform: translateX(-0.75em) rotate(30deg) scale(0.75);
	transition-timing-function: var(--trans-timing-in);
}
.switch__input {
	background-color: hsl(210,90%,70%);
	border-radius: 0.75em;
	box-shadow:
		0 0 0 0.125em hsla(var(--hue),90%,50%,0),
		0.125em 0.125em 0.25em hsla(var(--hue),90%,10%,0.2);
	outline: transparent;
	position: relative;
	width: 3em;
	height: 1.5em;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color var(--trans-dur) var(--trans-timing),
		box-shadow 0.15s linear;
}
.switch__input:focus-visible {
	box-shadow:
		0 0 0 0.125em hsl(var(--hue),90%,50%),
		0.125em 0.125em 0.25em hsla(var(--hue),90%,10%,0.2);
}
.switch__input:before,
.switch__input:after {
	content: "";
	display: block;
	position: absolute;
}
.switch__input:before {
	background-color: hsl(50,90%,50%);
	border-radius: inherit;
	mask-image: linear-gradient(120deg,hsl(0,0%,0%) 20%,hsla(0,0%,0%,0) 80%);
	-webkit-mask-image: linear-gradient(120deg,hsl(0,0%,0%) 20%,hsla(0,0%,0%,0) 80%);
	inset: 0;
	transition: background-color var(--trans-dur) var(--trans-timing);
}
.switch__input:after {
	background-color: hsl(0,0%,100%);
	border-radius: 50%;
	box-shadow: 0.05em 0.05em 0.05em hsla(var(--hue),90%,10%,0.1);
	top: 0.125em;
	left: 0.125em;
	width: 1.25em;
	height: 1.25em;
	transition:
		background-color var(--trans-dur) var(--trans-timing),
		transform var(--trans-dur) var(--trans-timing);
	z-index: 1;
}
.switch__input:checked {
	background-color: hsl(290,90%,40%);
}
.switch__input:checked:before {
	background-color: hsl(220,90%,40%);
}
.switch__input:checked:after {
	background-color: hsl(0,0%,0%);
	transform: translateX(1.5em);
}
.switch__input:checked ~ .switch__icon--light,
.switch__input:checked ~ .switch__icon--light polyline {
	transition-delay: 0s;
	transition-timing-function: var(--trans-timing-in);
}
.switch__input:checked ~ .switch__icon--light {
	opacity: 0;
	transform: translateX(-0.75em) rotate(-30deg) scale(0.75);
}
.switch__input:checked ~ .switch__icon--light polyline {
	stroke-dashoffset: 1.5;
}
.switch__input:checked ~ .switch__icon--dark {
	opacity: 1;
	transform: translateX(-1.5em);
	transition-delay: calc(var(--trans-dur) / 2);
	transition-timing-function: var(--trans-timing-out);
}
.switch__sr {
	overflow: hidden;
	position: absolute;
	width: 1px;
	height: 1px;
}
.switch input {
	font: 1em/1.5 sans-serif;
	box-shadow: 2px 2px 2px #004e56;
}


.weather-info {
    float: left;
    height: 25px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon {
    width: 48px;
    height: 48px;
}

/* Weather Icon Container - Overlays dynamiques */
.weather-icon-container {
    position: relative;
    width: 48px;
    height: 48px;
}

.weather-icon-container .weather-base {
    position: relative;
    z-index: 1;
}

.weather-icon-container .weather-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Tooltip mÃ©tÃ©o avec effet machine Ã  Ã©crire */
.weather-tooltip {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* FlÃ¨che de l'infobulle - Ã  gauche */
.weather-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.85);
}

/* Affichage au hover/touch */
.weather-icon-container:hover .weather-tooltip,
.weather-icon-container:active .weather-tooltip,
.weather-icon-container.touched .weather-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animation machine Ã  Ã©crire */
.weather-tooltip-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid rgba(255,255,255,0.75);
    animation: typewriter-cursor 0.7s step-end infinite;
}

@keyframes typewriter-cursor {
    0%, 100% { border-color: rgba(255,255,255,0.75); }
    50% { border-color: transparent; }
}

.weather-details {
    display: flex;
    flex-direction: column;
}
.weather-time .widget-cycle {
  width: 100%;
  float: right;
  clear: both;
      text-align: end;
}
span#live-date, span#live-hour,span#live-cycle {
    font-weight: 500;
}
.weather-time {
	float: right;
    display: flex;
    width: 220px;
    height: 25px;
    line-height: 20px;
    margin: 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
}
/* Switch + mode jour ou nuit*/
.themeswitch {
    float: right;
    display: flex;
    width: 90px;
    height: 25px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: nowrap;
    align-content: center;
    flex-direction: row;
    justify-content: center;
}
.switch {
	margin: auto;
	position: relative;
}
.switch__icon,
.switch__input {
	display: block;
}
.switch__icon {
	position: absolute;
	top: 0.375em;
	right: 0.375em;
	width: 0.75em;
	height: 0.75em;
	transition:
		opacity calc(var(--trans-dur) / 2),
		transform calc(var(--trans-dur) / 2);
}
.switch__icon polyline {
	transition: stroke-dashoffset calc(var(--trans-dur) / 2);
}
.switch__icon--light,
.switch__icon--light polyline {
	transition-delay: calc(var(--trans-dur) / 2);
	transition-timing-function: var(--trans-timing-out);
}
.switch__icon--dark {
	opacity: 0;
	transform: translateX(-0.75em) rotate(30deg) scale(0.75);
	transition-timing-function: var(--trans-timing-in);
}
.switch__input {
	background-color: hsl(210,90%,70%);
	border-radius: 0.75em;
	box-shadow:
		0 0 0 0.125em hsla(var(--hue),90%,50%,0),
		0.125em 0.125em 0.25em hsla(var(--hue),90%,10%,0.2);
	outline: transparent;
	position: relative;
	width: 3em;
	height: 1.5em;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color var(--trans-dur) var(--trans-timing),
		box-shadow 0.15s linear;
}
.switch__input:focus-visible {
	box-shadow:
		0 0 0 0.125em hsl(var(--hue),90%,50%),
		0.125em 0.125em 0.25em hsla(var(--hue),90%,10%,0.2);
}
.switch__input:before,
.switch__input:after {
	content: "";
	display: block;
	position: absolute;
}
.switch__input:before {
	background-color: hsl(50,90%,50%);
	border-radius: inherit;
	mask-image: linear-gradient(120deg,hsl(0,0%,0%) 20%,hsla(0,0%,0%,0) 80%);
	-webkit-mask-image: linear-gradient(120deg,hsl(0,0%,0%) 20%,hsla(0,0%,0%,0) 80%);
	inset: 0;
	transition: background-color var(--trans-dur) var(--trans-timing);
}
.switch__input:after {
	background-color: hsl(0,0%,100%);
	border-radius: 50%;
	box-shadow: 0.05em 0.05em 0.05em hsla(var(--hue),90%,10%,0.1);
	top: 0.125em;
	left: 0.125em;
	width: 1.25em;
	height: 1.25em;
	transition:
		background-color var(--trans-dur) var(--trans-timing),
		transform var(--trans-dur) var(--trans-timing);
	z-index: 1;
}
.switch__input:checked {
	background-color: hsl(290,90%,40%);
}
.switch__input:checked:before {
	background-color: hsl(220,90%,40%);
}
.switch__input:checked:after {
	background-color: hsl(0,0%,0%);
	transform: translateX(1.5em);
}
.switch__input:checked ~ .switch__icon--light,
.switch__input:checked ~ .switch__icon--light polyline {
	transition-delay: 0s;
	transition-timing-function: var(--trans-timing-in);
}
.switch__input:checked ~ .switch__icon--light {
	opacity: 0;
	transform: translateX(-0.75em) rotate(-30deg) scale(0.75);
}
.switch__input:checked ~ .switch__icon--light polyline {
	stroke-dashoffset: 1.5;
}
.switch__input:checked ~ .switch__icon--dark {
	opacity: 1;
	transform: translateX(-1.5em);
	transition-delay: calc(var(--trans-dur) / 2);
	transition-timing-function: var(--trans-timing-out);
}
.switch__sr {
	overflow: hidden;
	position: absolute;
	width: 1px;
	height: 1px;
}
body:has(.switch__input:checked) {
	background-color: var(--fg); 
	color: var(--bg);
}

.switch input {
	color: var(--fg);
	font: 1em/1.5 sans-serif;
	    box-shadow: 2px 2px 2px #004e56;
}

.switch__sr {
	overflow: hidden;
	position: absolute;
	width: 1px;
	height: 1px;
}
.weather-temp {
    font-size: 1.75rem;
    font-weight: 700;
	line-height: 30px;
}

.weather-location {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Main Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .app-container {
        padding: 2rem;
        background: var(--bg-card);
        border-radius: var(--radius);
        margin: 2rem auto;
        box-shadow: var(--shadow-lg);
    }
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h1 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.user-greeting {
    color: var(--text-light);
    font-size: 1rem;
}

.user-greeting strong {
    color: var(--primary-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card-dark);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    filter: invert(59%) sepia(77%) saturate(2878%) hue-rotate(161deg) brightness(95%) contrast(101%);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Channel Section */
.section {
    margin-bottom: 2rem;
}

.section h2 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.channel-item {
    background: var(--bg-card-dark);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.channel-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    background: #333;
}

.channel-icon {
    width: 40px;
    height: 40px;
    filter: invert(59%) sepia(77%) saturate(2878%) hue-rotate(161deg) brightness(95%) contrast(101%);
}

.channel-info {
    flex: 1;
}

.channel-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.channel-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.channel-badge {
    background: var(--primary-color);
    color: var(--text-white);
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 6px;
}

/* ============================================
   FLOATING MENU
   ============================================ */

.floating-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card-dark);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 5px 0;
}

.menu-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    flex: 1;
    max-width: 80px;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    border: none;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(0, 188, 212, 0.1);
    border-radius: var(--radius);
}

.menu-item.active .menu-icon {
    filter: invert(59%) sepia(77%) saturate(2878%) hue-rotate(161deg) brightness(95%) contrast(101%);
}

.menu-item.active .menu-label {
    color: var(--primary-color);
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.menu-icon-plus {
    width: 64px;
    height: 64px;
    margin-bottom: 35px;
    transition: var(--transition);
    box-shadow: 0px -1px 20px 0px #00bcd4;
    border-radius: 45px;
    z-index: 99999;
    animation: glowPulse 7s infinite ease-in-out;
}

@keyframes glowPulse {
    0% { box-shadow: 0px -1px 10px 0px #00bcd4; }
    50% { box-shadow: 0px -1px 25px 2px #00eaff; }
    100% { box-shadow: 0px -1px 10px 0px #00bcd4; }
}

.menu-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

.fab-button {
    position: relative;
    width: 64px;
    height: 64px;
}

/* FAB Menu Popup */
.fab-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.fab-menu.active {
    display: block;
}

.fab-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.fab-content {
    position: absolute;
    bottom: 90px;
    left: 50%;
    height: 260px;
    transform: translateX(-50%);
    background: var(--primary-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 230px;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0%, 100% 75%, 91% 75%, 51% 99%, 64% 75%, 0% 75%);
    opacity: 0;
    animation: fabSlideUp 0.25s ease-out forwards;
}

@keyframes fabSlideUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.fab-option:hover {
    background: rgba(0, 188, 212, 0.1);
}

.fab-icon {
    width: 24px;
    height: 24px;
    filter: invert(59%) sepia(77%) saturate(2878%) hue-rotate(161deg) brightness(95%) contrast(101%);
}

.fab-icon-mini {
    width: 24px;
    height: 24px;
    filter: none;
}

.fab-option span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-white);
}

/* ============================================
   PAGES DYNAMIQUES - STYLES COMMUNS
   ============================================ */

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 188, 212, 0.3);
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.hello-world {
    background: var(--bg-card-dark);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.hello-world h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hello-world p {
    color: var(--text-light);
    line-height: 1.6;
}

.demo-content {
    margin-top: 1.5rem;
}

.archipel-card {
    background: rgba(0, 188, 212, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.archipel-card:hover {
    background: rgba(0, 188, 212, 0.15);
    transform: translateX(5px);
}

.archipel-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.archipel-card ul {
    list-style: none;
    padding: 0;
}

.archipel-card li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
}

.archipel-card li:hover {
    background: rgba(0, 188, 212, 0.2);
    transform: translateX(5px);
}

.chat-demo {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    min-height: 300px;
}

.message-bubble {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    max-width: 70%;
}

.message-received {
    background: rgba(0, 188, 212, 0.2);
    margin-right: auto;
}

.message-sent {
    background: rgba(172, 0, 254, 0.2);
    margin-left: auto;
}

.message-bubble strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.message-bubble p {
    margin: 0;
    color: var(--text-white);
}

.message-bubble .time {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.chat-input {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.send-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.demo-input,
.demo-textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
}

.demo-textarea {
    min-height: 120px;
    resize: vertical;
}

.demo-input:focus,
.demo-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.demo-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.demo-list li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.demo-list li:hover {
    background: rgba(0, 188, 212, 0.2);
    transform: translateX(5px);
}

.badge {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.demo-settings {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    padding: 1rem;
    background: rgb(215 215 215 / 10%);
    border-radius: 8px;
    transition: var(--transition);
}

.setting-item:hover {
    background: rgba(0, 188, 212, 0.1);
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: var(--text-white);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
    .floating-menu {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .fab-content {
        bottom: 100px;
    }

    @keyframes splashSlideUp {
        0% {
            opacity: 0;
            transform: translateY(100vh);
        }
        70% {
            transform: translateY(-10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* === UTILITIES === */
.hidden {
    display: none !important;
}

.offline {
    opacity: 0.7;
}

.offline::before {
    content: 'ðŸ“¡ Mode hors-ligne';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.875rem;
    z-index: 9999;
}
/* ============================================
   FENUA CHAT - AJOUTS THEME JOUR/NUIT
   Ã€ ajouter APRÃˆS style.css
   ============================================ */

/* === VARIABLES THEME JOUR === */
body.theme-light {
    --text-dark: #212121;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-card-dark: #fafafa;
    --bg-card-dark2: #181818;
}

body.theme-light.app-body,
body.theme-light .app-body {
    background-color: #fff !important;
}

/* === VARIABLES THEME NUIT (par dÃ©faut) === */
body.theme-dark {
    --text-dark: #ffffff;
    --text-light: #b0b0b0;
    --bg-light: #121212;
    --bg-dark: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-card-dark: #2a2a2a;
    --bg-card-dark2: #181818;
}

body.theme-dark.app-body,
body.theme-dark .app-body {
    background-color: var(--bg-card-dark2) !important;
}

/* === MODIFICATIONS WEATHER-TIME (dynamique) === */
.weather-time {
    display: flex;
    width: 220px;
    height: 25px;
    margin: 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    float: right;
}
.weather-time span {
  line-height: 10px;
}

.weather-time .widget-cycle {
    width: 100%;
    float: right;
    clear: both;
    text-align: end;
}

span#live-date, span#live-hour, span#live-cycle {
    font-weight: bold;
}

/* === MASQUER WEATHER-TIME EN MOBILE === */
@media (max-width: 767px) {
    .weather-time {
        display: none !important;
    }
}

/* === MODIFICATIONS THEMESWITCH (dynamique) === */
.themeswitch {
    float: right;
    display: flex;
    height: 25px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: nowrap;
    align-content: center;
    flex-direction: row;
    justify-content: center;
}

/* === MODIFICATIONS APP-CONTAINER (jour/nuit) === */
.app-container {
    background-color: var(--bg-card);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mode Jour */
body.theme-light .app-container {
    background-color: #ffffff;
    color: #212121;
}

body.theme-light .app-container h1,
body.theme-light .app-container h2,
body.theme-light .app-container h3 {
    color: #212121;
}

body.theme-light .app-container p,
body.theme-light .app-container span {
    color: #333333;
}

body.theme-light .stat-card,
body.theme-light .channel-item,
body.theme-light .hello-world {
    background-color: #fafafa;
    color: #212121;
}

body.theme-light .stat-card:hover,
body.theme-light .channel-item:hover {
    background-color: #f0f0f0;
}

body.theme-light .channel-info h3,
body.theme-light .channel-info p {
    color: #212121;
}

/* Mode Nuit */
body.theme-dark .app-container {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.theme-dark .app-container h1,
body.theme-dark .app-container h2,
body.theme-dark .app-container h3 {
    color: #ffffff;
}

body.theme-dark .app-container p,
body.theme-dark .app-container span {
    color: #ffffff;
}

body.theme-dark .stat-card,
body.theme-dark .channel-item,
body.theme-dark .hello-world {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.theme-dark .stat-card:hover,
body.theme-dark .channel-item:hover {
    background-color: #333333;
}

body.theme-dark .channel-info h3 {
    color: #ffffff;
}

body.theme-dark .channel-info p {
    color: #b0b0b0;
}

/* === ICÃ”NES MENU - MODE JOUR (noir) === */
body.theme-light .menu-icon {
    filter: brightness(0) saturate(100%) invert(0%);
}

body.theme-light .menu-item.active .menu-icon {
    filter: invert(59%) sepia(77%) saturate(2878%) hue-rotate(161deg) brightness(95%) contrast(101%);
}

body.theme-light .menu-label {
    color: #212121;
}

body.theme-light .menu-item.active .menu-label {
    color: var(--primary-color);
}

/* === ICÃ”NES MENU - MODE NUIT (blanc) === */
body.theme-dark .menu-icon {
    filter: brightness(0) invert(1);
}

body.theme-dark .menu-item.active .menu-icon {
    filter: invert(59%) sepia(77%) saturate(2878%) hue-rotate(161deg) brightness(95%) contrast(101%);
}

body.theme-dark .menu-label {
    color: #b0b0b0;
}

body.theme-dark .menu-item.active .menu-label {
    color: var(--primary-color);
}
