/* Petite personnalisation */
.left-panel {
  background: linear-gradient(135deg, #0A1E34 0%, #0A1E34 100%);
  color: #DDC6A7;
}

.img_logo {
  max-width: 100%;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #eee;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0 0.5rem;
}

.social-icon:hover {
  background-color: #ddd;
}

/* Sur les petits écrans, la colonne gauche sera masquée par défaut (d-none d-lg-flex) */

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  /*border: 1px solid #f1f1f1;*/
  perspective: 1000px;
  /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  /* Safari */
  backface-visibility: hidden;
  border-radius: 20px;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  background-color: #bbb;
  color: black;
  padding-top: 40px;
}

/* Style the back side */
.flip-card-back {
  background-color: dodgerblue;
  color: white;
  transform: rotateY(180deg);
}

#message_error {
  color: red;
  /*position: absolute;
      top: 10px;*/
}



/*body {
        margin: 0; 
        padding: 0;
        font-family: Arial, sans-serif;
        height: 100vh;
        display: flex;
    }*/
/*.left-panel {
        flex: 1;
        background: linear-gradient(135deg, #6F00FF 0%, #3A00FF 100%);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }
    .left-panel-content {
        max-width: 400px;
    }*/
/*.quote {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .author {
        margin-top: 2rem;
        font-style: italic;
        font-size: 0.95rem;
    }*/
/*.right-panel {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        position: relative;
    }*/
.form-container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/*h2 {
        margin-bottom: 1.5rem;
    }*/
label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

input {
  width: 100% !important;
  padding: 0.7rem !important;
  margin-bottom: 1rem !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
}

/*.btn {
        background: linear-gradient(135deg, #6F00FF 0%, #3A00FF 100%);
        color: #fff;
        border: none;
        padding: 0.8rem 2rem;
        border-radius: 4px;
        font-size: 1rem;
        cursor: pointer;
    }
    .btn:hover {
        opacity: 0.9;
    }*/
#nav_surcouche .card {
  border: 0px;
}

#nav_surcouche button {
  border: 5px solid #DBC6A6;
  border-radius: 30px;
  background-color: transparent;
  font-weight: bold;
}

.btn_accueil,
.btn_accueil:hover {
  text-transform: uppercase;
  background-color: #DDC6A7;
  font-weight: bold !important;
  letter-spacing: 3px;
}

.btn_accueil a {
  color: #000;
  text-decoration: none;
}

.message {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 4px;
}

.message.error {
  background-color: #ffe0e0;
  color: #c00;
}

.message.success {
  background-color: #e0ffe0;
  color: #080;
}

.top-right-link {
  position: absolute;
  top: 1rem;
  right: 2rem;
}

.top-right-link a {
  text-decoration: none;
  color: #555;
}

.top-right-link a:hover {
  text-decoration: underline;
}

/* Mobile Improvements */
@media (max-width: 991.98px) {
  .container-fluid.vh-100 {
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden;
  }

  body {
    background-color: #0A1E34;
  }

  .right-panel-mobile {
    background: linear-gradient(135deg, #0A1E34 0%, #0A1E34 100%) !important;
    color: #DDC6A7 !important;
    padding: 2rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 100vh;
    height: 100%;
  }

  .mobile-block-top {
    width: 100%;
    padding-top: 1rem;
    margin-bottom: 2rem;
  }

  .mobile-block-center {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .mobile-block-bottom {
    width: 100%;
    margin-top: auto;
    padding-bottom: 1rem;
  }

  .form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(221, 198, 167, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 650px;
  }

  .form-container h2 {
    font-size: 2.5rem !important;
  }

  .form-label {
    color: #DDC6A7;
    font-weight: 600;
    font-size: 1.8rem !important;
    margin-bottom: 0.8rem;
  }

  .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(221, 198, 167, 0.3) !important;
    color: #fff !important;
    padding: 1.2rem !important;
    font-size: 1.8rem !important;
    border-radius: 12px !important;
  }

  .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #DDC6A7 !important;
    box-shadow: 0 0 0 0.25rem rgba(221, 198, 167, 0.25) !important;
  }

  .btn-primary {
    background-color: #DDC6A7 !important;
    border-color: #DDC6A7 !important;
    color: #0A1E34 !important;
    font-weight: bold !important;
    padding: 1rem 3rem !important;
    border-radius: 12px !important;
    font-size: 1.8rem !important;
  }

  .social-icon {
    width: 60px !important;
    height: 60px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  .social-icon img {
    width: 35px !important;
    height: 35px !important;
  }

  .btn-mobile-shortcut {
    background: rgba(221, 198, 167, 0.1);
    border: 1px solid #DDC6A7;
    color: #DDC6A7;
    border-radius: 15px;
    padding: 1.2rem 0.2rem;
    transition: all 0.3s;
  }

  .btn-mobile-shortcut span {
    font-size: 2.5rem !important;
    margin-bottom: 8px;
  }

  .btn-mobile-shortcut small {
    font-weight: bold;
    letter-spacing: 1px;
  }

  .footer-mobile {
    text-align: center;
    opacity: 0.6;
    margin-top: 2rem;
  }
}