.card.shadow.py-5.px-5.rounded {
    position: relative;
    width: 100%;
    min-height: 390px;
    padding: 42px 40px 32px !important;
    margin-bottom: 35px;
    background: #ffffff !important;
    border: 1px solid rgba(18, 59, 104, 0.06) !important;
    border-radius: 18px !important;
    overflow: hidden;
    isolation: isolate;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.035),
        0 15px 40px rgba(0, 0, 0, 0.055),
        0 30px 70px rgba(18, 59, 104, 0.07),
        0 45px 100px rgba(122, 17, 17, 0.035);

    animation: dacoServiceShadow 8s ease-in-out infinite;

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease;
}


/* Halo bleu très léger */

.card.shadow.py-5.px-5.rounded::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -180px;
    right: -160px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(18, 59, 104, 0.11) 0%,
        rgba(18, 59, 104, 0.055) 35%,
        rgba(18, 59, 104, 0.02) 58%,
        transparent 75%
    );

    filter: blur(8px);
    opacity: 0;

    z-index: -1;

    animation: dacoServiceBlueGlow 9s ease-in-out infinite;
}


/* Halo rouge très léger */

.card.shadow.py-5.px-5.rounded::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -190px;
    left: -170px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(122, 17, 17, 0.10) 0%,
        rgba(122, 17, 17, 0.05) 35%,
        rgba(122, 17, 17, 0.018) 58%,
        transparent 75%
    );

    filter: blur(8px);
    opacity: 0;

    z-index: -1;

    animation: dacoServiceRedGlow 10s ease-in-out infinite;
}


/* =========================================================
   TITRES
========================================================= */

.card.shadow.py-5.px-5.rounded h4,
.card.shadow.py-5.px-5.rounded h5 {
    position: relative;

    margin: 0 0 25px;
    padding-bottom: 14px;

    color: #123b68;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: -0.2px;
}


/* Petite ligne décorative sous le titre */

.card.shadow.py-5.px-5.rounded h4::after,
.card.shadow.py-5.px-5.rounded h5::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 48px;
    height: 3px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #7a1111 0%,
        #7a1111 45%,
        #123b68 55%,
        #123b68 100%
    );

    animation: dacoTitleLine 4s ease-in-out infinite;
}


/* =========================================================
   LISTES
========================================================= */

.card.shadow.py-5.px-5.rounded > div[style*="list-style"] {
    position: relative;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


/* Chaque élément */

.card.shadow.py-5.px-5.rounded li {
    position: relative;

    display: block;

    margin: 0 0 14px;
    padding-left: 27px;

    color: #555555;

    font-size: 15px;
    line-height: 1.7;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


/* Remplacement du point classique par un petit cercle */

.card.shadow.py-5.px-5.rounded li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 9px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #123b68;

    box-shadow:
        0 0 0 4px rgba(18, 59, 104, 0.07);

    animation: dacoBulletPulse 3s ease-in-out infinite;
}


/* Alternance rouge/bleu des points */

.card.shadow.py-5.px-5.rounded li:nth-child(even)::before {
    background: #7a1111;

    box-shadow:
        0 0 0 4px rgba(122, 17, 17, 0.07);
}


/* Petit mouvement au survol */

.card.shadow.py-5.px-5.rounded li:hover {
    color: #123b68;
    transform: translateX(4px);
}


/* =========================================================
   LOSANGES
========================================================= */

.diamond-loader {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 13px;

    width: max-content;

    margin-top: 28px;
    padding: 8px 4px;

    min-height: 30px;
}


/* Losange */

.diamond-shape {
    position: relative;

    width: 11px;
    height: 11px;

    flex: 0 0 11px;

    background: #123b68;

    transform: rotate(45deg) scale(0.8);

    border-radius: 2px;

    opacity: 0.3;

    box-shadow:
        0 4px 12px rgba(18, 59, 104, 0.25);

    animation:
        pulse-diamond-daco 1.7s infinite ease-in-out;
}


/* Deuxième losange rouge */

.diamond-shape:nth-child(2) {
    background: #7a1111;

    animation-delay: 0.3s;

    box-shadow:
        0 4px 12px rgba(122, 17, 17, 0.25);
}


/* Troisième losange bleu */

.diamond-shape:nth-child(3) {
    background: #123b68;

    animation-delay: 0.6s;
}


/* =========================================================
   ANIMATION DES LOSANGES
========================================================= */

@keyframes pulse-diamond-daco {

    0%,
    100% {
        transform: rotate(45deg) scale(0.75);
        opacity: 0.25;
    }

    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 1;
    }
}


/* =========================================================
   ANIMATION DES OMBRES
========================================================= */

@keyframes dacoServiceShadow {

    0% {
        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.035),
            0 15px 40px rgba(0, 0, 0, 0.055),
            0 30px 70px rgba(18, 59, 104, 0.07),
            0 45px 100px rgba(122, 17, 17, 0.035);
    }

    50% {
        box-shadow:
            0 7px 18px rgba(0, 0, 0, 0.04),
            0 18px 45px rgba(18, 59, 104, 0.075),
            0 35px 80px rgba(18, 59, 104, 0.09),
            0 50px 110px rgba(122, 17, 17, 0.045);
    }

    100% {
        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.035),
            0 15px 40px rgba(0, 0, 0, 0.055),
            0 30px 70px rgba(18, 59, 104, 0.07),
            0 45px 100px rgba(122, 17, 17, 0.035);
    }
}


/* =========================================================
   ANIMATION HALO BLEU
========================================================= */

@keyframes dacoServiceBlueGlow {

    0% {
        right: -160px;
        top: -180px;
        opacity: 0;
        transform: scale(0.7);
    }

    20% {
        opacity: 0.7;
    }

    45% {
        right: 10%;
        top: -80px;
        opacity: 0.9;
        transform: scale(1);
    }

    70% {
        right: 45%;
        top: 20%;
        opacity: 0.55;
        transform: scale(1.15);
    }

    100% {
        right: 110%;
        top: 70%;
        opacity: 0;
        transform: scale(0.7);
    }
}


/* =========================================================
   ANIMATION HALO ROUGE
========================================================= */

@keyframes dacoServiceRedGlow {

    0% {
        left: -170px;
        bottom: -190px;
        opacity: 0;
        transform: scale(0.7);
    }

    20% {
        opacity: 0.7;
    }

    45% {
        left: 10%;
        bottom: -80px;
        opacity: 0.9;
        transform: scale(1);
    }

    70% {
        left: 45%;
        bottom: 20%;
        opacity: 0.55;
        transform: scale(1.15);
    }

    100% {
        left: 110%;
        bottom: 70%;
        opacity: 0;
        transform: scale(0.7);
    }
}


/* =========================================================
   ANIMATION DE LA LIGNE DES TITRES
========================================================= */

@keyframes dacoTitleLine {

    0%,
    100% {
        width: 42px;
        opacity: 0.7;
    }

    50% {
        width: 70px;
        opacity: 1;
    }
}


/* =========================================================
   ANIMATION DES POINTS
========================================================= */

@keyframes dacoBulletPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}


/* =========================================================
   HOVER DES CARTES
========================================================= */

.card.shadow.py-5.px-5.rounded:hover {
    transform: translateY(-7px);

    border-color: rgba(18, 59, 104, 0.12) !important;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.04),
        0 20px 50px rgba(18, 59, 104, 0.10),
        0 35px 80px rgba(18, 59, 104, 0.12),
        0 55px 110px rgba(122, 17, 17, 0.06);
}


/* =========================================================
   DÉCALAGE DES ANIMATIONS POUR CHAQUE CARTE
========================================================= */

.card.shadow.py-5.px-5.rounded:nth-of-type(1) {
    animation-delay: 0s;
}

.card.shadow.py-5.px-5.rounded:nth-of-type(2) {
    animation-delay: -2s;
}

.card.shadow.py-5.px-5.rounded:nth-of-type(3) {
    animation-delay: -4s;
}

.card.shadow.py-5.px-5.rounded:nth-of-type(4) {
    animation-delay: -6s;
}


/* =========================================================
   RESPONSIVE TABLETTE
========================================================= */

@media (max-width: 991px) {

    .card.shadow.py-5.px-5.rounded {
        min-height: 360px;
        padding: 35px 30px 28px !important;
        margin-bottom: 25px;
    }

    .card.shadow.py-5.px-5.rounded h4,
    .card.shadow.py-5.px-5.rounded h5 {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .card.shadow.py-5.px-5.rounded li {
        font-size: 14px;
        margin-bottom: 12px;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 767px) {

    .card.shadow.py-5.px-5.rounded {
        min-height: auto;

        padding: 30px 24px 25px !important;

        margin-bottom: 22px;

        border-radius: 15px !important;

        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.04),
            0 15px 35px rgba(18, 59, 104, 0.07),
            0 25px 55px rgba(122, 17, 17, 0.035);
    }

    .card.shadow.py-5.px-5.rounded h4,
    .card.shadow.py-5.px-5.rounded h5 {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .card.shadow.py-5.px-5.rounded li {
        font-size: 14px;
        line-height: 1.65;
        padding-left: 23px;
        margin-bottom: 11px;
    }

    .diamond-loader {
        gap: 11px;
        margin-top: 23px;
    }

    .diamond-shape {
        width: 9px;
        height: 9px;
        flex-basis: 9px;
    }
}


/* =========================================================
   PETIT MOBILE
========================================================= */

@media (max-width: 480px) {

    .card.shadow.py-5.px-5.rounded {
        padding: 25px 19px 22px !important;
        border-radius: 13px !important;
    }

    .card.shadow.py-5.px-5.rounded h4,
    .card.shadow.py-5.px-5.rounded h5 {
        font-size: 18px;
    }

    .card.shadow.py-5.px-5.rounded li {
        font-size: 13.5px;
    }

    .diamond-loader {
        margin-top: 20px;
    }
}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

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

    .card.shadow.py-5.px-5.rounded,
    .card.shadow.py-5.px-5.rounded::before,
    .card.shadow.py-5.px-5.rounded::after,
    .diamond-shape,
    .card.shadow.py-5.px-5.rounded h4::after,
    .card.shadow.py-5.px-5.rounded h5::after,
    .card.shadow.py-5.px-5.rounded li::before {
        animation: none !important;
    }

    .card.shadow.py-5.px-5.rounded {
        transition: none !important;
    }
}
