:root {
    --bg: #050816;
    --card-bg: #0b1020;
    --border: #1f2937;
    --accent: #4fc3f7;
    --text: #f9fafb;
    --muted: #9ca3af;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: radial-gradient(circle at top, #111827, #020617);
    color: var(--text);
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
}

header svg {
    width: 60px;
    height: 60px;
}

.info {
    text-align: center;
    padding: 10px;
}

/* 🔵 Boutons en haut */
.top-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

.btn-top {
    background: #d7eaff;
    color: #0078ff;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
    display: block;
    width: 180px;
    text-align: center;
}

.btn-top:hover {
    background: var(--accent);
    color: #000;
}

/* Weather + Map layout */
.weather-map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.weather-details {
    max-width: 340px;
    width: 90%;
    margin: 0 auto;
    border-radius: 16px;
}

.map-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

body {
    overflow-x: hidden;
}

#map {
    width: 50%;
    height: 350px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Choix des pays */
.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 190px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #1e1e2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}
/*
.IA-Image 
{
    background: #d7eaff;
    color: #0078ff;
    padding: 10px 12px;
    border-radius: 8px;
    height: 20vh;
    width: 180px;
}
*/
/* Animation du bouton IA-Images */
.IA-Image {
    padding: 14px 22px;
    border-radius: 20px;
    text-decoration: none;
    color: #1e00ff;
    animation: iaGlow 2.5s ease-in-out infinite;
    transition: transform 0.25s ease, filter 0.25s ease;
    cursor: pointer;
    height: 15vh;
    background: linear-gradient(135deg, #ff1744, #ff6d00);
    width: 180px;
}

/* Halo lumineux bleu et violet */
@keyframes iaGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px #398cff);
    }
    50% {
        filter: drop-shadow(0 0 12px #a855f7);
    }
}

/* Effet au passage de la souris */
.IA-Image:hover {
    transform: scale(1.06);
    filter: brightness(1.12);
}

/* Respect des préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
    .IA-Image {
        animation: none;
        transition: none;
    }
}
/**** Version mobile ****/

@media (max-width: 625px) {

    /* 🔵 Conteneur des 4 boutons */
    .top-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        padding: 10px;
        position: relative;
    }

    /* 🔵 Boutons */
    .btn-top,
    .monetag-btn {
        width: 180px;
        text-align: center;
        padding: 20px 12px;
        border-radius: 10px;
        font-weight: bold;
        height: 20vh;
    }

    /* 🔵 Carte */
    #map {
        width: 100%;
        height: 30vh;
    }

    /* 🔵 Météo */
    #weather-local,
    #weather-radio {
        width: 100%;
        text-align: center;
    }

    /* Choix des pays */
    @media (max-width: 600px) {
        .toggle-btn {
            width: 180px;
            font-size: 14px;
        }
    }

    /* 🔵 Liste des pays */
    .country-list {
        max-height: 300px;
        overflow-y: auto;
    }

    /* 🔵 Lecteur audio */
    #audio-player {
        width: 100%;
    }

    /* 🔵 Loader */
    .loader-spinner {
        /* Dimensions déjà définies plus bas */
    }
}

/*** ICI la fin de la version GSM ****/

.weather-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 260px;
}

.weather-box {
    background: #d7eaff;
    color: #135597;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.weather-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.weather-loading {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.weather-city {
    font-size: 1rem;
    font-weight: 600;
}

.weather-temp {
    font-size: 2.2rem;
    font-weight: 700;
}

.weather-icon {
    font-size: 2rem;
}

/* Weather details panel */

/* Fenêtre météo détaillée */
.weather-details {
    display: none;
    position: fixed;

    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);

    width: min(92vw, 420px);
    max-width: calc(100vw - 24px);
    max-height: 75vh;
    overflow-y: auto;
    box-sizing: border-box;

    padding: 22px;
    color: #e5e7eb;
    background: #111827;

    border: 1px solid #334155;
    border-radius: 20px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

/* Affichage après clic sur la météo */
.weather-details.show {
    display: block;
}

/* Titre */
.weather-details h2 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.4rem;
}

/* Informations météo */
.weather-details p {
    line-height: 1.6;
    margin: 12px 0;
}

/* Bouton Fermer */
.weather-details button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 18px;

    border: none;
    border-radius: 10px;

    background: #2563eb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.weather-details button:hover {
    background: #1d4ed8;
}


/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

/* Controls */
.controls label {
    display: block;
    margin-top: 8px;
}

.controls select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #020617;
    color: var(--text);
}

/* Country list */
.country-list {
    max-height: 300px;
    overflow-y: auto;
    background: var(--card-bg);
    border: 3px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
}

/* Hidden */
.hidden {
    display: none !important;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    cursor: pointer;
}

.country-item:hover {
    background: rgba(255,255,255,0.05);
}

.country-flag {
    width: 32px;
    height: 24px;
    border-radius: 3px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #020617;
    color: var(--text);
    cursor: pointer;
}

.tab-btn.active {
    background: var(--accent);
    color: #020617;
}

/* Loader */
#loader {
    display: none;
    text-align: center;
    margin: 10px 0;
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Search */
.search-box {
    margin: 10px 0;
}

.search-box input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #020617;
    color: var(--text);
}

.hint {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Radios */
#radios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
    justify-items: center;
}

.radio-item {
    width: 100px;
    height: 100px;
    background: #0d1b2a;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px #0004;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.radio-name {
    font-weight: bold;
    position: absolute;
    top: 60px;
    color: #acff11ee;
}

.radio-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px;
}

.radio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #1e90ff;
}

.radio-genre {
    position: absolute;
    top: 0;
    font-size: 0.8rem;
    color: #ff1e;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    font-size: 22px;
    height: 60px;
}

/* Audio player */
#audio-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #020617;
    border-top: 1px solid var(--border);
}

#audio-player audio {
    width: 100%;
    height: 20px;
}

/* Mini player */
#mini-player {
    position: fixed;
    right: 220px;
    bottom: 10px;
    background: var(--card-bg);
    border-radius: 999px;
    padding: 6px 10px;
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: grab;
    z-index: 900;
}

#mini-player img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

#mini-player .title {
    max-width: 140px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mini-stop {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #d7eaff;
    color: #000;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.modal-content h2,
.modal-content p {
    color: #000;
}

/* Responsive */
@media (max-width: 900px) {
    .weather-map-wrapper {
        flex-direction: column;
    }

    .weather-column {
        width: 500%;
    }
}

/* Correction du flou des tuiles Leaflet */
.leaflet-tile {
    image-rendering: crisp-edges;
    transform: scale(1);
}

body {
    background-color: #0b0c1a !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #4da6ff;
}

a {
    color: #66ccff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-retour {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #0078ff;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-retour:hover {
    background-color: #005fcc;
    transform: scale(1.05);
}

/* fenetre blog */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

.blog-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0077cc, #00aaff);
    color: white;
}

.blog-container {
    display: grid;
    gap: 25px;
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

.post {
    background: #00c7ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post h2 a {
    color: #0077cc;
    text-decoration: none;
}

.post p {
    margin: 10px 0;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0077cc;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #222;
    color: white;
}

.calendar {
    text-align: center;
}

#calendar-box {
    display: inline-block;
    padding: 20px 30px;
    background: #1f2937;
    border-radius: 12px;
    border: 1px solid #374151;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    animation: pop 0.6s ease-in-out;
}

#calendar-day {
    font-size: 3rem;
    font-weight: bold;
    color: #60a5fa;
}

#calendar-month {
    font-size: 1.4rem;
    margin-top: 5px;
    color: #93c5fd;
}

#calendar-year {
    font-size: 1rem;
    margin-top: 3px;
    color: #4fc3f7;
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* repositionner les pubs Monetag à gauche */
div[id^="monetag"] {
    right: auto !important;
    left: 10px !important;
    top: 20px !important;
    z-index: 9999 !important;
}

.monetag-btn:hover {
    background-color: #d7eaff;
    transform: scale(1.05);
    width: 180px;
}

/* ================================
   🌍 BOUTON LIVE - BOUTON PRINCIPAL
   ================================ */

.live-button {
    position: relative;
    left: -16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 180px;
    min-width: 230px;
    padding: 14px 22px;

    border-radius: 16px;
    text-decoration: none;
    color: #fff;

    background: linear-gradient(135deg, #ff1744, #ff6d00);

    box-shadow:
        0 6px 20px rgba(255, 23, 68, 0.45),
        0 0 0 2px rgba(255,255,255,0.15) inset;

    font-family: Arial, sans-serif;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;

    animation: live-pulse 2s infinite;
}

/* Icône 🌍 */

.live-icon {
    font-size: 32px;
    line-height: 1;
}

/* Texte */

.live-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.live-text strong {
    font-size: 23px;
    letter-spacing: 1px;
}

.live-text small {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.95;
}

/* Flèche */

.live-arrow {
    font-size: 25px;
    margin-left: 5px;

    transition: transform 0.25s ease;
}

/* Survol ordinateur */

.live-button:hover {
    transform: scale(1.06);

    box-shadow:
        0 10px 30px rgba(255, 23, 68, 0.65),
        0 0 25px rgba(255, 109, 0, 0.45);

    filter: brightness(1.08);
}

.live-button:hover .live-arrow {
    transform: translateX(6px);
}
/* Réduire la largeur du cadre météo local */
.weather-column {
    min-width: 0;
}

#weather-local {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}
.weather-box {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}
/* Animation légère */

@keyframes live-pulse {
    0%, 100% {
        box-shadow:
            0 6px 20px rgba(255, 23, 68, 0.45),
            0 0 0 2px rgba(255,255,255,0.15) inset;
    }

    50% {
        box-shadow:
            0 8px 28px rgba(255, 23, 68, 0.65),
            0 0 18px rgba(255, 109, 0, 0.35);
    }
}

/* 📱 Téléphone */

@media (max-width: 600px) {

    .live-button {
        width: calc(100% - 30px);
        max-width: 360px;

        min-width: 0;

        padding: 16px 18px;
        margin: 10px auto;

        border-radius: 18px;
    }

    .live-icon {
        font-size: 34px;
    }

    .live-text strong {
        font-size: 24px;
    }

    .live-text small {
        font-size: 11px;
    }

    .live-arrow {
        font-size: 23px;
    }
}

/* ===== VITRINE RADIOS MONDE ===== */

.world-showcase {
    max-width: 1100px;
    margin: 35px auto;
    padding: 15px;
    color: white;
}

.showcase-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background:
      linear-gradient(135deg,
        rgba(5,15,40,.88),
        rgba(0,100,180,.70)),
      url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?w=1400")
      center/cover;
    box-shadow: 0 0 20px rgba(0,150,255,.3);
}

.showcase-content {
    max-width: 750px;
}

.showcase-label {
    color: #65c5ff;
    font-weight: bold;
    letter-spacing: 2px;
}

.showcase-hero h2 {
    font-size: clamp(26px, 5vw, 42px);
    color: white;
    margin: 20px 0;
}

.showcase-hero p {
    font-size: 17px;
    line-height: 1.7;
}

.showcase-play {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 25px;
    border-radius: 30px;
    background: #087df5;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.showcase-play:hover {
    transform: scale(1.06);
    background: #00bfff;
}

.showcase-heading {
    text-align: center;
    color: #48aaff;
    margin: 35px 0 20px;
}

.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.showcase-card {
    background: #19283d;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
}

.showcase-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
}

.showcase-card h3 {
    color: #55b5ff;
    padding: 0 10px;
}

.showcase-card p {
    color: #ddd;
    padding: 0 12px 12px;
}

@media(max-width:700px) {
    .showcase-gallery {
        grid-template-columns: 1fr;
    }

    .showcase-card img {
        height: 210px;
    }

    .showcase-hero {
        min-height: 260px;
    }
}

/* ===== RADIOS POPULAIRES ===== */

.popular-countries {
    max-width: 1100px;
    margin: 35px auto;
    padding: 20px;
    text-align: center;
}

.popular-countries h2 {
    color: #48aaff;
    font-size: 27px;
}

.popular-countries p {
    color: #ddd;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 25px;
}

.popular-grid button {
    padding: 17px 10px;
    border: 1px solid #258cff;
    border-radius: 12px;
    background: #19283d;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
}

.popular-grid button:hover {
    background: #087df5;
    transform: translateY(-4px);
    box-shadow: 0 0 15px #168cff;
}

@media(max-width: 650px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

