:root {
    --neutral-0: hsl(0, 0%, 100%);
    --neutral-300: hsl(252, 6%, 83%);
    --neutral-500: hsl(245, 15%, 58%);
    --neutral-700: hsl(245, 19%, 35%);
    --neutral-900: hsl(248, 70%, 10%);
    --orange-500: hsl(7, 88%, 67%);
    --orange-700: hsl(7, 71%, 60%);
    --gradient-text: linear-gradient(90deg, hsl(7, 86%, 67%), hsl(0, 0%, 100%));
}
*{
    font-family: 'Inconsolata', sans-serif;
}

body {
    font-family: 'Inconsolata', sans-serif;
    background:
    url('assets/images/pattern-squiggly-line-bottom-desktop.svg') bottom left / 50% no-repeat,
    url('assets/images/pattern-squiggly-line-top.svg') top right / auto no-repeat,
    url('assets/images/pattern-lines.svg') top left / auto no-repeat,
    url('assets/images/pattern-circle.svg') right 12rem center / auto no-repeat,
    url('assets/images/background-desktop.png') center center / cover no-repeat;
    color: var(--neutral-0);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

h1,h4{
    color: var(--neutral-0);
}

h1, h2{
    font-size: 2.5em;
}

.container {
    max-width: 600px;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.header h2 {
    font-size: 2rem;
    background: var(--orange-500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.paragraph {
    color: var(--neutral-300);
    margin-bottom: 2rem;
}

.form{
    margin-top: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.file-upload,
input[type="text"],
input[type="email"],
input[type="file"],
button[type="submit"] {
  width: 100%;
  box-sizing: border-box; 
}

.form-group {
  max-width: 600px;
}

.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

input[type="file"] {
  padding: 10px;
}

label {
    font-size: var(--font-size-labels);
    color: var(--neutral-300);
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--neutral-500);
    border-radius: 10px;
    font-size: 1rem;
    background-color: hsl(245, 15%, 58%, 0.2);
    color: var(--neutral-300);
}

input:focus {
    outline: none;
    border: 2px solid var(--neutral-700);
}

.file-upload {
    border: 2px dashed var(--neutral-500);
    border-radius: 10px;
    padding: 1.5rem;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: var(--neutral-300);
    cursor: pointer;
    background-color: hsl(252, 6%, 83%, 0.2);
    position: relative; 
}

.file-upload .file-input {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    cursor: pointer; 
    z-index: 1; 
}

.file-hint {
    font-size: 0.9rem;
    color: var(--neutral-500);
}

.icon-upload{
    padding: 5px;
    margin-bottom: 1rem;
    border-radius: 5px;
    background-color: hsl(252, 6%, 83%, 0.2);
}

.uploaded-image, .ticket-avatar{
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--neutral-500);
}

.remove-image-btn{
    text-decoration: underline;
}

.file-preview button{
    border: none;
    margin-top: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    color: var(--neutral-300);
    background-color: hsl(245, 15%, 58%, 0.4);
}

.file-info,.email-error-div {
    gap: 10px;
    font-size: 0.8rem;
    color: var(--neutral-500);
    align-items: center;
    display: flex;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: var(--orange-500);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--neutral-900);
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--orange-700);
}

.hidden {
    display: none;
}
  
.ticket {
    display: none;
    align-items: center;
    flex-direction: column;
    min-height: 100vh; /* Occupe toute la hauteur de l'écran */
}

.ticket-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url('assets/images/pattern-ticket.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.ticket-text{
    width: 60%;
    line-height: 1.5;
    padding-bottom: 2rem;
    color: var(--neutral-300);
}

.ticket-number{
    font-size: 1.3em;
    font-weight: 700;
    rotate: 90deg;
    color: var(--neutral-500);
}

.ticket-location{
    font-size: 0.8em;
    padding-left: 2rem;
    color: var(--neutral-300);
}

.ticket-email{
    color: var(--orange-500);
}
.ticket-header img {
    max-width: 150px;
}

.ticket-details h4,#ticket-github{
    color: var(--neutral-300);
}

#ticket-name{
    justify-self: flex-start;
}

.ticket-body {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.ticket-avatar {
    width: 60px;
    height: 60px;
    border: none;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-right: 20px;
}

.ticket-details h4 {
    font-size: 1em;
    margin-bottom: 2px;
}

.ticket-details p {
    font-size: 18px;
}

.ticket-details div{
    display: flex;
    gap: 10px;
    justify-content: left;
}

.ticket-header{
    text-align: left;
}

.ticket-title-name {
    background-image: var(--gradient-text); 
    -webkit-background-clip: text; 
    color: transparent; 
}

.error-message {
    color: var(--orange-700);
    font-size: 0.875rem;
    margin-top: 0.8rem;
}

@media (max-width: 768px) {
    body{
        padding: 0.8rem;
    }
    .container {
        max-width: 100%;
        padding: 1rem;
    }
    h1, h2 {
        font-size: 2rem;
    }
    .ticket-text{
        width: 100%;
    }
    .ticket-card,#ticket-github{
        font-size: 0.8em;
    }
    .ticket-card{
        max-width: 300px;
    }
    .ticket-avatar {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
    .ticket-details div{
        gap: 0px;
    }
    .ticket-body {
        margin-top: 0.7rem;
    }
}
