/* public/assets/css/style.css */
:root {
  --royal-blue: #0b3d91;
  --gold: #ffdf01;
  --light-blue: #e6f0ff;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f8f9fa;
}

/* Navbar personnalisée */
.site-header {
  background-color: var(--royal-blue);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--royal-blue) 0%, #1a5cb8 100%);
  color: white;
  padding: 4rem 0;
  border-radius: 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('/assets/img/pattern.svg') no-repeat;
  background-position: right center;
  opacity: 0.1;
}

/* Cards */
.card-product {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-product .card-header {
  background-color: var(--royal-blue);
  color: white;
  padding: 1rem;
}

.card-product .card-body {
  padding: 1.5rem;
}

/* Boutons */
.btn-primary {
  background-color: var(--royal-blue);
  border-color: var(--royal-blue);
}

.btn-outline-primary {
  color: var(--royal-blue);
  border-color: var(--royal-blue);
}

.btn-gold {
  background-color: var(--gold);
  color: #222;
  font-weight: 500;
}

/* Tableaux */
.table { --bs-table-bg: transparent; }
.table th {
  background-color: var(--royal-blue);
  color: white;
}

/* Formulaire */
.form-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Footer (base) */
.site-footer {
  background-color: var(--royal-blue);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
    text-align: center;
  }
  .hero::before { background-size: cover; }
}

/* Force l'affichage du menu sur desktop */
@media (min-width: 992px) {
  .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-toggler  { display: none; }
}

/* --- Styles généraux pour formulaires --- */
form {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
form .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #0b3d91; /* Bleu Royal Bank */
}
form input.form-control,
form select.form-select,
form textarea.form-control {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.6rem 0.75rem;
  transition: all 0.2s ease-in-out;
  background-color: #f8f9fa;
}
form input.form-control:focus,
form select.form-select:focus,
form textarea.form-control:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 0.2rem rgba(11, 61, 145, 0.25);
  background-color: #fff;
}
.input-group-text {
  background-color: var(--royal-blue);
  color: white;
  border: none;
}
form button[type="submit"],
form .btn-primary {
  background-color: var(--royal-blue);
  border: none;
  font-weight: 500;
  padding: 0.6rem;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out;
}
form button[type="submit"]:hover,
form .btn-primary:hover { background-color: #093172; }
.alert { border-radius: 8px; }

/* Header fixe en haut de la page */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 50;
}
/* Compense la hauteur du header fixe */
body { padding-top: 80px; }

/* =======================================================
   FOOTER — ALIGNEMENT HORIZONTAL SANS BOOTSTRAP CSS
   ======================================================= */

/* 1) On transforme la ligne du footer en flex container */
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem; /* espace entre colonnes (optionnel) */
}

/* 2) Par défaut (mobile): colonnes empilées */
.site-footer .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

/* 3) Largeurs explicites pour les classes utilisées (≥768px et ≥992px) */
@media (min-width: 768px) {
  .site-footer .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .site-footer .col-md-6 { flex: 0 0 50%;      max-width: 50%; }
  .site-footer .text-md-start { text-align: left; }
  .site-footer .text-md-end   { text-align: right; }
}

@media (min-width: 992px) {
  .site-footer .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .site-footer .col-lg-3 { flex: 0 0 25.000%; max-width: 25.000%; }
  .site-footer .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
}

/* 4) Liens légaux à droite, en ligne */
.site-footer .row:last-child { align-items: center; }
.site-footer .col-md-6.text-md-end a {
  display: inline-block;
  margin-left: 1rem;
}
/* Lien KYC coloré */
.hover-link {
  color: #0d6efd; /* bleu bootstrap */
  text-decoration: none;
}

.hover-link:hover {
  color: #dc3545; /* rouge bootstrap */
  text-decoration: underline;
}
