* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    color: #343a40;
    background-color: #78c9ff;
    background-image: url("../ressources/FontEcranVectoriel/NuageBlanche.png");
    background-repeat: no-repeat;
    background-size: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(45deg, #007bff, #00c1ff);
    color: white;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

h1 {
    margin: 0;
    font-size: 2.5em;
    text-transform: uppercase;
}

main {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex: 1;
}

.form-group {
    /*border: 2px solid #00759c;*/
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 10px;
    background-color: #00c1ff;
    background-image: linear-gradient(190deg, #007bff, #00c1ff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.form-group:not(#para){
    background-image: url("../ressources/FontEcranVectoriel/NuageBlanche.png");
    background-color: #e977b5;
    border: 2px solid #6e0e43;
}

#postalCode{
    max-width: 500px !important;
}

label {
    font-size: 1.2em;
    margin-bottom: 10px;
}



input,
select {
    display: block;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #007bff;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 400px;
}

input:focus,
select:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}

footer {
    background: linear-gradient(45deg, #007bff, #00c1ff);
    color: #f5f8fa;
    padding: 10px;
    text-align: center;
}

.iconeParametres {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nbJours {
    transform: scale(1.2);
}

.iconeParametres:hover {
    transform: rotate(90deg);
}

.iconeCroix {
    font-size: 50px;
    cursor: pointer;
    color: #fff;
    position: absolute;
    right: 0;
    margin-right: 1em;
}

.parametres {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    /*background-color: #007bff;*/
    background-image: linear-gradient(45deg, #007bff, #00c1ff);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    color: white;
}

.parametres.visible {
    width: 50%;
}

.textParam {
    font-weight: 700;
    padding-top: 20px;
    padding-left: 1em;
}

.modalBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
}

.nbJours {
    width: 100%;
    margin-top: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 10px;

    backdrop-filter: blur(5px);
    padding: 0.5rem;
    border-radius: 10px;
    background-color: #00c1ff;
    background-image: linear-gradient(360deg, #007bff, #00c1ff, #64d8ff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.checkbox-container label {
    margin-left: 10px;
}

input[type="checkbox"]{
    transform: scale(2);
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label::before {
    font-family: "Font Awesome 5 Free";
    content: '\f0c8';
    font-size: 1.2em;  
    color: #ffffff;
    margin-right: 1.3rem ;
}

input[type="checkbox"]:checked + label::before {
    content:'\f14a';
    color: #fafafa;
 }

.result {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.weather-day {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 20px);
    text-align: left;
    cursor: pointer;
    display: flex; 
    flex-direction: column;
}

.weather-start{     
    animation: pop 0.5s ease forwards; 
}

.weather-day:hover {
    transform: translateY(-10px);     
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3); 
} 

.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.weather-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.weather-day h1 {
    font-size: 1.2em;
    margin: 0;
    padding-top: 1em;
    padding-bottom: 1em;;
    font-weight: bold;
    padding-left: 0.5em;
}

.weather-day p {
    padding-left: 0.5em;
}

.weather-details {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .weather-day {
        width: calc(50% - 20px);
    }

    .weather-icon {
        display: none;
    }

    .weather-textIcon{
        font-weight: bold;
    }

    .weather-day h1 {
        font-size: 1em;
    }

    .parametres.visible {
        width: 100%;
    }

    .nbJours {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .weather-day {
        width: 100%;
    }

    .weather-day h1 {
        font-size: 0.9em;
    }
}

@keyframes pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

