:root {
	--bg-color: rgb(15,24,33);
	--card-bg: #1e293b;
	--text-color: #FFFDFD;
	--text-muted: #94a3b8;
	--accent-color: #F29A01;
	--accent-hover: #FF7D29;
	--border-color: #334155;
}

body {
	font-family: 'Noto Sans', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

.container {
	width: 100%;
	max-width: 500px;
	padding: 20px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* --- ZONE DE RECHERCHE --- */
.search-section {
	background: var(--card-bg);
	padding: 25px;
	border-radius: 16px;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-bar {
    display: flex;
    gap: 8px; /* Un peu moins d'espace */
    margin-bottom: 20px;
    width: 100%; /* S'assure que la barre prend toute la place disponible */
}

.search-bar input {
    flex: 1; /* Le champ de texte prend l'espace disponible */
    min-width: 0; /* Important : permet au champ de rétrécir si besoin */
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
}

.search-bar button {
    flex-shrink: 0; /* Empêche le bouton de se compresser */
    padding: 0 15px; /* Un peu moins de padding latéral sur mobile */
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap; /* Empêche le texte "Rechercher" de passer à la ligne */
}

.search-bar input:focus {
	border-color: var(--accent-color);
}

.search-bar button {
	padding: 0 20px;
	background: var(--accent-color);
	color: white;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.search-bar button:hover {
	background: var(--accent-hover);
}

/* --- BOUTON TOGGLE ON/OFF POUR L'IA --- */
.ai-toggle-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--bg-color);
	padding: 10px 15px;
	border-radius: 10px;
	border: 1px solid var(--border-color);
}

.ai-label {
	font-size: 14px;
	color: var(--text-muted);
	font-weight: 500;
}

.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: var(--border-color);
	transition: 0.3s;
	border-radius: 26px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

input:checked + .slider {
	background-color: var(--accent-color);
}

input:checked + .slider:before {
	transform: translateX(24px);
}

.section-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: 15px;
	letter-spacing: 0.05em;
	display: block;
}

/* --- RACCOURCIS PRÉFÉRÉS --- */
.shortcuts-section {
	background: var(--card-bg);
	padding: 25px;
	border-radius: 16px;
	border: 1px solid var(--border-color);
}

#shortcuts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.shortcut-card {
	background: var(--bg-color);
	border: 1px solid var(--border-color);
	padding: 15px;
	border-radius: 10px;
	text-align: center;
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	transition: transform 0.2s, border-color 0.2s;
}

.shortcut-card:hover {
	transform: translateY(-2px);
	border-color: var(--accent-color);
}

/* --- PLAYER RADIO --- */
.radio-section {
	background: var(--card-bg);
	padding: 25px;
	border-radius: 16px;
	border: 1px solid var(--border-color);
}

.radio-player {
	background: var(--card-bg);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.radio-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.radio-title {
	font-weight: 600;
	font-size: 16px;
}

.radio-status {
	font-size: 13px;
	color: var(--text-muted);
}

audio {
    width: 100%; /* S'adapte à la largeur du conteneur */
    max-width: 300px;
}

/* --- NOUVEAU BANDEAU HORLOGE --- */
.header-clock {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
}

.time-display {
    font-size: 2rem;
    letter-spacing: 5px;
    color: var(--accent-color);
    line-height: 1;
}

.date-display {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 600px) {
    .container {
        max-width: 95%; /* Utilise presque toute la largeur de l'écran */
        gap: 15px;      /* Réduit l'espace entre les blocs */
    }

    .time-display {
        font-size: 2.5rem; /* Réduit un peu la taille de l'horloge */
    }

    .search-section, .shortcuts-section, .radio-section {
        padding: 15px; /* Réduit le padding interne */
    }

    .shortcuts-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Boutons un peu plus petits */
        gap: 8px;
    }

    .radio-player {
        flex-direction: column; /* Empile les infos et le player */
        gap: 15px;
        align-items: center;
    }
}