/* style.css */

/* Styles généraux */

* {
    box-sizing: border-box; /* Applique le modèle de boîte partout */
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
    background-color: #161616;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêche tout débordement horizontal */
}

h1 {
    color: white;
    padding: 55px 0px 10px 0px;
    margin: 0;
}

label {
    color: white;
}

.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.refresh-link {
    display: inline-block;
    color: #ffffff;
}

.entry-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0px 60px 0px;
    margin-bottom: 30px;
    max-width: 1200px;
    background-color: #161616;
    box-shadow: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.entry-image {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    margin-right: 60px;
}

.entry-text {
    max-width: 40%;
    text-align: justify;
    font-family: "Roboto Mono", monospace;
    font-weight: 300;
    color: white;
    font-size: 90%;
    line-height: 1.5;
}

.button {
    background-color: #333;
    color: #818181;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

.button:hover {
    background-color: #555;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

form {
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    opacity: 0;
    transition: opacity 1s ease;
}

form.show {
    opacity: 1;
}

input[type="file"],
textarea {
  width: 100%;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 16px;
  resize: none;
}

input[type="submit"] {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

input[type="submit"]:hover {
    background-color: #555;
}

.message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
}

a.button {
    color: #333;
    text-decoration: none;
    margin-top: 20px;
    display: block;
    font-size: 16px;
}

a.button:hover {
    text-decoration: underline;
}

.button2 {
    color: #525252;
    text-decoration: none;
    margin-top: 20px;
    display: block;
    font-size: 16px;
}

.button2:hover {
    text-decoration: underline;
}


/* Style pour le lien "Le Dressing" */
.dressing-link {
    position: absolute;
    top: 10px;
    left: 20px;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    font-family: "Roboto Mono", monospace;
}

.dressing-link:hover {
    text-decoration: underline;
}

/* le dressing */

h2 {
    color: white;
}

p {
    color: white;
}

ol {
    color: rgb(255, 255, 255);
}

.liste {
    margin: 0px 100px 0px 100px;
    text-align: justify left;
}

.paragraphe {
    margin: 50px 300px 50px 300px;
    text-align: justify center;
    font-family: "Roboto Mono", monospace;
    font-weight: 300;
    color: white;
    font-size: 80%;
    line-height: 1.5;
}

#counter {
    font-size: 180%;
    color: #90a4d0;
}

input[type="file"],
textarea {
    max-width: 100vw; /* Limite la largeur du textarea à la largeur totale de la fenêtre */
    width: 100%; /* Utilise toute la largeur disponible */
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.partager {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

.partager:hover {
    background-color: #555;
}

/* Cache l'élément de fichier réel */
input[type="file"] {
    display: none; /* Cache l'élément de fichier */
}

/* Style du bouton personnalisé */
.custom-file-upload {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #333;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    /* Pour une apparence plus moderne */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-file-upload:hover {
    background-color: #555;
    border-color: #bbb; /* Change la couleur de la bordure au survol */
}

input[type="submit"] {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

input[type="submit"]:hover {
    background-color: #555;
}

/* Adaptation pour les écrans de téléphone */
@media (max-width: 768px) {
    .entry-container {
        flex-direction: column;
        align-items: center;
        padding: 1px 0px 1px 0px;
    }
    
    input[type="file"],
    textarea {
        width: calc(100% - 20px); /* Réduit la largeur sur mobile avec un léger padding */
        padding: 8px; /* Ajuste légèrement le padding pour un meilleur rendu sur petit écran */
    }

    .entry-image {
        margin-right: 0;
        margin-bottom: 20px;
        max-height: 300px;
    }

    h1 {
        margin-top: 12px;
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .entry-text {
        max-width: 100%;
        font-size: 80%;
        text-align: justify;
    }

    .refresh-link {
        font-size: 14px;
    }

    .button, .button2, .partager, input[type="submit"] {
        font-size: 14px;
        padding: 8px 16px;
    }

    .content {
        padding: 10px;
    }

    /* Adaptation du compteur */
    #counter {
        font-size: 150%;
    }

    /* Paragraphe sur mobile */
    .paragraphe {
        margin: 20px;
        font-size: 80%;
    }

    /* Liste sur mobile */
    .liste {
        margin: 0px 10px;
        text-align: left;
    }

    /* Lien "Partager mon vêtement" adapté au mobile */
    .partager {
        font-size: 16px;
        padding: 10px 18px;
        border-radius: 10px;
    }

    /* Style du lien retour à l'accueil adapté au mobile */
    .button2 {
        font-size: 16px;
    }
}