:root {
  --bg-main: #eef2ff;
  /* bleu pastel */
  --bg-section: #ffffff;
  --accent: #2563eb;
  /* bleu vif pour les liens/boutons */
  --accent-soft: #dbeafe;
  --text-main: #111827;
  --text-muted: #6b7280;
  --card-muted: #1f2937;
}

body {
  background: linear-gradient(180deg, #eef2ff 0%, #f9fafb 45%, #ffffff 100%);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -42px;
  z-index: 2000;
  background: #0f172a;
  color: #ffffff;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1100;
}

.navbar-brand {
  color: var(--accent) !important;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

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

.nav-lang-item {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}

.lang-switcher {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #4b5563;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 2.1rem;
}

.lang-btn:hover {
  background: #e2e8f0;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #ffffff;
}

.site-footer {
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding-bottom: env(safe-area-inset-bottom);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: start;
  gap: 1.2rem;
  padding: 1.1rem 0;
}

.footer-left {
  min-width: 240px;
}

.footer-center {
  justify-self: center;
}

.footer-title {
  margin: 0 0 0.12rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.footer-subtitle {
  margin: 0 0 0.2rem 0;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-right {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.22rem;
  width: min(100%, 22rem);
  margin: 0 auto;
  text-align: left;
}

.footer-contact-label {
  margin: 0.05rem 0 0.12rem 0;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.footer-contact-line {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.08rem 0;
  font-size: 0.8rem;
  color: #334155;
  text-decoration: none;
  line-height: 1.35;
}

.footer-contact-line:hover {
  color: var(--accent);
}

.footer-contact-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.footer-contact-line:hover .footer-contact-icon {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.footer-contact-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-top-btn {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.footer-top-btn:hover {
  border-color: #94a3b8;
  background: #eef2f7;
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: calc(0.95rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dbe3ef;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1200;
}

.bottom-dock.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.dock-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.dock-btn:hover {
  background: #eef2f7;
  border-color: #94a3b8;
  color: var(--accent);
}

/* Carte centrale accueil */
section.container {
  background: var(--bg-section);
  border-radius: 20px;
  padding: 2.5rem 2.2rem;
  margin-top: 2.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.domaines-card {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border: 1px solid #bfdbfe;
  color: #0f172a;
}

.domaines-card li::marker {
  color: var(--accent);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(180deg, #eef2ff 0%, #f9fafb 50%, #ffffff 100%);
  padding: 3.5rem 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .container {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Titre principal */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 90%;
}

/* Skills tags */
.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  display: inline-block;
  background: #f3f4f6;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:focus {
  outline: none;
  box-shadow: none;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline-primary {
  color: var(--accent);
  border: 2px solid var(--accent);
}

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

/* Hero footer */
.hero-footer {
  font-size: 0.95rem;
  margin: 0;
}

.link-secondary {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent-soft);
  transition: all 0.2s ease;
}

.link-secondary:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

/* ==================== VISUAL SIDE ==================== */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-image-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  align-self: center;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #e0f2fe 100%);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
}

.profile-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
  z-index: 0;
}

/* Info Card */
.hero-info-card {
  width: 100%;
  max-width: 360px;
  align-self: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero-info-card h3 {
  margin-bottom: 1.25rem;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 991px) {
  .nav-lang-item {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .footer-right {
    justify-self: stretch;
    width: 100%;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .footer-center {
    justify-self: start;
  }

  .footer-contact {
    align-items: stretch;
    margin: 0;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    max-width: 100%;
  }

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

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

  .experience-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.2rem 0 0;
  }

  .experience-timeline::before {
    left: 0.62rem;
    right: auto;
    top: 0.2rem;
    bottom: 0.25rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #dbeafe 0%, #cbd5e1 100%);
  }

  .experience-timeline-node,
  .experience-timeline-node:first-child,
  .experience-timeline-node:last-child {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: 0 0 0 1.55rem;
  }

  .experience-timeline-node-dot {
    position: absolute;
    left: 0.05rem;
    top: 0.02rem;
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.54rem;
  }

  .experience-timeline-node-title,
  .experience-timeline-node-org {
    max-width: none;
  }

  .experience-card-header {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .experience-card-meta {
    min-width: 0;
    text-align: left;
  }

  .experience-card-close {
    justify-self: start;
  }

  .experience-kind-pill {
    justify-self: start;
  }

  .experience-card-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .experience-panels {
    position: static;
    height: auto !important;
  }

  .experience-card {
    position: relative;
    width: 100%;
    left: auto;
    top: auto;
    margin-top: 0.55rem;
  }

  .experience-card::before {
    display: none;
  }
}

/* ==================== SECTION GÉNÉRALE ==================== */
.section-header {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== HOBBIES SECTION ==================== */
.hobbies-section {
  padding: 4rem 0;
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.hobby-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 560px;
}

/* Image du hobby */
.hobby-image {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #e0f2fe 100%);
  border-radius: 16px 16px 0 0;
}

.hobby-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-image img {
  transform: scale(1.05);
}

/* Galerie d'images */
.hobby-gallery {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #e0f2fe 100%);
  border-radius: 16px 16px 0 0;
}

.gallery-item {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.hobby-card:hover .gallery-item img {
  transform: scale(1.05);
}

/* Fond dégradé subtle au hover */
.hobby-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #60a5fa 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hobby-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
  border-color: var(--accent-soft);
}

.hobby-card:hover::before {
  transform: scaleX(1);
}

/* Header du hobby */
.hobby-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hobby-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.hobby-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  word-break: break-word;
  max-width: 100%;
  align-self: flex-start;
}

/* Contenu du hobby */
.hobby-body {
  flex-grow: 1;
}

.hobby-text {
  color: var(--text-main);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.hobby-text:last-of-type {
  margin-bottom: 0;
}

/* Liens */
.hobby-links {
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.hobby-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.hobby-link:hover {
  gap: 0.75rem;
  color: #1d4ed8;
}

.link-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

.hobby-link:hover .link-arrow {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .hero-section .container {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .hero-section .row {
    --bs-gutter-x: 1.2rem;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-section .row > [class*="col-"] {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  section.container {
    padding: 1.35rem 1.05rem;
    margin-top: 1.15rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    border-radius: 14px;
  }

  .hero-section {
    min-height: auto;
    padding: 1.5rem 0 1.9rem;
    align-items: flex-start;
  }

  .hero-badge {
    font-size: 0.76rem;
    padding: 0.42rem 0.82rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.2vw, 2.05rem);
    line-height: 1.16;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .skill-tag {
    font-size: 0.82rem;
    padding: 0.42rem 0.76rem;
  }

  .btn-lg {
    font-size: 0.94rem;
    padding: 0.64rem 1.05rem;
  }

  .profile-image-container {
    height: 230px;
  }

  .section-title {
    font-size: 1.72rem;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .hobbies-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hobby-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hobby-badge {
    align-self: flex-start;
  }

  /* Images plus compactes sur mobile */
  .hobby-image {
    height: 170px;
  }

  .gallery-item {
    height: 150px;
  }
}

/* ==================== COURS SECTION ==================== */
.cours-section {
  padding: 4rem 0;
}

.cours-toolbar {
  margin-bottom: 1.5rem;
}

.cours-toolbar-label {
  margin: 0 0 0.75rem 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cours-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.cours-search-input {
  flex: 1;
  min-width: 220px;
  border: 1px solid #d4dce8;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.5rem 0.85rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 500;
}

.cours-search-input::placeholder {
  color: #94a3b8;
}

.cours-search-input:focus {
  outline: none;
  border-color: #7ea6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cours-search-clear {
  border: 1px solid #d4dce8;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.72rem;
  white-space: nowrap;
}

.cours-search-clear:hover {
  border-color: #94a3b8;
  background: #eef2f7;
}

.cours-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.course-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.course-filter-btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.course-filter-btn.is-active {
  background: var(--matiere-soft, #edf3ff);
  border-color: var(--matiere-color, var(--accent));
  color: #0f172a;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  padding: 0 0.28rem;
}

.cours-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.cours-view-modes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.2rem;
  border: 1px solid #d4dce8;
  border-radius: 999px;
  background: #f8fafc;
}

.cours-view-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
}

.cours-view-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.cours-action-btn {
  border: 1px solid #d4dce8;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  transition: all 0.2s ease;
}

.cours-action-btn:hover {
  border-color: #94a3b8;
  background: #eef2f7;
}

.cours-active-filters {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

.cours-empty {
  margin: 1rem 0 0 0;
  color: #64748b;
  font-weight: 600;
}

.matiere-logo {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--matiere-soft, #edf3ff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--matiere-color, var(--accent));
}

.matiere-MEC {
  --matiere-color: #4ea6d7;
  --matiere-soft: #eaf6fc;
}

.matiere-PHY {
  --matiere-color: #bf3f9d;
  --matiere-soft: #faeaf5;
}

.matiere-MAT {
  --matiere-color: #26653f;
  --matiere-soft: #ecf6ef;
}

.matiere-ECO {
  --matiere-color: #2d6fbd;
  --matiere-soft: #eaf2fd;
}

.matiere-APM {
  --matiere-color: #61a83b;
  --matiere-soft: #eff9e9;
}

.matiere-INF {
  --matiere-color: #d97706;
  --matiere-soft: #fff4e5;
}

.matiere-HSS {
  --matiere-color: #8a5a44;
  --matiere-soft: #f5ece7;
}

.matiere-MIE {
  --matiere-color: #8a5a44;
  --matiere-soft: #f5ece7;
}

.cours-accordion .matiere-item {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.cours-accordion .matiere-item:last-child {
  margin-bottom: 0;
}

.cours-accordion .matiere-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--matiere-color, var(--accent)), #93c5fd);
}

.matiere-button {
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
}

.matiere-button:not(.collapsed) {
  background: var(--matiere-soft, #edf3ff);
  color: var(--text-main);
  box-shadow: none;
}

.matiere-name {
  font-size: 1.02rem;
}

.matiere-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.matiere-meta {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.annee-button {
  background: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.annee-button:not(.collapsed) {
  background: #eef2ff;
  color: var(--text-main);
  box-shadow: none;
}

.annee-meta {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.cours-accordion .accordion-body .accordion-item {
  border: 1px solid #e9eef5;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.cours-accordion .accordion-body .accordion-item:last-child {
  margin-bottom: 0;
}

.cours-compact-list {
  display: none;
}

.cours-compact-item {
  margin: 0 0 0.55rem 0;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
}

.cours-compact-item:last-child {
  margin-bottom: 0;
}

.course-entry {
  margin-bottom: 0.7rem;
}

.course-entry:last-child {
  margin-bottom: 0;
}

.course-details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.course-details[open] {
  border-color: #c9d7ea;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.course-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
}

.course-summary::-webkit-details-marker {
  display: none;
}

.course-summary::after {
  content: "+";
  color: #64748b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.course-details[open] .course-summary::after {
  content: "−";
}

.course-summary-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.course-content-panel {
  padding: 0.8rem 1rem 0.95rem;
}

.cours-mode-compact .course-summary {
  cursor: default;
}

.cours-mode-compact .course-summary::after {
  display: none;
}

.cours-mode-compact .course-content-panel {
  display: none;
}

.cours-mode-compact .cours-detailed-years {
  display: none;
}

.cours-mode-compact .cours-compact-list {
  display: block;
}

.course-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.course-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  font-weight: 500;
}

.course-professor {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  font-weight: 500;
}

.course-paragraph {
  font-size: 0.85rem;
  color: var(--text-main);
  margin: 0.5rem 0;
  line-height: 1.6;
  padding-left: 0.5rem;
  border-left: 2px solid var(--accent-soft);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cours-section {
    padding: 2.5rem 0;
  }

  .cours-search-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .cours-search-input {
    width: 100%;
    min-width: 0;
  }

  .cours-search-clear {
    align-self: flex-start;
  }

  .cours-filters {
    gap: 0.5rem;
  }

  .cours-toolbar-actions {
    gap: 0.4rem;
  }

  .cours-view-modes {
    width: 100%;
    justify-content: center;
  }

  .cours-action-btn {
    font-size: 0.74rem;
    padding: 0.32rem 0.62rem;
  }

  .course-filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .matiere-logo {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.74rem;
  }

  .matiere-name {
    font-size: 0.95rem;
  }

  .matiere-meta {
    font-size: 0.72rem;
  }

  .course-summary {
    padding: 0.75rem 0.85rem;
  }

  .course-summary-title {
    font-size: 0.88rem;
  }

  .course-content-panel {
    padding: 0.68rem 0.8rem 0.78rem;
  }

}

@media (max-width: 576px) {
  .container {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .hero-section .container {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .hero-section .row {
    --bs-gutter-x: 0.95rem;
  }

  .navbar-brand {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    max-width: 74vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section-title {
    font-size: 1.52rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .hero-title {
    font-size: clamp(1.62rem, 7.8vw, 1.9rem);
  }

  .hero-subtitle {
    font-size: 0.93rem;
  }

  .hero-skills {
    gap: 0.48rem;
  }

  .site-footer-inner {
    padding: 0.95rem 0;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    justify-self: stretch;
  }

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

  .footer-contact {
    align-items: stretch;
    margin: 0 auto;
  }

  .footer-right {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .bottom-dock {
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    padding: 0.28rem;
  }

  .experience-card {
    padding: 1rem 0.95rem 0.95rem;
    border-radius: 15px;
  }

  .experience-timeline-node {
    padding-left: 1.45rem;
  }

  .experience-timeline-node-title {
    font-size: 0.88rem;
  }

  .experience-empty {
    padding: 0.9rem 0.85rem;
    font-size: 0.9rem;
  }

  body {
    padding-bottom: calc(4.4rem + env(safe-area-inset-bottom));
  }
}

/* ==================== PROJETS SECTION ==================== */
.experiences-section {
  padding: 3.2rem 0 3.6rem;
}

.experience-timeline-wrap {
  margin-bottom: 1.25rem;
}

.experience-timeline-label {
  margin: 0 0 0.65rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.experience-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0 0.35rem;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.55rem;
  height: 2px;
  background: linear-gradient(90deg, #dbeafe 0%, #cbd5e1 100%);
  z-index: 0;
}

.experience-timeline-node {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: center;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: transform 0.18s ease;
}

.experience-timeline-node:hover {
  transform: translateY(-1px);
}

.experience-timeline-node:first-child {
  align-items: flex-start;
  text-align: left;
}

.experience-timeline-node:last-child {
  align-items: flex-end;
  text-align: right;
}

.experience-timeline-node:focus-visible .experience-timeline-node-dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.experience-timeline-node-dot {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid #94a3b8;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
  font-size: 0.62rem;
}

.experience-timeline-node:hover .experience-timeline-node-dot {
  border-color: #60a5fa;
  transform: scale(1.04);
}

.experience-timeline-node.is-active .experience-timeline-node-dot {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.experience-kind-volunteer .experience-timeline-node-date {
  color: #0f766e;
}

.experience-kind-volunteer.is-active .experience-timeline-node-dot {
  background: #0f766e;
  border-color: #0f766e;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.14);
}

.experience-timeline-node-date {
  font-size: 0.77rem;
  font-weight: 700;
  color: #1d4ed8;
}

.experience-timeline-node-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  max-width: 22ch;
}

.experience-timeline-node-org {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  max-width: 22ch;
}

.experience-panels {
  margin-top: 0.9rem;
  position: relative;
}

.experience-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: #64748b;
  font-weight: 600;
  text-align: center;
  padding: 1rem 1.1rem;
}

.experience-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  position: relative;
}

.experience-card.is-active {
  animation: experiencePopIn 180ms ease-out;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--experience-anchor-x, 50%);
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  box-shadow: -2px -2px 8px rgba(15, 23, 42, 0.03);
}

@keyframes experiencePopIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.experience-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 0.65rem;
}

.experience-card-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.experience-card-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  flex: 0 0 auto;
}

.experience-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
}

.experience-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.experience-logo-telekom {
  background: #e20074 !important;
  border-color: #e20074 !important;
  color: #ffffff !important;
}

.experience-logo-telekom .experience-logo-image {
  width: 72%;
  height: 72%;
  filter: brightness(0) invert(1);
}

.experience-logo-gendarmerie {
  background: #ffffff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
}

.experience-logo-gendarmerie .experience-logo-image {
  width: 86%;
  height: 86%;
}

.experience-logo-suf {
  background: #ffffff !important;
  border-color: #0f766e !important;
  color: #0f766e !important;
  font-size: 0.68rem;
}

.experience-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.experience-card-org {
  margin: 0.14rem 0 0 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
}

.experience-card-meta {
  margin: 0;
  text-align: right;
  color: #475569;
  font-size: 0.82rem;
  min-width: 11rem;
}

.experience-kind-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #475569;
}

.experience-kind-pill-professional {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.experience-kind-pill-volunteer {
  border-color: #99f6e4;
  background: #ecfeff;
  color: #0f766e;
}

.experience-card-meta p {
  margin: 0 0 0.14rem 0;
}

.experience-card-meta p:last-child {
  margin-bottom: 0;
}

.experience-card-close {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.experience-card-close:hover {
  border-color: #94a3b8;
  background: #eef2f7;
}

.experience-kind-volunteer.experience-card {
  border-color: #bfeee6;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.08);
}

.experience-meta-label {
  color: #64748b;
  font-weight: 700;
}

.experience-card-resume {
  margin: 0 0 0.9rem 0;
  color: #334155;
  line-height: 1.5;
  font-weight: 500;
  border-left: 3px solid #dbeafe;
  padding-left: 0.7rem;
}

.experience-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.9fr);
  gap: 1rem;
}

.experience-card-section {
  margin-bottom: 0.8rem;
}

.experience-card-section:last-child {
  margin-bottom: 0;
}

.experience-card-section-title {
  margin: 0 0 0.32rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
}

.experience-card-section p {
  margin: 0;
  color: #1f2937;
  line-height: 1.5;
}

.experience-points {
  margin: 0;
  padding-left: 1rem;
  color: #1f2937;
}

.experience-points li {
  margin-bottom: 0.38rem;
  line-height: 1.45;
}

.experience-points li:last-child {
  margin-bottom: 0;
}

.experience-card-section-side {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.experience-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #334155;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (min-width: 992px) {
  .experience-panels.has-active {
    margin-top: 0.35rem;
  }

  .experience-card {
    position: absolute;
    top: 0;
    left: var(--experience-card-left, 0px);
    width: min(100%, 56rem);
    z-index: 2;
  }

  .experience-empty {
    position: relative;
    z-index: 1;
  }
}

/* ==================== PROJETS SECTION ==================== */
.projets-section {
  padding: 4rem 0;
}

.projets-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  padding: 2rem;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

.project-card:hover {
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
  border-color: var(--accent-soft);
  transform: translateY(-4px);
}

/* Contenu projet */
.project-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.project-context {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.project-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-icon {
  font-size: 1rem;
}

.project-description {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

/* Carousel */
.project-carousel-container {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 1.5rem;
}

.carousel {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: white;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative !important;
  display: none !important;
  width: 100%;
  height: 400px;
  background: white;
  transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
  display: block !important;
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 2;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(37, 99, 235, 0.8);
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev {
  left: 1rem;
}

.carousel-control-next {
  right: 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 100%;
  height: 100%;
  background-size: 1.25rem 1.25rem;
}

/* Résultats */
.project-results {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}

.results-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.results-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  padding-left: 1.5rem;
  position: relative;
}

.results-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Technologies */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--accent);
}

/* Liens projet */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.project-link:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.project-link .link-arrow {
  transition: transform 0.2s ease;
}

.project-link:hover .link-arrow {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .project-image {
    height: 200px;
  }

  .project-content {
    padding: 0;
    gap: 1rem;
  }

  .project-title {
    font-size: 1.05rem;
  }

  .project-context {
    font-size: 0.84rem;
  }

  .project-description {
    font-size: 0.91rem;
    line-height: 1.52;
  }

  .project-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-carousel-container {
    padding: 0.75rem;
    margin-top: 0.75rem;
  }

  .carousel-item {
    height: 220px;
  }

  .carousel-item img {
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    height: 190px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
