/* Reset global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body and general layout */
body {
    background: #F7F9FC; /*F2AA00;  */
    color: #1A3F54;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
header {
    background-color: #1A3F54;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/*.header-left .logo {*/
.header-left {
    max-height: 60px;
}


.logo {
    width: 95px; /* Ajuste la largeur selon ton besoin */
    height: 60px; /* Garde les proportions */
    cursor: pointer; /* Ajoute un effet de clic */
}


.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right select,
.header-right .btn {
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.header-right select {
    background-color: white;
    color: #1A3F54;
    border: 1px solid #ccc;
}

.header-right .btn {
    background-color: #E6AC1D;
    color: white;
    border: none;
}

.header-right .btn:hover {
    background-color: #cf9200;
}




/* Style de base du menu */
.user-menu {
    position: relative;
    display: inline-block;
}

#user-menu {
    margin-left: auto; /* Pousse "Mon compte" vers la droite */
    position: relative;
}

/* Le bouton pour afficher le menu déroulant */
.user-btn {
    background-color: #1A3F54; /* Couleur de fond */
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    color: #E6AC1D;
}

/* Style du menu déroulant */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Contenu du menu déroulant (initialement caché) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

/* Liens du menu déroulant */
.dropdown-content a {
    color: #1A3F54;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

/* Changer la couleur au survol */
.dropdown-content a:hover {
    background-color: #E6AC1D; /* Jaune/Or */
    color: white;
}

/* Affichage du menu lorsqu'on clique sur le bouton */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Affichage du menu lorsqu'on clique sur le bouton */
.user-menu:hover .dropdown-content {
    display: block;
}

/* Main content */
main {
    flex: 1;
    padding: 20px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    vertical-align: middle;
}


.transfer-section {
    text-align: center;
    margin-bottom: 30px;
}

.transfer-section h1 {
    color: #1A3F54;
    font-size: 2rem;
    margin-bottom: 10px;
}

.transfer-section p {
    font-size: 1.1rem;
    color: #43616B;
    margin-bottom: 20px;
}

.transfer-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.transfer-inputs select,
.transfer-inputs input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
}

.transfer-inputs .currency {
    font-size: 16px;
    margin-left: 5px;
    color: #1A3F54;
}

#send-btn {
    background-color: #E6AC1D;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#send-btn:hover {
    background-color: #cf9200;
}

.selection-section {
    text-align: center;
    margin-bottom: 30px;
}



.selection-bar {
    position: relative;
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
}

/* Style du fond coloré derrière la barre */
.range-background {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #1A3F54 100%, #E6AC1D 50%);
    transform: translateY(-50%);
    z-index: 1;
}

/* Style du curseur */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #E6AC1D; /*#f4a261;*/
    border: 3px solid #1A3F54;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 3;
}



.selection-table {
    border: 0px solid rgb(160 160 160);
    margin: 20px auto;  /* Centre horizontalement */
    border-collapse: collapse; /* Pour un affichage propre */
    width: 25%; /* Ajuste la largeur du tableau */
}


/* Infobulle */
#tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E6AC1D; /*#2a9d8f*/
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    transition: left 0.2s ease-in-out;
}

/* Marques (graduations) */
.ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.ticks span {
    font-size: 14px;
    color: #333;
}








.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
}
.tile {
    background: #E6AC1D; //white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.tile i {
    font-size: 40px;
    color: #1A3F54;
    margin-bottom: 10px;
}
.tile h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}
.tile p {
    font-size: 14px;
    color: #666;
}












/* Additional sections */
.why-choose-us,
.how-it-works,
.testimonials {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background-color: #F7F9FC;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.why-choose-us ul,
.how-it-works ol {
    text-align: left;
    margin: 20px auto;
    max-width: 600px;
}

.why-choose-us li,
.how-it-works li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

blockquote {
    font-style: italic;
    margin: 10px auto;
    max-width: 600px;
    color: #43616B;
}

/* Footer styles */
footer {
    background-color: #1A3F54;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

footer a {
    color: #E6AC1D;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#signup-message {
    margin-top: 20px;
    font-weight: bold;
}

/* Style du fond du modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    top: 1px; /* Distance de 20px par rapport au haut de l'écran */
    background-color: rgba(0, 0, 0, 0.5);
    /*background-color: rgba(26, 63, 84, 0.8);*/ /* Bleu foncé semi-transparent */

    align-items: center;
    justify-content: center;
    overflow: auto; /* Permet de scroller si nécessaire */
}

/* Contenu du modal */
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    position: relative;

    height: auto;
    max-height: 85vh; /* Ne dépasse pas 85% de la hauteur de l'écran */
    overflow: hidden; /* Évite les débordements */
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: #E6AC1D;
}

.close:hover {
    color: white;
}

/* Bouton de fermeture */
.closeLogin {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: #E6AC1D;
}

.closeLogin:hover {
    color: white;
}

/* Bouton de fermeture */
.closeContact {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: #E6AC1D;
}

.closeContact:hover {
    color: white;
}

/* Iframe pour charger inscription.html */
#signup-frame {
    width: 100%;
    height: 80vh; /* Ajuste la hauteur à 80% de la hauteur de l'écran */
    max-height: 750px; /* Hauteur maximale */
    /*height: 750px;650*/
    border: none;
}


/* Style de l'iframe de connexion */
#login-frame {
    width: 100%;
    height: 400px;
    border: none;
}

.modal-inputs {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 15px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-inputs select,
.modal-inputs input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
}

.inscript-btn {
    background-color: #E6AC1D;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Styles de la popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1A3F54; /* Bleu/vert foncé */
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    width: 320px;
    animation: fadeIn 0.5s ease-in-out;
    color: white;
}

/* Contenu de la popup */
.popup-content {
    position: relative;
}

/* Titre */
.popup-content h2 {
    color: #E6AC1D; /* Jaune/Or */
    font-size: 22px;
    margin-bottom: 10px;
}

/* Texte */
.popup-content p {
    font-size: 16px;
    line-height: 1.5;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #E6AC1D; /* Jaune/Or */
    cursor: pointer;
    transition: 0.3s;
    /*color: #1A3F54; */
}

.close-btn:hover {
    color: white;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -70%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup {
    animation: slideDown 0.5s ease-in-out;
}

.popup-btn {
    background-color: #E6AC1D; /* Jaune/Or */
    color: #1A3F54; /* Bleu/Vert Foncé */
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.popup-btn:hover {
    background-color: white;
    color: #1A3F54;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Fond semi-transparent couvrant tout l'écran */
.popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Masquer le popup par défaut */
.hidden {
    /*display: none !important;*/
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}



.header-left, .header-right {
    display: flex;
    align-items: center; /* Force l’alignement des éléments à la même hauteur */
}
.header-left {
    gap: 50px; /* Augmente l'espacement entre le logo et le menu */
}


/* Style du bouton principal */
.dropbtn {
    background-color: transparent;
    color: #E6AC1D;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.dropbtn:hover {
    color: #d9981a;
}

.modal-content h2 {
    color: #1A3F54;
}

/* Styles du formulaire */

#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    margin-top: 10px;
    font-weight: bold;
    color: #1A3F54;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #1A3F54;
    border-radius: 5px;
}

#contact-form button {
    background: #E6AC1D;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

#contact-form button:hover {
    background: #C98F1A;
}




.contact-container {
    background: #1A3F54;
    padding: 30px;
    /*border-radius: 10px;
    text-align: center;*/
    width: 100%;
}
.contact-container h2 {
    margin-bottom: 20px;
    color: #1A3F54;
}
.contact-content {
    background: white;
}






