/* ---------- Palette de marque (surcouche par-dessus Bootstrap) ---------- */
:root {
  --brand: #a5462f;
  --brand-hover: #8a3a27;
  --brand-rgb: 165, 70, 47;
}

[data-bs-theme="dark"] {
  --brand: #e07c5f;
  --brand-hover: #ec9276;
  --brand-rgb: 224, 124, 95;
}

/* Bootstrap calcule les teintes de .btn-primary / .bg-primary etc. à la
   compilation : on réassigne directement ses variables de composant pour
   habiller les éléments "primary" avec la couleur de marque, sans
   recompiler Bootstrap. */
:root,
[data-bs-theme="dark"] {
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: var(--brand-rgb);
  --bs-link-hover-color: var(--brand-hover);
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: var(--brand-rgb);
}

.accordion-button:not(.collapsed) {
  color: var(--brand);
  background-color: rgba(var(--brand-rgb), 0.08);
}
.accordion-button:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(var(--brand-rgb), 0.25);
}

.nav-link.active,
.dropdown-item.active {
  color: var(--brand) !important;
  background-color: transparent;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(var(--brand-rgb), 0.25);
}

/* ---------- Skip link ---------- */
.skip-link {
  z-index: 1080;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
}

/* ---------- Hero (page d'accueil) ---------- */
.hero-section {
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
}

/* ---------- Cartes projet ---------- */
.project-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bs-box-shadow);
}
.object-fit-cover { object-fit: cover; }

/* ---------- Bouton clair / sombre ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem !important;
}
.theme-icon--moon { display: none; }
[data-bs-theme="dark"] .theme-icon--sun { display: none; }
[data-bs-theme="dark"] .theme-icon--moon { display: inline-block; }

/* ---------- Timeline (page Parcours) ---------- */
.timeline {
  margin: 0;
  padding: 0;
}
.timeline-item {
  position: relative;
  margin-left: 0.5rem;
  padding-left: 2rem;
  padding-bottom: 2.25rem;
  border-left: 2px solid var(--bs-border-color);
}
.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: -0.5rem;
  top: 0.3rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bs-body-bg);
}
.timeline-item--goal .timeline-marker {
  background: var(--bs-body-bg);
  border: 2px dashed var(--brand);
}
.timeline-goal-badge {
  background: transparent;
  border: 1px dashed var(--brand);
  color: var(--brand);
}
.timeline-dates {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

/* ---------- Galerie ---------- */
.gallery-thumb {
  cursor: zoom-in;
}
.gallery-thumb__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
