/* === 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;   /* Bleu principal */
  --accent-color: #FCC400; /* Jaune doré */
  --dark-color: #1a1a1a;
  --light-bg: #EBEBEB;
  --text-color: #212529;
  --white: #ffffff;
}

/* === Thème sombre (dark-mode) === */
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: var(--white) !important;
  border-bottom: 1px solid #ddd;
}

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

.navbar .nav-link {
  color: var(--main-color);
  font-weight: 600;
  transition: 0.2s ease-in-out;
}

.navbar .nav-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* === Footer === */
footer {
  background-color: #2c2f35;
  color: var(--white);
  padding: 1rem 0;
  margin-top: 2rem;
  position: relative;
  text-align: center;
}

footer::before {
  content: "";
  display: block;
  height: 5px;
  background-color: var(--main-color);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

.footer-social i {
  font-size: 1.4rem;
  margin: 0 8px;
  transition: 0.2s ease;
}

.footer-social i:hover {
  color: var(--accent-color);
}

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

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

/* === Boutons === */
.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;
}

/* === Tableaux === */
.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;
}

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

/* === Carrousels et images === */
.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: url('../img/hero.jpg') center/cover no-repeat;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero .btn-warning {
  background-color: var(--accent-color);
  border: none;
}

/* === Cartes === */
.card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card: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;
}

/* === Hover card (style futuriste) === */
.hover-card {
  background: var(--dark-color);
  border-radius: 12px;
  padding: 20px;
  color: #e6edf3;
  border: 1px solid rgba(79,172,254,0.2);
  transition: all 0.3s ease;
}
.hover-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 15px rgba(59,150,206,0.6);
  border-color: rgba(59,150,206,0.8);
}
.hover-card h5 {
  color: var(--accent-color);
  font-weight: bold;
}
.feature-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #111827;
    border-radius: 15px;
    padding: 10px;         /* réduit de 20px à 15px */
    color: #e6edf3;
    box-shadow: 0 0 10px rgba(79,172,254,0.15);
    border: 1px solid rgba(79,172,254,0.2);
    transition: all 0.4s ease;
    min-height: 160px;     /* réduit de 320px à 260px */
}
.feature-box h5 {
    color: #58a6ff;
    font-weight: bold;
}
.feature-box i {
    text-shadow: 0 0 10px rgba(79,172,254,0.6);
    transition: transform 0.3s ease;
}
.feature-box:hover i { transform: scale(1.2); }
/* Feature Cards Uniformes - Version Responsive */
.feature-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #111827;
    border-radius: 15px;
    padding: 20px;
    color: #e6edf3;
    box-shadow: 0 0 10px rgba(79,172,254,0.15);
    border: 1px solid rgba(79,172,254,0.2);
    transition: all 0.4s ease;
    min-height: 320px; /* Hauteur par défaut */
}
.feature-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 20px rgba(0,242,254,0.6);
    border-color: rgba(0,242,254,0.8);
}
.feature-box h5 {
    color: #58a6ff;
    font-weight: bold;
}
.feature-box i {
    text-shadow: 0 0 10px rgba(79,172,254,0.6);
    transition: transform 0.3s ease;
}
.feature-box:hover i { transform: scale(1.2); }

/* Responsive Grid pour les cartes */
@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; } 
}

