﻿/* upload.css complet pour la page Upload Transgo */

/* TITRE caché en fixed pour SEO */
h1.title {
    visibility: hidden;
    position: fixed;
}


/* POPIN */
.popin {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.popin-content {
    margin: 15% auto;
    padding: 8px;
    width: 80%;
    background-color: #fff;
}

.close {
    color: #ff0000;
    float: right;
    cursor: pointer;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    background-image: url('/content/background_nature.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

#logo {
    text-align: center;
    display: block;
    width: 100%;
}

.upload-container {
    max-width: 300px;
    margin: 0px;    
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.8);
    position: fixed;
    float: left;
    z-index:2;

}

#outerContainer {
    position: relative;
}


h1, h2 {
    text-align: center;
    color: #333;
}

h2 {
    font-size: 1.3em;
}

.form,
form {    
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 10px;
    color: #555;
}

input[type="file"] {
    visibility: hidden;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

textarea {
    height: 80px;
}

.btn-next, .btn-prev, .btn-yellow {
    display: inline-block;
    width: 40%;
    padding: 10px;
    background-color: #f1af21;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-next{
    float:right;
}

input[type="submit"] {
    display: inline-block;
    /*width: 100%;*/
    padding: 10px;
    background-color: #f1af21;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

    input[type="submit"]:hover {
        background-color: #45a049;
    }

.error-message {
    color: #ff0000;
    margin-top: 5px;
}

#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#progress-bar {
    width: 80%;
    height: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

#progress-bar-fill {
    width: 0;
    height: 100%;
    background-color: #f1af21;
}

#progress-message {
    width: 200px;
    background-color: white;
    border: solid 4px orange;
    display: none;
    padding: 10px;
    text-align: center;
}

#progress-text {
    display: block;
    font-weight: 900;
}

.panel {
    transition: all 0.3s ease;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    display:none;
}

    .panel.active {
        opacity: 1;
        min-height: 350px;
        margin-bottom: 0px;
        display:block;
    }

.section-with-number {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.number-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1af21;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
}

/* Résumé fichier drag & drop */
#dropZone {
    border: 2px dashed #0087F7;
    border-radius: 5px;
    background: white;
    padding: 50px;
    text-align: center;
    color: #0087F7;
    font-family: Arial, sans-serif;
}

.recipient {
    display: none;
}

#recipient1 {
    display: block;
}

.tabs {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.tab {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #ccc;
    border: 1px solid #aaa;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    margin-right: 5px;
}

    .tab:hover {
        background-color: #ddd;
    }

.full-width-section {
    margin-top: 100vh;
    padding: 60px 20px;
    background: white;
    position: relative;
    z-index: 1;
}

    .full-width-section h2 {
        color: #333;
        font-size: 2em;
        margin-bottom: 20px;
    }

    .full-width-section hr {
        margin: 50px auto;
        max-width: 200px;
    }

    .full-width-section .features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        margin-top: 40px;
    }

    .full-width-section .feature {
        flex: 1 1 250px;
        max-width: 300px;
    }

        .full-width-section .feature i {
            font-size: 40px;
            color: #f1af21;
            margin-bottom: 10px;
        }



.grid-container {
    position: relative;
    z-index: 1;
}

.cookie-consent-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ddd;
    z-index: 9999;
}

    .cookie-consent-footer p {
        margin: 0;
    }

#btnUpload {
    display: none;
    float:right;
}

#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.7);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#progress-bar {
    width: 350px;
    height: 22px;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 1px 6px #aaa;
    overflow: hidden;
    position: relative; /* ⬅️ Important pour l’absolu du texte */
}

#progress-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #f1af21 30%, #ffb300 100%);
    border-radius: 12px 0 0 12px;
    transition: width 0.2s;
    position: absolute; /* ⬅️ Pour être sous le texte */
    top: 0;
    left: 0;
    z-index: 1;
}

#progress-text {
    position: absolute; /* ⬅️ Superpose sur le bar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 22px; /* même que la barre pour centrage vertical */
    text-align: center; /* centre horizontalement */
    color: #333;
    font-weight: 600;
    z-index: 2;
    pointer-events: none; /* le texte ne bloque pas la barre */
    user-select: none;
    font-size: 15px;
}

#progress-bar-fill.striped {
    background: repeating-linear-gradient( 45deg, #f1af21, #f1af21 10px, #ffe08a 10px, #ffe08a 20px );
    animation: progressStripe 2s linear infinite;
}

@keyframes progressStripe {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 0;
    }
}

.input-error {
    border-color: #c00 !important;
    background: #fff0f0;
}

@keyframes moveArrow {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.download-arrow {
    position: fixed;
    top: 35px;
    right: 48px;
    z-index: 9999;
    font-size: 32px;
    color: #f1af21;
    animation: moveArrow 1.2s infinite;
    pointer-events: none;
}

@media (max-width: 600px) {
    .upload-container {
        margin:0 auto;
        float:none;
        position:relative;
        min-height:660px;        
    }   
    
    #outerContainer
    {
        margin-left:0px;
    }
}

