

/* style.css */

/* --- Styles généraux de la page --- */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: rgb(235, 244, 254); /* ta couleur de fond */
    margin: 0;

}

/* --- Conteneur principal --- */
.container {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

/* --- Logo et texte --- */
img {
    width: 120px;
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

/* --- Champ texte --- */

.form-group {
    width: 100%;
    margin-bottom: 20px;
}

label {
    display: block;        /* ensures the label is on its own line */
    text-align: left;      /* aligns it to the left edge of the input */
    margin-bottom: 5px;    /* space between label and input */
    font-weight: bold;
    color: #0b4578;        /* optional: your preferred color */
    font-size: 14px;       /* adjust size as needed */
}

input[type="text"] {
    width: 100%;           /* fills the container */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;

}


/* --- Bouton principal --- */
button {
    width: 100%;
    padding: 12px;
    background-color:  #0c3f6f;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4338ca;
}

/* --- Résultat --- */
.result {
    margin-top: 20px;
    font-size: 18px;
}

/* --- Bouton WhatsApp flottant --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
    width: 80px;
    height: 80px;
    display: block;
    
}

.whatsapp-float:hover img {
    transform: scale(1.1);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.4);
}


footer.footer-text {
    margin-top: 20px !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #3060d9 !important;
    font-weight: 500 !important;
    padding: 20px 0 !important;
}

/* --- Responsive styles --- */

/* Tablets and smaller devices */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    input[type="text"],
    button {
        font-size: 0.95rem;
    }
    
    .whatsapp-float img {
        width: 45px;
        height: 45px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    input[type="text"],
    button {
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float img {
        width: 40px;
        height: 40px;
    }
    
    footer.footer-text {
        font-size: 0.75rem;
        padding: 15px 0;
    }
}

