body {
    padding: 0;
    margin: 0;
    background: #F5F2F0;
    font-family: sans-serif;
    overscroll-behavior: none; 
    overflow-x: hidden;
}

/* --- CONTENEUR GLOBAL --- */
.container-header, .container-footer {
    padding: 30px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

@keyframes load-bounce {
    20% {
        opacity: 0;
    }

    100%{
        opacity: 100;
    }
}

/* --- HEADER (Version Desktop) --- */
.header {
    width: 80%;
    max-width: 1000px;
    padding: 12px 50px;
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0px 5px 7px 2px rgb(168 156 134 / 10%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 100;
    position: relative;
    
    transform: translateY(0); 
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 

    animation: load-bounce 2.6s cubic-bezier(0.280, 0.840, 0.420, 1.000) forwards;
    opacity: 0;

    cursor: default;
}


.header.centered {
    transform: translateY(35vh);
}

.title {
    color: #197BBD;
    font-family: "Ultra", serif;
    font-size: 23px;
    font-weight: 400;
    white-space: nowrap;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- INPUTS & BOUTONS --- */
select.header-item {
    background-color: #e0cea6;
    color: #ffffff;
    font-family: "Comic Neue", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    border-radius: 30px;
    font-size: 17px;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding: 10px 35px 10px 15px;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease-in-out;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}
select.header-item:hover { background-color: #dccba0; transform: translateY(-1px); }
select.header-item:focus {
    background-color: #ffffff;
    color: #e0cea6;
    box-shadow: 0 0 0 3px rgba(224, 206, 166, 0.4);
    transform: translateY(0);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e0cea6%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

option {
    text-align: center;
}

input.header-item {
    background-color: #e0cea6;
    color: #ffffff;
    font-family: "Comic Neue", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 17px;
    border-radius: 30px;
    border: none;
    text-align: center;
    width: 60px; 
    padding: 10px 12px; 
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease-in-out;
}

input::placeholder{
    color: #ffffff;
    font-family: "Comic Neue", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

input.header-item:hover { background-color: #dccba0; transform: translateY(-1px); }
input.header-item:focus {
    background-color: #ffffff;
    color: #e0cea6;
    box-shadow: 0 0 0 3px rgba(224, 206, 166, 0.4);
    transform: translateY(0);
}
/* No Spinners */
input.header-item::-webkit-outer-spin-button, input.header-item::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.header-item[type=number] { -moz-appearance: textfield; }

a.header-item {
    background-color: #197BBD;
    padding: 10px 20px; 
    border-radius: 30px;
    color: #fff;
    font-family: "Ultra", serif;
    letter-spacing: .5px;
    font-weight: 300;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}
a.header-item:hover { background-color: #14669e;transform: scale(1.03); }

/* --- CARTE / AMPHI (Desktop) --- */
.container-global{
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    transition-delay: .2s;
}

#amphi-container.visible {
    opacity: 1;
}

.amphi-container {
    width: 95%;
    max-width: 1000px;
    /* margin: 20px auto;
    background: transparent; */

    margin: 0px auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.05);
    padding: 0px;
    text-align: center;
    overflow: hidden; 
    

    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    
    position: relative;
    z-index: 1;
}

.amphi-container.show-amphi {
    opacity: 1;
    visibility: visible;
}

.amphi-plan{
    max-width: 100%;
    height: auto;
    display: block;
}

.amphi-plan, .amphi-container {
    outline: none;
    border: none;
    /* Pour mobile : enlève le flash de couleur au tapotement */
    -webkit-tap-highlight-color: transparent; 
}

.stage { fill: #e0e0e0; rx: 15;}

.stage-text {
    font-family: "Comic Neue", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 18px;
    fill: #888;
    letter-spacing: .8px;
}

@keyframes fadeIn {
    0%{
        opacity: 0 !important;
        transform: scale(0);
    }
    100%{
        opacity: 1 !important;
        transform: scale(1);
    }
}

.seat {
    fill: #e0cea6;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform-box: fill-box; 
    transform-origin: center;

    opacity: 0;
}

.show-amphi .seat {
    animation: fadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.seat:hover {
    fill: #dccba0;
    transform: scale(1.3); 
}
.seat.highlighted {
    fill: #197BBD !important;
    transform: scale(1.3);
}


.motivation {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 0; 
    animation: fadeIn 2s ease-in forwards; 
}

.motivation-text {
    font-family: "Google Sans Code", monospace;
    color: #555;
    font-size: 14px;
    text-align: center;
    max-width: 80%;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.footer {
    text-align: center;
    width: 90%;
    max-width: 1000px;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 50px;
    font-size: 12px;
    font-family: "Google Sans Code", monospace;
    font-weight: 400;
    box-shadow: 0px 5px 7px 2px rgb(168 156 134 / 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    line-height:10px;
    gap: 10px;
    color: #197BBD;
    z-index: 10;
    position: fixed;
    bottom: 20px;

    animation: load-footer 2.6s cubic-bezier(0.280, 0.840, 0.420, 1.000) forwards;
    opacity: 0;
}

.personalPageLink{
    display: flex;
    text-decoration: none;
    border-bottom: #197BBD solid 0.1px;
    color: #197BBD;
    align-items: center;
    gap: 5px;
}

.ico{
    padding-bottom: 1px;
    width: 14px;
    fill: #197BBD;
    transition: fill 0.2s ease-in-out;
}

.span-foot {
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes load-footer {
    0%{
        transform: translateY(10vh);
    }

    35%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}


/* --- VERSION MOBILE --- */
@media screen and (max-width: 768px) {
    .header.centered {
        transform: translateY(30vh);
    }

    .container-header {
        padding: 15px; 
    }

    .header {
        width: 100%;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .input-group {
        width: 100%;
        display: flex;
        justify-content: space-between; 
    }

    option {
        text-align: center;
    }

    select.header-item { flex: 1; max-width: none; }
    input.header-item { width: 60px; flex: 0 0 60px; }
    a.header-item { width: 100%; text-align: center; box-sizing: border-box; }

    .amphi-container {
        scrollbar-width: none;
        width: 100%;    
        margin-top: 0px;       
        padding: 0;      
        background: transparent; 
        box-shadow: none;        
        border-radius: 0;
        justify-content: center;
        min-height: 50vh;
        display: flex;
        align-items: center;

        overflow-x: hidden !important;
    }

    #amphi-container{
        overflow-x: hidden !important;
    }

    #amphi-plan {
        min-width: 140vw; 
        height: auto;
    }

    .motivation {
        margin-top: 20px;
        transform: translateY(-45px);
    }
}