: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;
}

/* section {
    animation: cardanimate linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
} */

@keyframes cardanimate {
    from {
        opacity: 0;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}


/* ===== HERO CAROUSEL ===== */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(420px, 68vh, 660px);
    background: #0a1535;
}

.hero-carousel-inner,
.hero-carousel-inner .carousel-item {
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Media layer */
.hero-slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

.hero-slide.active .hero-slide-media img {
    animation: heroZoom 8s ease-out both;
}

/* Overlay for legibility */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 21, 53, 0) 0%, rgba(10, 21, 53, 0.55) 75%, rgba(10, 21, 53, 0.78) 100%),
        linear-gradient(135deg, rgba(23, 41, 92, 0.55) 0%, rgba(10, 21, 53, 0.25) 55%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Content */
.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 70px;
    text-align: center;
    color: var(--white, #fff);
}

.hero-slide-inner {
    max-width: 820px;
    width: 100%;
}

.hero-slide.active .hero-slide-inner {
    animation: captionRise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(250, 166, 26, 0.18);
    border: 1px solid rgba(250, 166, 26, 0.4);
    color: #faa61a;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 50px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-eyebrow i { font-size: 1.1rem; }

.hero-eyebrow--cycle .hero-eyebrow-text {
    display: inline-block;
    min-width: 7ch;
    text-align: left;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
    will-change: opacity, transform;
}
.hero-eyebrow--cycle .hero-eyebrow-text.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(4px);
}
.hero-eyebrow--cycle .hero-eyebrow-text.is-entering {
    animation: heroGreetIn 0.55s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes heroGreetIn {
    from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

.hero-headline {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 28px;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-headline span {
    color: #faa61a;
    position: relative;
}

.hero-headline--logo {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo {
    width: min(560px, 70%);
    max-height: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}

.hero-lead {
    font-size: clamp(1.15rem, 1.9vw, 1.55rem);
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto;
    max-width: 760px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Controls */
.hero-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0.85;
}

.hero-ctrl:hover {
    background: #faa61a;
    border-color: #faa61a;
    color: #fff;
    opacity: 1;
    box-shadow: 0 10px 30px rgba(250, 166, 26, 0.45);
}

.hero-ctrl:focus-visible {
    outline: 2px solid #faa61a;
    outline-offset: 3px;
}

.hero-ctrl-prev { left: 24px; }
.hero-ctrl-next { right: 24px; }

.hero-ctrl-prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero-ctrl-next:hover { transform: translateY(-50%) translateX(3px); }

/* Indicators */
.hero-indicators {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.hero-indicators button {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    margin: 0;
    text-indent: 0;
    opacity: 1;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.hero-indicators button:hover { background: rgba(255, 255, 255, 0.6); }

.hero-indicators button.active {
    width: 56px;
    background: #faa61a;
    box-shadow: 0 0 14px rgba(250, 166, 26, 0.55);
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

@keyframes captionRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-carousel { height: clamp(380px, 60vh, 520px); }
    .hero-slide-content { padding: 28px 60px; }
    .hero-ctrl { width: 46px; height: 46px; font-size: 1.2rem; }
    .hero-ctrl-prev { left: 16px; }
    .hero-ctrl-next { right: 16px; }
}

@media (max-width: 768px) {
    .hero-carousel { height: clamp(360px, 56vh, 460px); }
    .hero-slide-content { padding: 24px 24px 60px; }
    .hero-eyebrow {
        font-size: 0.9rem;
        padding: 8px 18px;
        margin-bottom: 22px;
        letter-spacing: 1.4px;
    }
    .hero-logo { max-height: 140px; width: min(420px, 80%); }
    .hero-ctrl {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
        opacity: 0.9;
    }
    .hero-ctrl-prev { left: 10px; }
    .hero-ctrl-next { right: 10px; }
    .hero-indicators { bottom: 16px; gap: 7px; }
    .hero-indicators button { width: 26px; height: 3px; }
    .hero-indicators button.active { width: 40px; }
}

@media (max-width: 480px) {
    .hero-carousel { height: 360px; }
    .hero-slide-content { padding: 18px 16px 56px; }
    .hero-headline { margin-bottom: 12px; }
    .hero-lead { font-size: 0.88rem; line-height: 1.55; }
    .hero-ctrl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.active .hero-slide-media img,
    .hero-slide.active .hero-slide-inner {
        animation: none;
    }
}

.project-section {
    margin: 40px 0;
    padding: 0 15px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-image {
    padding: 15px;
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.project-info {
    padding: 15px;
}

.project-label {
    color: var(--secondary-color);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: bold;
    display: block;
}

.project-info h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-info p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

.btn_action {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn_action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(190, 105, 60, 0.25);
}

@media (max-width: 992px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image,
    .project-info {
        padding: 10px;
    }

    .project-info h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .project-section {
        margin: 30px 0;
    }

    .project-card {
        margin-bottom: 30px;
        gap: 15px;
    }

    .project-info h2 {
        font-size: 22px;
    }

    .btn_action {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.partenaire-section {
    background: linear-gradient(135deg, #f8efe9 0%, #f4e3d9 100%);
    margin: 40px 0 60px;
    padding: 56px 0;
    width: 100%;
}

.partenaire-wrap {
    max-width: 1180px;
}

.partenaire_card {
    padding: 0 20px;
    margin: 0 auto 26px;
}

.title {
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-color);
    text-align: center;
    font-size: 1rem;
    max-width: 680px;
    margin: 0 auto 30px;
}

.partner-network {
    position: relative;
    padding: 10px 20px 4px;
}

.network-row {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.network-row-top {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
    margin-bottom: 32px;
}

.network-row-top::before {
    display: none;
}

.network-row-bottom {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1120px;
    margin: 0 auto;
}

.network-line {
    position: absolute;
    height: 2px;
    z-index: 1;
    background: repeating-linear-gradient(90deg,
            rgba(129, 144, 255, 0.54) 0 8px,
            rgba(129, 144, 255, 0) 8px 16px);
    animation: linkFlow 7s linear infinite;
}

.network-line-top {
    left: 12%;
    right: 12%;
    top: 41%;
}

.network-line-bottom {
    left: 8%;
    right: 8%;
    top: 72%;
}

.network-spine {
    position: absolute;
    left: 50%;
    top: 41%;
    width: 2px;
    height: 31%;
    transform: translateX(-50%);
    background: repeating-linear-gradient(180deg,
            rgba(129, 144, 255, 0.58) 0 8px,
            rgba(129, 144, 255, 0) 8px 16px);
    z-index: 1;
    animation: linkFlowVertical 6s linear infinite;
}

.network-curve {
    position: absolute;
    top: 6px;
    width: 36%;
    height: 85%;
    border: 2px dashed rgba(163, 141, 245, 0.36);
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
    animation: orbitPulse 7s ease-in-out infinite;
}

.curve-left {
    left: -18%;
    clip-path: inset(8% 32% 8% 0);
}

.curve-right {
    right: -18%;
    clip-path: inset(8% 0 8% 32%);
    animation-delay: 1.2s;
}

.partner-item {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(190, 105, 60, 0.16);
    border-radius: 22px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    z-index: 2;
}

.partner-item-featured {
    border-color: rgba(190, 105, 60, 0.34);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.partner-item::before,
.partner-item::after {
    content: '';
    position: absolute;
    top: 11px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f3f5f8;
    border: 2px solid #d7dce3;
}

.partner-item::before {
    left: 11px;
}

.partner-item::after {
    right: 11px;
}

.partner-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.partner-logo-wrap {
    position: relative;
    height: 190px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.partner-content {
    padding: 16px 14px 14px;
    text-align: center;
}

.partner-name {
    font-size: 1rem;
    line-height: 1.35;
    color: #11243a;
    margin-bottom: 8px;
}

.partner-role {
    margin: 0;
    color: #4e5d6c;
    font-size: 0.92rem;
    line-height: 1.45;
}

.partner-item--ally {
    position: relative;
}

.partner-item--ally .partner-logo-wrap {
    overflow: hidden;
}

.partner-item--ally .partner-logo {
    border-radius: 50%;
    object-fit: cover;
}

.partner-item--ally::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 1px;
    height: 10px;
    transform: translateX(-50%);
    background: rgba(190, 105, 60, 0.45);
}

.partner-item--lead .partner-content {
    padding: 0;
    text-align: left;
}

.partner-item--lead .partner-name {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

@media (max-width: 1200px) {
    .network-curve {
        width: 32%;
    }

    .network-row-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }

    .network-line-top {
        top: 34%;
    }

    .network-line-bottom {
        top: 64%;
    }

    .network-spine {
        top: 34%;
        height: 30%;
    }
}

@media (max-width: 992px) {

    .network-line,
    .network-curve,
    .network-spine {
        display: none;
    }

    .partner-network {
        padding: 0 20px;
    }

    .network-row-top {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto 14px;
    }

    .network-row-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        max-width: none;
        margin: 0 0 14px;
    }
}

@media (max-width: 768px) {

    .partner-item {
        grid-column: span 1;
    }

    .partner-item--lead {
        grid-column: 1 / -1;
        flex-direction: column;
        text-align: center;
    }

    .partner-item--lead .partner-content {
        text-align: center;
    }

}

@media (max-width: 480px) {
    .hero {
        padding: 40px 8px 30px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .partenaire-section {
        padding: 42px 0;
        margin: 30px 0 44px;
    }

    .partenaire_card {
        padding: 0 12px;
    }

    .network-row-top,
    .network-row-bottom {
        grid-template-columns: 1fr;
        margin-bottom: 12px;
    }

    /* .partner-logo-wrap {
        height: 120px;
        width: 120px;
    } */

    .project-info h2 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }
}

@keyframes linkFlow {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 120px 0;
    }
}

@keyframes linkFlowVertical {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 120px;
    }
}

@keyframes orbitPulse {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.72;
        transform: scale(1.02);
    }
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1,
    h2,
    h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.partenariat-section {
    padding: 60px 20px;
    margin: 0 auto;
}

.partenariat-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 40px;
}

.partenariat-item {
    text-align: center;
    padding: 20px 15px;
    background-color: var(--card-bg);
    border-radius: 22px;
}

.partenariat-icone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}


.partenariat-icone {
    animation-name: bounce;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.partenariat.info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partenariat.info p {
    color: var(--medium-gray);
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
}

.partenariat.info span {
    font-size: 23px;
    /* font-weight: 700; */
    line-height: 1.2;
}


@media (max-width: 1100px) {
    .partenariat-card {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .partenariat-section {
        padding: 50px 20px;
    }

    .partenariat-card {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .partenariat-item {
        padding: 20px;
    }

    .partenariat.info span {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .partenariat-section {
        padding: 40px 15px;
    }

    .partenariat-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .partenariat-icone {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .partenariat-icone i {
        font-size: 20px;
    }

    .partenariat.info p {
        font-size: 0.85rem;
    }

    .partenariat.info span {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .partenariat-card {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        gap: 15px;
    }

    .partenariat-section {
        padding: 30px 10px;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .partenariat-item {
        padding: 20px 15px;
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .partenariat-icone {
        margin: 0;
        flex-shrink: 0;
    }

    .partenariat.info {
        flex: 1;
    }

    .partenariat.info span {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .partenariat-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .partenariat-icone {
        margin: 0 auto;
    }

    .title {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }
}


/* ===== PARTENARIAT SECTION V2 ===== */
.partenariat-section-v2 {
    padding: 100px 0;
    background: linear-gradient(170deg, var(--secondary-color) 0%, #0f1f4e 60%, #0a1535 100%);
    position: relative;
    overflow: hidden;
}

/* Ambient background blobs */
.partenariat-section-v2::before,
.partenariat-section-v2::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.partenariat-section-v2::before {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(250, 166, 26, 0.08) 0%, transparent 65%);
}

.partenariat-section-v2::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(250, 166, 26, 0.06) 0%, transparent 65%);
}

/* Header */
.partenariat-header {
    text-align: center;
    margin-bottom: 60px;
}

.partenariat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250, 166, 26, 0.15);
    border: 1px solid rgba(250, 166, 26, 0.3);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.partenariat-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 14px;
}

.partenariat-title span {
    color: var(--primary-color);
}

.partenariat-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Grid */
.partenariat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .partenariat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .partenariat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Stat Card */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 22px 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(250, 166, 26, 0.4);
}

/* Glow on hover */
.stat-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(250, 166, 26, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover .stat-card-glow {
    opacity: 1;
}

/* Icon */
.stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(250, 166, 26, 0.12);
    border: 1px solid rgba(250, 166, 26, 0.25);
    color: var(--primary-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.35s ease;
}

.stat-card:hover .stat-icon-wrap {
    background: var(--primary-color);
    color: white;
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 8px 24px rgba(250, 166, 26, 0.35);
}

/* Value */
.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 14px;
}

.counter-value {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 900;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-unit {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress bar */
.stat-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.stat-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    transition: width 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-card.animated .stat-bar-fill {
    width: var(--fill);
}

/* Label */
.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0;
    text-transform: uppercase;
}

.plan-action-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(250, 166, 26, 0.12), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(23, 41, 92, 0.1), transparent 40%),
        linear-gradient(135deg, #f8efe9 0%, #f4e3d9 100%);
    margin: 50px auto;
    padding: 64px 0 72px;
    width: 100%;
}

.plan-timeline-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.plan-timeline-kicker {
    display: inline-block;
    background: rgba(250, 166, 26, 0.18);
    color: var(--secondary-color);
    border: 1px solid rgba(191, 105, 61, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-timeline-header h3 {
    color: var(--secondary-color);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 0.9rem;
    font-weight: 800;
}

.plan-timeline-header p {
    color: var(--dark-gray);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.plan-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0;
}

.plan-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 999px;
    box-shadow: 0 0 0 8px rgba(250, 166, 26, 0.08);
}

.timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items: center;
    min-height: 190px;
    margin-bottom: 28px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step-card {
    background: var(--white);
    border: 1px solid rgba(23, 41, 92, 0.08);
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-light);
    max-width: 460px;
}

.timeline-step-left .timeline-step-card {
    grid-column: 1 / 2;
    justify-self: end;
}

.timeline-step-right .timeline-step-card {
    grid-column: 3 / 4;
    justify-self: start;
}

.timeline-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    font-size: 1.4rem;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.timeline-step-card h4 {
    color: var(--secondary-color);
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

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

.timeline-step-node {
    grid-column: 2 / 3;
    justify-self: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 3px solid var(--primary-dark);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-light);
    z-index: 2;
}

.timeline-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--step-delay, 0ms);
}

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

@media (max-width: 992px) {
    .plan-action-section {
        padding: 52px 0;
    }

    .plan-timeline-line {
        left: 28px;
        transform: none;
    }

    .timeline-step {
        grid-template-columns: 56px 1fr;
        min-height: 0;
        margin-bottom: 20px;
        gap: 12px;
    }

    .timeline-step-node {
        grid-column: 1 / 2;
        width: 46px;
        height: 46px;
        font-size: 0.9rem;
    }

    .timeline-step-card,
    .timeline-step-left .timeline-step-card,
    .timeline-step-right .timeline-step-card {
        grid-column: 2 / 3;
        justify-self: stretch;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .plan-timeline-header {
        margin-bottom: 34px;
    }

    .plan-timeline-header p {
        font-size: 0.95rem;
    }

    .timeline-step-card {
        padding: 1rem;
    }

    .timeline-step-card h4 {
        font-size: 1.12rem;
    }
}

.enjeux-section {
    background:
        linear-gradient(120deg, rgba(8, 30, 58, 0.92), rgba(21, 65, 112, 0.88)),
        url('/images/fond.svg');
    background-size: cover;
    background-position: center;
    margin: 40px auto;
    padding: 60px 15px;
    width: 100%;
}

.enjeux-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.detail-enjeux {
    padding: 20px;
}

.detail-enjeux h3 {
    color: var(--white, #ffffff);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-enjeux p {
    color: var(--white, #ffffff);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btnplus {
    background: var(--white, #ffffff) !important;
    color: var(--primary-color, #eb652b) !important;
    padding: 14px 32px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btnplus:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: #f8f9fa !important;
}

.detail-enjeux-card {
    padding: 15px;
}

.enjeux-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}


.detail-enjeux-item {
    text-align: center;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(5, 17, 33, 0.14);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.detail-enjeux-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(5, 17, 33, 0.22);
}

.detail-enjeux-icone {
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #faa61a 0%, #faa61a 100%);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(190, 105, 60, 0.3);
}

.detail-enjeux-icone i {
    font-size: 20px;
}

.detail-enjeux-icone i {
    animation: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.detail-enjeux.info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    width: 100%;
    align-items: center;
}

.detail-enjeux.info p {
    color: #12263f;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.row.justify-content-md-center,
.row {
    gap: 20px 0;
}

.col-12.col-lg-6.p-3 {
    display: flex;
}

@media (max-width: 1200px) {
    .enjeux-card {
        max-width: 95%;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .enjeux-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-enjeux {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }

    .detail-enjeux h3 {
        font-size: 2rem;
    }

    .detail-enjeux-card {
        max-width: 700px;
        margin: 0 auto;
    }

    .enjeux-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

@media (max-width: 768px) {
    .enjeux-section {
        padding: 40px 15px;
        margin: 30px auto;
    }

    .detail-enjeux h3 {
        font-size: 1.8rem;
    }

    .detail-enjeux p {
        font-size: 1rem;
    }

    .detail-enjeux-item {
        padding: 25px 15px;
    }

    .detail-enjeux-icone {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }

    .detail-enjeux-icone i {
        font-size: 28px;
    }

    .detail-enjeux.info p {
        font-size: 1.1rem;
    }

    .enjeux-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 576px) {
    .enjeux-section {
        padding: 30px 10px;
        margin: 20px auto;
    }

    .detail-enjeux h3 {
        font-size: 1.6rem;
    }

    .detail-enjeux p {
        font-size: 0.95rem;
    }

    .btnplus {
        padding: 12px 25px;
        font-size: 13px;
    }

    .detail-enjeux-item {
        padding: 20px 15px;
    }

    .detail-enjeux-icone {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }

    .detail-enjeux-icone i {
        font-size: 24px;
    }

    .detail-enjeux.info p {
        font-size: 1rem;
    }

    .col-12.col-lg-6.p-3 {
        padding: 10px !important;
    }
}

.zone-section {
    margin: 40px auto;
    padding: 60px 15px;
}

.ports-layout {
    margin-bottom: 1.25rem;
}

.port-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.port-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.port-card h3 {
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.port-card-featured img {
    height: 430px;
}

.port-card-featured h3 {
    font-size: 1.1rem;
}

.port-card-featured {
    position: relative;
}

.port-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #faa61a 0%, #faa61a 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.ports-grid-bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.ports-grid-bottom .port-card img {
    height: 190px;
}


@media (max-width: 900px) {
    .port-card-featured img {
        height: 320px;
    }

    .ports-grid-bottom {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .zone-section {
        padding: 45px 12px;
    }

    .port-card-featured img {
        height: 240px;
    }

    .port-badge {
        top: 10px;
        left: 10px;
        font-size: 0.68rem;
        padding: 6px 10px;
    }

    .ports-grid-bottom {
        grid-template-columns: 1fr;
    }

    .ports-grid-bottom .port-card img {
        height: 210px;
    }
}

.modern-gallery-section {
    padding: 88px 20px;
    background:
        radial-gradient(circle at 15% 20%, rgba(190, 105, 60, 0.16), transparent 36%),
        radial-gradient(circle at 85% 0%, rgba(42, 88, 150, 0.18), transparent 32%),
        linear-gradient(180deg, #f6f8fb 0%, #edf2f8 100%);
    position: relative;
    overflow: hidden;
}

.gallery-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.gallery-header {
    text-align: center;
    margin-bottom: 44px;
    position: relative;
}

.gallery-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a3f22;
    background: rgba(190, 105, 60, 0.14);
}

.gallery-title {
    font-size: 3.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #102640;
    line-height: 1.1;
    position: relative;
}

.gradient-text {
    background: linear-gradient(45deg,
            var(--primary-color),
            #FF8C42,
            var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

.gallery-subtitle {
    color: #40556d;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    display: block;
}

.gallery-subtitle::before,
.gallery-subtitle::after {
    content: none;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 18px;
    height: 640px;
    position: relative;
    margin-bottom: 12px;
}

.grid-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 34px rgba(12, 28, 47, 0.16);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(235, 101, 43, 0.15);
    z-index: 10;
}

.large-item {
    grid-column: 1 / span 5;
    grid-row: 1 / span 5;
}

.small-item:nth-child(2) {
    grid-column: 7 / span 5;
    grid-row: 2 / span 6;
}

.small-item:nth-child(3) {
    grid-column: 7 / span 5;
    grid-row: 8 / span 6;
}

.medium-item {
    grid-column: 1 / span 6;
    grid-row: 6 / span 8;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) contrast(1.1);
}

.grid-item:hover .gallery-img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.2);
}

/* Overlay minimaliste */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.decorative-element {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 1;
}

.decorative-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
}

.decorative-line {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom,
            transparent,
            var(--primary-color),
            transparent);
}

/* Navigation */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.nav-dot::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s;
}

.nav-dot:hover::after {
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1200px) {
    .modern-grid {
        height: 560px;
        gap: 15px;
    }

    .large-item {
        grid-column: 1 / span 7;
    }

    .small-item:nth-child(2),
    .small-item:nth-child(3) {
        grid-column: 8 / span 5;
    }
}

@media (max-width: 992px) {
    .modern-gallery-section {
        padding: 60px 20px;
    }

    .modern-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 300px);
        height: auto;
        gap: 20px;
    }

    .grid-item {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .gallery-title {
        font-size: 2.5rem;
    }

    .decorative-element {
        display: none;
    }
}

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

    .modern-grid {
        grid-template-rows: repeat(4, 250px);
    }

    .image-label {
        font-size: 1.2rem;
    }

}

@media (max-width: 576px) {
    .modern-gallery-section {
        padding: 40px 15px;
    }

    .gallery-title {
        font-size: 1.7rem;
    }

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

    .modern-grid {
        grid-template-rows: repeat(4, 200px);
    }
}

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

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

.modern-grid {
    animation: fadeInUp 1s ease-out;
}

.reveal-in {
    animation: fadeInUp 0.9s ease both;
}

.stagger-reveal>* {
    animation: fadeInUp 0.85s ease both;
}

.stagger-reveal>*:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-reveal>*:nth-child(2) {
    animation-delay: 0.12s;
}

.stagger-reveal>*:nth-child(3) {
    animation-delay: 0.19s;
}

.stagger-reveal>*:nth-child(4) {
    animation-delay: 0.26s;
}

.stagger-reveal>*:nth-child(5) {
    animation-delay: 0.33s;
}

@supports (animation-timeline: view()) {
    .reveal-in {
        opacity: 0.01;
        animation: fadeInUp linear both;
        animation-timeline: view();
        animation-range: entry 8% cover 30%;
    }

    .stagger-reveal>* {
        opacity: 0.01;
        animation: fadeInUp linear both;
        animation-timeline: view();
        animation-range: entry 8% cover 28%;
    }
}

/* Styles pour l'animation des cartes partenaires */
.animate-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardAppear 0.8s ease-out forwards;
    opacity: 0;
}

.card {
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card-img-container {
    position: relative;
    overflow: hidden;
}

.card-img {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.card:hover .card-img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.2);
}

.card-img-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.2) 70%,
            transparent 100%);
    transform: translateY(0);
    transition: all 0.5s ease;
    padding: 2rem 1.5rem;
}

.card:hover .card-img-overlay {
    background: linear-gradient(to top,
            rgba(190, 105, 60, 0.95) 0%,
            rgba(190, 105, 60, 0.7) 30%,
            rgba(0, 0, 0, 0.3) 70%,
            transparent 100%);
}

.card-title {
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.4s ease 0.1s;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-text {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card:hover .card-title,
.card:hover .card-text {
    transform: translateY(0);
    opacity: 1;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation au scroll */
.card {
    animation: none;
}

@keyframes cardPulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(190, 105, 60, 0.2);
    }

    50% {
        box-shadow: 0 20px 40px rgba(190, 105, 60, 0.4);
    }
}

/* Optimisation de la qualité des images */
.card-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Styles pour le portfolio amélioré */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoom 0.4s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(190, 105, 60, 0.3);
    border-radius: 50%;
    border: 2px solid white;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
    background: white;
}

.gallery-img {
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.gallery-img:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.grid-item::after {
    content: '🔍';
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 20px;
    background: rgba(190, 105, 60, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(5px);
    border: 2px solid white;
}

.grid-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.grid-item:hover .image-wrapper::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .image-modal {
        padding: 20px;
    }

    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 80%;
    }

    .grid-item::after {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



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

/* 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: 70px 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: 50px;
    }

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

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

.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;
    }
}

/* ===== ZONE SECTION V2 ===== */
.zone-section-v2 {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

/* Header */
.zone-header {
    text-align: center;
    margin-bottom: 60px;
}

.zone-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 41, 92, 0.07);
    border: 1px solid rgba(23, 41, 92, 0.15);
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 18px;
}

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

.zone-title span {
    color: var(--primary-color);
}

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

/* ===== LAYOUT ===== */
.zone-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .zone-layout {
        grid-template-columns: 1fr;
    }
}

/* Regional grid */
.zone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== PORT CARD ===== */
.port-card-v2 {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--secondary-color);
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.port-card-v2:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

/* Hero card height */
.port-hero {
    height: 100%;
    min-height: 480px;
}

/* Regional card height */
.port-regional {
    height: 220px;
}

/* Image */
.port-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.port-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.75);
}

.port-card-v2:hover .port-img {
    transform: scale(1.07);
    filter: brightness(0.6);
}

/* Overlay gradient */
.port-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 21, 53, 0.92) 0%,
            rgba(10, 21, 53, 0.4) 50%,
            rgba(10, 21, 53, 0.05) 100%);
    transition: background 0.4s ease;
}

.port-card-v2:hover .port-img-overlay {
    background: linear-gradient(to top,
            rgba(10, 21, 53, 0.97) 0%,
            rgba(10, 21, 53, 0.55) 55%,
            rgba(10, 21, 53, 0.1) 100%);
}

/* Card body */
.port-card-body {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

/* Tag */
.port-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 166, 26, 0.18);
    border: 1px solid rgba(250, 166, 26, 0.35);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.port-tag-featured {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Port name */
.port-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin: 0 0 8px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.port-hero .port-name {
    font-size: 1.7rem;
}

/* Description */
.port-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Meta */
.port-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.port-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.port-meta i {
    color: var(--primary-color);
}

/* Deco number */
.port-deco-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease;
}

.port-card-v2:hover .port-deco-number {
    color: rgba(250, 166, 26, 0.1);
}

/* ===== BOTTOM STRIP ===== */
.zone-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e3a7a 100%);
    border-radius: 20px;
    padding: 28px 40px;
    flex-wrap: wrap;
}

.zone-strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 32px;
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

.zone-strip-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.zone-strip-item strong {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    /* line-height: 1; */
}

.zone-strip-item span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.zone-strip-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .zone-grid {
        grid-template-columns: 1fr;
    }

    .zone-strip {
        gap: 20px;
        padding: 24px 20px;
    }

    .zone-strip-divider {
        display: none;
    }

    .zone-strip-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 16px;
    }

    .zone-strip-item:last-child {
        border-bottom: none;
    }
}

/* ===== BENEFITS STRIP ===== */
.al-benefits {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.al-benefits::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,166,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.al-benefits-header {
  margin-bottom: 28px;
}

.al-benefits-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(250,166,26,0.15);
  border: 1px solid rgba(250,166,26,0.3);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
}

.al-benefits-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

@media (max-width: 768px) {
  .al-benefits-grid { flex-direction: column; }
  .al-benefit-divider { width: 100%; height: 1px; min-height: unset; }
  .al-benefits { padding: 28px 22px; }
}

.al-benefit-divider {
  width: 1px;
  min-height: 80px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  align-self: center;
  margin: 0 4px;
}

.al-benefit-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 20px;
  border-radius: 16px;
  transition: background 0.3s ease;
}

.al-benefit-item:hover {
  background: rgba(255,255,255,0.05);
}

.al-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(250,166,26,0.15);
  color: var(--primary-color);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.al-benefit-item:hover .al-benefit-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.08);
}

.al-benefit-body h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin: 0 0 5px;
}

.al-benefit-body p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}

/* ===== STRUCTURING CTA SECTION ===== */
.structuring-cta-section {
  background: linear-gradient(165deg, #f0f3fa 0%, #e8ecf5 100%);
  position: relative;
  overflow: hidden;
}

/* ===== INNER CARD ===== */
.cta-inner {
  background: linear-gradient(145deg, var(--secondary-color) 0%, #152560 50%, #0d1f4e 100%);
  border-radius: 32px;
  padding: 72px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(23,41,92,0.3);
}

@media (max-width: 768px) {
  .cta-inner { padding: 48px 28px; border-radius: 24px; }
}