*,
*::before,
*::after {
    box-sizing: border-box;
}

.cards {
    display: grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.cards_item {
    display: flex;
    padding: 1rem;
}

.card_image {
    height: calc(13*1.2rem);
    padding: 1.2rem 1.2rem 0;
    position:relative;
}
.card_image:before,
.card_image:after{
    content: "";
    position: absolute;
    width: 20px;
    left: 60%;
    top: 0;
    height: 45px;
    background: #e6e6e6b8;
    transform: rotate(45deg);
}
.card_image:after{
    transform: rotate(-45deg);
    top:auto;
    bottom:-22px;
    left:40%;
}
.card_image img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.cards_item {
    filter:drop-shadow(0 0 5px rgba(0, 0, 0, 0.25));
}


.card {
    background-color: white;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 30px;
    background: repeating-linear-gradient(#0000 0 calc(1.4rem - 1px),#66afe1 0 1.4rem) right bottom /100% 100%,linear-gradient(red 0 0) 30px 0/2px 100% #fff;
    background-repeat: no-repeat;
    line-height: 1.4rem; /* Correspond à l'espacement des lignes bleues */
    -webkit-mask:radial-gradient(circle .8rem at 2px 50%,#0000 98%,#000)0 0/100% 2.4rem;
}

.card_text {
    font-size: 0.7rem; /* Taille de police calculée pour correspondre à l'espacement des lignes */
    line-height: 1.45rem; /* Ajustement pour aligner le texte avec les lignes bleues */
}


.card_content {
    padding: 1.2rem;
}

h2.card_title,p {
    margin: 1.2rem 0;
}
h2.card_title {
    font-size: 1.3em;
}





/*tritre animé*/

/* From Uiverse.io by ilkhoeri */
.card-terminal {
    padding: 1rem;
    overflow: hidden;
    border: 1px solid #c5c5c5;
    border-radius: 12px;
    background-color: #d9d9d92f;
    backdrop-filter: blur(8px);
    min-width: 344px;
}
.wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 10;
    border: 0.5px solid #525252;
    border-radius: 8px;
    overflow: hidden;
}
.terminal {
    display: flex;
    flex-direction: column;

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
.head-terminal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    min-height: 40px;
    padding-inline: 12px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #202425;
}
.title {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 2.5rem;
    user-select: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8e8e8e;
}
.title > svg {
    height: 18px;
    width: 18px;
    margin-top: 2px;
    color: #006adc;
}

.body-terminal {
    display: flex;
    flex-direction: column;
    position: relative;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    overflow-x: auto;
    padding: 1rem;
    line-height: 19px;
    color: white;
    background-color: black;
    white-space: nowrap;
}
.pre {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-wrap: nowrap;
    white-space: pre;
    background-color: transparent;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 16px;
}
.pre code:nth-child(1) {
    color: #575757;
}
.pre code:nth-child(2) {
    color: #1670fb;
}
.cmd {
    height: 19px;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
}
.cmd::before {
    content: attr(data-cmd);
    position: relative;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    background-color: transparent;
    animation: inputs 8s steps(22) infinite;
}
.cmd::after {
    content: "";
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    background-color: transparent;
    border-right: 0.15em solid #1670fb;
    animation: cursor 0.5s step-end infinite alternate, blinking 0.5s infinite;
}

@keyframes blinking {
    20%,
    80% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0);
    }
}
@keyframes cursor {
    50% {
        border-right-color: transparent;
    }
}
@keyframes inputs {
    0%, 100% {
        width: 0;
    }
    10%, 90% {
        width: 100px; /* Ajuste cette valeur */
    }
    30%, 70% {
        width: 300px; /* Longueur ajustée pour correspondre au nouveau texte */
        max-width: max-content;
    }
}


