/* =========================
   Variables globales
   ========================= */
:root {
  --brand: #0d6efd;
}

/* =========================
   Structure générale
   ========================= */
html[dir="rtl"] body {
  direction: rtl;
}

body {
  background: #f8f9fa;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* =========================
   En-tête / Navigation
   ========================= */
.navbar-brand {
  font-weight: 600;
}

.brand-logo {
  height: 56px;
  max-height: 10vh;
}

@media (min-width: 992px) {
  .brand-logo {
    height: 86px;
  }
}

/* =========================
   Cartes (cards)
   ========================= */
.card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* =========================
   Sections et mise en page
   ========================= */
.section-wrap {
  padding-block: 40px;
}

@media (min-width: 992px) {
  .section-wrap {
    padding-block: 64px;
  }
}

.container-narrow {
  max-width: 720px;
}

/* =========================
   Formulaires
   ========================= */
.form-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* =========================
   Pied de page
   ========================= */
footer {
  background: #fff;
  border-top: 1px solid #eee;
}

/* =========================
   Bloc de description
   ========================= */
.description-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: justify;
  line-height: 1.7;
  color: #333;
}

/* =========================
   Objectifs
   ========================= */
.objectives-box {
  border: 2px solid var(--brand);
  border-radius: 12px;
  background: #fdfdfd;
  padding: 1.5rem;
  margin-top: 2rem;
}

.objectives-box h5 {
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1rem;
}

.objectives-box ul {
  list-style-type: none;
  padding-left: 0;
}

.objectives-box li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.objectives-box li::before {
  content: "";
  font-size: 1rem;
}

/* =========================
   Valeurs (badges)
   ========================= */
.values-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.value-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border-radius: 50px;
  font-weight: 500;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.value-badge:hover {
  transform: translateY(-3px);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 576px) {
  .description-card {
    padding: 1.2rem;
  }
}

/* ============================
   Gestion automatique du sens d'écriture
   ============================ */

/* Par défaut (langue gauche à droite) */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  direction: ltr;
  text-align: left;
}

/* Quand la page est en arabe (rtl) */
[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="password"],
[dir="rtl"] select,
[dir="rtl"] textarea {
  direction: rtl;
  text-align: left;
}

/* Position icônes selon la direction */
.input-icon {
  left: 12px;
}

[dir="rtl"] .input-icon {
  /*left: auto;*/
  right: 12px;
}


/* =========================
   Pied de page sticky global
   ========================= */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8f9fa;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  background: url('../images/tab.jpg') center/cover no-repeat;
  color: #fff;
  padding: 2rem 0;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.6rem;
  flex: 1;
  line-height: 1.6;
  opacity: 0.95;
}
[dir="rtl"] .footer-text {
  align-items: flex-end;
  text-align: right;
}

.footer-text .brand {
  font-weight: 600;
  font-size: 1rem;
}

.footer-line {
  width: 80%;
  max-width: 250px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.footer-logo {
  flex: 0 0 auto;
  height: 80px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-text,
  [dir="rtl"] .footer-text {
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    height: 65px;
    margin-top: 1rem;
  }
}

/* Animation douce */
@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
footer {
  animation: fadeInFooter 1s ease;
}


