@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Element global de la page */
body {
    background-color: #F4F6FC;
    font-family: "Calibri", "PT Sans", serif;;
}
.main {
    width: 90%;
    max-width: 1600px;
    margin: auto;
}
header {
    margin: 40px 0px;
}

.col-50 {
    width: 50%;
    padding-right: 5%;
    display: flex;
    flex-direction: column;
}
.col-label {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.col-fields {
    width: 70%;
    display: flex;
    flex-direction: column;
}
.formulaire {
    display: flex;
    flex-direction: row;
}

.field {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

button {
    padding: 15px;
    border-radius: 25px;
    background-color: white;
    
}
button:disabled {
    border: solid 1px #c8d7f4;
    color: #c8d7f4;
    cursor: not-allowed;
}
.buttonArea {
    display: flex;
    flex-direction: row;
    margin: 25px 0 25px 0;

}
.btn-yellow {
    border: solid 1px #ACB507;
    color:#ACB507;
}
.btn-blue {
    border: solid 1px #264AA5;
    color: #264AA5;
    margin-left: 5%;
}

#area4entities {
    scroll-margin-top: 20px;
}
.zone1 {
  max-width: 570px;
}
.zone2 {
  font-size: 18px;
  color: #313131;
  margin: 10px 0;
}
.zone3 {
  background-color: #DAE0ED;
  display: flex  ;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #DAE0ED;
  border-radius: 12px;
  height: auto !important;
  max-width: 600px;
}
.zone3 table {
  background-color: white;
  width: 100% !important;
}
.zone4 {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
  background-color: #0b5aa012;
  border-radius: 15px;
  margin: 20px 0;
  padding: 20px 0;
}

/* Images */
header .logo-img {
    width: 210px;
    margin-bottom: 40px;
}
header .logo-img img {
    width: 100%;
}

#area4model {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 2fr);
    gap: 10px;
}
#step3 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* texte et titrage */

.subTitle {
    color:#313131;
    font-size:45px;
    font-weight: 400;
    font-family: "PT Sans", serif;
}

.titleH1 {
    color:#264AA5;
    font-size:65px;
    font-weight: bold;
    font-family: "PT Sans", serif;
    margin: 0;
}

label {
    font-weight: bold;
    font-size: 18px;
    color: #313131;
    display: flex;
    flex-direction: row;
}
input {
    height: 40px;
    background: #EAEEF6;
    border-radius: 20px;
    border: solid 1px #c8d7f4;
    padding-left: 15px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    width: 65%;
    color: #264AA5;
}
::placeholder {
    color:#7382a9;
    font-size: 12px;
    opacity: 1;
}
::-ms-input-placeholder {
    color:#7382a9;
    font-size: 12px;
}
h3 {
    color:#264AA5;
    font-size:22px;
}

.hide {
  display: none;
}

/* Styles pour l'affichage des entités */
.entities-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.entity-card {
    text-align: center;
    height: 150px;
    overflow: hidden;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.5s ease-out;
}

.model-card {
    text-align: center;
    height: 150px;
    overflow: hidden;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-items: center;
    transition: all 0.5s ease-out;
}

.entity-card:hover, .model-card:hover {
    border: solid 1px #264AA5;
    box-shadow: 0 2px 5px rgba(1, 65, 175, 0.1);
    transition: all 0.5s ease-out;
}

.entity-name {
    font-size: 18px;
    margin: 10px 0px;
}

.entity-image {
    width: 100%;
    height: auto;
    margin: 0 auto;
}
  /* **************************************** */
  /* **************** FOOTER **************** */
  /* **************************************** */
footer {
  margin: 50px auto;
}
footer div {
  display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}
footer div .image {
  width: 200px;
  margin-bottom: 40px;
}

footer div p {
  color : #264AA5;
  font-size: 14px;
  margin: 0;
}
footer div p img {
  margin-top: 1px;
  top: 4px;
  position: relative;
  width: 73px;
}

/* Animation du bouton */
.arrow-button {
    display: flex;
    padding: 15px 16px;
    border-radius: 40px;
    transition: all .3s ease;
    font-weight: bold;
    cursor: pointer;
    align-items: center;
    font-size: 14px;
}

.arrow-button > .arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
    transform: rotate(-45deg);
    margin: 0 6px;
    transition: all .3s ease;
}


#modifyInfo {
    width:100%;
}

.arrow-button > .arrow::before {
    display: block;
    background-color: currentColor;
    width: 3px;
    transform-origin: bottom right;
    height: 2px;
    position: absolute;
    opacity: 0;
    bottom: calc(-2px / 2);
    transform: rotate(45deg);
    transition: all .3s ease;
    content: "";
    right: 0;
}

.arrow-button:hover > .arrow {
    transform: rotate(-45deg) translate(4px, 4px);
}

.arrow-button:hover > .arrow::before {
    opacity: 1;
    width: 10px;
}

/* *********************************************************************** */
/* HIDE RADIO */
[type=radio] { 
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* IMAGE STYLES */
  [type=radio] + img {
    cursor: pointer;
  }
  
  /* CHECKED STYLES */
  .entity-card:has([type=radio]:checked + img) {
    outline: 2px solid #264AA5;
  }





  /* **************************************** */
  /********** Message d'alerte ************** */
  /* **************************************** */
  
.alert {
  position: fixed;
    top: 5%;
    left: 76%;
    transform: translateX(-50%);
    display: none;
    width: 55%;
    opacity: 0.8;
    padding: 10px;
    border-radius: 0.375rem;
    background: #f0fdf4;
    border: solid 2px #65e921;
    box-shadow: 5px 5px 10px 5px #394436;
    transition: all 0.5s ease-in-out;
}

.alert.active {
  animation: slide-in 0.5s ease-in-out;
}

.alert.hide {
  animation: slide-out 0.5s ease-in-out;
}

@keyframes slide-in {
  from {
    transform: translate(-50%, -100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes slide-out {
  from {
    transform: translate(-50%, 0);
  }
  to {
    transform: translate(-50%, -100%);
  }
}

.alert-inner {
  display: flex;
}

.alert-left {
  flex-shrink: 0;
}

.alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #4ade80;
}

.alert-body {
  margin-left: 0.75rem;
}

.alert-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #166534;
}

.alert-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #15803d;
}

@media (min-width: 640px) {
  .alert {
    top: 4%;
    right: 2%;
    width: auto;
  }
}




  /* **************************************** */
  /* ************* Back to Top ************** */
  /* **************************************** */
#backtotopBtn {
  text-align: center;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color .3s, 
    opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
#backtotopBtn:active {
  background-color: #555;
  color : white;
}
#backtotopBtn.show {
  opacity: 1;
  visibility: visible;
}

.arrowUp > .arrow {
  transform: rotate(-135deg);
  margin: 0 10px;
  top: 3px;
}

.arrowUp > .arrow::before {
    transform: rotate(45deg);
}
.arrowUp:hover > .arrow {
  transform: rotate(-135deg) translate(4px, 4px) !important;
}





  /* **************************************** */
  /* ************* SURCHARGE ************** */
  /* **************************************** */

#step2, #step3 {
  display: none;
}

/* Confidentialité */
#confidentialiteOptions {
  display:flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 15px;
}

#confidentialiteOptions label {
  margin-right: 10px;
}
#confidentialiteOptions input[type="radio"] {
  display:none;
}
#confidentialiteOptions input[type="radio"]:checked + label {
  font-weight: bold;
  color:#264AA5;
}
#confidentialiteOptions label {
  cursor: pointer;
  font-weight: normal;
  color: #313131;
  font-size: 16px;
}

#confidentialiteOptions label:hover {
  color:#264AA5;
  transition: all 0.3s ease-in-out;
  /* light glow */
  text-shadow: 0 0 1px #8e8e8e;
}

#confidentialiteSection {
  display: none;
}





.radio-menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  /*background: #f4f4f4;*/
  /*border-radius: 50px;*/
  padding: 6px 10px;
  width: fit-content;
  /*margin: 40px auto;*/
  font-family: 'Poppins', sans-serif;
  /*box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);*/
}

.radio-menu input[type="radio"] {
  display: none;
}

.radio-menu label {
  position: relative;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

.radio-menu label:hover {
  color: #007BFF;
}

.radio-menu .bubble {
  position: absolute;
  top: 6px;
  left: 10px;
  height: calc(100% - 12px);
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

/* Couleur texte actif */
.radio-menu input:checked + label {
  color: #007BFF;
  font-weight: 600;
}



/* .info-circle {
  border: solid 1px #264AA5;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #264AA5;
  margin-left: 5px;
  cursor: pointer;
  content: "i";
}
.info-circle::after {
  content: "i";
}

.info-text {

  transition: ease-in-out 0.8s;
  display: none;
  background-color: #e8f0fe;
  border: solid 1px #264AA5;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: #313131;
  opacity: 0;
} */

.info {
  position: relative;
  display: inline-block;
}

.info-circle {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #007BFF;
  border-radius: 50%;
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  line-height: 18px;
  margin-left: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.info-circle::after {
  content: "i";
}

.info-circle:hover {
  background-color: #0056b3;
}

/* Bloc de texte masqué par défaut */
.info-text {
  position: absolute;
  top: 120%;
  left: 0;
  z-index: 10;
  width: 320px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  /* pointer-events: none; */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Lien à l'intérieur */
.info-text a {
  color: #007BFF;
  text-decoration: underline;
}
.info-text a:hover {
  color: #0056b3;
}

/* Affichage au survol de l’icône OU de la bulle */
.info:hover .info-text,
.info-text:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.toggle-wrapper {
  margin:25px 0;
  color:#313131;
}
.toggle-container {
        cursor: pointer;
        display: flex;
        align-items: center;
        font-weight: 600;
        user-select: none;
    }

    .toggle-arrow {
        width: 16px;
        height: 16px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .toggle-arrow.open {
        transform: rotate(180deg);
    }

    .toggle-content {
        display: none;
        margin-top: 10px;
        line-height: 1.4;
        max-width: 750px;
        background-color: #ffffff;
        padding: 2em;
        border-radius: 5px;
        box-shadow: 10px 10px 10px #3333331f;
    }