/* Base et reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Conteneur principal */
.container {
    display: flex;
    width: 65%;
    max-width: 1100px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
}


/* Section Image (Gauche) */
.image-section {
    flex: 1.1; /* Prend un peu plus de place que le formulaire */
    position: relative;
    overflow: hidden;
}

.registration-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 144, 255, 0.7); /* Bleu Dégagé semi-transparent */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.image-overlay h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Section Formulaire (Droite) */
.form-section {
    flex: 1.1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
}


.form-section h2 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    font-size: 1.8em;
}


.login-form {
    padding: 40px 65px;
}

/* Groupes de champs */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

/* Style des labels animés (flottants) */
.input-group label {
    position: absolute;
    top: 10px;
    left: 15px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animation plus douce */
    background-color: transparent;
    padding: 0 5px;
    font-size: 1em;
}

/* Style des champs (input et select) */
.input-group input,
.input-group select {
    width: 100%;
    padding: 8px 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
    font-size: 1em;
    background-color: #fcfcfc;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #1e90ff; /* Bleu Dégagé au focus */
    box-shadow: 0 0 5px rgba(30, 144, 255, 0.4);
}

/* Animation du label au focus ou si le champ est rempli */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group select:focus + label,
.input-group select.filled + label /* Classe JS pour les selects remplis */ {
    top: -12px;
    left: 10px;
    font-size: 0.8em;
    color: #1ea1ff;
    background-color: #fff;
    padding: 0 5px;
}

/* Champs Nom/Prénom et Pays/Téléphone côte à côte */
.input-group-half {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.input-group-half > div {
    flex: 1;
    margin-bottom: 10px;
}

/* -- Gestion du Téléphone avec Indicatif -- */
.phone-input {
    position: relative;
}

.country-code-display {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    padding-right: 8px;
    border-right: 1px solid #ccc;
    font-size: 1em;
    z-index: 1;
    transition: color 0.3s;
}

.phone-input input {
    padding-left: 70px; /* Espace pour l'indicatif */
}

.phone-input input:focus + .country-code-display {
    color: #1e90ff;
}

/* -- Gestion du Mot de Passe (Bouton Voir/Masquer) -- */
.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    z-index: 10;
}

.toggle-password:hover {
    color: #333;
}

/* Bouton de Soumission */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #1e90ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #007bff;
}

.submit-btn:active {
    transform: scale(0.99);
}

/* --- Options (Souvenir, Oublié) --- */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}
.form-options .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}
.form-options label { 
    /* Correction pour l'étiquette "Se souvenir de moi" */
    position: static;
    transform: none;
    font-size: 14px;
    color: #555;
    pointer-events: auto;
}
.form-options a {
    color: #007bff;
    text-decoration: none;
}
.form-options a:hover {
    text-decoration: underline;
}
/* .fas {

    margin-top: -9px !important;
} */

.flash-contain {
    /*! min-width: 65% !important; */
  /*! width: 100%; */
  /*! padding-right: 15px; */
  /*! padding-left: 15px; */
  /*! margin-right: -7px; */
  /*! margin-left: 495px; */
  margin-top: -570px !important;
  position: absolute;
}
.flash {
  position: fixed;
  padding: 0.3rem 0.5rem;
  margin-bottom: 1rem;
  /*! border: 2px solid transparent; */
  border-radius: 0.35rem;
  /*! margin-left: 30px; */
  z-index: 1;
  /*! max-height: 60px; */
  max-width: 419px;
  /*! margin-left: -310px; */
  z-index: 100;
}

.flash-heading {
  color: inherit;
}

.flash-link {
  font-weight: 700;
}

.flash-dismissible {
  padding-right: 4rem;
}

.flash-dismissible .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  color: inherit;
}

.flash-primary {
  color: #004085;
  background-color: #cce5ff;
  border-color: #b8daff;
}

.flash-primary hr {
  border-top-color: #9fcdff;
}

.flash-primary .flash-link {
  color: #002752;
}

.flash-secondary {
  color: #383d41;
  background-color: #e2e3e5;
  border-color: #d6d8db;
}

.flash-secondary hr {
  border-top-color: #c8cbcf;
}

.flash-secondary .flash-link {
  color: #202326;
}

.flash-success {
  color: #fff;
  background-color: forestgreen;

  /* background-color: #d4edda; */
  border-color: #c3e6cb;
}

.flash-success hr {
  border-top-color: #b1dfbb;
}

.flash-success .flash-link {
  color: #0b2e13;
}

.flash-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
  margin-left: -32px;
  width: 365px;
}

.flash-info hr {
  border-top-color: #abdde5;
}

.flash-info .flash-link {
  color: #062c33;
}

.flash-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
  margin-top: 35px;
}

.flash-warning hr {
  border-top-color: #ffe8a1;
}

.flash-warning .flash-link {
  color: #533f03;
}

.flash-danger {
  /*! margin-top: 10px !important; */
  background-color: #ff0017;
  border-color: #f5c6cb;
  color: white;
}

.flash-danger hr {
  border-top-color: #f1b0b7;
}

.flash-danger .flash-link {
  color: #491217;
}

.flash-light {
  color: #818182;
  background-color: #fefefe;
  border-color: #fdfdfe;
}

.flash-light hr {
  border-top-color: #ececf6;
}

.flash-light .flash-link {
  color: #686868;
}

.flash-dark {
  color: #1b1e21;
  background-color: #d6d8d9;
  border-color: #c6c8ca;
}

.flash-dark hr {
  border-top-color: #b9bbbe;
}

.flash-dark .flash-link {
  color: #040505;
}

.moyens-accepte {
  margin-top: 30px;
}
.logos-moyens i, .logos-moyens span {
  font-size: 2.5em;
  margin-right: 15px;
  transition: transform 0.2s;
}
.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}
.fa, .fa-brands, .fa-duotone, .fa-light, .fa-regular, .fa-solid, .fa-thin, .fab, .fad, .fal, .far, .fas, .fat {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display,inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}
.fa-cc-visa::before {
  content: "\f1f0";
}
.logo-om {
  background-color: var(--orange-money);
  color: white;
}
.logo-om, .logo-mtn {
  font-size: 1.2em !important;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  vertical-align: top;
  margin-top: 5px;
}
.logo-mtn {
  background-color: gold;
  color: black;
}
.logo-om {
  background-color: orange;
  color: white;
}


