body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAF7F0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
footer {
    text-align: center;
    padding: 10px;
}
.logo {
    font-weight: bold;
    font-size: 24px;
    width:20%;
    display: flex;
    align-items: center
}

.short-menu {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 25px;
}
.close-menu {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 25px;
}
nav {
    display: flex;
    flex-direction: row;
}
nav.show {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}
@media screen and (max-width: 480px) {
    .short-menu {
        display: block; /* Affiche le bouton burger sur les petits écrans */
    }
    nav {
        display: none; /* Cache le menu par défaut */
        flex-direction: column;
        background-color: #FAF7F0;
        padding: 10px;
    }
    nav a {
        margin: 5px 0; /* Espacement vertical entre les liens */
    }
    .profile-btn {
        margin-top: 0px !important;
    }
    #downloadRgpdButton {
        margin-left: 0% !important;
    }
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}
.profile-btn a {
    margin-left: 0px;
}
.profile-btn {
    background-color: #F5F0DB;
    border: none;
    padding: 5px 15px;
    border-radius: 6px;
    margin-top: -5px;
    margin-left: 25px;
}
.main-section {
    margin-top: 20px;
    margin-left: 5%;
    margin-right: 5%;
    text-align: center;
}
.faces-add {
    background-image: url("images/_b2563c0b-c0f9-430b-a5d2-5b684090a61e.webp");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    border-radius: 16px;
    padding: 20px;
    margin: 2%;
    text-shadow: 1px 1px 2px black;
}
.profile-head {
    background-image: url("images/_a4e33ed4-52f2-473f-8f19-1070b26a1d07.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 16px;
    padding: 100px 20px;
    margin: 2%;
    text-shadow: 1px 1px 2px black;
}
h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}
.subtitle {
    color: white;
    margin-bottom: 20px;
}
sup {
    font-size:15px;
}
.file-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.file-upload input[type="file"] {
    color: #222245;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 5px;
}
.file-upload input[type=file]::file-selector-button {
    background-color: #FAC738;
    color: #AB2117;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: 0px;
    cursor: pointer;
}
.file-upload2 {
    background-color: white;
    display: inline-flex;
    border-radius: 5px;
    padding: 5px 12px;
    color: gray;
    white-space: pre;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.file-upload2 input[type="file"] {
    display: none;
}
.file-upload2 label {
    background-color: #FAC738;
    color: #AB2117;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    border: 0px;
    margin-left: 10px;
}
.file-upload2 p {
  display:inline-block;
}
.titleAbo {
    margin-left: 6%;
}
.faces-grid {
    display: flex;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-left: 10%;
    margin-right: 10%;
    flex-wrap: nowrap;
    justify-content: center;
}
.face-item img {
    width: 100%;
    border-radius: 10px;
}
.subscription {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.plan {
    background-color: #FAF7F0;
    border-radius: 10px;
    padding: 20px;
    border:2px solid #F0E3C2;
    margin: 10px;
}
.plan h3 {
    margin-top: 0;
}
.active, .plan:active, .plan:focus {
    border:2px solid #FAC738;
}
.price {
    font-size: 24px;
    font-weight: bold;
}
.features {
    list-style-type: none;
    padding: 0;
}
.features li::before {
    content: "✓ ";
    color: green;
}
.cta-button {
    background-color: #FAC738;
    color: #AB2117;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}
.selected-faces {
    margin-top: 30px;
    margin-left: 6%;
    margin-right: 6%;
}
.face-tag {
    background-color: #F5F0DB;
    border: none;
    padding: 5px 15px;
    border-radius: 6px;
}
#downloadRgpdButton {
    margin-bottom: 30px;
    margin-left:78%;
    font-weight: bold;
}
#startAnalysis {
    margin-left:6%;
    width:20%;
    min-width: 100px;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#progressContainer {
    width: 100%;
    background-color: #ddd;
    margin: 20px 0;
    border-radius: 5px;
}
#progressBar {
    width: 0%;
    height: 15px;
    background-color: #4CAF50;
}
#progressBar2 {
    width: 0%;
    height: 15px;
    background-color: #4CAF50;
}
#rgpdOptions {
    margin-left: 5%;
}
#resultsTable {
    width: 50%;
    border-collapse: collapse;
    margin: 20px 0;
}
#resultsTable th, #resultsTable td {
    border: 1px solid #F0E3C2;
    padding: 8px;
    border-radius: 5px;
}
#pagination {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
#pagination button {
    padding: 0px 20px;
    height: 28px;
    font-size: 14px;
    border: 1px solid #F0E3C2;
    background-color: transparent;
    color: #FAC738;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin: 20px;
}
#pagination button:hover {
    background-color: #FAC738;
    color: white;
}
#pagination span {
    line-height: 40px;
    font-size: 18px;
}
#registerForm, #loginForm {
    margin-top: 10px;
}
#loginForm button, #registerForm button {
    padding: 6px 10px;
}
#loginEmail, #registerEmail, #loginPassword, #registerPassword, #resetEmail  {
    border: 2px solid #FAC738;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #FAF7F0;
}
#cancelReset {
    font-size: 14px;
    color: black;
    margin-top: 10px;
}
#logoutButton {
    margin-left: auto;
    margin-right: auto;
}
#cancelForms {
    text-align:center;
    line-height: 50px;
    background-color: #FAC738;
    color: #AB2117;
}
#noScansMessage {
    margin-left: 6%;
    margin-right: 6%;
}
.listScansMessage {
    margin: 10px 0px;
    padding: 15px 0px;
    border: 2px solid #F0E3C2;
    border-radius: 10px;
}
.listScansMessage {
  display: block;
  position: relative;
  padding-left: 50px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.listScansMessage input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  margin-top: 12px;
  margin-left: 12px;
  border-radius: 50%;
  border: 2px solid #FAC738;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.listScansMessage input:checked ~ .checkmark:after {
  display: block;
}
.listScansMessage .checkmark:after {
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FAC738;
}
.remove-face {
  width: 30px;               /* Largeur du bouton */
  height: 30px;              /* Hauteur du bouton (même que la largeur pour un rond) */
  border: none;              /* Pas de bordure */
  border-radius: 50%;        /* Rendre le bouton rond */
  background-color: #ff4d4d; /* Couleur de fond (rouge) */
  position: relative;        /* Position relative pour positionner la croix */
  cursor: pointer;           /* Curseur en main au survol */
  display: inline flex;             /* Centrer la croix */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

.remove-face::before,
.remove-face::after {
  content: '';               /* Contenu vide pour les lignes de la croix */
  position: absolute;        /* Position absolue pour créer la croix */
  width: 50%;                /* Longueur des bras de la croix */
  height: 3px;               /* Épaisseur de la croix */
  background-color: white;   /* Couleur des bras de la croix */
  border-radius: 2px;        /* Coins légèrement arrondis */
}

.remove-face::before {
  transform: rotate(45deg);  /* Premier bras en diagonale */
}

.remove-face::after {
  transform: rotate(-45deg); /* Second bras en diagonale opposée */
}

.remove-face:hover {
  background-color: #ff1a1a; /* Couleur plus foncée au survol */
}

.remove-face:active {
  background-color: #cc0000; /* Couleur encore plus foncée lors du clic */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); /* Effet d'enfoncement */
}

.feedback-section {
    margin: 20px 0;
    padding: 20px;
    background: #FAF7F0;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-left: 6%;
    margin-right: 6%;
}
.feedback-section h2 {
    margin-bottom: 10px;
}
.feedback-section form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
.feedback-section form input,
.feedback-section form textarea {
    width: calc(100% - 20px);
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.feedback-section form button {
    margin-top: 10px;
}
