/* actual.css - version nettoyée */

:root {
    --accent: #99cc99;
    --text-light: #fff;
    --danger: red;
    --border-muted: grey;
    --input-bg: #777;
}
#menu, #flux{margin-top:50px;}
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;
}

.top-menu nav {
    display: flex;
    gap: 12px;
}

.top-menu a {
    text-decoration: none;
    color: #333;
    padding: 12px 17px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.top-menu a:hover,
    .top-menu a.active {
    background: #222;
    color: #fff;
}

.boutonlien {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 18px;
  border: none;
  border-radius: 8px;

  background: #fff;
  color: #fff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  cursor: pointer;
}

.btn-favori{
    height: 28px;
}

.form-fluxfan{display: inline;}
.btn-fluxfan-ok{
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url("img/fav-ok2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    border: none;
}
.btn-fluxfan-none{
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url("img/fav-none.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    border: none;
}

.top-menu form{
    height: 21px;
}

#mdp, #mdp_inscription{width: 100%;}
.connect{text-align: center;}
#imgdeco{width: 28px;display: inline-block;}
.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  padding: 28px;
  background: #3a3a3a;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.auth-card h1 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 32px;
  color: #b8b8b8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  color: #cfcfcf;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #666;
  border-radius: 8px;
  background: #f5f5f5;
  color: #222;
  font-size: 15px;
}

.form-group input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.auth-form button {
  margin-top: 8px;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  background: #e9e9e9;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-form button:hover {
  background: #ffffff;
}

.auth-form button:active {
  transform: scale(0.98);
}

@media (max-width: 760px) {
  .auth-page {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-card {
    max-width: none;
  }
}

/* Titres */
h1 {
    margin-bottom: 5px;
    text-align: center;
}

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
}

h3 {
    margin-top: 7px !important;
}

h4 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Layout général */
.tm-col,
.tm-gallery-container {
    text-align: center;
    font-size: 15px;
}
.tm-col{display: inline-block!important;}


.tm-text-link {
    color: var(--text-light);
}

#flux,
#flux-keyword {
    border-top: none;
}

#menuadd {
    border-top: 1px solid var(--text-light);
    border-bottom: 1px solid var(--text-light);
}

/* États / helpers */
.underline {
    text-decoration: underline;
}

.classvert,
.classrouge {
    color: var(--accent);
}

.bordervert {
    border: 1px solid var(--accent) !important;
}

.classvert2,
.classrouge2 {
    text-decoration: none;
    color: var(--danger);
}

.classrouge2 {
    padding-left: 0;
}

/* Menu utilisateur */
.menuuser {
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid var(--text-light);
}

.menuuser span {
    display: inline-block;
    width: 25%;
    min-width: 200px;
    text-align: center;
}

.menuuser span a {
    text-decoration: underline;
}

/* Menus playlists */
.menuplaylist {
    display: inline-block;
}

.choixplaylist {
    display: inline-block;
    padding-top: 3px;
    padding-right: 6px;
    line-height: 1.4;
}

.menuplaylists {
    margin-bottom: 15px;
    text-align: center;
}
.linkplaylist{
    color:#99CC99;
    border: 1px solid #99CC99;
    border-radius: 10px;
    padding: 1px;
    display: inline-block;
}

.auth-page h1{color:#99CC99;}
.auth-page .form-group label{font-size: 20px;}

.menuplaylists li {
    display: inline-block;
    margin: 3px;
    padding: 3px 2px 0;
    list-style: none;
    line-height: 1.8;
}

.menuplaylists li a {
    margin: 0 5px;
    padding: 6px;
    font-size: 1.2em;
    border: 1px solid var(--border-muted);
    border-radius: 8px;
}

/* Menu ajout */
.menuadd2 {
    display: inline-block;
    width: 25%;
    min-width: 300px;
    vertical-align: top;
}

.menuadd2 h3 {
    margin-top: 0;
    margin-bottom: -14px;
    line-height: 2.4;
}

/* Formulaires */
#idyoutube_playlist_clean,
#url_playlist,
#nom_playlist,
#nomflux,
#urlflux {
    background-color: var(--input-bg);
}

#idplaylist {
    width: 176px;
}

/* Abonnements */
.abonner,
.desabonner {
    text-decoration: none;
}

.abonner {
    color: var(--danger);
}

.abonner:hover,
.desabonner {
    color: var(--accent);
}

.desabonner:hover {
    color: var(--danger);
}

/* Descriptions */
.descriptions,
.description {
    overflow-x: hidden;
    overflow-y: auto;
}

.descriptions {
    width: 100%;
    max-height: 312px;
}

.description {
    display: inline-block;
    width: 100%;
    min-height: 50px;
    max-height: 300px;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: left;
}

/* Couleurs par style */
.style1 a,
.style17 a {
    border-bottom: 1px solid yellow;
}

.style2 a,
.style7 a,
.style11 a,
.style19 a {
    border-bottom: 1px solid pink;
}

.style3 a,
.style6 a,
.style16 a {
    border-bottom: 1px solid red;
}

.style4 a,
.style9 a,
.style20 a {
    border-bottom: 1px solid cyan;
}

.style5 a {
    border-bottom: 1px solid currentColor;
}

.style8 a,
.style10 a {
    border-bottom: 1px solid indigo;
}

.style12 a {
    border-bottom: 1px solid beige;
}

.style13 a,
.style14 a,
.style18 a {
    border-bottom: 1px solid orange;
}

.style15 a {
    border-bottom: 1px solid green;
}

/* Caches vidéo */
.cache1,
.cache2,
.cache3 {
    position: absolute;
    z-index: 2;
    width: 308px;
    height: 55px;
    color: black;
    opacity: 0.7;
}

.cache1 {
    top: 48px;
}

.cache2,
.cache3 {
    top: 26px;
}
#gallery{
    scroll-margin-top: 150px;
}
#gallery ul{

}
#gallery ul li{
    list-style-type: none;
}
#gallery ul li h2, #gallery ul li h2 a{
    color: #99CC99 !important;
    text-decoration: none !important;
}
#gallery ul li h2 a:hover{
    color: #99CC99 !important;
    text-decoration: underline !important;
}

/* Galerie vidéo */
.tm-gallery-item {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.vfigure{
    width: 330px;
    height: auto;
}

.tm-gallery figure {
    position: relative;
    z-index: 50;
    overflow: hidden;
    width: 25%;
    min-width: 310px;
    max-width: 310px;
    margin: 3px;
    text-align: center;
    border: 1px solid var(--border-muted);
    border-radius: 10px 10px 4px 4px;
}

.tm-gallery figure img {
    opacity: 1 !important;
}

.yt-play {
    min-width: 206px;
    height: 170px;
    padding: 0;
}

.tk1,
.tk2 {
    position: absolute;
    z-index: 10;
    width: 100%;
    display:none;
}

.tk1 {
    height: 40px;
    margin-top: 0px;
}

.tk2 {
    top: 100%;
    float: left;
    height: 50px;
    margin-top: -162px;
}




.tk3,
.tk4 {
    position: absolute;
    z-index: 10;
    width: 100%;
}

.tk3 {
    bottom:0%;
    height: 54px;
    margin-bottom: 108px;
}

.tk4 {
    bottom: 0%;
    float: left;
    height: 40px;
    margin-bottom: 5px;
}

.centervideo {
    width: 100%;
    height: 100%;
}

/* Keywords / textes */
.keyword {
    font-size: 13px;
    color:grey;
}

.keyword a,
p,
p .keyword a {
    color: var(--accent);
}

p {
    line-height: 1.4;
}

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

figure:hover p {
    color: var(--text-light);
}

.surligne {
    padding: 0 2px;
    color: var(--text-light);
    background-color: var(--accent);
}

.tag-index {
    width: 100%;
    margin: 20px auto;
    font-family: 'Poppins', sans-serif;
}

.tag-section {
    margin-bottom: 18px;
}

.tag-letter {
    margin: 0 0 8px;
    padding: 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
    text-decoration: none;
    white-space: nowrap;
}

.tag-item:hover {
    color: #99cc99;
    text-decoration: underline;
}

.tag-icon {
    color: #2ca25f;
    font-size: 11px;
    line-height: 1;
}

.tag-name {
    color: lightgrey;
}

.tag-count {
    color: lightgrey;
    font-weight: 600;
}

.search-tags {
    position: relative;
}

#keyword-search {
    width: 105px;
    padding: 3px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-top: 10px;
    color:black;
}

#keyword-results {
    width: 175px;
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
}

.keyword-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: grey;
}

.keyword-item:hover {
    background: #f2f2f2;
}

.keyword-count {
    color: #777;
    font-size: 13px;
}

.liste-styles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.liste-styles li {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.liste-styles span {
    margin: 0;
    color: #99CC99 !important;
    text-decoration: underline !important;
    margin-top: 7px !important;
    font-size: 1.17em;
    font-weight: bold;
    unicode-bidi: isolate;
    font-family: 'Poppins', sans-serif;
}

#formmenucache{
    display: inline-block;
    width: 100%;
    text-align: center;
}