/* === Police principale === */
@font-face {
  font-family: 'NotoKufiArabic';
  src: url('../fonts/NotoKufiArabic-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* === Variables globales (thème clair) === */
:root {
  --main-color: #3B96CE;
  --accent-color: #FCC400;
  --dark-color: #1a1a1a;
  --light-bg: #EBEBEB;
  --text-color: #212529;
  --white: #ffffff;
}

/* === Thème sombre === */
body.dark-mode {
  --light-bg: #1d1d1d;
  --text-color: #e6edf3;
  --white: #2c2c2c;
}

/* === Corps de page === */
body {
  font-family: 'NotoKufiArabic', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  direction: rtl;
  text-align: right;
  transition: background 0.3s ease, color 0.3s ease;
}

/* === Navbar === */
.navbar {
  background-color: #000 !important;
  border-bottom: 1px solid #ddd;
}

.navbar-brand {
  color: var(--main-color) !important;
  font-weight: bold;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: var(--accent-color) !important;
}

/* Dropdown menu */
.dropdown-menu {
  z-index: 2000 !important;
  text-align: right;
}

.dropdown-item {
  color: #000 !important;
}

.dropdown-item:hover {
  background-color: var(--accent-color) !important;
  color: #000 !important;
}

/* === Footer === */
footer {
  background-color: #111;
  color: #fff;
}

footer h5 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

footer a:hover {
  transform: scale(1.2);
  color: #fff;
}

.footer-social a {
  margin: 0 10px;
  color: var(--accent-color);
  font-size: 1.8rem;
  transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover {
  color: #25D366;
  transform: scale(1.3);
}

/* === Formulaires === */
.form-container {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

h2.form-title, h3.form-title {
  color: var(--main-color);
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

/* === Boutons globaux === */
.btn-primary {
  background-color: var(--accent-color);
  border: none;
  color: #000;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: #e6b300;
}

.btn-outline-primary {
  border-color: var(--accent-color);
  color: var(--accent-color);
}
.btn-outline-primary:hover {
  background-color: var(--accent-color);
  color: #000;
}

/* === Liens === */
a {
  color: var(--main-color);
  text-decoration: none;
}
a:hover {
  color: var(--accent-color);
}

/* === Tableaux globaux === */
.table th {
  background-color: var(--main-color);
  color: #fff;
  text-align: center;
}
.table td {
  vertical-align: middle;
  text-align: center;
}
.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

/* === Styles admin (tables et boutons) === */
.table-custom {
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0 0.25rem;
}

.table-custom th, .table-custom td {
    vertical-align: middle;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
}

.table-custom tbody tr {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 0.25rem;
}

.table-custom thead th {
    background-color: #00737F;
    color: #fff;
    border-bottom: 2px solid #005f66;
}

td.amount {
    text-align: right;
    direction: ltr;
    unicode-bidi: embed;
}

/* === Boutons petits admin === */
.btn-sm-custom {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-transform: none;
    box-shadow: none;
    transition: all 0.2s;
}

.btn-sm-custom i {
    font-size: 0.75rem;
    margin: 0;
}

.btn-group-sm-custom {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.btn-sm-custom.btn-primary {
    background-color: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
}
.btn-sm-custom.btn-primary:hover { background-color: #0b5ed7; border-color: #0a58ca; }

.btn-sm-custom.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}
.btn-sm-custom.btn-warning:hover { background-color: #e0a800; border-color: #d39e00; }

.btn-sm-custom.btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}
.btn-sm-custom.btn-danger:hover { background-color: #bb2d3b; border-color: #b02a37; }

/* === Carrousels et images (site public) === */
.carousel-inner img, .carousel-inner video { border-radius: 12px; max-height: 500px; object-fit: cover; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(0,0,0,0.5); border-radius: 50%; width: 2.5rem; height: 2.5rem; background-size: 1.5rem; }

/* === Hero section === */
.hero { position: relative; background-size: cover; background-position: center; height: 100vh; color: white; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.hero .container { position: relative; z-index: 2; }
.hero .btn-warning { background-color: var(--accent-color); border: none; }

/* === Cartes & hover === */
.card, .hover-card, .feature-box { border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover, .hover-card:hover, .feature-box:hover { transform: translateY(-6px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-img-top { border-radius: 6px; transition: transform 0.3s ease; }
.card-img-top:hover { transform: scale(1.03); }
.card-text { font-size: 0.95rem; }

/* === Responsive === */
@media (max-width: 1199px) { .col-md-3 { flex: 0 0 25%; max-width: 25%; } }
@media (max-width: 991px) { .col-md-3 { flex: 0 0 33.3333%; max-width: 33.3333%; } }
@media (max-width: 767px) { .feature-box { min-height: 220px; padding: 12px; } }
@media (max-width: 575px) { .feature-box { min-height: 200px; padding: 10px; } }

/* === Hover images === */
.row img { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.row img:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

.offer-card { position: relative; overflow: hidden; }
.offer-card img { transition: transform 0.3s; }
.offer-card:hover img { transform: scale(1.05); }
.offer-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.offer-card .btn-group { margin-top: 0.5rem; }
/* === Modal de suppression personnalisé === */
.modal-content {
    border-radius: 0.75rem;              /* coins arrondis */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2); /* ombre douce */
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-content:hover {
    transform: translateY(-2px);         /* effet léger au hover */
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.modal-header {
    background-color: #dc3545;           /* rouge suppression */
    color: #fff;
    border-bottom: none;
    font-weight: bold;
    padding: 1rem 1.25rem;
}

.modal-body {
    font-size: 0.9rem;
    color: var(--text-color);
    padding: 1rem 1.25rem;
}

.modal-footer {
    border-top: none;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem;
}

/* Boutons dans le modal */
.modal-footer .btn-sm-custom {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.35rem;
    box-shadow: none;
    transition: all 0.2s;
}

.modal-footer .btn-sm-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.modal-footer .btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}
.modal-footer .btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}
.modal-footer .btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}
.form-card-custom {
    background-color: #3A267A !important;
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.form-card-custom:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.form-card-custom .form-control,
.form-card-custom .form-select {
    background-color: #fff;
    color: #000;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 0.5rem 0.75rem;
}

.form-card-custom .form-control:focus,
.form-card-custom .form-select:focus {
    border-color: #FCC400;
    box-shadow: 0 0 6px rgba(252,196,0,0.4);
}
.header {
    width: 100%;
}

.header .logo-left,
.header .logo-right {
    display: inline-block;
    vertical-align: top; /* force alignement en haut */
}

.header .logo-left { float: left; }
.header .logo-right { float: right; }

.header .logo {
    height: 80px;  /* ajustable */
    width: auto;
}
/* === Styles spécifiques pour le formulaire de login === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--main-color), #6a11cb);
}

.login-card {
  max-width: 380px;
  width: 100%;
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  animation: fadeIn 0.8s ease-in-out;
}

.login-card h3 {
  color: var(--main-color);
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-card .form-control {
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.login-card .btn-primary {
  border-radius: 8px;
  padding: 0.6rem;
  font-weight: 600;
}

.login-card .input-group .btn {
  border-radius: 0 8px 8px 0;
}

.login-card a {
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 0.5rem;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}
/* === Styles spécifiques pour le formulaire de login === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--main-color), #6a11cb);
  padding: 15px; /* petit espace sur mobile */
}

.login-card {
  max-width: 380px;
  width: 100%;
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  animation: fadeIn 0.8s ease-in-out;
}

.login-card h3 {
  color: var(--main-color);
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-card .form-control {
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
}

.login-card .btn-primary {
  border-radius: 8px;
  padding: 0.7rem;
  font-weight: 600;
  font-size: 1rem;
}

.login-card .input-group .btn {
  border-radius: 0 8px 8px 0;
}

.login-card a {
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* === Responsive mobile === */
@media (max-width: 480px) {
  .login-card {
    padding: 20px;
    border-radius: 12px;
  }

  .login-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .login-card .form-control {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
  }

  .login-card .btn-primary {
    padding: 0.65rem;
    font-size: 0.95rem;
  }

  .login-card a {
    font-size: 0.85rem;
  }
}
/* ---------------------------
   Styles spécifiques : page login
   (à ajouter en bas de style.css)
   --------------------------- */

/* valeurs par défaut pour gérer l'espace header/footer sans forcer leur style */
:root {
  --site-header-height: 80px; /* ajuster si ton header est plus grand */
  --site-footer-height: 60px; /* ajuster si besoin */
}

/* Wrapper principal de la page login.
   On calcule la hauteur pour garder header+footer visibles. */
.login-page {
  min-height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  /* dégradé discret : respecte les variables globales */
  background: linear-gradient(135deg, rgba(59,150,206,0.12), rgba(106,17,203,0.08));
}

/* Si ton header est positionné fixed/sticky et que tu ajoutes la classe `header-fixed`
   sur body (ou .header-fixed sur le header), on compense avec du padding-top.
   N'utilise ces règles que si ton header est réellement fixé. */
body.header-fixed .login-page,
.login-page.header-fixed {
  padding-top: calc(var(--site-header-height) + 15px);
  min-height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
}

/* Carte du formulaire — ciblée pour ne pas impacter .form-container global */
.login-card {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

.login-card .form-title {
  margin-bottom: 1.25rem;
  color: var(--main-color);
  font-weight: 700;
  text-align: center;
}

/* Champs et boutons */
.login-card .form-control {
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.98rem;
}

.login-card .input-group .btn {
  border-radius: 0 10px 10px 0;
  border: 1px solid #ddd;
  background: transparent;
}

.login-card .btn-primary {
  border-radius: 10px;
  padding: 0.65rem;
  font-weight: 700;
  background-color: var(--main-color);
  color: #fff;
  border: none;
}

.login-card .btn-primary:hover {
  background-color: #2f86b4;
}

/* Liens et petits textes */
.login-card a {
  color: var(--main-color);
  text-decoration: none;
}
.login-card a:hover { color: var(--accent-color); }

/* Messages d'alerte (centrés) */
.login-card .alert {
  text-align: center;
  margin-bottom: 0.9rem;
}

/* Responsive : petits écrans */
@media (max-width: 480px) {
  .login-page { padding: 18px 12px; }
  .login-card {
    padding: 18px;
    border-radius: 12px;
  }
  .login-card .form-title { font-size: 1.2rem; margin-bottom: 1rem; }
  .login-card .form-control { font-size: 0.95rem; padding: 0.5rem 0.65rem; }
  .login-card .btn-primary { font-size: 0.95rem; padding: 0.6rem; }
}

/* Dark mode adaptation : respecte ta variable body.dark-mode */
body.dark-mode .login-card {
  background-color: var(--white); /* note : var(--white) est réassigné en dark-mode dans ton CSS */
}
.container-section {
    background-color: #2c3e50;
    color: #ffffff;
}

.container-section .card-custom {
    background-color: #2c3e50;
    color: #ffffff;
}
