/* Thème clair moderne pour BIMCOT – ambiance 2030 */
:root {
  --bg: #f3f4f6;
  --bg-soft: #edf2ff;
  --bg-alt: #e5f0ff;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --accent: #10b981;
  --text: #0f172a;
  --text-soft: #4b5563;
  --border-subtle: rgba(148, 163, 184, 0.6);
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.1);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.24s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0 -40%, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(circle at 100% 140%, rgba(56, 189, 248, 0.25), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

body {
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly: remove 300ms tap delay on buttons/links */
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

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

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

main {
  padding-top: 80px;
}

/* Header & navigation */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.9));
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition:
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow var(--transition-med),
    background-color var(--transition-med);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.25;
  max-width: 240px;
  white-space: normal;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 40%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: radial-gradient(circle at 20% 0, #eff6ff, #60a5fa 40%, #2563eb 70%, #1d4ed8);
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
  animation: orbit-glow 14s ease-in-out infinite alternate;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-main {
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.nav-link,
.nav-button {
  position: relative;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform 0.14s ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.9));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
  opacity: 0.8;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-button:hover {
  color: #111827;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(191, 219, 254, 0.9);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #0f172a;
  background: radial-gradient(circle at top, rgba(191, 219, 254, 0.8), transparent 60%);
  border-color: rgba(59, 130, 246, 0.9);
}

.nav-link.active::after {
  transform: scaleX(1);
}

  .header-cta {
    font-size: 0.85rem;
    padding-inline: 1rem;
  }

  .header-cta-group {
    flex-direction: row;
    width: auto;
    gap: 0.4rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }

  .header-auth-buttons {
    width: auto;
    gap: 0.4rem;
  }

  .header-auth-btn {
    flex: 0 0 auto;
    justify-content: center;
  }

  .header-profile-picture-btn {
    width: 36px;
    height: 36px;
  }

  .header-profile-dropdown-menu {
    right: 0;
    min-width: 160px;
  }

/* Header authentication buttons */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.header-auth-btn {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 6px;
  flex-shrink: 0;
}

.btn-secondary {
  background: #2563eb;
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Notifications badge in dropdown */
.dropdown-notifications-badge {
  margin-left: auto;
  background: #dc2626;
  color: white;
  border-radius: 10px;
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

/* Notifications panel */
.header-notifications-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: 500px;
  z-index: 1001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dropdownFadeIn 0.2s ease;
  margin-top: 0.5rem;
  border: 1px solid #e5e7eb;
}

.notifications-header {
  padding: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9fafb;
}

.notifications-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.notifications-mark-all-read {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.notifications-mark-all-read:hover {
  background-color: #eff6ff;
}

.notifications-list {
  overflow-y: auto;
  max-height: 400px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.notification-item:hover {
  background-color: #f9fafb;
}

.notification-item.unread {
  background-color: #eff6ff;
}

.notification-item.unread:hover {
  background-color: #dbeafe;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.notification-message {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.notification-date {
  color: #9ca3af;
  font-size: 0.75rem;
}

.notification-unread-indicator {
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  margin-left: 0.5rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.notifications-empty,
.notifications-error {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.notifications-error {
  color: #dc2626;
}

/* Enrollments panel */
.header-enrollments-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: 500px;
  z-index: 1001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dropdownFadeIn 0.2s ease;
  margin-top: 0.5rem;
  border: 1px solid #e5e7eb;
}

.enrollments-header {
  padding: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9fafb;
}

.enrollments-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.enrollments-view-all {
  color: #2563eb;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.enrollments-view-all:hover {
  color: #1d4ed8;
}

.enrollments-list {
  overflow-y: auto;
  max-height: 400px;
}

.enrollment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
  position: relative;
}

.enrollment-item:hover {
  background-color: #f9fafb;
}

.enrollment-content {
  flex: 1;
  min-width: 0;
}

.enrollment-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.enrollment-status {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.enrollment-date {
  color: #9ca3af;
  font-size: 0.75rem;
}

.enrollment-item.certificate-item {
  background-color: #f0fdf4;
}

.enrollment-item.certificate-item:hover {
  background-color: #dcfce7;
}

.enrollment-content {
  flex: 1;
  min-width: 0;
}

.enrollment-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enrollment-status {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.enrollment-date {
  color: #9ca3af;
  font-size: 0.75rem;
}

.enrollment-download-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.enrollment-download-btn:hover {
  background-color: #e5e7eb;
}

.enrollments-empty,
.enrollments-error {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.enrollments-error {
  color: #dc2626;
}

/* Profile picture dropdown */
.header-profile-dropdown {
  position: relative;
  flex-shrink: 0;
}

.header-profile-picture-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.header-profile-picture-btn:hover {
  border-color: #2563eb;
  transform: scale(1.05);
}

.header-profile-picture-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.header-profile-picture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-profile-picture-default {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50%;
}

.header-profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  position: relative;
}

.header-profile-dropdown-item .dropdown-item-text {
  flex: 1;
}

.header-profile-dropdown-item:hover {
  background-color: #f3f4f6;
}

.header-profile-dropdown-item:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.header-profile-dropdown-item span {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.header-profile-dropdown-item:last-child {
  color: #dc2626;
}

.header-profile-dropdown-item:last-child:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 115%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.4);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--transition-med),
    transform var(--transition-med);
  z-index: 40;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown li a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.dropdown li a:hover {
  background: rgba(239, 246, 255, 0.9);
  color: #111827;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  order: 2;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 18px;
  border-radius: 999px;
  background: #374151;
  transition:
    transform 0.18s ease-out,
    opacity 0.18s ease-out;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(40deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-40deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition-med),
    color var(--transition-med),
    box-shadow var(--transition-med),
    transform 0.14s ease-out,
    border-color var(--transition-med);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f9fafb;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.45);
}

/* Header auth buttons - consistent sizing */
.header-auth-btn.btn-primary {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
}

.btn-outline:hover {
  border-color: rgba(37, 99, 235, 0.9);
  background: radial-gradient(circle at top, rgba(191, 219, 254, 0.8), transparent 60%);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.45);
}

.btn-lg {
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  padding-block: 4.6rem 3.6rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3rem;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-content p {
  margin: 0 0 1.3rem;
  color: var(--text-soft);
  font-size: 0.97rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.meta-item {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(107, 114, 128, 0.95);
}

.meta-value {
  font-size: 0.85rem;
}

.hero-panel {
  background: radial-gradient(circle at 10% 0, rgba(219, 234, 254, 0.9), #eff6ff);
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  padding: 1.4rem 1.3rem 1.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(16, 185, 129, 0.22), transparent 45%);
  opacity: 0.9;
  pointer-events: none;
  animation: aurora-2030 26s ease-in-out infinite alternate;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  padding: 0.75rem 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.35);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(148, 163, 184, 0.35);
  border-color: rgba(37, 99, 235, 0.85);
}

.stat-number {
  font-weight: 650;
  font-size: 1.2rem;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-soft);
}

.hero-badge {
  position: relative;
  margin-top: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px dashed rgba(129, 140, 248, 0.8);
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Sections */
.section {
  padding-block: 3.4rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.96));
  border-block: 1px solid rgba(226, 232, 240, 0.9);
}

.section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.section-header-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 1.3rem 1.2rem;
  box-shadow: 0 14px 40px rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(148, 163, 184, 0.35);
  border-color: rgba(37, 99, 235, 0.85);
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.card-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.card-list li::before {
  content: "•";
  margin-right: 0.35rem;
  color: var(--primary);
}

.card-link {
  font-size: 0.85rem;
  color: #1d4ed8;
}

.card-link:hover {
  text-decoration: underline;
}

/* Partners */
.partners-section-full .container {
  width: 100%;
  max-width: none;
  padding-inline: 2rem;
}

.partners-section-full .section-header {
  text-align: center;
  max-width: none;
  margin-inline: auto;
}

.partners-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5cm;
  margin-top: 2rem;
  width: 100%;
}

@media (max-width: 768px) {
  .partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    overflow: visible;
    justify-content: stretch;
  }
  .partner-logo {
    flex: none;
    min-height: 120px;
    padding: 1.25rem;
  }
  .partner-logo img {
    max-height: 90px;
  }
}
@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .partner-logo {
    min-height: 130px;
    padding: 1.25rem;
  }
  .partner-logo img {
    max-height: 100px;
  }
}

.partner-logo {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
  min-height: 120px;
}

.partner-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.25);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Certificate Interest Buttons */
.add-to-interest-btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #2563eb;
  color: #2563eb;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.add-to-interest-btn:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.add-to-interest-btn:active {
  transform: translateY(0);
}

.add-to-interest-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-interested {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.btn-interested:hover {
  background: #a7f3d0;
  color: #064e3b;
}

/* Certificate message animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Standards */
.standards {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.standards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.standard-tag {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.98);
}

a.standard-tag {
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

a.standard-tag:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 1.1rem;
  border-left: 1px dashed rgba(148, 163, 184, 0.7);
  padding-left: 1.35rem;
}

.timeline-item {
  position: relative;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.25);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
  border-color: rgba(59, 130, 246, 0.85);
}

a.timeline-item-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #e0f2fe, #38bdf8 60%, #0ea5e9);
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.9);
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(191, 219, 254, 0.9);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.8);
  margin-bottom: 0.35rem;
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.timeline p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.timeline-meta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: rgba(107, 114, 128, 0.98);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.testimonial {
  margin: 0;
  padding: 1.1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(148, 163, 184, 0.35);
  border-color: rgba(37, 99, 235, 0.75);
}

.testimonial blockquote {
  margin: 0 0 0.6rem;
  color: var(--text-soft);
}

.testimonial figcaption {
  font-size: 0.8rem;
  color: rgba(107, 114, 128, 0.98);
}

/* CTA */
.section-cta {
  padding-block: 3rem 3.4rem;
}

.cta-inner {
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background:
    radial-gradient(circle at 10% 0, rgba(219, 234, 254, 0.95), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(209, 250, 229, 0.9), transparent 50%),
    linear-gradient(135deg, #eff6ff, #ffffff);
  box-shadow: 0 24px 60px rgba(148, 163, 184, 0.35);
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0 0 0.4rem;
}

.cta-inner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Page hero */
.page-hero {
  padding-block: 3.5rem 2.2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.96);
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: 1.9rem;
}

.page-hero p {
  margin: 0;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.highlight-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 1.1rem 1rem;
  box-shadow: 0 14px 36px rgba(148, 163, 184, 0.25);
}

.highlight-box h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.chip-list li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: rgba(255, 255, 255, 0.98);
}

.chip-list li a {
  color: inherit;
  text-decoration: none;
}

.chip-list li a:hover {
  color: var(--accent);
}

/* Checklists */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.checklist li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: var(--accent);
}

/* Services page */
.service-block {
  max-width: 800px;
}

.service-standards {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.service-content h2 {
  margin-top: 0;
}

/* Trainings page */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.filter-btn {
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-soft);
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform 0.12s ease-out;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.filter-btn.active {
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.9);
  background: radial-gradient(circle at top, rgba(191, 219, 254, 0.85), transparent 65%);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.training-card {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 1rem 0.95rem;
  box-shadow: 0 14px 38px rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.training-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(148, 163, 184, 0.4);
  border-color: rgba(37, 99, 235, 0.9);
}

.training-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
}

.training-header h2 {
  margin: 0;
  font-size: 1rem;
}

.badge {
  align-self: flex-start;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(191, 219, 254, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.8);
  font-size: 0.78rem;
  color: #1d4ed8;
}

.training-card p {
  margin: 0.4rem 0 0.5rem;
  color: var(--text-soft);
}

.training-meta {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: rgba(107, 114, 128, 0.98);
}

/* Calendrier & téléchargements */
.calendar-section {
  align-items: flex-start;
}

.calendar-board {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(148, 163, 184, 0.25);
  overflow: hidden;
  font-size: 0.86rem;
}

.calendar-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 2fr 1.4fr;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.calendar-head {
  background: rgba(239, 246, 255, 0.96);
  font-weight: 600;
  color: #1f2937;
}

.calendar-note {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.download-item {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  font-size: 0.86rem;
  color: var(--text-soft);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.download-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.25);
  border-color: rgba(37, 99, 235, 0.85);
  background: rgba(239, 246, 255, 0.95);
}

.download-title {
  font-weight: 500;
  color: #111827;
}

.download-meta {
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.82rem;
  color: rgba(55, 65, 81, 0.95);
}

input,
select,
textarea {
  border-radius: 11px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  background: #f9fafb;
  color: var(--text);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
  background: #ffffff;
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.contact-info {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 14px 40px rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
}

.contact-info h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(107, 114, 128, 0.98);
  margin-bottom: 0.1rem;
}

.contact-value {
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.4rem 1.9rem;
}

.footer-brand {
  max-width: 420px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-brand p {
  margin-top: 0.7rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-columns h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.footer-columns ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.footer-columns a:hover {
  color: #1d4ed8;
}

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-block: 0.8rem 1rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Header hide-on-scroll */
.site-header.header-hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

/* Utilities */
.contact-block h2,
.service-content h2,
.two-column h2 {
  margin-top: 0;
}

/* Animations 2030 */
@keyframes aurora-2030 {
  0% {
    transform: translate3d(-6%, -4%, 0) scale(1.05);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(4%, 3%, 0) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate3d(-3%, 5%, 0) scale(1.04);
    opacity: 0.92;
  }
}

@keyframes orbit-glow {
  0% {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
    transform: translateY(0.5px);
  }
}

/* Responsive */
@media (max-width: 960px) {
  main {
    padding-top: 74px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .cards-grid,
  .training-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .header-inner .logo {
    order: 1;
    flex: 0 0 auto;
  }

  .header-inner .logo-img {
    height: 36px;
    max-width: 140px;
  }

  .header-inner .logo-tagline {
    font-size: 0.6rem;
    max-width: 120px;
  }

  .header-inner .nav-toggle {
    order: 2;
    flex: 0 0 auto;
  }

  .header-inner .main-nav {
    order: 3;
  }

  .header-inner .header-cta {
    order: 4;
  }

  .header-profile-picture-btn {
    width: 36px;
    height: 36px;
  }

  .header-profile-dropdown-menu {
    right: 0;
    min-width: 160px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 58px;
    z-index: 49;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease,
      visibility 0.25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
  }

  .has-dropdown {
    width: 100%;
  }

  .dropdown {
    position: static;
    margin-top: 0.3rem;
    border-radius: 12px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown li a {
    padding: 0.35rem 0.5rem;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .page-hero {
    padding-inline: 1.5rem;
  }

  .cards-grid,
  .training-grid,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 2.2rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .meta-item {
    width: 100%;
  }

  .section {
    padding-block: 2.8rem;
  }

  .page-hero {
    padding-block: 3.1rem 1.8rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


