/* Feuille de style des formulaires (thème RADIO ☢️ ACTIF) */

/* Encart "Ecoutez vos Animateurs" + badge On Air */
.animators-encart {
    max-width: 720px;
    margin: 30px auto;
    background-color: #1a033c;
    border: 1px solid #3a2d56;
    border-radius: 15px;
    padding: 25px 30px;
    text-align: center;
}

.animators-encart h2 {
    margin-top: 0;
    border-bottom: 2px solid #f258b2;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.animators-encart ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.animators-encart li {
    padding: 10px 0;
    border-bottom: 1px solid #3a2d56;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.animators-encart li:last-child {
    border-bottom: none;
}

.animators-encart a {
    color: #f258b2;
    text-decoration: none;
    font-weight: bold;
}

.animators-encart a:hover {
    text-decoration: underline;
}

.on-air-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    background-color: #c0392b;
    color: #fff;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    vertical-align: middle;
    animation: on-air-pulse 1.5s infinite;
}

@keyframes on-air-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.form-card {
    max-width: 720px;
    margin: 30px auto;
    background-color: #1a033c;
    border: 1px solid #3a2d56;
    border-radius: 15px;
    padding: 35px 40px;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.form-card h1 {
    margin-top: 0;
    border-bottom: 2px solid #f258b2;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background-color: #0c001f;
    border: 1px solid #3a2d56;
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #f258b2;
    box-shadow: 0 0 0 3px rgba(242, 88, 178, 0.25);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-control-file {
    width: 100%;
    padding: 10px 0;
    color: #ccc;
    font-size: 0.95em;
}

.form-text {
    display: block;
    margin-top: 6px;
    color: #8b809e;
    font-size: 0.82em;
}

.text-danger {
    color: #ff6b9d;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #3a2d56;
    color: #f258b2;
    font-size: 0.75em;
    font-weight: bold;
    cursor: help;
    margin-left: 4px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s;
}

.btn-primary {
    background-color: #f258b2;
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.04);
    opacity: 0.92;
}

.mt-3 {
    margin-top: 20px;
}

.alert {
    max-width: 720px;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: bold;
}

.alert-danger {
    background-color: rgba(255, 107, 157, 0.15);
    border: 1px solid #ff6b9d;
    color: #ff9ec4;
}

.alert-success {
    background-color: rgba(35, 165, 90, 0.15);
    border: 1px solid #23a55a;
    color: #7ee2a8;
}

.current-bg {
    margin-top: 10px;
}

.current-bg img {
    border: 1px solid #3a2d56;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Page de diffusion personnalisée d'un animateur */
.content-stream-animator {
    min-height: 100vh;
    padding: 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Sur la page de diffusion, le footer reste dans le flux du main
   pour s'afficher sur l'image de fond de l'animateur */
.content-stream-animator .site-footer {
    margin-top: auto;
    width: 100%;
}

/* Bouton avatar (déclencheur du drawer) en haut à gauche */
.stream-info-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #f258b2;
    background-color: rgba(26, 3, 60, 0.9);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}
.stream-info-toggle:hover { transform: scale(1.08); }
.stream-info-toggle img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Drawer latéral */
.stream-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background-color: rgba(26, 3, 60, 0.96);
    border-right: 1px solid #3a2d56;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 60;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}
.stream-drawer.open { transform: translateX(0); }

.stream-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 2px solid #f258b2;
}
.stream-drawer-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}
.stream-drawer-close {
    background: none;
    border: none;
    color: #f258b2;
    font-size: 1.8em;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.stream-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-block {
    background-color: #0c001f;
    border: 1px solid #3a2d56;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}
.drawer-block h3 {
    margin-top: 0;
    color: #f258b2;
    font-size: 1.05em;
}
.drawer-block p { margin: 0; color: #ccc; }

.stream-drawer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.stream-drawer-social .btn { border-radius: 25px; }

.stream-drawer-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #3a2d56;
    color: #8b809e;
    font-size: 0.85em;
    text-align: center;
}
.stream-drawer-footer a { color: #8b809e; text-decoration: none; }
.stream-drawer-footer a:hover { text-decoration: underline; }
.stream-drawer-footer p { margin: 6px 0; }

/* Overlay de fermeture */
.stream-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 55;
}

/* Lecteur audio centré seul sur la page */
.stream-player-only {
    margin: auto; /* centre verticalement et horizontalement dans le main flex */
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
}
.radio-player-section {
    background-color: rgba(12, 0, 31, 0.85);
    border: 1px solid #3a2d56;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}
.radio-player-section h3 {
    color: #f258b2;
    margin-top: 0;
    font-size: 1.1em;
}
.radio-player-section audio {
    width: 100%;
    max-width: 420px;
    border-radius: 25px;
    border: 2px solid #f258b2;
    display: block;
    margin: 0 auto;
}

/* Liste des dernières créations (titre + ancienneté) */
.creations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.creations-list li {
    padding: 12px 0;
    border-bottom: 1px solid #3a2d56;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
}

.creations-list li:last-child {
    border-bottom: none;
}

.creations-list a {
    color: #f258b2;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.02em;
}

.creations-list a:hover {
    text-decoration: underline;
}

.creation-age {
    flex-shrink: 0;
    color: #8b809e;
    font-size: 0.82em;
    white-space: nowrap;
}

.sondage-title {
    color: #f258b2;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.02em;
}

.sondage-title:hover {
    text-decoration: underline;
}

/* Centrage uniquement des titres d'encarts (Créations, Sondages) */
.creations-title-centered {
    text-align: center;
}
