@font-face {
    font-family: 'Ronzino';
    src: url('../fonts/Ronzino-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ronzino';
    src: url('../fonts/Ronzino-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ronzino';
    src: url('../fonts/Ronzino-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ronzino';
    src: url('../fonts/Ronzino-Oblique.woff2') format('woff2');
    font-weight: 400;
    font-style: oblique;
    font-display: swap;
}

@font-face {
    font-family: 'Ronzino';
    src: url('../fonts/Ronzino-MediumOblique.woff2') format('woff2');
    font-weight: 500;
    font-style: oblique;
    font-display: swap;
}

@font-face {
    font-family: 'Ronzino';
    src: url('../fonts/Ronzino-BoldOblique.woff2') format('woff2');
    font-weight: 700;
    font-style: oblique;
    font-display: swap;
}

:root {
    --text-color: #173C35;
    --background-color: #78F0C2;
    --background-color-opacity: #78f0c25c;
    --primary-color: #173C35;
    --primary-color-opacity: #173c35b0;
    --secondary-color: #f0f6ec;
    --highlight-color: #173C35;
    --error: #971c36;
    --error-light: #d1a3ac;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    color: var(--text-color);
    font-family: "Ronzino", sans-serif;
    background-color: var(--background-color);

    margin: 0;

    display: flex;
    flex-direction: row;
    gap: clamp(1.2rem, 4vw, 2.5rem);
    padding: clamp(1.2rem, 4vw, 2.5rem);
    min-height: 100%;
}

h1 {
    font-size: clamp(1.6rem, 2vw, 1.6rem);
    font-weight: 400;
}

h2 {
    font-size: clamp(1.6rem, 2vw, 1.6rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: bold;
    margin-top: 2rem;
}

a {
    color: inherit;
}

a:hover,
a:focus,
a:visited {
    color: inherit;
}

p,
li {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.5;
    margin: 0;
}

ul {
    margin-bottom: 1.5rem;
}

li {
    list-style: disc;
}

img {
    image-rendering: auto;
}


/* =========================
    ASIDE SIDE BAR MENU aside à gauche
========================= */


.sidebar {
    z-index: 2;
    background-color: var(--background-color);
    position: sticky;
    top: clamp(1.2rem, 4vw, 2.5rem);
    height: 100%;
}

.sidebar .menu .menu-elements {
    margin-top: 50%;
    gap: 2rem;
    display: flex;
    flex-direction: column;
}

/* LOGO et BASELINE*/

.logo {
    width: 100%;
    fill: var(--text-color);
}

.brand p {
    font-size: clamp(2.2rem, 3vw, 3rem);
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* NAVIGATION et liens */

.navigation {
    display: flex;
    flex-direction: column;
}

.navigation a {
    padding: 1.2rem 0px 1.2rem 0px;
    background-color: var(--background-color);
    font-size: clamp(1.6rem, 2vw, 1.6rem);
    line-height: 1.2;
    text-decoration: none;
    border-radius: 15px 15px 15px 0px;
}

.navigation a:hover {
    background-color: var(--secondary-color);
    color: inherit;
    font-size: clamp(1.6rem, 2vw, 1.6rem);
    line-height: 1.2;
    text-decoration: none;
    border-radius: 15px 15px 15px 0px;
    padding-left: 1.2rem;
    transition: background-color 0.8s ease, padding-left 0.4s ease, color 0.4s ease;
}

/* Footer */

.fake-footer p {
    font-size: clamp(0.9rem, 1vw, 1rem);
}

.fake-footer a:hover {
    padding-left: 10px;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

/* =========================
    ASIDE MAIN-CONTENT aside à droite
========================= */

.content {
    min-height: 100%;
    width: 100%;
    overflow-y: scroll;
    scrollbar-width: none;
}

/* BULLE */

.main-content {
    min-height: 100%;
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: 0 35px 35px 35px;
    background-color: var(--secondary-color);
}

.accordion-item {
    border-bottom: 5px solid var(--highlight-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 1rem;
    color: var(--text-color);
    cursor: pointer;
}

.accordion-item summary h2 {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 500;
}

.accordion-item summary h2:hover {
    padding-left: 10px;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

details[open] summary~* {
    animation: sweep .5s ease-in-out;
}

@keyframes sweep {
    0% {
        opacity: 0;
        margin-left: -10px
    }

    100% {
        opacity: 1;
        margin-left: 0px
    }
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    content: "";
}

.accordion-item summary:focus-visible {
    outline: 3px solid var(--background-color);
}

.plus {
    position: relative;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    transition: transform 0.25s ease;
}

.menu .plus {
    display: none;
}

.plus::before,
.plus::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 1px;
    width: 21px;
    height: 3px;
    background: var(--highlight-color);
}

.plus::after {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.accordion-item[open] .plus {
    transform: rotate(180deg);
}

.accordion-item[open] .plus::after {
    transform: rotate(0);
}

.answer {
    padding-bottom: 2rem;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 1200px;
}

.answer p {
    width: 100%;
}

.answer img {
    width: 100%;
    border-radius: 15px 0px 15px 15px;
}

.answer img:hover {
    transform: rotate(0deg);
    transition: transform 0.4s ease;
}

.discuter img {
    width: 150%;
}

.mains-donnees img {
    width: 75%;
    border-radius: 0px 15px 15px 15px;
}

.interface img {
    width: 50%;
}

.rassure img {
    width: 100%;
    border-radius: 0px 15px 15px 15px;
}

/* 
.left img {
    transform: rotate(-2deg);
    border-radius: 15px 0px 15px 15px;
}

.right img {
    transform: rotate(2deg);
    border-radius: 0px 15px 15px 15px;
} */

/* ========================================
   BLOG
   ======================================== */

.pager {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    text-transform: capitalize;
    color: var(--text-color);
}

.pager {
    padding: 0;
}

.pager,
.page,
.currentpage {
    list-style: none;
}

.currentpage {
    font-weight: bold;
}

.pager a {
    text-decoration: none;
    color: inherit;
    border-radius: 100px;
    padding: 1rem 2rem 1rem 2rem;
}

.pager a:hover {
    background-color: var(--primary-color);
    transition: ease-in 0.2s;
    cursor: pointer;
}

.posts {
    width: 100%;
}

.posts-list {
    margin: 0;
    padding: 0;
}

.posts-list li {
    list-style: none;
}

.post {
    padding: 1.2rem 1.2rem 1.2rem 0;
    text-decoration: none;
    border-radius: 15px 15px 15px 0px;
    display: flex;
    flex-direction: column;
}

.post:hover {
    background-color: var(--background-color-opacity);
    color: inherit;
    border-radius: 15px 15px 15px 0px;
    padding-left: 1.2rem;
    transition: background-color 0.8s ease, padding-left 0.4s ease, color 0.4s ease;
}

.post-title {
    text-decoration: none;
}

.post-tags {
    font-size: 0.85rem;
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
}

.post-tags a:not(:last-child) {
    margin-right: 0.5rem;
}


figure {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 1rem 0 1rem 0;
}

figure img {
    max-width: 70%;
    border-radius: 15px 0px 15px 15px;
}

figure figcaption {
    max-width: 250px;
    height: auto;
    font-style: oblique;
}


.post-date {
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--primary-color);
}

/* PAGE D'UN ARTICLE */

.post-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.post-header-tags {
    font-size: 0.9rem;
    font-weight: 600;
}

.post-header-tags a {
    display: inline-block;
    text-decoration: none;
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.post-header-tags a:not(:last-child) {
    margin-right: 0.5rem;
}

.post-header-title a {
    text-decoration: none;
}

.post-title a {
    text-decoration: none;
}

.post-header-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

.post-body-readtime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.75;
}

.post-body-readtime .clock {
    width: 1.5rem;
    height: auto;
}

.post-body-body p {
    margin-bottom: 1.2rem;
}

/* =========================
   formulaire de contact + essai gratuit
========================= */

.signup .main-content,
.contact .main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 4vh, 4rem);
    align-items: top;
}

.signup-image,
.contact-image {
    max-width: 400px;
    max-height: 600px;
}

.signup-image img,
.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px 15px 15px 15px;
}

ul.itemsform {
    padding: 0;
}

form fieldset {
    border: none;
}

form ul li {
    list-style-type: none;
    padding: 0.5rem 0;
}

form ul li.itemsform-title {
    font-size: 1.7rem;
    font-weight: normal;
    color: var(--primary-color);
}

form ul li label {
    font-size: 1rem;
    font-weight: normal;
    color: var(--primary-color);
    text-transform: uppercase;
    padding-bottom: 0.2rem;
    display: block;
}

form ul li.required label:after {
    content: " *";
    color: var(--primary-color);
}

form ul li input {
    width: 100%;
    font-size: 1rem;
    background-color: var(--background-color-opacity);
    border: none;
    border-radius: 3px;
    padding: 5px;
    color: var(--primary-color);
}

form ul li input:focus {
    outline: none !important;
    box-shadow: 0 0 3px var(--background-color)
}

form ul li input[type=submit] {
    padding: 1.2rem 1.2rem 1.2rem 0;
    background-color: var(--secondary-color);
    font-size: clamp(1.35rem, 1.6vw, 1.35rem);
    line-height: 1.2;
    text-decoration: none;
    border-radius: 15px 15px 15px 0px;
    width: auto;
    cursor: pointer;
}

form ul li input[type=submit]:hover {
    background-color: var(--background-color);
    transition: ease-in 0.2s;
    color: var(--text-color);
    padding-left: 1.2rem;
    transition: background-color 0.8s ease, padding-left 0.4s ease, color 0.4s ease;
}

form ul li textarea {
    resize: vertical;
    width: 100%;
    font-size: 1rem;
    font-family: "Ronzino", sans-serif;
    background-color: var(--secondary-color);
    border: 1px solid var(--background-color);
    border-radius: 3px;
    padding: 5px;
    color: var(--primary-color);
}

form ul li textarea:focus {
    outline: none !important;
    box-shadow: 0 0 3px var(--background-color);
}

form ul li select {
    border-radius: 3px;
    border: 1px solid var(--background-color);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1rem;
    text-align: center;
    align-content: center;
    width: 100%;
    height: 2.5rem;
}

form ul li select:focus {
    outline: none !important;
    box-shadow: 0 0 3px var(--background-color);
}

form ul.errors {
    color: var(--error);
    border: 1px solid var(--error-light);
    border-radius: 3px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: url(../svg/message-question.svg) no-repeat 0.5rem center/1.5rem;
}

form ul.errors li {
    padding: 0rem 0rem 0rem 1.8rem;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

.cvg-text {
    display: flex;
    flex-direction: row;
}

.cvg-text .hidden_field {
    margin-left: 5px;
    ;
}

/* captcha */

.boscavo-box {
    background-color: var(--background-color-opacity) !important;
    border: 1px solid var(--primary-color) !important;
}

.boscavo-box-checkbox {
    border: 2px solid var(--primary-color-opacity) !important;
    cursor: pointer;
}

.boscavo-box-checkbox-error {
    border-color: var(--error) !important;
}

.boscavo-box-checkmark {
    color: var(--text-color) !important;
    font-size: 30px !important;
}

.boscavo-box-label {
    padding: 0px !important;
    color: var(--text-color) !important;
}

.boscavo-box-arrow-1,
.boscavo-box-arrow-2 {
    display: none !important;
}

.boscavo-box-challenge {
    background-color: var(--secondary-color) !important;
    left: -6px !important;
    top: -450px !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 3px 3px 3px #ccc !important;
    height: 550px !important;
}

.boscavo-request {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    padding: 17px !important;
}

.boscavo-proposal.selected {
    border: 12px solid var(--secondary-color) !important;
}

.boscavo-footer {
    border-top: 1px solid var(--text-color) !important;
}

.boscavo-error {
    color: var(--error) !important;
}

.boscavo-button {
    background: var(--background-color) !important;
    color: var(--text-color) !important;
}

/* =========================
  Mentions légales
========================= */

.terms p {
    margin-bottom: 1.2rem;
}

dl {
    background-color: var(--background-color-opacity);
    border-radius: 15px 15px 0 15px;
    padding: clamp(1rem, 2vw, 2rem);
    margin-bottom: 2rem;
}

dt:not(:first-child) {
    margin-top: 1.5rem;
}

dt {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

dd {
    margin: 0;
}



/* =========================
   MOBILE MEDIAS QUERIES
========================= */

@media (max-width: 760px) {


    body {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1.2rem;
        height: auto;
    }

    .accordion img {
        max-width: 100%;
        border-radius: 15px 15px 0 15px;
    }

    .sidebar {
        width: 100%;
        top: auto;
        height: auto;
        min-height: 0;
        gap: 1.4rem;
        position: sticky;
    }

    .sidebar .menu .menu-elements {
        margin: 0;
    }

    .content {
        width: 100%;
    }

    .accordion {
        border-radius: 0 15px 15px 15px;
    }

    .accordion-item {
        border-bottom-width: 5px;
    }

    .menu .logo-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .brand p {
        margin-bottom: 1rem;
    }

    .menu .plus {
        display: block;
    }

    .menu[open] .plus {
        transform: rotate(180deg);
    }

    .menu[open] .plus::after {
        transform: rotate(0);
    }


    .post-body {
        margin: 0;
    }

    .post-header {
        flex-direction: column;
        align-items: unset;
    }



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

        *,
        *::before,
        *::after {
            scroll-behavior: auto !important;
            transition-duration: 0.01ms !important;
        }
    }
}

@media (max-width: 1000px) {
    figure {
        display: flex;
        flex-direction: column;
    }

    figure img {
        max-width: 100%;
    }

    figure figcaption {
        max-width: 100%;
    }

    .answer {
        display: flex;
        flex-direction: column;
    }

    .signup .main-content,
    .contact .main-content {
        grid-template-columns: 1fr;
    }

    .signup-image,
    .contact-image {
        display: none;
    }

}