:root {
    --primary-color: #faa61a;
    --primary-dark: #bf693d;
    --secondary-color: #17295c;
    --dark-blue: #0d47a1;
    --white: #FFFFFF;
    --black: #000000;
    --text-color: #1A202C;
    --light-gray: #f5f5f5;
    --medium-gray: #666666;
    --dark-gray: #333333;
    --border-gray: #e0e0e0;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.bg-section {
    background-color: #be6a3c6a;
}

.hero-section {
    background: linear-gradient(135deg, rgba(191, 105, 61, 0.8) 0%, rgba(23, 41, 92, 0.8) 100%),
        url('/images/jambaar-about.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInDown 1.2s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    color: var(--dark-gray);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.textform{
  text-align: justify;
}

.card-project {
    border-radius: 12px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.card-project img {
    width: 100%;
}

.card-project:hover {
    transform: translateY(-10px);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* Bannière "Investissement total" sous le plan d'actions */
.invest-total {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    max-width: 620px;
    margin: 60px auto 0;
    padding: 28px 40px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f1f4e 100%);
    box-shadow: 0 18px 40px rgba(23, 41, 92, 0.25);
    text-align: left;
}

.invest-total-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(250, 166, 26, 0.18);
    color: var(--primary-color);
    font-size: 1.9rem;
}

.invest-total-body {
    display: flex;
    flex-direction: column;
}

.invest-total-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.invest-total-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .invest-total {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 26px 22px;
        margin-top: 44px;
    }

    .invest-total-body {
        align-items: center;
    }

    .invest-total-value {
        font-size: 1.6rem;
    }
}

/* ===== Rubrique "Qui sommes-nous ?" ===== */
.qsn-section {
    background: var(--light-gray);
}

.qsn-card {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-medium);
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
}

.qsn-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.qsn-logo {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}

.qsn-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

.qsn-subtitle span {
    color: var(--primary-color);
}

.qsn-card .fs-5 {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .qsn-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .qsn-subtitle {
        font-size: 1.35rem;
        text-align: center;
    }

    .qsn-logo {
        max-height: 130px;
    }
}

.about-image-slider {
    border-radius: 28px;
    overflow: hidden;
    background: #eee6de;
}

.about-image-slider .carousel-inner,
.about-image-slider .carousel-item {
    height: 560px;
}

.about-image-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slides "logo partenaire" : afficher le logo en entier, centré, sur fond clair */
.about-image-slider .carousel-item.about-slide-logo {
    background: #ffffff;
}

.about-image-slider .carousel-item.about-slide-logo img {
    object-fit: contain;
    padding: 56px;
}

.about-image-slider .carousel-indicators {
    bottom: 14px;
    margin-bottom: 0;
}

.about-image-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    opacity: 0.7;
    background-color: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease, opacity 0.3s ease;
}

.about-image-slider .carousel-indicators .active {
    width: 44px;
    opacity: 1;
}

.about-slider-control {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    border-radius: 50%;
    margin: 0 12px;
    background: rgba(20, 38, 60, 0.3);
    backdrop-filter: blur(2px);
    transition: opacity 0.25s ease, background 0.25s ease;
}

.about-slider-control .carousel-control-prev-icon,
.about-slider-control .carousel-control-next-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.about-image-slider:hover .about-slider-control {
    opacity: 1;
}

.about-slider-control:hover {
    background: rgba(20, 38, 60, 0.5);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-image{
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--medium-gray);
}

.phase-card {
    /* background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%); */
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
}

.phase-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    right: 1rem;
    bottom: 0;
    line-height: 1;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.port-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 1rem;
    text-align: left;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    height: 100%;
}

.port-card:hover {
    background-color: var(--card-bg);
    transform: translateX(5px);
}

.port-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.port-card h5 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.port-card-description {
    margin: 0;
    font-size: 0.92rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

.conclusion-section {
    background: linear-gradient(rgba(30, 30, 30, 0.689), rgba(0, 0, 0, 0.83)),
        url('/images/projet-jambaar-illustration.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.conclusion-section .section-title {
    color: var(--white);
}

.conclusion-section .section-title::after {
    background-color: var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

@media (max-width: 992px) {
    .about-image-slider .carousel-inner,
    .about-image-slider .carousel-item {
        height: 440px;
    }
}

@media (max-width: 576px) {
    .about-image-slider {
        border-radius: 20px;
    }

    .about-image-slider .carousel-inner,
    .about-image-slider .carousel-item {
        height: 320px;
    }

    .about-slider-control {
        opacity: 1;
        width: 36px;
        height: 36px;
    }

    .about-image-slider .carousel-item.about-slide-logo img {
        padding: 28px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #e05a2b;
    border-color: #e05a2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

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


/* === TIMELINE SECTION === */
.timeline-section {
  padding: 100px 40px;
  background: var(--white);
  overflow: hidden;
  font-family: 'Sora', sans-serif;
}

.timeline-header {
  text-align: center;
  margin-bottom: 80px;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 166, 26, 0.12);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(250, 166, 26, 0.25);
}

.timeline-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 14px;
  line-height: 1.2;
}

.timeline-header h2 .highlight {
  color: var(--primary-color);
}

.timeline-header p {
  color: var(--medium-gray);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* === WRAPPER & LINE === */
.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(250, 166, 26, 0.15);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-line-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
  transition: height 0.1s linear;
}

/* === STEP ROW === */
.timeline-step {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.timeline-step.right .timeline-card { order: 3; }
.timeline-step.right .timeline-node { order: 2; }
.timeline-step.right .timeline-illustration { order: 1; }

/* === NODE === */
.timeline-node {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.timeline-node span {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 2.5px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(250, 166, 26, 0.1);
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-node span {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 10px rgba(250, 166, 26, 0.15);
}

/* === CARD === */
.timeline-card {
  background: var(--white);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow-medium);
  position: relative;
  border: 1px solid var(--border-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.step-number {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(250, 166, 26, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.timeline-card:hover .card-icon {
  background: var(--primary-color);
  color: white;
}

.card-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.card-content p {
  font-size: 0.9rem;
  color: var(--medium-gray);
  line-height: 1.6;
  margin: 0;
}

/* Liste dans les cartes */
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--medium-gray);
  line-height: 1.5;
}

.card-list li i {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.card-list li em {
  color: var(--primary-dark);
  font-style: italic;
  font-size: 0.82rem;
}

/* === ILLUSTRATION === */
.timeline-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

.illustration-bg {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,166,26,0.08) 0%, transparent 70%);
}

.illustration-icon {
  font-size: 5rem;
  color: rgba(250, 166, 26, 0.18);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.timeline-step:hover .illustration-icon {
  color: rgba(250, 166, 26, 0.35);
  transform: scale(1.1) rotate(-5deg);
}

/* === SCROLL REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step.left.reveal {
  transform: translateY(50px);
}

.timeline-step.right.reveal {
  transform: translateY(50px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .timeline-line { left: 24px; }

  .timeline-step {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 16px 12px;
  }

  .timeline-step .timeline-node { order: 1 !important; grid-row: 1; }
  .timeline-step .timeline-card { order: 2 !important; grid-column: 2; grid-row: 1; }
  .timeline-step .timeline-illustration { display: none; }
  .timeline-step.right .timeline-card { order: 2 !important; }
  .timeline-step.right .timeline-node { order: 1 !important; }
}

/* ===== PHASES SECTION ===== */
.phases-section {
  background: linear-gradient(160deg, #f8f9fc 0%, #eef1f8 100%);
  position: relative;
  overflow: hidden;
}

.phases-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,166,26,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Header */
.phases-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(250, 166, 26, 0.1);
  border: 1px solid rgba(250, 166, 26, 0.25);
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.phases-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.2;
  margin-bottom: 14px;
}

.phases-title span {
  color: var(--primary-color);
  position: relative;
}

.phases-subtitle {
  color: var(--medium-gray);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CARD ===== */
.phase-card-v2 {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px 28px;
  height: 100%;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.phase-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

/* Featured middle card */
.phase-card-featured {
  background: linear-gradient(145deg, var(--secondary-color) 0%, #1e3a7a 100%);
  border-color: transparent;
}

.phase-card-featured h5,
.phase-card-featured .phase-list li {
  color: rgba(255,255,255,0.92) !important;
}

.phase-card-featured .phase-list-icon {
  background: rgba(250,166,26,0.2) !important;
  color: var(--primary-color) !important;
}

.phase-card-featured .phase-divider {
  background: rgba(255,255,255,0.15) !important;
}

.phase-card-featured .phase-badge {
  background: rgba(250,166,26,0.2);
  color: var(--primary-color);
}

.phase-card-featured .phase-icon-wrap {
  background: rgba(250,166,26,0.15);
  color: var(--primary-color);
}

.phase-card-featured .phase-deco-number {
  color: rgba(255,255,255,0.05);
}

/* Top row */
.phase-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Icon wrap */
.phase-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(250, 166, 26, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.phase-card-v2:hover .phase-icon-wrap {
  background: var(--primary-color);
  color: white;
  transform: rotate(-5deg) scale(1.05);
}

/* Badge */
.phase-badge {
  background: var(--light-gray);
  color: var(--medium-gray);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}

/* Decorative number */
.phase-deco-number {
  position: absolute;
  top: 12px;
  right: 24px;
  font-size: 5.5rem;
  font-weight: 900;
  color: rgba(23, 41, 92, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Title */
.phase-card-v2 h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.5;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Divider */
.phase-divider {
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  border-radius: 2px;
  margin-bottom: 20px;
  width: 50px;
}

/* List */
.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.phase-list-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(250,166,26,0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-top: 1px;
}

.phase-note {
  display: block;
  font-size: 0.78rem;
  color: var(--primary-dark);
  font-style: italic;
  margin-top: 2px;
}

/* Background illustration for featured card */
.phase-card-illustration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 8rem;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  line-height: 1;
}

/* ===== ANIMATE ON SCROLL ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}