/**
 * LAYOUT.CSS - Structure et mise en page globale
 * Grid systems, flexbox, positionnement
 * @version 4.0.0
 */

/* ===========================
   RESET ET NORMALISATION
   =========================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   CONTENEURS PRINCIPAUX
   =========================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.container-sm {
  max-width: 576px;
}

.container-md {
  max-width: 768px;
}

.container-lg {
  max-width: 992px;
}

.container-xl {
  max-width: 1200px;
}

/* ===========================
   SYSTÈME DE GRILLE
   =========================== */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-md) / -2);
}

.col {
  flex: 1;
  padding: 0 calc(var(--spacing-md) / 2);
}

/* Colonnes responsives */
.col-1 {
  flex: 0 0 8.333333%;
}

.col-2 {
  flex: 0 0 16.666667%;
}

.col-3 {
  flex: 0 0 25%;
}

.col-4 {
  flex: 0 0 33.333333%;
}

.col-5 {
  flex: 0 0 41.666667%;
}

.col-6 {
  flex: 0 0 50%;
}

.col-7 {
  flex: 0 0 58.333333%;
}

.col-8 {
  flex: 0 0 66.666667%;
}

.col-9 {
  flex: 0 0 75%;
}

.col-10 {
  flex: 0 0 83.333333%;
}

.col-11 {
  flex: 0 0 91.666667%;
}

.col-12 {
  flex: 0 0 100%;
}

/* Colonnes tablettes */
@media (min-width: 768px) {
  .col-md-1 {
    flex: 0 0 8.333333%;
  }

  .col-md-2 {
    flex: 0 0 16.666667%;
  }

  .col-md-3 {
    flex: 0 0 25%;
  }

  .col-md-4 {
    flex: 0 0 33.333333%;
  }

  .col-md-5 {
    flex: 0 0 41.666667%;
  }

  .col-md-6 {
    flex: 0 0 50%;
  }

  .col-md-7 {
    flex: 0 0 58.333333%;
  }

  .col-md-8 {
    flex: 0 0 66.666667%;
  }

  .col-md-9 {
    flex: 0 0 75%;
  }

  .col-md-10 {
    flex: 0 0 83.333333%;
  }

  .col-md-11 {
    flex: 0 0 91.666667%;
  }

  .col-md-12 {
    flex: 0 0 100%;
  }
}

/* Colonnes desktop */
@media (min-width: 992px) {
  .col-lg-1 {
    flex: 0 0 8.333333%;
  }

  .col-lg-2 {
    flex: 0 0 16.666667%;
  }

  .col-lg-3 {
    flex: 0 0 25%;
  }

  .col-lg-4 {
    flex: 0 0 33.333333%;
  }

  .col-lg-5 {
    flex: 0 0 41.666667%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
  }

  .col-lg-7 {
    flex: 0 0 58.333333%;
  }

  .col-lg-8 {
    flex: 0 0 66.666667%;
  }

  .col-lg-9 {
    flex: 0 0 75%;
  }

  .col-lg-10 {
    flex: 0 0 83.333333%;
  }

  .col-lg-11 {
    flex: 0 0 91.666667%;
  }

  .col-lg-12 {
    flex: 0 0 100%;
  }
}

/* ===========================
   FLEXBOX UTILITAIRES
   =========================== */

.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-none {
  display: none !important;
}

.flex-row {
  flex-direction: row !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-nowrap {
  flex-wrap: nowrap !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-around {
  justify-content: space-around !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-baseline {
  align-items: baseline !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

.align-self-start {
  align-self: flex-start !important;
}

.align-self-end {
  align-self: flex-end !important;
}

.align-self-center {
  align-self: center !important;
}

.align-self-baseline {
  align-self: baseline !important;
}

.align-self-stretch {
  align-self: stretch !important;
}

.flex-fill {
  flex: 1 1 auto !important;
}

.flex-grow-0 {
  flex-grow: 0 !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-shrink-1 {
  flex-shrink: 1 !important;
}

/* ===========================
   POSITIONNEMENT
   =========================== */

.position-static {
  position: static !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.position-sticky {
  position: sticky !important;
}

.top-0 {
  top: 0 !important;
}

.right-0 {
  right: 0 !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.left-0 {
  left: 0 !important;
}

/* ===========================
   ESPACEMENT
   =========================== */

/* Margins */
.m-0 {
  margin: 0 !important;
}

.m-1 {
  margin: var(--spacing-xs) !important;
}

.m-2 {
  margin: var(--spacing-sm) !important;
}

.m-3 {
  margin: var(--spacing-md) !important;
}

.m-4 {
  margin: var(--spacing-lg) !important;
}

.m-5 {
  margin: var(--spacing-xl) !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: var(--spacing-xs) !important;
}

.mt-2 {
  margin-top: var(--spacing-sm) !important;
}

.mt-3 {
  margin-top: var(--spacing-md) !important;
}

.mt-4 {
  margin-top: var(--spacing-lg) !important;
}

.mt-5 {
  margin-top: var(--spacing-xl) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: var(--spacing-xs) !important;
}

.mb-2 {
  margin-bottom: var(--spacing-sm) !important;
}

.mb-3 {
  margin-bottom: var(--spacing-md) !important;
}

.mb-4 {
  margin-bottom: var(--spacing-lg) !important;
}

.mb-5 {
  margin-bottom: var(--spacing-xl) !important;
}

.ml-0 {
  margin-left: 0 !important;
}

.ml-1 {
  margin-left: var(--spacing-xs) !important;
}

.ml-2 {
  margin-left: var(--spacing-sm) !important;
}

.ml-3 {
  margin-left: var(--spacing-md) !important;
}

.ml-4 {
  margin-left: var(--spacing-lg) !important;
}

.ml-5 {
  margin-left: var(--spacing-xl) !important;
}

.mr-0 {
  margin-right: 0 !important;
}

.mr-1 {
  margin-right: var(--spacing-xs) !important;
}

.mr-2 {
  margin-right: var(--spacing-sm) !important;
}

.mr-3 {
  margin-right: var(--spacing-md) !important;
}

.mr-4 {
  margin-right: var(--spacing-lg) !important;
}

.mr-5 {
  margin-right: var(--spacing-xl) !important;
}

.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.mx-1 {
  margin-left: var(--spacing-xs) !important;
  margin-right: var(--spacing-xs) !important;
}

.mx-2 {
  margin-left: var(--spacing-sm) !important;
  margin-right: var(--spacing-sm) !important;
}

.mx-3 {
  margin-left: var(--spacing-md) !important;
  margin-right: var(--spacing-md) !important;
}

.mx-4 {
  margin-left: var(--spacing-lg) !important;
  margin-right: var(--spacing-lg) !important;
}

.mx-5 {
  margin-left: var(--spacing-xl) !important;
  margin-right: var(--spacing-xl) !important;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.my-1 {
  margin-top: var(--spacing-xs) !important;
  margin-bottom: var(--spacing-xs) !important;
}

.my-2 {
  margin-top: var(--spacing-sm) !important;
  margin-bottom: var(--spacing-sm) !important;
}

.my-3 {
  margin-top: var(--spacing-md) !important;
  margin-bottom: var(--spacing-md) !important;
}

.my-4 {
  margin-top: var(--spacing-lg) !important;
  margin-bottom: var(--spacing-lg) !important;
}

.my-5 {
  margin-top: var(--spacing-xl) !important;
  margin-bottom: var(--spacing-xl) !important;
}

/* Paddings */
.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: var(--spacing-xs) !important;
}

.p-2 {
  padding: var(--spacing-sm) !important;
}

.p-3 {
  padding: var(--spacing-md) !important;
}

.p-4 {
  padding: var(--spacing-lg) !important;
}

.p-5 {
  padding: var(--spacing-xl) !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pt-1 {
  padding-top: var(--spacing-xs) !important;
}

.pt-2 {
  padding-top: var(--spacing-sm) !important;
}

.pt-3 {
  padding-top: var(--spacing-md) !important;
}

.pt-4 {
  padding-top: var(--spacing-lg) !important;
}

.pt-5 {
  padding-top: var(--spacing-xl) !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pb-1 {
  padding-bottom: var(--spacing-xs) !important;
}

.pb-2 {
  padding-bottom: var(--spacing-sm) !important;
}

.pb-3 {
  padding-bottom: var(--spacing-md) !important;
}

.pb-4 {
  padding-bottom: var(--spacing-lg) !important;
}

.pb-5 {
  padding-bottom: var(--spacing-xl) !important;
}

.pl-0 {
  padding-left: 0 !important;
}

.pl-1 {
  padding-left: var(--spacing-xs) !important;
}

.pl-2 {
  padding-left: var(--spacing-sm) !important;
}

.pl-3 {
  padding-left: var(--spacing-md) !important;
}

.pl-4 {
  padding-left: var(--spacing-lg) !important;
}

.pl-5 {
  padding-left: var(--spacing-xl) !important;
}

.pr-0 {
  padding-right: 0 !important;
}

.pr-1 {
  padding-right: var(--spacing-xs) !important;
}

.pr-2 {
  padding-right: var(--spacing-sm) !important;
}

.pr-3 {
  padding-right: var(--spacing-md) !important;
}

.pr-4 {
  padding-right: var(--spacing-lg) !important;
}

.pr-5 {
  padding-right: var(--spacing-xl) !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.px-1 {
  padding-left: var(--spacing-xs) !important;
  padding-right: var(--spacing-xs) !important;
}

.px-2 {
  padding-left: var(--spacing-sm) !important;
  padding-right: var(--spacing-sm) !important;
}

.px-3 {
  padding-left: var(--spacing-md) !important;
  padding-right: var(--spacing-md) !important;
}

.px-4 {
  padding-left: var(--spacing-lg) !important;
  padding-right: var(--spacing-lg) !important;
}

.px-5 {
  padding-left: var(--spacing-xl) !important;
  padding-right: var(--spacing-xl) !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.py-1 {
  padding-top: var(--spacing-xs) !important;
  padding-bottom: var(--spacing-xs) !important;
}

.py-2 {
  padding-top: var(--spacing-sm) !important;
  padding-bottom: var(--spacing-sm) !important;
}

.py-3 {
  padding-top: var(--spacing-md) !important;
  padding-bottom: var(--spacing-md) !important;
}

.py-4 {
  padding-top: var(--spacing-lg) !important;
  padding-bottom: var(--spacing-lg) !important;
}

.py-5 {
  padding-top: var(--spacing-xl) !important;
  padding-bottom: var(--spacing-xl) !important;
}

/* ===========================
   TAILLES
   =========================== */

.w-25 {
  width: 25% !important;
}

.w-50 {
  width: 50% !important;
}

.w-75 {
  width: 75% !important;
}

.w-100 {
  width: 100% !important;
}

.w-auto {
  width: auto !important;
}

.h-25 {
  height: 25% !important;
}

.h-50 {
  height: 50% !important;
}

.h-75 {
  height: 75% !important;
}

.h-100 {
  height: 100% !important;
}

.h-auto {
  height: auto !important;
}

.mw-100 {
  max-width: 100% !important;
}

.mh-100 {
  max-height: 100% !important;
}

.vw-100 {
  width: 100vw !important;
}

.vh-100 {
  height: 100vh !important;
}

/* ===========================
   VISIBILITÉ RESPONSIVE
   =========================== */

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

@media (max-width: 575.98px) {
  .d-sm-none {
    display: none !important;
  }

  .d-sm-block {
    display: block !important;
  }

  .d-sm-flex {
    display: flex !important;
  }

  .d-sm-inline {
    display: inline !important;
  }

  .d-sm-inline-block {
    display: inline-block !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .d-md-inline {
    display: inline !important;
  }

  .d-md-inline-block {
    display: inline-block !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .d-lg-inline {
    display: inline !important;
  }

  .d-lg-inline-block {
    display: inline-block !important;
  }
}

@media (min-width: 992px) {
  .d-xl-none {
    display: none !important;
  }

  .d-xl-block {
    display: block !important;
  }

  .d-xl-flex {
    display: flex !important;
  }

  .d-xl-inline {
    display: inline !important;
  }

  .d-xl-inline-block {
    display: inline-block !important;
  }
}

/* ===========================
   ALIGNEMENT TEXTE
   =========================== */

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.text-justify {
  text-align: justify !important;
}

@media (max-width: 575.98px) {
  .text-sm-left {
    text-align: left !important;
  }

  .text-sm-right {
    text-align: right !important;
  }

  .text-sm-center {
    text-align: center !important;
  }
}

@media (min-width: 576px) {
  .text-md-left {
    text-align: left !important;
  }

  .text-md-right {
    text-align: right !important;
  }

  .text-md-center {
    text-align: center !important;
  }
}

@media (min-width: 768px) {
  .text-lg-left {
    text-align: left !important;
  }

  .text-lg-right {
    text-align: right !important;
  }

  .text-lg-center {
    text-align: center !important;
  }
}

/* ===========================
   OVERFLOW
   =========================== */

.overflow-auto {
  overflow: auto !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-visible {
  overflow: visible !important;
}

.overflow-scroll {
  overflow: scroll !important;
}

.overflow-x-auto {
  overflow-x: auto !important;
}

.overflow-x-hidden {
  overflow-x: hidden !important;
}

.overflow-x-visible {
  overflow-x: visible !important;
}

.overflow-x-scroll {
  overflow-x: scroll !important;
}

.overflow-y-auto {
  overflow-y: auto !important;
}

.overflow-y-hidden {
  overflow-y: hidden !important;
}

.overflow-y-visible {
  overflow-y: visible !important;
}

.overflow-y-scroll {
  overflow-y: scroll !important;
}

/* ===========================
   Z-INDEX
   =========================== */

.z-index-1 {
  z-index: 1 !important;
}

.z-index-2 {
  z-index: 2 !important;
}

.z-index-3 {
  z-index: 3 !important;
}

.z-index-10 {
  z-index: 10 !important;
}

.z-index-100 {
  z-index: 100 !important;
}

.z-index-1000 {
  z-index: 1000 !important;
}

.z-index-9999 {
  z-index: 9999 !important;
}

/* ===========================
   CLEARFIX
   =========================== */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
   =========================== */

/* Mobile First Approach */
/* xs: 0px and up */
/* sm: 576px and up */
/* md: 768px and up */
/* lg: 992px and up */
/* xl: 1200px and up */
/* xxl: 1400px and up */

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ===========================
   HELPER CLASSES
   =========================== */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-select-all {
  user-select: all !important;
}

.user-select-auto {
  user-select: auto !important;
}

.user-select-none {
  user-select: none !important;
}

.pe-none {
  pointer-events: none !important;
}

.pe-auto {
  pointer-events: auto !important;
}

/* ===========================
   PRINT UTILITIES
   =========================== */

@media print {
  .d-print-none {
    display: none !important;
  }

  .d-print-block {
    display: block !important;
  }

  .d-print-inline {
    display: inline !important;
  }

  .d-print-inline-block {
    display: inline-block !important;
  }

  .d-print-flex {
    display: flex !important;
  }
}

.timeline-content {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.timeline-content-day {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2em;
  box-sizing: border-box;
  overflow-x: auto;
}

.timeline-day-header {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 1.2em;
  border-radius: 0.7em 0.7em 0 0;
  padding: 0.7em 1em;
}

.timeline-flex-row {
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 0 0 0.7em 0.7em;
  box-shadow: 0 2px 8px #0001;
  padding: 1.2em 1em 1em 1em;
  box-sizing: border-box;
  overflow-x: auto;
}

.timeline-main {
  flex: 2;
  min-width: 0;
  max-width: 100%;
}

.timeline-side {
  flex: 1;
  min-width: 200px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 2.2em;
  z-index: 1;
}

.mini-map-timeline {
  max-width: 250px;
  max-height: 250px;
  width: 100%;
  height: 250px;
  border-radius: 0.7em;
  box-shadow: 0 2px 8px #0002;
  margin-top: 0.7em;
  background: #fff;
  z-index: 1;
}

@media (max-width: 900px) {
  .timeline-flex-row {
    flex-direction: column;
    gap: 0.5em;
  }

  .timeline-side {
    min-width: 120px;
    align-items: stretch;
    max-width: 100%;
    margin-top: 1.2em;
  }

  .mini-map-timeline {
    max-width: 160px;
    max-height: 160px;
    height: 160px;
  }
}

/* Lightbox photos */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 0.7em;
  box-shadow: 0 2px 16px #000a;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  cursor: pointer;
  opacity: 0.8;
}

.lightbox-close {
  top: 10px;
  right: 10px;
  transform: none;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 700px) {
  .timeline-side {
    min-width: 120px;
  }

  .lightbox-img {
    max-width: 98vw;
    max-height: 60vh;
  }

  .lightbox-prev,
  .lightbox-next {
    left: 5px;
    right: 5px;
    top: 90%;
    transform: none;
  }
}

/* --- Timeline verticale moderne --- */
.timeline-vertical {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-left: 2.5em;
  margin-bottom: 2em;
  margin-right: 1em;
}

.timeline-line {
  position: absolute;
  left: 1.1em;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--timeline-color, #e0e0e0);
  border-radius: 2px;
  z-index: 0;
}

.timeline-steps {
  position: relative;
  z-index: 1;
}

.timeline-step-card {
  position: relative;
  margin-bottom: 2.2em;
  background: #fff;
  border-radius: 1em;
  box-shadow: 0 2px 12px #0001;
  padding: 1em 1.5em 1em 3.2em;
  border-left: 6px solid var(--cat-color, #3498db);
  transition: box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
}

.timeline-step-card:hover {
  box-shadow: 0 4px 24px #0002;
  border-left-color: var(--cat-color-hover, #217dbb);
}

.timeline-step-dot {
  position: absolute;
  left: -2.1em;
  top: 1.2em;
  width: 1.3em;
  height: 1.3em;
  background: var(--cat-color, #3498db);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--cat-color, #3498db);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  color: #fff;
}

.timeline-step-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.2em;
}

.timeline-step-icon {
  font-size: 1.2em;
  margin-right: 0.1em;
}

.timeline-step-title {
  font-weight: 700;
  font-size: 1.08em;
  color: var(--cat-color, #34495e);
}

.timeline-step-badge {
  background: #eee;
  color: #888;
  border-radius: 0.5em;
  padding: 0.1em 0.7em;
  font-size: 0.8em;
  margin-left: 0.5em;
  font-weight: 600;
}

@media (max-width: 900px) {
  .timeline-vertical {
    margin-left: 0.7em;
  }

  .timeline-step-card {
    padding: 1em 0.7em 1em 2.2em;
  }

  .timeline-step-dot {
    left: -1.2em;
    top: 1.1em;
    width: 1em;
    height: 1em;
    font-size: 0.9em;
  }
}

@media (max-width: 600px) {
  .timeline-vertical {
    margin-left: 0;
  }

  .timeline-step-card {
    padding: 1em 0.5em 1em 1.7em;
    font-size: 0.97em;
  }

  .timeline-step-dot {
    left: 0.2em;
    top: 0.7em;
    width: 0.8em;
    height: 0.8em;
    font-size: 0.8em;
  }
}

/* Couleurs de catégorie (exemple, à adapter dynamiquement) */
.timeline-step-card.rando,
.timeline-step-dot.rando {
  --cat-color: #27ae60;
  --cat-color-hover: #219150;
}

.timeline-step-card.logement,
.timeline-step-dot.logement {
  --cat-color: #e67e22;
  --cat-color-hover: #c97c13;
}

.timeline-step-card.vol,
.timeline-step-dot.vol {
  --cat-color: #2980b9;
  --cat-color-hover: #1c5e8a;
}

.timeline-step-card.autre,
.timeline-step-dot.autre {
  --cat-color: #8e44ad;
  --cat-color-hover: #6c3483;
}

/* Amélioration de la lisibilité des détails */
.timeline-step-details {
  margin-top: 0.3em;
  font-size: 0.98em;
}

.etape-details-table {
  display: table;
  width: 100%;
  margin: 0.2em 0 0.1em 0;
  border-collapse: collapse;
  background: none;
}

/* Version optimisée et condensée pour les lignes de détails internes */
.etape-details-table .etape-details-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5em;
  margin: 0 !important;
  padding: 0.3em 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 1.8em;
  background: none !important;
  border-left: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
}

.etape-details-table .etape-details-label,
.etape-details-table .etape-details-value {
  font-size: 0.85em;
  line-height: 1.3;
}

.etape-details-table .etape-details-label {
  color: #666;
  font-weight: 600;
  min-width: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 0.8em;
}

.etape-details-table .etape-details-value {
  color: #333;
  font-weight: 500;
  flex: 1;
  word-break: break-word;
  font-size: 0.85em;
}

.etape-details-table .etape-details-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Amélioration visuelle pour les icônes dans les labels */
.etape-details-table .etape-details-label::before {
  margin-right: 0.3em;
  font-size: 1em;
  opacity: 0.8;
}

/* Style compact pour les liens */
.etape-details-table .etape-details-value a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.etape-details-table .etape-details-value a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.etape-details-table img {
  margin: 0 0.15em 0 0;
  max-width: 48px;
  max-height: 48px;
  border-radius: 6px;
  vertical-align: middle;
}

.etape-badge-chip {
  margin-right: 0.3em;
  margin-bottom: 0.1em;
  font-size: 0.92em;
  padding: 0.10em 0.6em;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #222;
  border-radius: 2px;
  transition: 0.3s;
}

.burger-menu.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 12px #0002;
  z-index: 1000;
  padding: 1.2em 0.7em 1.7em 0.7em;
  border-radius: 0 0 1.2em 1.2em;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  margin-bottom: 1em;
  text-align: center;
  float: left;
}

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

@media (max-width: 900px) {
  .burger-menu {
    display: flex;
  }

  .header-actions {
    display: none !important;
  }

  .mobile-nav {
    display: none;
    color: #222;
  }

  .mobile-nav.open {
    display: block;
    color: #222;
  }

  .mobile-nav,
  .mobile-nav * {
    fill: #222 !important;
  }

  .mobile-nav .btn,
  .mobile-nav .btn-primary,
  .mobile-nav .btn-secondary {
    color: #222 !important;
    background: #f5f5f5;
    border: 1px solid #ddd;
  }
}

@media (min-width: 901px) {

  .mobile-nav,
  .burger-menu {
    display: none !important;
  }
}

/* ======
=====================
   OPTIMISATIONS UX POUR ETAPE-DETAILS
   =========================== */

/* Sections des détails d'étapes */
.etape-details-table {
  margin-bottom: 0.8em;
}

.etape-details-section-title {
  font-weight: 700;
  font-size: 0.9em;
  color: #2563eb;
  margin-bottom: 0.5em;
  padding: 0.3em 0;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

/* Optimisation pour les listes dans les valeurs */
.etape-details-table .etape-details-value ul {
  margin: 0.2em 0 0 0;
  padding-left: 1em;
  font-size: 0.8em;
}

.etape-details-table .etape-details-value ul li {
  margin-bottom: 0.1em;
  line-height: 1.2;
  color: #555;
}

/* Style condensé pour les informations génériques */
.etape-details-generic .etape-details-row {
  padding: 0.2em 0;
  font-size: 0.8em;
}

.etape-details-generic .etape-details-row b {
  color: #2563eb;
  font-weight: 600;
}

/* Amélioration pour les badges et chips */
.etape-badge-chip {
  display: inline-block;
  background: #e5e7eb;
  color: #374151;
  padding: 0.1em 0.4em;
  border-radius: 0.3em;
  font-size: 0.75em;
  font-weight: 500;
  margin-right: 0.2em;
  margin-bottom: 0.1em;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .etape-details-table .etape-details-row {
    flex-direction: column;
    gap: 0.2em;
    padding: 0.4em 0;
  }

  .etape-details-table .etape-details-label {
    min-width: auto;
    font-size: 0.75em;
    font-weight: 700;
    color: #2563eb;
  }

  .etape-details-table .etape-details-value {
    font-size: 0.8em;
    margin-left: 0.5em;
  }

  .etape-details-section-title {
    font-size: 0.85em;
    margin-bottom: 0.3em;
  }
}

/* Très petit écran - ultra compact */
@media (max-width: 480px) {
  .etape-details-table .etape-details-row {
    padding: 0.2em 0;
    gap: 0.1em;
  }

  .etape-details-table .etape-details-label {
    font-size: 0.7em;
  }

  .etape-details-table .etape-details-value {
    font-size: 0.75em;
    margin-left: 0.3em;
  }

  .etape-details-section-title {
    font-size: 0.8em;
    margin-bottom: 0.2em;
    padding: 0.2em 0;
  }
}

/* Animation pour l'ouverture des détails */
.etape-details-table .etape-details-row {
  animation: slideInDetails 0.3s ease-out;
}

@keyframes slideInDetails {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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

/* Amélioration des contrastes pour l'accessibilité */
.etape-details-table .etape-details-value {
  color: #1f2937;
}

.etape-details-table .etape-details-label {
  color: #4b5563;
}

/* Style pour les informations importantes */
.etape-details-table .etape-details-value.important {
  font-weight: 700;
  color: #dc2626;
}

.etape-details-table .etape-details-value.success {
  color: #059669;
  font-weight: 600;
}

.etape-details-table .etape-details-value.info {
  color: #2563eb;
  font-weight: 600;
}

/* ======
=====================
   AMÉLIORATIONS VISUELLES SUPPLÉMENTAIRES
   =========================== */

/* Séparateur visuel entre les informations */
.etape-details-value:has(+ .etape-details-value) {
  position: relative;
}

/* Style pour les informations importantes avec icônes colorées */
.etape-details-label {
  position: relative;
}

/* Couleurs spécifiques pour certains types d'informations */
.etape-details-row:has(.etape-details-label:contains("Prix")) .etape-details-value {
  color: #dc2626;
  font-weight: 700;
}

.etape-details-row:has(.etape-details-label:contains("Note")) .etape-details-value {
  color: #f59e0b;
  font-weight: 600;
}

.etape-details-row:has(.etape-details-label:contains("Horaires")) .etape-details-value,
.etape-details-row:has(.etape-details-label:contains("Arrivée")) .etape-details-value,
.etape-details-row:has(.etape-details-label:contains("Départ")) .etape-details-value {
  color: #2563eb;
  font-weight: 600;
}

/* Amélioration de l'espacement pour les sections */
.etape-details-table+.etape-details-table {
  margin-top: 1em;
}

/* Style pour les liens avec icône */
.etape-details-table .etape-details-value a::before {
  content: "🔗";
  margin-right: 0.3em;
  opacity: 0.7;
}

/* Optimisation pour les listes courtes */
.etape-details-table .etape-details-value ul:has(li:only-child) {
  list-style: none;
  padding-left: 0;
}

.etape-details-table .etape-details-value ul:has(li:only-child) li::before {
  content: "• ";
  color: #6b7280;
  font-weight: bold;
}

/* Amélioration du contraste pour les sections */
.etape-details-section-title {
  background: linear-gradient(90deg, #f3f4f6 0%, transparent 100%);
  margin: 0 -0.5em 0.5em -0.5em;
  padding: 0.4em 0.5em;
  border-radius: 0.3em;
}

/* Indicateur visuel pour les informations critiques */
.etape-details-table .etape-details-value.important::before {
  content: "⚠️";
  margin-right: 0.3em;
  font-size: 0.8em;
}

/* Style pour les badges de statut */
.etape-details-table .etape-details-value:contains("Acceptés")::after {
  content: "✅";
  margin-left: 0.3em;
  font-size: 0.8em;
}

.etape-details-table .etape-details-value:contains("Non acceptés")::after {
  content: "❌";
  margin-left: 0.3em;
  font-size: 0.8em;
}

/* =====
======================
   STYLES OPTIMISÉS POUR LES DÉPENSES
   =========================== */

.etape-budget-block {
  margin-bottom: 0.8em;
}

.etape-budget-empty {
  color: #888;
  font-size: 0.8em;
  font-style: italic;
  padding: 0.3em 0;
}



.etape-budget-list {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.etape-budget-item {
  background: #f8f9fa;
  border-radius: 0.4em;
  padding: 0.4em 0.6em;
  border-left: 3px solid #27ae60;
  transition: all 0.2s ease;
}

.etape-budget-item:hover {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transform: translateX(2px);
}

.budget-item-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2em;
}

.budget-desc {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.85em;
  flex: 1;
}

.budget-montant {
  font-weight: 700;
  color: #27ae60;
  font-size: 0.9em;
  background: #eafbe7;
  padding: 0.1em 0.4em;
  border-radius: 0.3em;
}

.budget-item-details {
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
}

.budget-badge {
  font-size: 0.7em;
  padding: 0.1em 0.3em;
  border-radius: 0.2em;
  font-weight: 500;
}

.budget-badge.budget-payeur {
  background: #e3f2fd;
  color: #1976d2;
}

.budget-badge.budget-moyen {
  background: #fff3e0;
  color: #f57c00;
}

.budget-badge.budget-cat {
  background: #f3e5f5;
  color: #7b1fa2;
}

.budget-actions {
  margin-left: auto;
  display: flex;
  gap: 0.2em;
}

.btn-edit-depense,
.btn-suppr-depense {
  background: none;
  border: none;
  font-size: 0.9em;
  cursor: pointer;
  padding: 0.1em;
  border-radius: 0.2em;
  transition: all 0.2s ease;
}

.btn-edit-depense {
  color: #2980b9;
}

.btn-edit-depense:hover {
  background: #e3f2fd;
}

.btn-suppr-depense {
  color: #e74c3c;
}

.btn-suppr-depense:hover {
  background: #ffebee;
}

.etape-budget-totaux {
  margin-top: 0.5em;
  padding-top: 0.3em;
  border-top: 1px solid #e0e0e0;
}

.budget-total {
  background: #e8f5e8;
  color: #2e7d32;
  font-weight: 700;
  font-size: 0.8em;
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
  margin-right: 0.3em;
}

/* ===========================
   BACKGROUNDS COLORÉS PAR CATÉGORIE
   =========================== */

/* Section Logement */
.etape-details-section-title.etape-section-logement,
.etape-details-table.etape-logement .etape-details-section-title {
  background: linear-gradient(135deg, #e0fdff 0%, #b4e0e8 100%);
  color: #17319a;
  border-left: 4px solid #0096ff;
}

/* Section Randonnée */
.etape-details-section-title.etape-section-randonnee,
.etape-details-table.etape-randonnee .etape-details-section-title {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

/* Section Vol */
.etape-details-section-title.etape-section-vol,
.etape-details-table.etape-vol .etape-details-section-title {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border-left: 4px solid #2196f3;
}

/* Section Dépenses */
.etape-details-section-title.etape-section-depenses {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-left: 4px solid #27ae60;
}

/* Section Météo */
.etape-details-section-title.etape-section-meteo {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #f57c00;
  border-left: 4px solid #ffc107;
}

/* Amélioration générale des titres de section */
.etape-details-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4em 0.6em;
  margin: 0 -0.6em 0.5em -0.6em;
  border-radius: 0.4em;
  font-weight: 700;
  font-size: 0.85em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.etape-details-section-title:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===========================
   STYLES OPTIMISÉS POUR LA MÉTÉO
   =========================== */

.etape-meteo-block {
  margin-bottom: 0.8em;
}

.etape-meteo-content {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 0;
  font-size: 0.85em;
}

.meteo-icon {
  font-size: 1.2em;
}

.meteo-temp {
  font-weight: 700;
  color: #f57c00;
}

.meteo-desc {
  color: #666;
  font-style: italic;
  flex: 1;
}

.meteo-humidity {
  color: #2196f3;
  font-weight: 600;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .budget-item-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
  }

  .budget-montant {
    align-self: flex-end;
  }

  .budget-item-details {
    flex-wrap: wrap;
    gap: 0.2em;
  }

  .budget-badge {
    font-size: 0.65em;
  }

  .etape-meteo-content {
    flex-wrap: wrap;
    gap: 0.3em;
  }
}/
* ===========================
   STYLES POUR L'AFFICHAGE DU STATUT LOCKED
   =========================== */

/* Style pour les étapes verrouillées dans les détails */
.etape-details-table .etape-details-value.important {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #d68910;
  font-weight: 700;
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
  border: 1px solid #f39c12;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.etape-details-table .etape-details-value.important::before {
  content: "🔒";
  font-size: 0.9em;
}

/* Style pour les cartes d'étapes verrouillées */
.etape-card.locked {
  border-left: 4px solid #f39c12 !important;
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
}

.etape-card.locked .etape-resume {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.etape-card.locked .etape-resume::after {
  content: "🔒";
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  font-size: 1.2em;
  opacity: 0.7;
}

.etape-card.locked .etape-resume {
  position: relative;
}

/* Indicateur visuel dans la timeline */
.timeline-step.locked {
  border-left: 4px solid #f39c12;
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
}

.timeline-step.locked::before {
  content: "🔒";
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  font-size: 1.1em;
  opacity: 0.8;
}

.timeline-step.locked {
  position: relative;
}

/* Style pour les étapes verrouillées dans la chronologie */
.chronology-step.locked {
  border: 2px solid #f39c12;
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
}

.chronology-step.locked::after {
  content: "🔒 VERROUILLÉE";
  position: absolute;
  top: -10px;
  right: 10px;
  background: #f39c12;
  color: white;
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
  font-size: 0.7em;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.chronology-step.locked {
  position: relative;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .etape-card.locked .etape-resume::after {
    font-size: 1em;
    top: 0.3em;
    right: 0.3em;
  }
  
  .timeline-step.locked::before {
    font-size: 1em;
    top: 0.3em;
    right: 0.3em;
  }
  
  .chronology-step.locked::after {
    font-size: 0.6em;
    padding: 0.1em 0.3em;
    top: -8px;
    right: 5px;
  }
}