#box1 {
  box-sizing: border-box;
  padding: 1%;
  width: 100.4%;
  background-image: url('images/bannière_tvrap.png');
  background-position: top;
  background-size: cover;  
  background-repeat: no-repeat;  
  position: relative;
  border: 3px solid rgb(221, 215, 215);
}

#conteneur1{
  position:relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height:100%;
  width:20%;
}

#conteneur2{
  position:absolute;
  top:0;
  height:60%;
  width:79%;
  left:20%;
}

#conteneur3{
  position:absolute;
  display: flex;
  justify-content: space-around;
  align-items: center;
  top:60%;
  height:40%;
  width:79%;
  left:20%;
}

button[type="text"]{
  position:absolute;
  background-color:rgb(169, 64, 126);
  width:25%;
  height:40%;
  right:10%;
  outline:none;
  font-size:clamp(13px, 3vw, 26px);
  border-radius:10px;
  border:solid;
  border-color:white;
  font-family:Cooper Black;
  text-align: center;
  cursor:pointer;
  top:15%;
  transition: .3s ease background-color;
}

.user-image {
  margin-right: 3vw;
}

.user-name {
  margin-right: 3vw;
}

button[type="text"]:hover{
  background-color: rgb(0, 0, 0);
}

.titre {
  position: absolute;
  top:10%;
  left:0;
  font-size: clamp(18px, 3.5vw, 50px);
  font-family: Gloucester MT Extra Condensed, Footlight MT Light;
  font-variant: small-caps;
  font-weight:bold;
  color:black;
  text-align: center;
}

.sous-titre {
  position: absolute;
  top:45%;
  left:0;
  font-size: clamp(15px, 2.5vw, 40px);
  font-family: Calibri Light, Stencil, Arial Black;
  font-weight:bold;
  color:#FF0000;
}

.acc{
  position: relative;
  font-size: clamp(13px, 2vw, 26px);
  font-family: Cooper Black;
  color: rgb(32, 109, 224);
}

.rdj{
  position: relative;
  font-size: clamp(13px, 2vw, 26px);
  margin-left: auto;
  font-family: Cooper Black;
  color: rgb(32, 109, 224);
}
.cdj{
  position: relative;
  font-size: clamp(13px, 2vw, 26px);
  margin-left: auto;
  font-family: Cooper Black;
  color: rgb(32, 109, 224);
}
.com{
  position: relative;
  font-size: clamp(13px, 2vw, 26px);
  margin-left:auto;
  font-family: Cooper Black;
  color: rgb(32, 109, 224);
}

.lrc{
  position: relative;
  font-size: clamp(13px, 2vw, 26px);
  margin-left:auto;
  margin-right:10%;
  font-family: Cooper Black;
  color: rgb(32, 109, 224);
}

.bas {
  position:relative;
  bottom: 0;
  width:100%;
}

.break{
  color:white;
  box-sizing: border-box;
  width:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: auto;
  background: black;
  border-top:3px solid lightgrey;
  border-bottom:3px solid lightgrey;
}

#box2 {
  box-sizing: border-box;
  position:relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: black;
  width:100.4%;
  height: auto;
  margin-top:5%;
  margin-bottom:5%;
  border:3px solid rgb(221, 215, 215);
  border-radius:10px;
}

.chaines {
  width:100%;
  margin-top:0; /* remove top margin so heading sits at top of box */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:clamp(13px, 2vw, 35px);
  font-weight: bold;
  text-decoration: underline;
  letter-spacing: 0.08em;
  word-spacing: 0.05em;
  font-family: Arial Black;
  color: white;
}

#box3{
  box-sizing: border-box;
  position:relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
  width:100.4%;
  height: auto;
  margin-top:5%;
  margin-bottom:5%;
  border:3px solid rgb(0, 0, 0);
  border-radius:10px;
}

.chaines2 {
  width:100%;
  margin-top:1.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:clamp(13px, 2vw, 35px);
  font-weight: bold;
  text-decoration: underline;
  letter-spacing: 0.08em;
  word-spacing: 0.05em;
  font-family: Arial Black;
  color: black;
}


#box4{
  box-sizing: border-box;
  position:relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url('images/bann.png');
  background-size: cover;
  background-repeat: no-repeat;
  width:100.4%;
  height: auto;
  margin-top:0; /* remove extra top margin */
  margin-bottom:5%;
  border:3px solid rgb(221, 215, 215);
  border-radius:10px;
}

#mobile-banner {
  display: none;
}

#mobile-banner img {
  flex-grow: 1;
  width:50%;
  height:20px;
  object-fit: contain;
  padding: 0 10px;
}

.icon-container {
  flex-grow: 1;
  text-align: center;
}

.icon-container a {
  display: block;
  color:white;
}

.icon-container p {
  margin: 0;
  font-size: clamp(11px,2vw,16px);
  font-family:Bahnschrift;
}

.content-box, .content-box2, .content-box3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.content-box iframe,
.content-box2 iframe,
.content-box3 iframe {  
  flex-basis: calc(25% - 2%); 
  height:27.5vh;
  box-sizing: border-box;
  margin:1%;
}

@keyframes fadeInPreview {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

a {
  text-decoration: none;
  color: rgb(32, 109, 224); 
}

c{
  text-decoration: none;
  color:white;
}

* {
 margin:0;
 padding:0;
 }

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 200vw;
  height: 200vh;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: float 30s infinite alternate ease-in-out;
}

.gradient-overlay.red {
  background: radial-gradient(circle, rgba(255, 0, 0, 0.3), transparent 60%);
}

.gradient-overlay.blue {
  background: radial-gradient(circle, rgba(0, 150, 255, 0.2), transparent 60%);
}

@keyframes float {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-40%, -60%) scale(1.2);
  }
}

.navbar {
    border-bottom: 1.5px solid black;
    top: 0;
    padding: 0.75% 1.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #c043e5, #4a7aff);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(12px);
    position: sticky;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo img {
    height: 60px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.08);
}

.nav-links {
    width:75%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12%;
}

.nav-links.connected {
    width: 60%;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: lightgrey;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-avatar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.user-avatar {
    height: 65px;
    width: 65px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s;
}

.user-avatar-link:hover .user-avatar {
    transform: scale(1.1);
}

.user-avatar-link:hover {
    color: #ff416c;
}

.logout-btn, .login-btn {
    padding: 1% 2%;
}

.logout-btn:hover, .login-btn:hover {
    transform: translateY(-2px);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, #001a33, #002244, #003366, #001a33);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

.bas {
  position:relative;
  bottom: 0;
  width:100%;
}

.break{
  color:white;
  box-sizing: border-box;
  width:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: auto;
  background: black;
  border-top:3px solid lightgrey;
  border-bottom:3px solid lightgrey;
}

@font-face {
    font-family: "Bahnschrift";
    src: url("https://db.onlinewebfonts.com/t/0a6ee448d1bd65c56f6cf256a7c6f20a.eot");
    src: url("https://db.onlinewebfonts.com/t/0a6ee448d1bd65c56f6cf256a7c6f20a.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/0a6ee448d1bd65c56f6cf256a7c6f20a.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/0a6ee448d1bd65c56f6cf256a7c6f20a.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/0a6ee448d1bd65c56f6cf256a7c6f20a.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/0a6ee448d1bd65c56f6cf256a7c6f20a.svg#Bahnschrift")format("svg");
    font-display: swap;
}

@font-face {
  font-family: 'Agency FB';
  src: url('../style/polices/AgencyFB.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@media screen and (min-width: 0px) and (max-width: 600px) and (orientation: portrait) {
    .navbar {
        display: none;
    }
    
    .main-content {
      margin-top: 80px;
      margin-bottom: 30px;
    }
    
    #mobile-banner {
        top: 0;
        position: fixed;
        display: flex;
        width:96.5%;
        background: linear-gradient(90deg, #c043e5, #4a7aff);
        justify-content: space-between;
        align-items: center;
        border: 1px solid white;
        padding: 1% 1.5%;
        z-index: 1001;
    }
    
    #mobile-banner .profil-box {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    #mobile-banner .profil-box a img {
        margin: 0;
        padding: 0;
        width: 25px;
        height: 25px;
        object-fit: contain;
    }
     
    #mobile-banner .icon-container img {
        width: 25px;
        height: 25px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        background: transparent;
    }
    
    #mobile-banner .icon-container:first-child img {
        width: 60px;
        height: 25px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
        
    .break{
        border-top:1px solid lightgrey;
        border-bottom:1px solid lightgrey;
    }
}