/*
Theme Name: Kaelmnop - Blog Theme 
Theme URI: https://kaelmnop.com
Author: Kaelmnop
Author URI: https://kaelmnop.com
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: kaelmnop-blog 
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Antic+Didone&family=Noto+Sans:wdth,wght@62.5..100,100..900&display=swap');


/* ----- GLOBAL ----- */
:root {
    --site-bg-color: #fffcf7;
    --site-green: #86a17e;
    --site-softpink: #fef6f2;
    --site-darkpink: #a76442;
    --site-darkblue: #013D5A;
    --site-darkred: #cd3c2a;

    --tl-max-width: 80%;

    --tl-padding-top: 10rem;
    --tl-padding-bot: 5rem;
    --tl-sides-color: var(--site-bg-color);
    --tl-line-color: var(--site-green);
    --tl-dot-color: var(--site-green);
    --tl-dot-color-hover: var(--site-green);
    --tl-date-color: var(--site-darkpink);
    --tl-text-color: #111;
    --tl-popup-bg: var(--site-softpink);
    --tl-popup-border: var(--site-darkpink);
    --tl-button: var(--site-green);
}



body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans", sans-serif;
    background-color: var(--site-bg-color);
    color: #21211F;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 20px;
}

.page_content {
    width: 65rem;
    padding-top: 5rem;
}

/* ----- CACHER LE TITRE PRINCIPAL ----- */
.entry-title {
    display: none;
}


/*----- HEADER -----*/ 
.site-header {
    width: 100%;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- LOGO ----- */
.site-logo img {
    max-height: 50px;
}

/*-- -------------------------- -->
<---     Mobile Navigation      -->
<--- -------------------------- -*/
/* Mobile - 1023px */
@media only screen and (max-width: 63.9375rem) {
    body.open {
        overflow: hidden;
    }

    body.scroll #navigation {
        width: 100%;
        max-width: 100%;
        top: 0;
        background-color: transparent;
    }

    body.scroll #navigation:before {
        border-radius: 0;
    }

    body.scroll #navigation .ul-wrapper {
        top: 0.8rem;
    }

    #navigation {
        width: 94%;
        max-width: 80rem;
        /* prevents padding from affecting height and width */
        box-sizing: border-box;
        /* 12px - 24px */
        padding: clamp(0.75rem, 2vw, 1.5rem);
        /* 12px - 24px */
        border-radius: clamp(0.75rem, 2vw, 1.5rem);
        position: fixed;
        top: 0rem;
        left: 50%;
        z-index: 10000;
        transform: translateX(-50%);
        transition: top 0.3s, border-radius 0.3s, width 0.3s, max-width 0.3s;
    }

    #navigation .nav-logo {
        display: none;
    }

    #navigation:before {
        /* background color */
        content: "";
        width: 100%;
        height: 100%;
        background-color: transparent;
        /* box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; */
        opacity: 1;
        /* 12px - 24px */
        border-radius: clamp(0.75rem, 2vw, 1.5rem);
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        transition: transform 0.2s, border-radius 0.3s ease-in-out;
    }

    #navigation.active:before {
        transform: translateX(-50%) scale(1.03);
    }

    #navigation.active .toggle {
        transform: rotate(180deg);
    }

    #navigation.active .ul-wrapper {
        transform: scaleY(1);
        transition-delay: 0.15s;
    }

    #navigation.active .li {
        opacity: 1;
        transform: translateY(0);
    }

    #navigation .container {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.5rem;
    }

    #navigation .logo {
        width: auto;
        max-width: 12.5rem;
        height: 100%;
        margin: 0 auto 0 0;
        /* prevents padding from affecting height and width */
        box-sizing: border-box;
        padding: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        z-index: 10;
    }

    #navigation .logo img {
        width: 100%;
        height: 100%;
        /* ensures the image never overflows the container. It stays contained within it's width and height and expands to fill it then stops once it reaches an edge */
        object-fit: contain;
    }

    #navigation .toggle {
        width: 3.5rem;
        height: 3.5rem;
        margin: 0 0 0 auto;
        background-color: var(--site-darkblue);
        border: none;
        border-radius: 0.25rem;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 10;
        transition: transform 0.6s;
    }

    #navigation .nav {
        /* sends it to the right in the 3rd position */
        order: 3;
    }

    #navigation .contact-group {
        display: none;
        position: relative;
        z-index: 10;
    }


    #navigation .social {
        display: none;
    }

    #navigation .active .line1 {
        top: 50%;
        transform: translate(-50%, -50%) rotate(225deg);
    }

    #navigation .active .line2 {
        top: 50%;
        transform: translate(-50%, -50%) translateY(0) rotate(-225deg);
        transform-origin: center;
    }

    #navigation .active .line3 {
        opacity: 0;
        bottom: 100%;
    }

    #navigation .box {
        /* 24px - 28px */
        width: clamp(1.5rem, 2vw, 1.75rem);
        height: 1rem;
        position: relative;
    }

    #navigation .line {
        width: 100%;
        height: 2px;
        background-color: #fafbfc;
        border-radius: 2px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    #navigation .line1 {
        top: 0;
        transition: transform 0.5s, top 0.3s, left 0.3s;
        animation-duration: 0.7s;
        animation-timing-function: ease;
        animation-direction: normal;
        animation-fill-mode: forwards;
        transform-origin: center;
    }

    #navigation .line2 {
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        transition: top 0.3s, left 0.3s, transform 0.5s;
        animation-duration: 0.7s;
        animation-timing-function: ease;
        animation-direction: normal;
        animation-fill-mode: forwards;
    }

    #navigation .line3 {
        bottom: 0;
        transition: bottom 0.3s, opacity 0.3s;
    }

    #navigation .ul-wrapper {
        width: 55%;
        height: auto;
        background-color: #fff;
        border-radius: 0.25rem;
        position: absolute;
        top: clamp(0.75rem, 2vw, 1.5rem);
        right: 0;
        z-index: -1;
        overflow: hidden;
        transform: scaleY(0);
        transition: transform 0.4s;
        transform-origin: top;
    }

    #navigation .ul {
        width: 100%;
        height: auto;
        max-height: 80vh;
        margin: 0;
        padding: 4rem 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.25rem;
        overflow: scroll;
    }

    #navigation .li {
        text-align: center;
        width: 100%;
        margin-right: 0;
        opacity: 0;
        /* transition from these values */
        transform: translateY(-70/16rem);
        transition: transform 0.6s, opacity 0.9s;
    }

    #navigation .menu-item {
        list-style: none;
    }

    #navigation .li:nth-of-type(1) {
        transition-delay: 0.05s;
    }

    #navigation .li:nth-of-type(2) {
        transition-delay: 0.1s;
    }

    #navigation .li:nth-of-type(3) {
        transition-delay: 0.15s;
    }

    #navigation .li:nth-of-type(4) {
        transition-delay: 0.2s;
    }

    #navigation .li:nth-of-type(5) {
        transition-delay: 0.25s;
    }

    #navigation .li:nth-of-type(6) {
        transition-delay: 0.3s;
    }

    #navigation .li:nth-of-type(7) {
        transition-delay: 0.35s;
    }

    #navigation .li:nth-of-type(8) {
        transition-delay: 0.4s;
    }

    #navigation .li:nth-of-type(9) {
        transition-delay: 0.45s;
    }

    #navigation .li:nth-of-type(10) {
        transition-delay: 0.5s;
    }

    #navigation .li:nth-of-type(11) {
        transition-delay: 0.55s;
    }

    #navigation .li:nth-of-type(12) {
        transition-delay: 0.6s;
    }

    #navigation .li:nth-of-type(13) {
        transition-delay: 0.65s;
    }

    #navigation .li-link {
        /* 16px - 24px */
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        line-height: 1.2em;
        text-decoration: none;
        margin: 0;
        color: var(--headerColor);
        display: inline-block;
        position: relative;
    }

    #navigation .li-link.active {
        color: var(--primary);
    }

    #navigation .li-link:hover {
        color: var(--primary);
    }

    #navigation .button-solid {
        display: none;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #navigation .contact-group {
        display: block;
    }
}

/*-- -------------------------- -->
<---     Desktop Navigation     -->
<--- -------------------------- -*/
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    body.scroll #navigation {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        top: 0;
        background-color: var(--site-bg-color);
    }

    #navigation .logo_header {
        display: flex;
        flex-direction: row;
    }

    #navigation .logo_header_svg {
        height: auto;
        width: 51.7px;
        padding: 0;
        margin: 0;
    }

    #navigation .nav-logo a {
        text-decoration: none;
        color: #394149;
        font-family: "Antic Didone", serif;
        text-transform: uppercase;
        line-height: 0;
    }

    #navigation .logo_header_text p:nth-child(2) {
        font-weight: 900;
    }

    #navigation .logo_header_svg path {
        fill: #394149;
    }

    #navigation {
        width: 94%;
        max-width: 90rem;
        height: 6rem;
        /* prevents padding from affecting height and width */
        box-sizing: border-box;
        /* 12px - 24px */
        padding: clamp(0.75rem, 2vw, 1.5rem) 0;
        background-color: transparent;
        /* box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; */
        /* 12px - 24px */
        border-radius: clamp(0.75rem, 2vw, 1.5rem);
        display: flex;
        align-items: center;
        position: fixed;
        top: -1rem;
        left: 50%;
        z-index: 10000;
        transform: translateX(-50%);
        transition: top 0.3s, border-radius 0.3s, width 0.3s, max-width 0.3s;
    }

    #navigation .container {
        width: 100%;
        max-width: 90rem;
        margin: auto;
        /* prevents padding from affecting height and width */
        box-sizing: border-box;
        padding: 0 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }

    #navigation .toggle {
        display: none;
    }

    #navigation .logo {
        width: 18.4%;
        max-width: 21.875rem;
        height: 2rem;
        /* margin-right auto pushes everything away from it to the right */
        margin: 0 auto 0 0;
        padding: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        z-index: 100;
    }

    #navigation .logo img {
        width: auto;
        height: 100%;
        /* ensures the image never overflows the container. It stays contained within it's width and height and expands to fill it then stops once it reaches an edge */
        object-fit: contain;
    }

    #navigation .contact-group {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }

    #navigation .social {
        height: 2rem;
        opacity: 1;
        display: none;
        visibility: visible;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        transition: opacity 0.3s, visibility 0.3s, height 0.3s;
    }

    #navigation .social-link {
        text-decoration: none;
        width: 2rem;
        height: 2rem;
        background-color: var(--bgColor);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s;
    }

    #navigation .social-link:hover {
        background-color: hsl(var(--deco-blue-hsl), .85);
    }

    #navigation .social-link:hover .social-icon {
        opacity: 1;
        filter: grayscale(1) brightness(10000%);
    }

    #navigation .social-icon {
        width: 0.75rem;
        height: auto;
        opacity: 0.6;
        display: block;
        transition: opacity 0.3s;
    }

    #navigation .ul-wrapper {
        height: 100%;
        display: flex;
        align-items: center;
        /* absolutely positioned to be dead center */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #navigation .ul {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        /* 20px - 36px */
        gap: clamp(1.25rem, 2.6vw, 2.25rem);
    }

    #navigation li {
        list-style: none;
        height: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        /* prevent flexbox from squishing it */
        flex: none;
    }

    #navigation .nav .li-link {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        font-family: "Noto Sans", sans-serif;
        font-optical-sizing: auto;
        font-weight: 600;
        font-style: normal;
        line-height: 1.5em;
        text-decoration: none;
        margin: 0;
        padding: 10px;
        color: var(--site-darkred);
        display: block;
        position: relative;
        transition: color 0.3s;
    }

    #navigation .nav .li-link::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 5px;
        background: var(--site-darkred);
        border-radius: 1rem;
        transition: all 0.2s ease-in-out;
    }

    #navigation .nav .li-link:hover::after {
        width: 100%;
    }

    #navigation .button-solid {
        font-size: 1rem;
        font-weight: 700;
        /* 46px - 56px */
        line-height: clamp(2.875em, 5.5vw, 3.5em);
        text-align: center;
        text-decoration: none;
        min-width: 9.375rem;
        margin: 0;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
        padding: 0 2rem;
        color: #fff;
        background-color: var(--primary);
        display: inline-block;
        position: relative;
        z-index: 1;
        transition: color 0.3s;
    }

    #navigation .button-solid:before {
        content: "";
        width: 0%;
        height: 100%;
        background: #fff;
        opacity: 1;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        transition: width 0.3s;
    }

    #navigation .button-solid:hover {
        color: #1a1a1a;
    }

    #navigation .button-solid:hover:before {
        width: 100%;
    }

    /* ----- BLUESKY ICON ----- */
    #navigation .contact-group .social .bluesky-icon {
        display: flex;
        align-items: center;
    }

    #navigation .contact-group .social .bluesky-icon img {
        width: 1.5rem;
        height: 1.5rem;
        transition: all 0.3s ease;
        filter: grayscale(1);
    }

    #navigation .contact-group .social .bluesky-icon img:hover {
        opacity: 0.7;
        filter: grayscale(0);
    }
}

/* Large Desktop - 1300px */
@media only screen and (min-width: 81.25rem) {
    #navigation .social {
        display: flex;
    }
}

/* ----- WRAPPER POUR LE CONTENU ----- */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Hauteur minimale de l'écran */
}

.site-main {
    flex-grow: 1;
    /* Le contenu reste en haut et pousse le footer vers le bas */
    padding: 20px 0;
}

/* ----- HERO ------ */
.hero-wrapper {
    margin-bottom: 5.5rem;
    position: relative;
    padding: 4rem 0;
}

.hero-section {
    position: relative;
    text-align: center;
    border-radius: 0.250rem;
}

.hero-title {
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #555;
    max-width: 65rem;
    margin: 0 auto;
    text-wrap: balance;
}

.presentation-card {
    position: absolute;
    bottom: -4.5rem;
    left: 8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0.125rem;
    z-index: 10;
    max-width: 30rem;
    padding: 1.5rem;
    background-color: #fff;
}

.presentation-card p{
    text-wrap: balance;
    text-align: center;
}

/* ----- FOOTER ----- */
.site-footer {
    position: relative;
    background: var(--site-darkblue);
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    width: 100%;
    margin-top: auto;
    padding-top: 5rem;
}

.footer-content a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}


.custom-shape-divider-top-1743677902 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-top-1743677902 svg {
    position: relative;
    display: block;
    width: calc(162% + 1.3px);
    height: 60px;
}

.custom-shape-divider-top-1743677902 .shape-fill {
    fill: #FFFCF7;
}


/* Mobile correction */ 
@media only screen and (max-width: 63.9375rem) {
    .wp-block-kl-blocks-timeline {
        display: none;
    }

    .hero-wrapper {
        padding-top: 0;
        margin-bottom: 1rem;
    }

    .hero-section{
        padding-bottom: 0.5rem !important;
        padding-top: 5rem !important;
    }

    .presentation-card{
        position: relative;
        margin: 1rem;
        padding: 0.5rem;
        bottom: unset;
        left: unset;
    }

    .blog-container{
        margin-inline: 0.5rem;
    }

    #category-filter{
        row-gap: 1.25rem;
        column-gap: .725rem;
        align-content: center;
        justify-content: center;
    }

    .page_content {
        width: unset;
        max-width: 100%;
        margin-inline: 0.5rem;
        padding-top:5rem;
    }

}