/***********************************************/
/************* CSS commun à la home ************/
/***********************************************/

/* Conteneur principal de la vidéo*/
.video-container {
    position: relative;
    width: 100%;
    height: 53vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0px;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px); /* Flou sur l'arrière-plan */
    z-index: 0;
}

/* Vidéo en arrière-plan */
video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -1; /* Derrière le contenu */
}

/* Etiquette sur les articles/codes/CPT/... */
span.html {
    background-color: var(--white-color);
    color: #000;
    border-right: 2px solid #676767;
    border-radius: 0px 3px 3px 0px;
}
span.css {
    background-color: var(--secondary-color);
    color: #FFF;
    border-right: 2px solid #30585b;
    border-radius: 0px 3px 3px 0px;
}
span.javascript {
    background-color: var(--primary-color);
    color: #FFF;
    border-right: 2px solid #1e3849;
    border-radius: 0px 3px 3px 0px;
}
span.php {
    background-color: var(--black-color);
    color: #FFF;
    border-right: 2px solid #242424;
    border-radius: 0px 3px 3px 0px;
}

span.recent-post-item--tag,
span.recent-code-item--tag,
span.last-code-item--tag {
    background-color: #D6D6D6;
    color: #000;
    border-right: 2px solid #676767;
    border-radius: 0px 3px 3px 0px;
}







/***********************************************/
/************* Splide des articles *************/
/***********************************************/
.posts-section {
    display: flex;
    align-items: stretch;
    margin-bottom: 50px;
}

.recent-posts {
    flex: 1;
    min-width: 0;
}

.recent-post-header {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 50px;
}

.recent-post-header h2 {
    width: max-content;
    margin: 0;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #FFF;
    font-weight: 100;
    font-size: 23px;
}

#recent_posts_carrousel {
    display: flex;
    height: 100%;
    background-color:var(--primary-color);
}
#recent_posts_carrousel .recent-post-item--cat {
    position: absolute;
    right: -4px;
    top: 10px;
    padding: 3px 12px;
    font-size: 10px;
    font-weight: 100;
    font-family: 'Audiowide';
}
#recent_posts_carrousel .recent-post-item--tags {
    position: absolute;
    right: -4px;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#recent_posts_carrousel .recent-post-item--tags .recent-post-item--tag {
    padding: 3px 12px;
    font-size: 10px;
    font-weight: 100;
    font-family: 'Audiowide';
}

#recent_posts_carrousel .recent-post-item--title {
    font-size: 14px;
    font-weight: 100;
    color: #FFF;
    margin-top: 5px;
}

#recent_posts_carrousel .recent-post-item--excerpt {
    font-size: 12px;
    color: #FFF;
}

#recent_posts_carrousel .recent-post-item--date {
    padding: 3px 12px;
    font-size: 10px;
    font-weight: 100;
    background-color: var(--black-color);
    color: #FFF;
}


/* Partie du dernier article */
.last-post-section {
    width: 455px;
    flex-direction: column;
    min-width: 0;
    background-color: var(--primary-color);
    margin: 0px 20px;
    padding: 0px 20px;
}
@media screen and (max-width:1200px) {
    .last-post-section {
        width: 300px;
    }
}
.last-post-section h2 {
    text-align: center;
    color: #FFF;
    padding: 7px 0px;
    font-weight: 100;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset,
    rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset,
    rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset,
    rgba(0, 0, 0, 0.06) 0px 2px 1px,
    rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px,
    rgba(0, 0, 0, 0.09) 0px 16px 8px,
    rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.last-post-section .last-post-content-wrapper {
    display: flex;
    gap: 10px;
}
.last-post-section .last-post-content-wrapper a.last-post-item-image-wrapper{
    width: 210px;
}
.last-post-section .last-post-content-wrapper div.last-post-item-desc-wrapper{
    display: flex;
    flex-direction: column;
    flex: 1;
}
.recent-post-item--title {
    color: #FFF;
    font-weight: 100;
    margin: 0;
}
.recent-post-item--date {
    width: max-content;
    margin-top: 10px;
    color: #FFF;
    font-size: 12px;
    background-color: #3c6e71;
    padding: 7px 15px;
}


.last-post-section .last-post-content {
    position: relative;
}
.last-post-section .last-post-content a {
    text-align: center;
    width: 50%;
    display: flex;
    position: relative;
}
.last-post-section .last-post-content img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto;
    width: 100%;
}

.last-post-section .last-post-content span.last-post-item--cat {
    position: absolute;
    right: -4px;
    top: 10px;
    padding: 3px 12px;
    font-size: 16px;
    font-weight: 100;
    font-family: 'Audiowide';
}
.last-post-section .last-post-content span.last-post-item--tagss {
    position: absolute;
    right: -4px;
    top: 40px;
    padding: 3px 12px;
    font-size: 16px;
    font-weight: 100;
    font-family: 'Audiowide';
}
.last-post-section .last-post-content p.last-post-item--excerpt {
    color: #FFF;
}







/***********************************************/
/************* Splide des codes *************/
/***********************************************/
.codes-section {
    display: flex;
    align-items: stretch;
    margin-bottom: 50px;
}

.recent-codes {
    flex: 1;
    min-width: 0;
}

.recent-code-header {
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
    margin-top: 50px;
}

.recent-code-header h2 {
    width: max-content;
    margin: 0;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: #FFF;
    font-weight: 100;
    font-size: 23px;
}

#recent_codes_carrousel {
    display: flex;
    height: 100%;
    background-color:var(--secondary-color);
}
#recent_codes_carrousel .recent-code-item--cat {
    position: absolute;
    right: -4px;
    top: 10px;
    padding: 3px 12px;
    font-size: 10px;
    font-weight: 100;
    font-family: 'Audiowide';
}
#recent_codes_carrousel .recent-code-item--tags {
    position: absolute;
    right: -4px;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#recent_codes_carrousel .recent-code-item--tags .recent-code-item--tag {
    padding: 3px 12px;
    font-size: 10px;
    font-weight: 100;
    font-family: 'Audiowide';
}

#recent_codes_carrousel .recent-code-item--title {
    font-size: 14px;
    font-weight: 100;
    color: #FFF;
    margin-top: 5px;
}

#recent_codes_carrousel .recent-code-item--excerpt {
    font-size: 12px;
    color: #FFF;
}

#recent_codes_carrousel .recent-code-item--date {
    padding: 3px 12px;
    font-size: 10px;
    font-weight: 100;
    background-color: var(--black-color);
    color: #FFF;
}


/* Partie du dernier code */
.last-code-section {
    width: 455px;
    flex-direction: column;
    min-width: 0;
    background-color: var(--secondary-color);
    margin: 0px 20px;
    padding: 0px 20px;
}
@media screen and (max-width:1200px) {
    .last-code-section {
        width: 300px;
    }
}
.last-code-section h2 {
    text-align: center;
    color: #FFF;
    padding: 7px 0px;
    font-weight: 100;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset,
    rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset,
    rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset,
    rgba(0, 0, 0, 0.06) 0px 2px 1px,
    rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px,
    rgba(0, 0, 0, 0.09) 0px 16px 8px,
    rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.last-code-section .last-code-content-wrapper {
    display: flex;
    gap: 10px;
}
.last-code-section .last-code-content-wrapper a.last-code-item-image-wrapper{
    width: 210px;
}
.last-code-section .last-code-content-wrapper div.last-code-item-desc-wrapper{
    display: flex;
    flex-direction: column;
    flex: 1;
}
.recent-code-item--title {
    color: #FFF;
    font-weight: 100;
    margin: 0;
}
.recent-code-item--date {
    width: max-content;
    margin-top: 10px;
    color: #FFF;
    font-size: 12px;
    background-color: var(--primary-color);
    padding: 7px 15px;
}


.last-code-section .last-code-content {
    position: relative;
}
.last-code-section .last-code-content a {
    text-align: center;
    width: 50%;
    display: flex;
    position: relative;
}
.last-code-section .last-code-content img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto;
    width: 100%;
}

.last-code-section .last-code-content span.last-code-item--cat {
    position: absolute;
    right: -4px;
    top: 10px;
    padding: 3px 12px;
    font-size: 14px;
    font-weight: 100;
    font-family: 'Audiowide';
}
.last-code-section .last-code-content div.last-code-item--tags {
    position: absolute;
    right: -4px;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.last-code-section .last-code-content div.last-code-item--tags .last-code-item--tag {
    padding: 3px 12px;
    font-size: 14px;
    font-weight: 100;
    font-family: 'Audiowide';
}
.last-code-section .last-code-content p.last-code-item--excerpt {
    color: #FFF;
}
