@font-face {font-family: "BrownFtv bold"; 
  src: url("../font/BrownFtv-Bold.ttf") format('truetype');
}

@font-face {font-family: "BrownFtv light"; 
  src: url("../font/BrownFtv-Light.ttf") format('truetype');
}

@font-face {font-family: "BrownFtv regular"; 
  src: url("../font/BrownFtv-Regular.ttf") format('truetype');
}

@font-face {font-family: "poppins"; 
  src: url("../font/Poppins-Regular.ttf") format('truetype');
}

:root {
  --label-color: #0060AC;; /* bleu doux */
  --field-height: 50px;
  --label-padding-left: 4px;
  --field-margin-bottom: 0;  
  --border-radius: 8px;   
  --option-height: 30px;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  min-height: 100vh;
  background-color: #a1a4a2; 
}

body::before {
  content: "";
  position: fixed;   
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('modele.jpg') center/cover no-repeat;
  opacity: 0.4;  
  z-index: -1;     
}

.sub-header {
   height: 15px;
   /* background-color: #ccd8d6; */
   color: black;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 9px;
   font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.sub-header span#year {
   margin-left: 3px; 
   margin-right: 3px; 
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  color: white;
  height: 60px;
  padding: 0 20px;
}

.header-title {
    font-size: 30px;
    font-family: "poppins";
    font-weight:300;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center; 
    margin-top:180px;
    gap: 25px;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

input,
button {
  max-width: 100%;
}

/* Champ seul (input, select ou textarea) sur toute la largeur */
.input-full {
  display: flex;
  flex-direction: column;
  width: 600px;
  position: relative;
}

/* Label */
.input-full label {
  color: var(--label-color);
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  padding-left: var(--label-padding-left);
  margin-bottom: 4px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Champs : input, select et textarea */
.input-full input,
.input-full select,
.input-full textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px; /* padding uniforme (meilleur rendu pour textarea) */
}

/* Hauteurs spécifiques */
.input-full input,
.input-full select {
  height: var(--field-height);
}

.input-full textarea {
  height: 120px; /* ✅ hauteur fixe souhaitée */
  resize: none;  /* ✅ empêche le redimensionnement manuel */
  line-height: 1.4;
}

/* Focus */
.input-full input:focus,
.input-full select:focus,
.input-full textarea:focus {
  border: 1px solid rgb(168, 212, 253);
  outline: none;
}

/* Placeholder */
.input-full input::placeholder,
.input-full textarea::placeholder {
  color: rgb(179, 178, 187);
}


.button-group {
  display: flex;
  width: 600px;
  gap: 12px; /* espace entre les boutons sur desktop */
  margin-bottom:20px;
}

.button-group:last-child {
  margin-bottom: 0; /* pas de marge sur le dernier champ */
}

.button-group .btn {
  flex: 1; /* chaque bouton prend une largeur égale */
  height: var(--field-height);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.button-group .btn-blue {
  background-color: #0078d7;
}

.button-group .btn-blue:hover {
  background-color: #0060ac;
}

.button-group .btn-red {
  background-color: #f10914;
}

.button-group .btn-red:hover {
  background-color: #ca102f;
}

/* Bouton vert */
.button-group .btn-green {
  background-color: #4CAF50; /* vert */
}
.button-group .btn-green:hover {
  background-color: #3e8e41; /* vert foncé */
}

.button-group .btn-green-no-hover {
  background-color: #218838;
}

.button-group .btn-gray-no-hover {
  background-color: #cfcaca;
}


.btn.copied{
  background:#218838 !important;
}




.suggestions{
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%; 
  box-sizing: border-box;  
  border: 1px solid #ccc;
  background: white;
  display: none;
  z-index: 1000;
  font-family: "Arial"; 
  font-style: normal;
  font-size: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.suggestion{
  padding:6px;
  cursor:pointer;
}

.suggestion:hover{
  background:#eee;
}

#result{
  display: inline-block;      
  background-color: #f5f0f0; 
  padding: 8px 15px;          
  border-radius: 8px;         
  font-family:Arial, Helvetica, sans-serif;
  font-style: normal;
  word-break: break-all;    
  margin-top: 20px;
  display: none;       
  font-size: 20px;      
}



/* affichage sur mobile */

@media (max-width: 600px) {

  .header-title {
    font-size: 20px;
    line-height: 20px;
    text-align: center;
  }

  .open-btn {
       display:none;
  }

   .container {
       margin-top:15px;
       flex-direction: column; 
       align-items: center;   
       gap: 20px;    
       padding: 15px;         
   }

  .input-full {
    width: 100%;
  }

  .input-full input,
  .input-full select,
  .input-full textarea {
    font-size: 15px;
  }

  .button-group {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .button-group .btn {
    width: 100%;
    height: var(--field-height);
    min-height: var(--field-height); 
    line-height: var(--field-height); 
    box-sizing: border-box; 
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #result {
      margin-top: 0px;
      font-size: 16px; 
  }

}


/* Affichage tablette  */

@media (min-width: 601px) and (max-width: 1130px) {

  .header-title {
    font-size: 26px;
    text-align: center;
  }

  .container {
    margin-top: 40px;
    gap: 25px;
    padding: 0 20px;
  }

  .input-full {
    width: 100%;
    max-width: 500px;
  }

  .button-group {
    width: 100%;
    max-width: 500px;
    gap: 10px;
  }

}