/* PAGE ADMIN */

:root {
    --primary-black: #161616;
    --secondary-black: #0d0d0e;
    --tertiary-black: #222425;
    --main-black: #0e0e0e;
    --primary-white: #fff;
    --primary-alternate: #f0efed;
    --dore-old: #e9c567;
    --light-shadow: #77571d;
    --dark-shadow: #3e2904;
    --dark-blue: #010A13;
    --light-blue: #0D161F;
}

@font-face {
    font-family: 'montserrat';
    src: url('fonts/Montserrat-Regular.ttf');
}

@font-face {
    font-family: 'Open';
    src: url('fonts/OpenSans-Regular.ttf');
}

@font-face {
    font-family: 'PoetsenOne';
    src: url('fonts/PoetsenOne-Regular.ttf');
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf');
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato/Lato-Regular.ttf');
}

body {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'PlayfairDisplay', serif;
}

header {
    text-align: center;
}

i.fa-arrow-left-long {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--main-black);
}

main h2, header h2 {
    font-family: 'PlayfairDisplay', serif;
    font-weight: 100;
    font-size: 42px;
    padding: 12px;
    color: var(--dore-old);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 90vh;
    margin: 0;
}

/*Formulaire*/
form {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 300px;
}

/*Champs email & password*/
input {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input:focus {
    outline: 1px solid var(--darkBlue-color);
}

/*Bouton de connexion*/
button {
    padding: 10px;
    background-color: var(--dore-old);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: var(--tertiary-black);
    color: var(--primary-white);
}

.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* Leave space for the eye icon */
    padding-left: 10px;
    box-sizing: border-box;
}

.password-wrapper .togglePassword {
    position: absolute;
    right: 10px;
    top: 38%;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-wrapper .togglePassword i {
    font-size: 18px;
    color: #555;
}

.cards {
    justify-content: center;
}

.cards a {
    text-decoration: none;
    background: var(--dore-old); 
    color: var(--secondary-black);
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 450px;
    height: auto;
    margin-bottom: 25px;
    cursor: pointer;
}

/* Effet au survol */
.cards a:hover {
    background: var(--primary-alternate);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.message-card {
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.message-card:hover {
    transform: translateY(-3px);
}

#messages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.message-card {
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.message-card:hover {
    transform: translateY(-3px);
}

.message-card h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.message-card p {
    margin: 5px 0;
    color: #666;
    word-wrap: break-word; /* forcer le retour à la ligne lorsque le texte est trop long */
    white-space: normal; /* Assure que le texte peut se répartir sur plusieurs lignes */
}

.message-card .date {
    font-size: 12px;
    color: #aaa;
    text-align: right;
    margin-top: 10px;
}

.portfolio-card {
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
}

.portfolio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-card p {
    word-wrap: break-word; /* Retour automatique à la ligne pour les longs textes */
    white-space: normal;
}

.portfolio-image {
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
}

/* Style de la modale */
.modal {
    display: none; /* La modale est cachée par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Fond sombre */
  }
  
  /* Contenu de la modale */
  .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
  }
  
  /* Bouton de fermeture */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  input[type="file"] {
    margin-top: 10px;
  }
  
  button[type="submit"] {
    margin-top: 20px;
  }
  
  .portfolio-actions button {
    cursor: pointer;
    font-size: 1.5rem; /* Taille de l'icône */
    color: var(--dark-blue); /* Couleur des icônes */
    padding: 0.5rem;
  }
  
  .portfolio-actions button:hover {
    color: var(--dore-old); /* Couleur au survol */
  }
  

/* Responsive */
@media (max-width: 600px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .cards a {
        width: 90%; /* Prend presque toute la largeur */
    }
}
