/* ============================================================
   ATFP — Espace Apprenant | web.css
   Style global pages web responsive (desktop + tablette + mobile)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ─── VARIABLES ─── */
:root {
  --primary: #1B3A6B;
  --primary-light: #2455A4;
  --primary-dark: #0f2444;
  --accent: #E8792A;
  --accent-light: #f59344;
  --success: #1a7a4a;
  --success-bg: #e8f5ee;
  --danger: #b92b27;
  --danger-bg: #fdecea;
  --warning: #cc7a00;
  --warning-bg: #fff3dc;
  --surface: #f0f4f9;
  --card: #ffffff;
  --border: #e2e8f2;
  --text: #1a2540;
  --text-sec: #5a6a85;
  --text-hint: #9aaabb;
  --shadow: 0 2px 16px rgba(27, 58, 107, 0.09);
  --shadow-lg: 0 8px 32px rgba(27, 58, 107, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --navbar-h: 64px;
  --font: 'Tajawal', sans-serif;
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100% !important;
}

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  direction: rtl;
  min-height: 100%;
  font-size: 20px;
  -webkit-font-smoothing: antialiased;

  display: flex;
  flex-direction: column;

}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── NAVBAR ─── */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 40px;
  width: auto;


}

.navbar-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.navbar-title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.navbar-title small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.65;
  margin-top: 1px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-link i {
  margin-left: 5px;
  font-size: 13px;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar-welcome {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-align: left;
}

.navbar-welcome strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.navbar-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.navbar-avatar:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-logout {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ─── DROPDOWN NAVBAR ─── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-dropdown .dropdown-toggle:hover,
.nav-dropdown.open .dropdown-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-dropdown.active .dropdown-toggle {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.dropdown-chevron {
  font-size: 9px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
  min-width: 190px;
  overflow: hidden;
  z-index: 1000;
  animation: dropIn 0.15s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid #f0f4f8;
  transition: background 0.15s;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--surface);
  color: var(--primary-light);
}

.dropdown-item.active {
  background: #e8f0fd;
  color: var(--primary-light);
  font-weight: 700;
}

.dropdown-item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ─── HAMBURGER (mobile) ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Menu mobile déroulant */
/* ─── SIDEBAR MOBILE ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  /* ← droite en RTL */
  bottom: 0;
  width: 280px;
  background: var(--primary-dark);
  z-index: 300;
  padding: 0;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
  flex-direction: column;
  transform: translateX(100%);
  /* ← caché à droite */
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  /* ← glisse vers gauche */
}

/* Overlay sombre derrière la sidebar */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 299;
}

.mobile-overlay.open {
  display: block;
}

/* En-tête sidebar */
.mobile-menu-header {
  background: var(--primary);
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-header .sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-header img {
  height: 36px;
  background: #fff;
  border-radius: 6px;
  padding: 3px 6px;
}

.mobile-menu-header .sidebar-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Infos utilisateur dans sidebar */
.mobile-menu-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.mobile-menu-username {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.mobile-menu-username small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

/* Liens sidebar */
.mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  border-right: 3px solid transparent;
}

.mobile-menu-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-menu-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-right-color: var(--accent);
}

.mobile-menu-nav a i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

/* Séparateur de section */
.mobile-menu-section {
  padding: 8px 20px 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* Footer sidebar */
.mobile-menu-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
}

.mobile-menu-footer a:hover {
  color: #fff;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ─── HERO SECTION ─── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  padding: 44px 32px 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  top: -180px;
  left: -120px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.hero h1 {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
}

.hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* ─── PAGE WRAPPER ─── */
.page-wrap {
  max-width: 1200px;
  margin: -28px auto 48px;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}

/* ─── SECTION HEAD ─── */
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 16px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.section-head .sep {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── CARD ─── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-head i {
  color: var(--primary-light);
  font-size: 16px;
}

.card-head h3 {
  font-size: 15px;
  font-weight: 700;
}

/* ─── GRILLE SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.svc-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px 16px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  display: block;
}

.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.svc-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 13px;
}

.svc-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.svc-card p {
  font-size: 12px;
  color: var(--text-sec);
  margin: 0;
}

.s-blue::after {
  background: var(--primary-light);
}

.s-blue .svc-icon {
  background: #e8f0fd;
  color: var(--primary-light);
}

.s-orange::after {
  background: var(--accent);
}

.s-orange .svc-icon {
  background: #fdf0e6;
  color: var(--accent);
}

.s-green::after {
  background: var(--success);
}

.s-green .svc-icon {
  background: var(--success-bg);
  color: var(--success);
}

.s-purple::after {
  background: #003B64
}

.s-purple .svc-icon {
  background: #E6EEF4;
  color: #003B64
}

.s-teal::after {
  background: #1a8a7a;
}

.s-teal .svc-icon {
  background: #e3f6f3;
  color: #1a8a7a;
}

.s-red::after {
  background: var(--danger);
}

.s-red .svc-icon {
  background: var(--danger-bg);
  color: var(--danger);
}

.s-yellow::after {
  background: #FECC00
}

.s-yellow .svc-icon {
  background: #FFF7D6;
  color: #FECC00
}

.s-cyan::after {
  background: #2FAAAF
}

.s-cyan .svc-icon {
  background: #E6F7F6;
  color: #2FAAAF
}

/* ─── INFO ROWS ─── */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #f5f7fb;
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-label i {
  color: var(--primary-light);
  font-size: 13px;
  width: 14px;
  text-align: center;
}

.info-value {
  font-weight: 700;
  color: var(--text);
}

/* ─── ALERTS ─── */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert i {
  flex-shrink: 0;
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(185, 43, 39, 0.2);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(26, 122, 74, 0.2);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(204, 122, 0, 0.2);
}

/* ─── BOUTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(27, 58, 107, 0.35);
}

.btn-outline {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-sec);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ─── FORM ─── */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 34px 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(36, 85, 164, 0.1);
  background: #fff;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  font-size: 14px;
  pointer-events: none;
}

.input-icon input {
  padding-right: 42px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--primary-dark);
  padding: 28px 32px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  opacity: 0.75;
}

.footer-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: left;
}

.footer-text strong {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3px;
}

/* ─── INNER PAGE HEADER ─── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 36px 32px 52px;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.page-header h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.back-btn {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  transition: all 0.2s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

/* ─── AUTH PAGES ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.auth-topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-logo-img {
  height: 44px;
  width: auto;
}

.auth-logo-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.auth-card-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 12px 8px;
  text-align: center;
}

.auth-card-hero h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
}

.auth-card-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.auth-card-body {
  padding: 28px;
}

.auth-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* ─── RESPONSIVE TABLET (≤ 1024px) ─── */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 36px 20px 56px;
  }

  .page-wrap {
    padding: 0 20px;
  }

  .page-header {
    padding: 28px 20px 44px;
  }

  .footer {
    padding: 24px 20px;
  }
}

/* ─── RESPONSIVE MOBILE (≤ 640px) ─── */
@media (max-width: 640px) {
  :root {
    --navbar-h: 56px;
  }

  .navbar {
    padding: 0 14px;
  }

  .navbar-welcome {
    display: none;
  }

  .btn-logout {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .svc-icon {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  .svc-card {
    padding: 16px 12px 14px;
  }

  .hero {
    padding: 24px 14px 44px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .page-wrap {
    padding: 0 12px;
    margin-top: -20px;
  }

  .page-header {
    padding: 22px 14px 38px;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-text {
    text-align: center;
  }

  .auth-topbar {
    padding: 14px 16px;
  }

  .auth-logo-img {
    height: 34px;
  }

  .section-head {
    margin-top: 22px;
  }
}

@media (max-width: 380px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .svc-card h4 {
    font-size: 12.5px;
  }
}

/* ── Correction logos (fichiers JPEG sur fond coloré) ── */
.navbar-logo-img {
  filter: none;
  opacity: 1;
  background: #fff;
  border-radius: 6px;
  padding: 2px 4px;
  height: 52px;
}

.footer-logo-img {
  filter: none;
  opacity: 1;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 2px 4px;
  height: 52px;
}

.auth-logo-img {
  filter: none;
  opacity: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 2px 4px;
  height: 52px;
}

/* ──────────────────────────────────────
   ANNONCES – Détail
   ────────────────────────────────────── */

.ann-detail-header {
  position: relative;
}

.ann-detail-body {
  padding: 20px 16px 32px;
}

.ann-detail-meta {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.ann-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-sec);
}

.ann-meta-item i {
  color: var(--primary-light);
  font-size: 13px;
}

.ann-detail-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 28px;
}

.btn-back-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  transition: background 0.2s;
}

.btn-back-full:hover {
  background: var(--surface);
}

.main-content {
  flex: 1;
  /* ✅ pousse le footer vers le bas */
}

.page-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 26px 30px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #003B64;
  margin-bottom: 30px;
}

.module-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.module-link:hover {
  background: var(--surface);
}

.s-indigo .svc-icon {
  background: #ede9fe;
}

.s-indigo .svc-icon i {
  color: #003B64;
}

.s-indigo::after {
  background: #003B64;
}

.s-indigo:hover {
  border-color: #2455A4;
}

/* ─── AVATAR IMAGE ─── */
.navbar-avatar img.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.mobile-menu-avatar img.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ─── AVATAR VISIBLE MOBILE ─── */
@media (max-width: 640px) {
  .navbar-user {
    display: flex !important;
    align-items: center;
  }

  .navbar-avatar {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
  }

  .navbar-avatar img.avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
  }
  /* Champs OTP */
.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}
.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
}
.otp-digit:focus { border-color: #3498db; }

/* Force mot de passe */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.strength-fill {
    height: 6px;
    border-radius: 3px;
    transition: all 0.3s;
    flex: 1;
}

/* Mot de passe avec bouton oeil */
.input-password {
    position: relative;
}
.input-password .form-control {
    padding-left: 2.5rem;
}
.toggle-password {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
}