/*
Theme Name: OrtoBotanico
Text Domain: ortobotanico
Template: blankslate
*/

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

html:focus-within {
    /*scroll-behavior: smooth; */
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img,
picture,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
}

input,
button,
textarea,
select {
    font: inherit;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition: none;
    }
}

body,
html {
    height: 100%;
    /*scroll-behavior: smooth;*/
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* INIT */

:root {
    --primary: black;
    /*--bg: #f7f5f1;*/
    --bg: #f0f0f0;
    --secondary: black;
    --third: #e2047f;
    --mw: 1200px;
    --ratio: 1.61;
    --ease: cubic-bezier(0.770, 0.000, 0.175, 1);
}

html {
    font-size: clamp(20px, 1.5vw, 24px);
}

body {
    color: var(--primary);
    font-family: Helvetica Neue, Arial, sans-serif;
    overflow-x: hidden;
    background: var(--bg);
    font-size: .7rem;
    
}

::selection {
    background-color: var(--third);
    color: var(--bg);
}

/* TYPE */

p {
    font-size: .7rem;
    line-height: var(--ratio);
    margin-bottom: calc(var(--ratio) * 1rem);
    font-weight: 400;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--secondary);
}

h1 {
    /* font-size: calc(2 * var(--ratio) * 1rem); */
    font-size: clamp(2.2rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: calc(var(--ratio) * 1rem);
    font-weight: 500;
    text-transform: uppercase;
}

.subtitle {
    color: var(--secondary);
    font-size: 1.25rem;
}

.text__col {
    columns: 2;
    padding-left: 12.5%;
    margin-top: 2.7rem;
}

@media screen and (max-width: 991px) {

    .text__col {
        columns: 1;
        padding-left: 0;
    }
}

/* GLOBAL LAYOUT */

section {
    padding: calc(var(--ratio) * 1rem);
    height: 85vh;
    background: var(--bg);
    transition: background .5s ease;
}

.night section {
    background: black;
    color: white;
}

.ctn {
    max-width: var(--mw);
    margin: 0 auto;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.mb {
    margin-bottom: 4rem;
}

@media screen and (max-width: 991px) {

    .ctn {
        padding: 0 1rem;
    }

    .hero .ctn {}

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .mb {
        margin-bottom: 4rem;
    }
}

/* COMPONENTS */

button,
.btn,
.wp-block-button__link,
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    background: var(--secondary);
    border-radius: 40px 0px;
    font-size: .8rem;
    text-transform: uppercase;
    padding: 1rem 2rem;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    color: var(--primary);
    z-index: 9;
}

button:hover,
.btn:hover,
.wp-block-button__link:hover,
input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
    background: var(--primary);
    color: var(--secondary);
}

.leaf img {
    border-radius: 2rem 0;
}

.sm {
    padding: 0 4vw;
}

/* HEADER */

header {
    background: transparent;
    color: var(--primary);
    padding: calc(var(--ratio) * 1rem);
    position: fixed;
    width: 100%;
    z-index: 9;
    top: 0;
    mix-blend-mode: difference;
    transition: transform 1.25s var(--ease);;
}



.no-blend {
    mix-blend-mode: normal;
}

header .ctn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9;
    position: relative;
    max-width: none;
    padding: 0 2rem;
}

.hero {
    min-height: 20rem;
    width: 100vw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--third);
    z-index: -1;
}

a.hero__more {
    position: absolute;
    bottom: 2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg);
    font-weight: 500;
    font-size: .8rem;
    opacity: 0;
    animation: fadeIn .65s ease 6.5s forwards;
}

/* Conteneur général */
.anim {
    padding: 0;
    min-height: 20rem;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0 0 0 0);
    position: relative;
}

/* La div carrée */
.square {
    width: 10rem;
    height: 10rem;
    background: red;
    z-index: 10;
}

.animation {
    animation-timeline: view(block 0% 0%);
    animation-name: grow;
    animation-fill-mode: both; 
    animation-duration: 1ms; 
    animation-timing-function: linear; 
}

@keyframes grow {
    from {
        top: -50%; 
    }

    to {
        top: 0; 
    }
}

.hero__loader {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 9;
    background: white;
    left: 0;
    top: 0;
    transform: translateY(0);
    transition: height 1s cubic-bezier(0.950, 0.050, 0.795, 0.035);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}



.hero svg {
    fill: var(--bg);
    z-index: 9;
    opacity: 0;
    transform: translateY(-4vh);
    transition: all 1s ease 1s;
}

.hero.active svg {
    fill: var(--bg);
    z-index: 9;
    opacity: 1;
    transform: translateY(0);
    width: 100%;


}


/* Après 4 secondes, ajouter la classe 'active' pour déclencher la transition */
.active .hero__loader {

    height: 0%;
}


.hero__image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 100%;
    z-index: -1;
    position: relative;
    max-width: none;
    width: 100%;
    filter: grayscale(1);
    mix-blend-mode: overlay;
    opacity: 0.5;
}

.hero__image {
    position: absolute;
    right: 0;
    top: 0;
    aspect-ratio: 1 / 1;
    width: clamp(30rem, 50vw, 40rem);
    z-index: -2;
    height: 100%;
}

.hero .ctn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
}

.hero h1 {
    line-height: 1;
    font-size: clamp(2.2rem, 9vw, 7rem);
}

.hero p {
    font-size: clamp(1rem, 2.8vw, 1.65rem);
    font-weight: 400;
    margin: 1rem 0 0 0;
}

svg.hero__arrow {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 1rem;
}

header a {
    color: var(--primary);
}

header img {
    width: 6rem;
}

header img:hover {
    opacity: 0.8;
}

header.wide {
    background: none;
    border-bottom: 1px solid #253d914a;
}

header.wide ul li a {
    color: var(--primary)
}

header.wide ul li a:hover {
    color: var(--secondary)
}

.breadcrumb {
    /* text-transform: uppercase; */
    /* font-weight: 300; */
    font-size: 0.9rem;
    display: flex;
    gap: .4rem;
    color: var(--secondary);

}

.breadcrumb span,
.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a {
    text-underline-offset: 6px;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 1px;
}

@media screen and (max-width:991px) {
    header {
        mix-blend-mode: normal!important;
    }
    
}

/* TOPBAR */

.topbar {
    background: var(--darker);
    color: white;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    font-size: .65rem;
    font-weight: 600;
}

.topbar .ctn {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

.topbar__block {
    display: flex;
    align-items: center;
}

.topbar__block svg {
    width: 1.2rem;
    margin-right: 0.3rem;
}

.cta-list {
    display: flex;
    align-items: center;
}

.cta-list a {
    color: white;
    text-decoration: none;
    min-height: 2rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.cta-list a:nth-child(1) {
    background-color: var(--secondary);
}

.cta-list a:nth-child(2) {
    background-color: var(--red);
}

.cta-list a:nth-child(3) {
    background-color: var(--yellow);
}

.cta-list a:nth-child(4) {
    background-color: var(--lightblue);
}

/* NAV */

nav {
    width: 100%;
    background: transparent;
    z-index: 10;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

nav ul a {
    text-decoration: none;
    color:var(--bg);
    opacity: 0;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 500;
    display: block;
    transform: translateY(-100%);
}

nav ul li:nth-child(1) a {
    animation: menuAppear .65s ease forwards 5.5s;
}

nav ul li:nth-child(2) a {
    animation: menuAppear .65s ease forwards 5.75s;
}

nav ul li:nth-child(3) a {
    animation: menuAppear .65s ease forwards 6s;
}

@keyframes menuAppear {
    from {
        opacity: 0; 
        transform: translateY(-100%);
    }
    to {
        opacity: 1; 
        transform: translateY(0);
    }
}

nav ul a:hover {
    color: var(--bg);
}

.menu-item-11 {
    padding-left: 1rem;
}

.menu__button {
    height: 2rem;
    display: none;
}

.menu__icon svg {
    width: 2rem;
}

.menu__icon .line {
    stroke: var(--bg);
}

.menu__icon .cross {
    display: none;
}

.open .menu__icon .line {
    display: none;
}

.open .menu__icon .cross {
    display: block;
}

.open path.cross {
    stroke: var(--primary);
}

.nav__right {
    display: none;
}

a.header__cta.btn {
    background: var(--primary);
    border-radius: 40px 0px;
    font-size: .8rem;
    text-transform: uppercase;
    padding: 1rem 2rem;
    color: var(--secondary);
}

a.header__cta.btn:hover {
    color: var(--secondary);
    transition: all .25s ease;

}


@media screen and (max-width: 991px) {

    .header__cta {
        display: none;
    }

    #menu {
        display: none;
    }

    .menu__button {
        height: 1.5rem;
        display: block;
        cursor: pointer;
        z-index: 3;
        position: relative;
    }

    .menu-item-11 {
        padding-left: 0;
    }


    .nav__right {
        height: 100vh;
        position: absolute;
        z-index: 1;
        background: var(--bg);
        top: 0;
        width: 100%;
        align-content: center;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        left: 0;
    }


    .nav__right.open {
        display: flex;
        z-index: 2;



    }

    .nav__right ul {
        list-style-type: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav__right a {
        text-decoration: none;
        text-transform: uppercase;
        font-size: clamp(1.2rem, 5vw, 1.8rem);

    }

    header.wide .nav__right a {
        color: white
    }



    .topbar {
        display: none;
    }

}

/* FOOTER */

footer {
    padding: calc(var(--ratio) * 1rem);
    background-color: black;
    color: white;
}

footer ul {
    display: flex;
    list-style-type: none;
    justify-content: space-between;
    font-size: .75rem;
    flex-wrap: wrap;
    text-align: left;
    gap: .5rem;
    text-transform: uppercase;
    align-items: flex-end;
}

footer ul a {
    text-decoration: none;
    color: white;
}


footer ul a:hover {
    
    color: white;
}



@media screen and (max-width: 991px) {

    footer {
        padding: calc(var(--ratio) * 2rem) calc(var(--ratio) * 1rem);
        background-color: black;
        height: 40dvh;
    }

    footer ul {
        justify-content: center;
        text-align: center;
    }
}




.grid__img {
    display: none;
}

@media screen and (max-width: 991px) {

    .comite ul {
        columns: 1 !important;
        margin-top: 4rem !important;
    }
}


/* HOMEPAGE */


/*
.home .hero {
    all: unset;
    padding: 0;
    height: calc(100vh - 12rem);
    display: block;
    color: white;
}

.home .hero p {
    font-size: 2.2rem;
    margin: 0;
    line-height: 1;
    margin-bottom: 1.2rem
}

.home .hero h2 {
    line-height: 1.1;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: .5rem;
}

.slider {
    position: relative;
}

.slider svg {
    position: absolute;
    bottom: -2px;
    stroke: none;
}

.slider__item {
    width: 100%;
    height: calc(100vh - 12rem);
    object-fit: cover;
    position: relative;
    display: flex;
}

.slider__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    pointer-events: none;
}

.slider__infos {
    z-index: 1;
    position: relative;
    margin-top: -5rem;
}

.slider form {
    position: absolute;
    width: 100%;
    z-index: 9;
    bottom: 1.5rem;
    border-radius: 2rem;
    display: flex;
    border: none;
}

.slider input {
    border-radius: 2rem;
    border: none;
    width: 50%;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-weight: 200;
    box-shadow: 0rem 0rem 2rem #00000012;
    cursor: auto;
}

.home .cards__list {
    margin-top: 2rem;
}

.home .listing {
    padding-top: 4rem;
}

.see-all {
    text-decoration: none;
    display: flex;
    gap: .5rem;
    font-size: 1.2rem;
}

.see-all svg {
    width: .6rem

}

*/
/* SERVICES */



#intro {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: space-between;
    height: 100dvh;
}

.intro__tabs {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro__tabs-item {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    position: absolute;
}

.intro__tabs-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .75s ease, transform .75s ease, visibility 0s 0s;
}


.intro__tabs h3 {
    margin-bottom: 1rem;
    padding-right: 0;
}

#intro ul {
    display: grid;
    justify-content: space-between;
    list-style-type: none;
    gap: calc((var(--ratio)* 1rem));
    width: 100%;
    grid-column: 4;
    grid-template-columns: repeat(6, 1fr);
}

#intro ul li {
    display: flex;
    flex-direction: column;
    gap: calc(var(--ratio) * 1rem);
    cursor: pointer;
    overflow: hidden;
}

#intro ul li:hover img {
    transform: scale(1.025);
}

h3 {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    padding-right: 50%;
    line-height: 1;
}

#intro ul img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    height: 100%;
    pointer-events: none;
    transform: scale(1);
    transform-origin: top center;
    transition: all .25s ease-out;
}

@media screen and (max-width:991px) {
    #intro {
        padding-top: 8rem;
    }

    #intro ul {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        margin-top: 6rem;
    }

    #intro {
        height: auto;
    }

    .intro__tabs-item {
        display: none;
        position: relative;
    }

    .intro__tabs-item.active {
        display: block;
    }
}

@media screen and (min-width:991px) {
    .intro__tabs-item {
        max-width: calc(100% / 3);
        margin-left: calc(100% / 6);
    }
}


/* PROJECTS */

#projects {
    height: auto;
    padding: 0;
}

#projects ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: calc((var(--ratio) * 0.5rem));
}

#projects ul li {
    height: 85vh;
    position: relative;
    overflow: hidden;
}

#projects ul li:hover img {
    transform: scale(1.025);

}

#projects ul li:hover h3 {
    opacity: 1;
    transform: translateY(0);
}

#projects ul li h3 {
    position: absolute;
    bottom: calc(var(--ratio)* 1.5rem);
    left: calc(var(--ratio)* 1.5rem);
    color: var(--bg);
    text-transform: uppercase;
    /* max-width: 80%; */
    font-weight: normal;
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(.5rem);
    transition: all .5s ease-out .35s;
    z-index: 1;
}

#projects ul li:not(:last-child) a::before {
    background: linear-gradient(0deg, rgb(0 0 0 / 49%) 0%, rgba(0, 0, 0, 0) 40%);
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#projects ul li a:hover::before {
    opacity: 1;
}

#projects ul li img {
    transition: all .3s ease-out;
}

#projects ul li img,
.projects__more {
    width: calc(50vw - (var(--ratio) * .25rem));
    object-fit: cover;
    height: 100%;
}

li.projects__more {
    display: flex;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
    padding-right: calc(var(--ratio)* 1rem);
}

.projects__more div {
    display: flex;
    flex-direction: column;
    text-align: right;
    text-transform: uppercase;
}

li.projects__more a {
    text-decoration: none;
    font-size: .8rem;
    font-weight: 400;
}


#customCursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6rem;
    height: 6rem;
    pointer-events: none;
    z-index: 1000;
    transform: scale(0);
    opacity: 0;
    transform-origin: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#customCursor svg {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    animation: rotateCursor 12s linear infinite;
}

@keyframes rotateCursor {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


#customCursor.visible {
    transform: scale(1);
    opacity: 1;
    transform-origin: center;
}


#customCursor:not(.visible) {
    transform: scale(0);
    opacity: 0;
}


.fade {
    opacity: 1;
    transform: translateY(0); 
}

.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.fade-in {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 991px) {

    #projects ul li img,
    .projects__more {
        width: 100%;
        object-fit: cover;
        height: 100%;
    }

    #projects ul li h3 {
        opacity: 1;
        left: calc(var(--ratio)* 1rem);
    }

    li.projects__more {
        max-height: 50vh;
        justify-content: flex-start;
    }

    li.projects__more div {
        text-align: left;
        padding: 2rem;
    }

    #customCursor {
        display: none;
    }


}

/* ABOUT */

#about {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

#about>div {
    width: 50%;
    display: flex;
    flex-direction: column;
}



#about img {
    aspect-ratio: 2/3;
    object-fit: cover;
    height: 65vh;
}

#about div:last-child {
    align-items: center;
}


@media screen and (min-width: 991px) {
    #about>div:first-child {
        padding-right: 10%;
        width: 50%;
    }
}

@media screen and (max-width: 991px) {
    #about>div {
        width: 100%;
    }

    #about {
        height: auto;
    }

    #about img {
        aspect-ratio: none;

        width: 100%;
    }
}

/* CREDITS */

#credits {
    display: flex;
    align-items: flex-end;
    height: auto;
    margin-bottom: -20vh;
    padding: 8rem 2rem;
    flex-wrap: wrap;
}

#credits>div {
    width: 50%;
    display: flex;
    flex-direction: column;
}


#credits>div:first-child {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
    justify-content: flex-end;
}

#credits>div:first-child h2 {
    margin-bottom: 0;
}

#credits h2 {
    margin-bottom: calc(var(--ratio)* 1.5rem);
}


#credits h3 {
    /* all: unset; */
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: calc(var(--ratio) * .5rem);
}

#credits ul {
    list-style-type: none;
}

#credits li {
    margin-bottom: calc(var(--ratio)* .5rem);
}

.credits__content {
    column-count: 2;
}

@media screen and (max-width: 991px) {
    #credits {
        margin-bottom: 0;
    }
    
    #credits>div {
        width: 100%;
    }

    .credits__content {
        column-count: 1;
    }

    #credits {
        padding: 2rem;
    }

    #credits>div:first-child {
        margin-bottom: 4rem;
    }

}

/* CONTACT */

section#contact {
    display: flex;
    justify-content: center;
    align-items: center;

}

#contact video {
    width: calc(100% / 3);
}

@media screen and (max-width: 991px) {
    #contact video {
        width: 100%;
    }

    section#contact {
        height: 60dvh;
        background: black;
    }
}

/* LISTING */

.page-template-page-db .hero {
    min-height: 0rem;
    padding: 4rem 0rem 2rem;
}

.cards__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.cards__list>a {
    width: 13.5rem;
    min-height: 18.35rem;
    padding: 1.25rem;
    border-radius: .5rem;
    position: relative;
    color: white;
    font-size: .8rem;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}

.cards__list>a:hover {
    transform: scale(1.04);
}

.cards__list>a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
    position: absolute;
    border-radius: .5rem;
}

.card:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, .55)), to(rgba(0, 0, 0, 0)));
    background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) 100%);
    z-index: -1
}

.card__info svg {
    position: absolute;
    top: -.75rem;
    right: -1rem;
    width: 2.5rem;
    transform: rotate(12deg);
}

.card__info {
    font-size: .9rem;
}

.card__tag {
    background-color: var(--secondary);
    padding: .25rem .5rem .25rem .4rem;
    border-radius: 2rem;
    font-size: 0.75rem;
}

.card__name {
    font-weight: 700;
    font-size: 1.6rem;
    position: relative;
    line-height: 1;
}

.card__name sup {
    font-size: 1em;
    position: absolute;
    right: -1.25rem;
    font-family: monospace;
    bottom: .25rem;
}

.listing__filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.listing__select {
    position: relative;
}

.listing__filters select {
    font-weight: 500;
    padding: .65rem 1.3rem;
    border-radius: 2rem;
    border: 1px solid lightgray;
    color: var(--primary);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    width: 100%;
}

.listing__select::after {
    content: '';
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 24px;
    /* Ajustez la taille selon vos besoins */
    height: 24px;
    /* Ajustez la taille selon vos besoins */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NCIgaGVpZ2h0PSI0NCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNCQUNFMUQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9ImJ1dHQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik02IDlsNiA2IDYtNiIvPjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
    color: var(--primary);
    /* Appliquer la couleur */
}

.listing__filters select {
    font-weight: 500;
    padding: .65rem 2rem .65rem 1.3rem;
    border-radius: 2rem;
    border: 1px solid lightgray;
    color: var(--primary);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: none;
    position: relative;
}

.listing__filters span {
    font-weight: 600;
    color: var(--secondary);
}

.listing__filters form {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.pagination a {
    text-decoration: none;
    position: relative;
}

.pagination {
    position: relative;
}



.pagination .prev-arrow {
    color: var(--secondary);
    font-weight: 900;
    position: absolute;
    top: -2px;
    left: -1.5rem;
}

.pagination .next-arrow {
    color: var(--secondary);
    font-weight: 900;
    position: absolute;
    top: -2px;
    right: -1.5rem;
}

@media screen and (max-width: 991px) {

    .cards__list {
        justify-content: center;
    }

    .listing__filters {
        flex-direction: column;
    }

    .listing__filters form {
        flex-direction: column;
        width: 100%;
    }
}

/* SINGLE ANIMALS */

.fiche {
    margin-top: 2rem;
}

.fiche .row {
    align-items: flex-start;
}

.fiche h1 {
    line-height: 1.1;
    font-size: clamp(3rem, 8vw, 4rem);
    position: relative;
    display: inline-block;
}


.fiche h1 sup {
    font-size: 1.2em;
    position: absolute;
    right: -0.7em;
    font-family: monospace;
    bottom: -0.1em;
    color: var(--secondary);
}


.fiche__left {
    width: 50%;
}

.fiche__left ul {
    list-style-type: none;
    display: flex;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: .5rem .5rem;
}

/* ul.fiche__attributes li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}*/

.fiche__attributes li {
    border: 1px solid var(--secondary);
    border-radius: 2rem;
    padding: .25rem .75rem;
    font-weight: 200;
    font-size: 0.8rem;
}

/*
 ul.fiche__attributes li strong {
    font-size: 0.7em;
    text-transform: uppercase;
    color: white;
    background: var(--secondary);
    padding: 0.2em 0.7em;
    border-radius: 1rem;
}*/

ul.fiche__icons {
    gap: 1.5rem;
}

.fiche__icons li {
    position: relative;
}

.fiche__icons img {
    position: absolute;
    width: 1rem;
    bottom: -.25rem;
    right: -0.4rem;
}

.fiche__right {
    width: 40%;
    position: sticky;
    top: 2rem;
}

.fiche__right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fiche__image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.fiche__thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    border-radius: 1rem;
}

.fiche__thumbnails .fiche__image {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
    opacity: 0.65;
    border-radius: .65rem;
}

.fiche__thumbnails .fiche__image:hover {
    transform: scale(1.1);
    opacity: 1;
}

.hidden {
    display: none;
    /* Cacher les éléments qui ne sont pas visibles au départ */
}

.fiche__right img {
    width: 100%;
    height: 29rem;
    object-fit: cover;
    border-radius: 2rem;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 4rem;
    height: 4rem;
    background: none;
    color: var(--secondary);
}

.prev {
    left: -3.25rem;
}

.next {
    right: -3.25rem;
}


img.visible {
    /* display:block!important; */
}

@media screen and (max-width: 991px) {
    .fiche__left {
        width: 100%;
    }

    .fiche__right {
        width: 100%;
    }

}

/* MODULES */

.hero__anim {
    position: absolute;
    width: 100%;
    height: 150%;
    left: 0;
    overflow: hidden;

}

.hero__anim img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


div#loader {
    z-index: 10;
    text-transform: uppercase;
    color: black;
    font-size: .8rem;
    position: absolute;
    text-align: center;
    bottom: 2rem;
    animation: fadeIn 1s ease-in forwards .25s; /* Animation à l'entrée */
    opacity: 0;

}

.hero__loader svg {
    opacity: 0; /* Opacité initiale */
    width: 14rem;
    max-width: none;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in forwards; /* Animation à l'entrée */
}

@keyframes fadeIn {
    from {
        opacity: 0; /* Départ invisible */
    }
    to {
        opacity: 1; /* Fin complètement visible */
    }
}

#percent-label {
    display: none;
}

/* GUTENBERG COMPONENTS */

.col-reverse {
    flex-direction: row-reverse;
}

h2.wp-block-heading {
    font-size: 2rem;
}

.content ul li {
    list-style-position: inside;
    margin-bottom: .5rem;
    font-weight: 100;
}

.content ul li::marker {
    color: var(--secondary);
}

/* Enlever le marker par défaut */
details summary {
    font-size: 2rem;
    line-height: 1.2;
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-radius: 5px;
    margin-bottom: 5px;
    position: relative;
    padding: 0 2.5rem 0 0;
}

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

details summary::marker {
    display: none;
}

details summary:hover {
    /* color: var(--secondary); */
}

summary:hover::after {
    color: var(--secondary);
}


details summary::after {
    content: '+';
    width: 2rem;
    height: 2rem;
    /* background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%23BACE0D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M6 15l6 6 6-6"%3E%3C/path%3E%3C/svg%3E');*/
    background-repeat: no-repeat;
    background-size: 100% auto;
    /* Ajuster la taille du SVG pour remplir la boîte */
    background-position: center;
    /* Assurer que l'icône est centrée */
    position: absolute;
    right: 10px;
    top: -0.7rem
        /*transform: translateY(-50%);*/
    ;
    transition: transform 0s ease;
    font-weight: 300;
    font-size: 3rem;
}

details[open] summary::after {
    transform: rotate(0);
    content: '–';
    right: 5px;
    top: -0.65rem
}

.wp-block-details {
    box-sizing: border-box;
    border-bottom: 1px solid var(--primary);
    padding: 1.5rem 0;
}

h2.wp-block-heading.bigstroke {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    margin: 4rem 0;
}

h2.wp-block-heading.bigstroke::before {
    content: attr(data-text);
    position: absolute;
    top: -3rem;
    left: -50vw;
    right: 0;
    bottom: 0;
    font-size: 20vw;
    color: var(--bg);
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* overflow: hidden; */
    width: 210vw;
    /* left: 0; */
    -webkit-text-stroke: 2px #b3d8b8;
    text-stroke: 2px #b3d8b8;
    z-index: -1;
    paint-order: stroke fill;
}


@media screen and (max-width: 991px) {

    h2.wp-block-heading.bigstroke::before {
        content: "";
        display: none;
    }

    h2.wp-block-heading.bigstroke {
        margin: 1rem 0;
    }

    .wp-block-image .alignright {
        float: right;
        margin: 0;
    }
}

/* PROGRAMME */

.programme {
    display: flex;
    margin-top: 2rem;
    gap: 1.5rem;
    padding: 0 4rem 0 2rem;
}

.programme__left {
    padding: 0;
    background: var(--secondary);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    border-radius: 100%;
    flex-wrap: wrap;
    /* position: absolute; */
    padding: 1.5rem;
    align-content: center;
    font-weight: 600;
    text-align: center;
}



.programme h3 {
    margin-bottom: .4rem;
    font-size: 1.2rem;
}

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

.programme__left p {
    all: unset;
}

.wp-block-details:last-of-type {
    border-bottom: none;
}

@media screen and (max-width: 991px) {

    .programme {
        margin-top: 1rem;
        gap: 1.5rem;
        padding: 1rem;
        flex-direction: column;
    }
}

/* CONTACT */

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
    border-radius: 2rem;
    border: none;
    width: 100%;
    margin: 0 auto;
    padding: .75rem 1.5rem;
    font-weight: 200;
    /* box-shadow: 0rem 0rem 2rem #00000012; */
    cursor: auto;
    border: 1px solid lightgrey;
}

textarea.wpcf7-form-control.wpcf7-textarea {
    border-radius: 1.5rem;
    width: 100%;
    padding: .75rem 1.5rem;
    border: 1px solid lightgrey;
    cursor: auto;
}

/* COMITE */

.comite {
    padding: 4rem 0;
}

.comite ul {
    margin-top: 7rem;
    columns: 2;
}