#connexion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#conn {
    width: 80%;
    background: #0e1c2f;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(80, 223, 219, 0.3), 0 0 30px rgba(80, 223, 219, 0.1) inset;
    padding: 40px 30px;
    font-family: 'Bahnschrift', sans-serif;
    color: white;
}

#conn-form h1 {
    text-align: center;
    color: #50dfdb;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.8em;
    letter-spacing: 1px;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid red;
    padding: 10px;
    color: red;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.separation {
    height: 2px;
    background: linear-gradient(90deg, #50dfdb, #4a7aff);
    border-radius: 2px;
    margin-bottom: 20px;
}

.corps-formulaire {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-group {
    display: flex;
    flex-direction: column;
}

.sub-group label {
    font-weight: bold;
    color: #aee5e3;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.sub-group input[type="text"],
.sub-group input[type="password"] {
    margin-bottom:20px;
    padding: 15px 0 15px 1%;
    background: #1f2f49;
    border: 2px solid #50dfdb;
    border-radius: 8px;
    font-size: 1em;
    color: white;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.sub-group input[type="text"]:focus,
.sub-group input[type="password"]:focus {
    border-color: #00ffcc;
    background-color: #2a3e5f;
}

.pied-formulaire {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.submit-button {
    background-color: #28a745;
    color: white;
    font-size: clamp(18px, 2vh, 35px);
    padding: 15px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.3s ease;
    border: 2px solid #28a745;
}

.submit-button:hover {
    background-color: #218838;
    transform: scale(1.02);
}

.other-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.other-buttons button:nth-child(1) {
    background-color: #c043e5;
    color: white;
    font-size: clamp(14px, 1.75vh, 28px);
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #c043e5;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.other-buttons button:nth-child(1):hover {
    background-color: #a838c4;
    transform: scale(1.02);
}

.other-buttons button:nth-child(2) {
    background-color: #4a7aff;
    color: white;
    font-size: clamp(14px, 1.75vh, 28px);
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #4a7aff;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.other-buttons button:nth-child(2):hover {
    background-color: #3a65d1;
    transform: scale(1.02);
}

#mobile-banner {
  display: none;
}

.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;
}
    
@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%;
  }
}

@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 {
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #001a33, #002244, #003366, #001a33);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
  margin-top: 80px;
  margin-bottom: 80px;
  position: relative;
  min-height: 100%;
  flex: 1;
}

.bas {
  position: relative;
  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;
    }
}
