/* ==================================================
   Section Pourquoi Orchelya
   ================================================== */

.orchelya-why-section {
    position: relative;
    overflow: hidden;
    padding-top: 110px;
    padding-bottom: 110px;
    background:
        radial-gradient(
            circle at 50% 57%,
            rgba(236, 95, 74, 0.055),
            rgba(236, 95, 74, 0) 31%
        ),
        #fdfaf9;
}

.orchelya-why-section .container {
    width: min(1480px, calc(100% - 64px));
    max-width: 1480px;
}

.orchelya-why-heading {
    position: relative;
    z-index: 4;
    width: min(900px, 100%);
    margin: 0 auto 72px;
    text-align: center;
}

.orchelya-why-heading .orchelya-why-kicker {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.orchelya-why-heading .sub-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0 auto;
    padding: 7px 13px 7px 7px;
    border: 1px solid rgba(137, 118, 100, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #897664;
    box-shadow: 0 10px 30px rgba(36, 36, 35, 0.05);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.orchelya-why-heading .sub-title b {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    padding: 5px 13px;
    border-radius: 999px;
    background: #ec5f4a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.orchelya-why-heading h2 {
    max-width: 860px;
    margin: 0 auto;
    color: #242423;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.orchelya-why-heading-text {
    max-width: 760px;
    margin: 28px auto 0;
    color: #62615e;
    font-size: 18px;
    line-height: 1.75;
}

.orchelya-why-network {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(320px, 1fr)
        minmax(390px, 470px)
        minmax(390px, 1.08fr);
    gap: 66px;
    align-items: center;
}

.orchelya-why-connectors {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.orchelya-why-connector-line {
    fill: none;
    stroke: rgba(236, 95, 74, 0.34);
    stroke-width: 1.4;
    stroke-linecap: round;
    opacity: 0;
    transition:
        stroke-dashoffset 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease;
}

.orchelya-why-network.is-visible
.orchelya-why-connector-line {
    stroke-dashoffset: 0 !important;
    opacity: 1;
}

.orchelya-why-stack,
.orchelya-why-center {
    position: relative;
    z-index: 3;
}

.orchelya-why-stack {
    display: grid;
    gap: 26px;
}

.orchelya-why-stack-left {
    align-self: center;
}

.orchelya-why-card {
    position: relative;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 20px;
    min-height: 126px;
    align-items: center;
    padding: 24px 25px;
    border: 1px solid rgba(137, 118, 100, 0.14);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 48px rgba(36, 36, 35, 0.055);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.orchelya-why-card-anchor {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 3px solid #fdfaf9;
    border-radius: 50%;
    background: #ec5f4a;
    box-shadow: 0 0 0 1px rgba(236, 95, 74, 0.15);
    transform: translateY(-50%);
}

.orchelya-why-card-left
.orchelya-why-card-anchor {
    right: -7px;
}

.orchelya-why-card-right
.orchelya-why-card-anchor {
    left: -7px;
}

.orchelya-why-card-icon {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(236, 95, 74, 0.15);
    border-radius: 50%;
    background: rgba(244, 239, 231, 0.72);
    color: #ec5f4a;
    font-size: 25px;
}

.orchelya-why-card h3 {
    margin: 0;
    color: #242423;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.orchelya-why-card p {
    margin: 8px 0 0;
    color: #62615e;
    font-size: 15px;
    line-height: 1.58;
}

.orchelya-why-center {
    width: 100%;
    aspect-ratio: 1;
}

.orchelya-why-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(236, 95, 74, 0.17);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orchelya-why-ring-one {
    width: 62%;
    height: 62%;
}

.orchelya-why-ring-two {
    width: 80%;
    height: 80%;
    border-color: rgba(205, 179, 152, 0.32);
}

.orchelya-why-ring-three {
    width: 100%;
    height: 100%;
    border-style: dashed;
    border-color: rgba(205, 179, 152, 0.25);
}

.orchelya-why-logo-shell {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: flex;
    width: 61%;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 11%;
    border: 1px solid rgba(137, 118, 100, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.91);
    box-shadow:
        0 26px 68px rgba(137, 118, 100, 0.17),
        inset 0 0 0 8px rgba(236, 95, 74, 0.035);
    transform: translate(-50%, -50%);
}

.orchelya-why-logo-shell img {
    display: block;
    width: 100%;
    height: auto;
}

.orchelya-why-target {
    position: absolute;
    z-index: 5;
    width: 14px;
    height: 14px;
    border: 3px solid #fdfaf9;
    border-radius: 50%;
    background: #ec5f4a;
    box-shadow: 0 0 0 1px rgba(236, 95, 74, 0.15);
    transform: translate(-50%, -50%);
}

.orchelya-why-target-one {
    top: 24%;
    left: 12%;
}

.orchelya-why-target-two {
    top: 50%;
    left: 4%;
}

.orchelya-why-target-three {
    top: 76%;
    left: 12%;
}

.orchelya-why-target-four {
    top: 12%;
    right: 21%;
}

.orchelya-why-target-five {
    top: 35%;
    right: 5%;
}

.orchelya-why-target-six {
    top: 63%;
    right: 5%;
}

.orchelya-why-target-seven {
    top: 87%;
    right: 21%;
}

.orchelya-why-promise {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 20px;
    width: min(820px, 100%);
    margin: 62px auto 0;
    align-items: center;
    padding: 27px 32px;
    border: 1px solid rgba(137, 118, 100, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 18px 45px rgba(36, 36, 35, 0.045);
}

.orchelya-why-promise-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(251, 233, 229, 0.72);
    color: #ec5f4a;
    font-size: 25px;
}

.orchelya-why-promise strong {
    display: block;
    color: #242423;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.orchelya-why-promise p {
    margin: 6px 0 0;
    color: #66635f;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1399px) {
    .orchelya-why-section .container {
        width: min(1320px, calc(100% - 48px));
    }

    .orchelya-why-network {
        grid-template-columns:
            minmax(290px, 1fr)
            minmax(350px, 410px)
            minmax(350px, 1fr);
        gap: 46px;
    }

    .orchelya-why-card {
        grid-template-columns: 62px 1fr;
        gap: 17px;
        padding: 21px;
    }

    .orchelya-why-card-icon {
        width: 62px;
        height: 62px;
        font-size: 23px;
    }

    .orchelya-why-card h3 {
        font-size: 17px;
    }

    .orchelya-why-card p {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .orchelya-why-section {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .orchelya-why-section .container {
        width: min(920px, calc(100% - 40px));
    }

    .orchelya-why-heading {
        margin-bottom: 55px;
    }

    .orchelya-why-network {
        display: flex;
        flex-direction: column;
        gap: 38px;
    }

    .orchelya-why-connectors,
    .orchelya-why-card-anchor {
        display: none;
    }

    .orchelya-why-center {
        order: 1;
        width: min(460px, 100%);
    }

    .orchelya-why-stack-left {
        order: 2;
    }

    .orchelya-why-stack-right {
        order: 3;
    }

    .orchelya-why-stack {
        width: min(760px, 100%);
    }
}

@media (max-width: 767px) {
    .orchelya-why-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .orchelya-why-section .container {
        width: calc(100% - 28px);
    }

    .orchelya-why-heading {
        margin-bottom: 44px;
    }

    .orchelya-why-heading .sub-title {
        gap: 8px;
        padding-right: 10px;
        font-size: 11px;
    }

    .orchelya-why-heading .sub-title b {
        padding: 5px 10px;
        font-size: 10px;
    }

    .orchelya-why-heading h2 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .orchelya-why-heading-text {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.65;
    }

    .orchelya-why-card {
        grid-template-columns: 56px 1fr;
        gap: 15px;
        min-height: auto;
        padding: 19px 17px;
        border-radius: 15px;
    }

    .orchelya-why-card-icon {
        width: 56px;
        height: 56px;
        font-size: 21px;
    }

    .orchelya-why-promise {
        grid-template-columns: 46px 1fr;
        gap: 15px;
        margin-top: 45px;
        padding: 22px 18px;
    }

    .orchelya-why-promise-icon {
        width: 46px;
        height: 46px;
        font-size: 21px;
    }

    .orchelya-why-promise strong {
        font-size: 16px;
    }

    .orchelya-why-promise p {
        font-size: 14px;
    }
}

/* ORCHELYA WHY - HOVER PROMESSE ET MOBILE */

/*
 * Zoom discret des sept cartes.
 * La propriété scale reste indépendante des animations WOW.
 */
.orchelya-why-card {
    scale: 1;
    transform-origin: center center;
    transition:
        scale 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
    .orchelya-why-card:hover {
        z-index: 7;
        scale: 1.025;
        border-color: rgba(236, 95, 74, 0.24);
        box-shadow:
            0 26px 60px rgba(36, 36, 35, 0.09),
            0 8px 22px rgba(236, 95, 74, 0.055);
    }
}

/*
 * La couleur différenciante appartient à la promesse finale,
 * et non à la carte « 100 % sous votre contrôle ».
 */
.orchelya-why-promise {
    border-color: #CDB398;
    background:
        linear-gradient(
            135deg,
            #F4EFE7 0%,
            #FBE9E5 100%
        );
    box-shadow:
        0 22px 52px rgba(137, 118, 100, 0.11),
        inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.orchelya-why-promise-icon {
    border: 1px solid rgba(236, 95, 74, 0.2);
    background: rgba(255, 255, 255, 0.82);
    color: #EC5F4A;
}

/*
 * Tablette et mobile :
 * les courbes dynamiques deviennent une frise verticale.
 */
@media (max-width: 1199px) {
    .orchelya-why-network {
        gap: 30px;
    }

    .orchelya-why-center {
        position: relative;
        box-sizing: content-box;
        padding-bottom: 76px;
    }

    .orchelya-why-center::after {
        position: absolute;
        right: 50%;
        bottom: 4px;
        z-index: 8;
        display: inline-flex;
        min-height: 34px;
        align-items: center;
        justify-content: center;
        padding: 7px 15px;
        border: 1px solid rgba(236, 95, 74, 0.18);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: #897664;
        box-shadow: 0 10px 28px rgba(36, 36, 35, 0.055);
        content: attr(data-flow-label);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-align: center;
        text-transform: uppercase;
        transform: translateX(50%);
        white-space: nowrap;
    }

    .orchelya-why-stack {
        position: relative;
        box-sizing: border-box;
        gap: 18px;
        padding-left: 36px;
    }

    .orchelya-why-stack::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 10px;
        width: 2px;
        border-radius: 999px;
        background:
            linear-gradient(
                180deg,
                rgba(236, 95, 74, 0.18) 0%,
                rgba(236, 95, 74, 0.72) 48%,
                rgba(236, 95, 74, 0.18) 100%
            );
        content: "";
    }

    .orchelya-why-stack-right {
        margin-top: -30px;
    }

    .orchelya-why-card {
        overflow: visible;
    }

    .orchelya-why-card::before {
        position: absolute;
        top: 50%;
        left: -25px;
        width: 25px;
        border-top: 1px solid rgba(236, 95, 74, 0.42);
        content: "";
        transform: translateY(-50%);
    }

    .orchelya-why-card-anchor,
    .orchelya-why-card-left .orchelya-why-card-anchor,
    .orchelya-why-card-right .orchelya-why-card-anchor {
        top: 50%;
        right: auto;
        left: -31px;
        display: block;
        width: 14px;
        height: 14px;
        transform: translateY(-50%);
    }
}

@media (max-width: 767px) {
    .orchelya-why-center {
        width: min(340px, 100%);
        padding-bottom: 70px;
    }

    .orchelya-why-center::after {
        width: max-content;
        max-width: calc(100vw - 50px);
        white-space: normal;
    }

    .orchelya-why-stack {
        width: 100%;
        padding-left: 30px;
    }

    .orchelya-why-stack::before {
        left: 7px;
    }

    .orchelya-why-card::before {
        left: -22px;
        width: 22px;
    }

    .orchelya-why-card-anchor,
    .orchelya-why-card-left .orchelya-why-card-anchor,
    .orchelya-why-card-right .orchelya-why-card-anchor {
        left: -29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orchelya-why-card {
        scale: 1;
        transition: none;
    }

    .orchelya-why-card:hover {
        scale: 1;
    }
}

/* FIN ORCHELYA WHY - HOVER PROMESSE ET MOBILE */

/* ORCHELYA WHY - MOBILE PULSE ET TITRE LAPTOP */

/*
 * Laptop :
 * le titre est verrouille sur deux lignes lisibles.
 */
@media (min-width: 992px) and (max-width: 1399px) {
    .orchelya-why-heading {
        width: min(980px, 100%);
    }

    .orchelya-why-heading h2 {
        max-width: 980px;
        font-size: clamp(52px, 5vw, 68px);
    }

    .orchelya-why-title-line {
        display: block;
        white-space: nowrap;
    }
}

/*
 * Battement beige derriere le cercle blanc du logo.
 * Animation active uniquement sur ordinateur.
 */
.orchelya-why-logo-shell {
    isolation: isolate;
    overflow: visible;
}

.orchelya-why-logo-shell img {
    position: relative;
    z-index: 3;
}

@media (min-width: 1200px) {
    .orchelya-why-logo-shell::before,
    .orchelya-why-logo-shell::after {
        position: absolute;
        z-index: -1;
        border-radius: 50%;
        pointer-events: none;
        content: "";
        will-change: transform, opacity;
    }

    .orchelya-why-logo-shell::before {
        inset: -24%;
        background:
            radial-gradient(
                circle,
                rgba(203, 177, 152, 0.38) 0%,
                rgba(203, 177, 152, 0.22) 36%,
                rgba(203, 177, 152, 0.09) 58%,
                rgba(203, 177, 152, 0) 76%
            );
        filter: blur(3px);
        animation:
            orchelyaWhyHeartbeat 3.1s
            cubic-bezier(0.22, 1, 0.36, 1)
            infinite;
    }

    .orchelya-why-logo-shell::after {
        inset: -12%;
        border: 1px solid rgba(203, 177, 152, 0.42);
        animation:
            orchelyaWhyHeartbeatRing 3.1s
            cubic-bezier(0.22, 1, 0.36, 1)
            infinite;
    }
}

/*
 * Mobile :
 * suppression du libelle et de son espace reserve.
 */
@media (max-width: 767px) {
    .orchelya-why-center {
        padding-bottom: 0 !important;
    }

    .orchelya-why-center::after {
        display: none !important;
        content: none !important;
    }

    .orchelya-why-logo-shell::before,
    .orchelya-why-logo-shell::after {
        display: none !important;
        animation: none !important;
    }
}

@keyframes orchelyaWhyHeartbeat {
    0%,
    38%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    12% {
        opacity: 0.6;
        transform: scale(1.12);
    }

    23% {
        opacity: 0.3;
        transform: scale(1.035);
    }
}

@keyframes orchelyaWhyHeartbeatRing {
    0%,
    38%,
    100% {
        opacity: 0.16;
        transform: scale(1);
    }

    12% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    23% {
        opacity: 0.24;
        transform: scale(1.07);
    }
}

@media (prefers-reduced-motion: reduce) {
    .orchelya-why-logo-shell::before,
    .orchelya-why-logo-shell::after {
        animation: none !important;
    }
}

/* FIN ORCHELYA WHY - MOBILE PULSE ET TITRE LAPTOP */

/* ORCHELYA WHY - BATTEMENT ACCELERE */

/*
 * Le battement existant passe de 3,1 secondes à 2,35 secondes.
 * Les images et les lignes de connexion ne sont pas transformées.
 */
@media (min-width: 1200px) {
    .orchelya-why-logo-shell::before,
    .orchelya-why-logo-shell::after {
        animation-duration: 2.35s !important;
    }
}

/* FIN ORCHELYA WHY - BATTEMENT ACCELERE */

/* ORCHELYA WHY - JONCTION DÉGRADÉE */

/*
 * La section remonte légèrement sous le Hero.
 * Un voile transparent poursuit le dégradé sans créer de barre pleine.
 */
.orchelya-why-section {
    position: relative;
    z-index: 4;
    margin-top: -3px !important;
    overflow: visible !important;
    border-top: 0 !important;
    outline: 0 !important;
    background-color: #FDFAF9;
    box-shadow: none !important;
    backface-visibility: hidden;
}

.orchelya-why-section::before {
    position: absolute;
    top: -104px;
    right: 0;
    left: 0;
    z-index: 0;
    height: 106px;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(253, 250, 249, 0) 0%,
            rgba(253, 250, 249, 0.12) 30%,
            rgba(253, 250, 249, 0.42) 60%,
            rgba(253, 250, 249, 0.78) 84%,
            #FDFAF9 100%
        );
    content: "";
}

.orchelya-why-section > .container {
    position: relative;
    z-index: 1;
}

/* FIN ORCHELYA WHY - JONCTION DÉGRADÉE */
