.cadre.disabled {
    position: relative;
    pointer-events: none;
    opacity: 0.5;
}

.cadre .coming-soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffcc00;
    font-size: clamp(25px, 3vh,40px);
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Agency FB', sans-serif;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px #ffcc00;
    animation: pulse-soon 2s infinite;
}

@keyframes pulse-soon {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

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

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

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

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

.conteneur1 {
  margin-top:10%;
  margin-bottom: 10%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 40vh;
}

.image-container {
    margin-bottom: 1%;
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    max-width: 90%;
    max-height: 90%;
    display: block;
}

.rectangle-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.rectangle {
  border-radius:3px;
  background-image: url("images/bann.png");
  width: 100%;
  height: 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;  
  background-repeat: no-repeat;  
}

.rectangle h1 {
  color: lightgrey;
  font-size: 1.5vw;
  font-family: 'Arial', sans-serif;
  transition: color 0.3s ease;
}

.rectangle:hover {
  filter: brightness(90%);
}

.rectangle:hover h1 {
  color: white;
}

#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;
}

.cadre {
  width: calc(28% - 3%);
  height: auto;
  position: relative;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 0 15px #50dfdb, 0 0 25px #50dfdb inset;
  transition: transform 0.4s ease-in-out;
  background: #0e1c2f;
  border-radius: 10px;
  padding: 10px;
  will-change: transform, opacity;
}

.cadre:hover {
  transform: scale(1.05);
}

.cadre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(80, 223, 219, 0.2), transparent 70%);
  animation: pulse-bg 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.cadre::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #50dfdb 60deg,
    transparent 120deg,
    #50dfdb 180deg,
    transparent 240deg,
    #50dfdb 300deg,
    transparent 360deg
  );
  animation: rotate-border 3s linear infinite;
  z-index: 2;
  opacity: 0.1;
  filter: blur(3px);
  pointer-events: none;
}

.cadre .overlay-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

.cadre .overlay-border span {
  position: absolute;
  display: block;
  background: #50dfdb;
  animation-timing-function: linear;
}

.cadre .overlay-border span:nth-child(1) {
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  animation: animate-top 4s infinite;
}

.cadre .overlay-border span:nth-child(2) {
  top: 0;
  right: 0;
  width: 2px;
  height: 0%;
  animation: animate-right 4s infinite;
  animation-delay: 1s;
}

.cadre .overlay-border span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  animation: animate-bottom 4s infinite;
  animation-delay: 2s;
}

.cadre .overlay-border span:nth-child(4) {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 0%;
  animation: animate-left 4s infinite;
  animation-delay: 3s;
}

.rectangle-container {
  position: relative;
  z-index: 4;
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-bg {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

@keyframes animate-top {
  0% { width: 0%; }
  25% { width: 100%; }
  100% { width: 100%; }
}

@keyframes animate-right {
  0%, 25% { height: 0%; }
  50% { height: 100%; }
  100% { height: 100%; }
}

@keyframes animate-bottom {
  0%, 50% { width: 0%; }
  75% { width: 100%; }
  100% { width: 100%; }
}

@keyframes animate-left {
  0%, 75% { height: 0%; }
  100% { height: 100%; }
}

@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: clamp(12px, 2vw, 26px);
    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) {
    .rectangle{
        height:5vh;    
    }
    
    .rectangle h1{
       font-size: 17px; 
       color:white;
    }
    
    .conteneur1 {
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      display:grid;
      margin-bottom: 0;
      height: auto;
    }
    
    .image-container{
        height:auto;
    }
    
    .cadre {
        margin-left:20%;
        padding:0;
        width:60%;
        margin-bottom:7.5%;
        height: auto;
    }
    
    .navbar {
        display: none;
    }
    
    .main-content {
      margin-top: 40px;
    }
    
    #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;
    }
}
